maint.mk: fix VPATH issues.
[gnulib.git] / ChangeLog
1 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2
3         maint.mk: fix VPATH issues.
4         * top/maint.mk (news-check): GNU Make understand $< very well.
5         (release-prep): NEWS is in $(srcdir).
6
7 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
8
9         readme-release: require the promoted modules.
10         * modules/readme-release (Depends-on): Add
11         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
12         in this text.
13
14 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
15             Bruno Haible  <bruno@clisp.org>
16
17         error, strerror-override: Support mingw64 from Fedora 17.
18         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
19         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
20         EINPROGRESS.
21         * lib/strerror-override.h (strerror_override): Test it.
22         * lib/strerror-override.c (strerror_override): Likewise.
23         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
24
25 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
26             Bruno Haible  <bruno@clisp.org>
27
28         error, strerror-override: Support mingw64 from Fedora 17.
29         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
30         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
31         * lib/strerror-override.h (strerror_override): Test it.
32         * lib/strerror-override.c (strerror_override): Likewise.
33
34 2012-06-03  Bruno Haible  <bruno@clisp.org>
35
36         error, strerror-override: Support new errno values from POSIX:2008.
37         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
38         ENOTRECOVERABLE.
39         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
40         platforms.
41         * lib/strerror-override.c (strerror_override): Conditionalize the
42         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
43         * lib/strerror-override.h (strerror_override): Declare also if
44         GNULIB_defined_EOWNERDEAD is defined.
45         * tests/test-errno.c (e130, e131): New variables.
46         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
47         ENOTRECOVERABLE.
48         Reported by Paolo Bonzini.
49
50 2012-05-31  Jim Meyering  <meyering@redhat.com>
51
52         savewd: add missing dependency on sys_wait module
53         * modules/savewd (Depends-on): Add sys_wait, needed at least
54         for MSVC.  Report and suggested change by Michael Goffioul.
55
56 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
57
58         system-quote-tests: port to CentOS 5
59         Problem reported by Tom G. Christensen in
60         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
61         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
62
63 2012-05-29  Jim Meyering  <meyering@redhat.com>
64
65         maint: fix typos in comments and ChangeLog
66         Culprits identified and fixed mostly automatically using these commands:
67         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
68         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
69         using http://github.com/lyda/misspell-check
70         * ChangeLog: Fix typos.
71         * doc/solaris-versions: Likewise.
72         * lib/regexec.c (re_search_stub): Likewise.
73         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
74
75 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76
77         manywarnings: remove duplicate -Wmultichar entry
78         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
79         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
80         so keep the entry marked as documented.
81
82 2012-05-27  Karl Berry  <karl@gnu.org>
83
84         * config/srclist.txt (mktime.c): remove last libc sync,
85         perhaps just temporarily.
86
87 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
88
89         regex: don't assume uint64_t or uint32_t
90         * lib/regcomp.c (init_word_char): Don't assume that the types
91         uint64_t and uint32_t exist.  The C standard doesn't guarantee
92         them, and on some 32-bit compilers there is no uint64_t.
93         Problem reported by Gianluigi Tiesi in
94         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
95
96 2012-05-25  Jim Meyering  <meyering@redhat.com>
97
98         maint.mk: add strncpy-prohibiting syntax-check rule
99         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
100
101 2012-05-24  Jim Meyering  <meyering@redhat.com>
102
103         maint.mk: compute $(gpg_key_ID) more portably
104         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
105         That use of sed is not portable to some fringe systems.
106         Reported by Paul Eggert in
107         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
108
109 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
110
111         mktime: sync from glibc
112         * config/srclist.txt: Uncomment mktime.c.
113         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
114         First, indent with tabs, since glibc uses tabs and doesn't want to
115         change and we'd rather be identical to glibc.  Also, two small
116         coding changes:
117         (isdst_differ): Use &&, not &, as && is the usual style.
118         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
119         for clarity.
120
121 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
122
123         announce-gen: du -h is more portable than du --human
124         * build-aux/announce-gen (sizes): Invoke du with -h instead
125         of --human.  Accept leading white space in its output.
126
127 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
128
129         announce-gen: Improve diagnostics.
130         * build-aux/announce-gen: When parsing command line options,
131         prefer "announce-gen: option --release-type requires an argument"
132         to "Option release-type requires an argument".
133
134 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
135
136         maint.mk: gpg_key_ID: use sed more portably
137         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
138         the closing brace.
139         (refresh-po): Fuse two sed invocations into one.
140
141 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
142
143         gitlog-to-changelog: support the log message format used in Bison.
144         * build-aux/gitlog-to-changelog: Support --strip-tab and
145         --strip-cherry-picked.
146
147 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
148
149         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
150         the rest of the current time slice to another thread in the current
151         process. So if the thread that feeds the file decscriptor we're
152         polling is not in the current process, we get busy-waiting.
153         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
154         Patch from Theodore Leblond.
155         * lib/select.c: Split polling out of the loop that sets the output
156         fd_sets.  Check for zero result and loop if the wait timeout is
157         infinite.
158
159 2012-05-21  Simon Josefsson  <simon@josefsson.org>
160
161         select: Fix build error on IRIX 6.5.
162         * lib/select.c: Include stddef.h for NULL.
163
164 2012-05-21  Simon Josefsson  <simon@josefsson.org>
165
166         gc: fix libgcrypt detection on older machines.
167         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
168         copyright years because the file has been distributed every year
169         since it was created.
170
171 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
172
173         crypto: fix bug in large buffer handling
174         Problem reported by Serge Belyshev for glibc in
175         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
176         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
177         * lib/md4.c (md4_process_block):
178         * lib/md5.c (md5_process_block):
179         * lib/sha1.c (sha1_process_block):
180         * lib/sha256.c (sha256_process_block):
181         Don't assume the buffer length is less than 2**32.
182         * lib/sha512.c (sha512_process_block): Likewise.
183         Here, the bug is present only in the rare case where the host does
184         not support uint64_t or where size_t is wider than 64 bits.
185         Use u64size to work around the problems.
186         * lib/u64.h (u64size): New macro.
187
188 2012-05-15  Pádraig Brady  <P@draigBrady.com>
189
190         fsusage: fix block size returned on older Linux 2.6
191
192         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
193         which is available since Linux 2.6.
194         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
195         when the member is available so it can be used as a fallback.
196         * doc/posix-functions/statvfs.texi: Mention the hang issue
197         on Linux < 2.6.36.
198
199 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
200
201         bootstrap: suppress stderr chatter
202         * build-aux/bootstrap (insert_sorted_if_absent, main program):
203         Omit unnecessary chatter to stderr.  The main program chatter
204         was there only inadvertantly.
205
206         bootstrap: .gitignore files created by autopoint, libtool
207         I ran into this problem when bootstrapping the latest diffutils.
208         After './bootstrap', 'git status' reported lots of untracked files
209         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
210         autopoint and do not need to be version-controlled.
211         * build-aux/bootstrap: Put into .gitignore the files that
212         autopoint and libtool create, by keeping track of files that exist
213         after but not before these programs are run.
214         (version_controlled_file): Move up.  2nd arg is now full file
215         name, not base name; this is more convenient.  Put CVS at the end,
216         as it's now somewhat deprecated.
217
218 2012-05-14  Jim Meyering  <meyering@redhat.com>
219
220         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
221         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
222         definition.  Reported by Bruno Haible.
223
224 2012-05-13  Bruno Haible  <bruno@clisp.org>
225             Paul Eggert  <eggert@cs.ucla.edu>
226
227         binary-io: Define set_binary_mode function.
228         * lib/binary-io.h (set_binary_mode): New function.
229         (SET_BINARY): Define in terms of set_binary_mode.
230         * modules/binary-io (configure.ac): Require AC_C_INLINE.
231         * tests/test-binary-io.c (main): Accept an argument, and test either
232         set_binary_mode or SET_BINARY depending on the argument.
233         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
234         argument. Clean up also t-bin-out0.tmp.
235
236 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
237
238         bootstrap: take advantage of POSIX shell features
239
240         The 'bootstrap' script offered by Gnulib script already uses POSIX
241         shell features (like $((...)) arithmetic expansions) that are not
242         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
243         means that bootstrap must already be run using a proper POSIX shell,
244         which will thus provide more features, like ${var#pattern} parameter
245         expansion or inversion of a command exit status with '!'.  We can
246         thus use these features to improve the clarity and the performances
247         of the bootstrap script.
248
249         Suggested by Eric Blake.
250
251         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
252         of sed/expr plus command substitutions, to save some forks.  While
253         we are at it, prefer the POSIX $(...) form of command substitution,
254         rather than the legacy form `...` (since the former is visually
255         clearer and interacts better with quoting), and prefer the idiom:
256           "if ! CMD; then ACTION ..."
257         over the idiom:
258           "if CMD; then :; else ACTION ..."
259         which was required by legacy Bourne shells not supporting '!'.
260
261 2012-05-12  Bruno Haible  <bruno@clisp.org>
262
263         system-quote: Add more comments.
264         * lib/system-quote.h: Add more comments about wilcards and limitations.
265         Suggested by Eli Zaretskii <eliz@gnu.org>.
266
267         sh-quote, system-quote: Add comments about wildcards.
268         * lib/sh-quote.h: Clarify what happens with wildcard characters.
269         * lib/system-quote.h: Likewise.
270         Reported by Eli Zaretskii <eliz@gnu.org>.
271
272 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
273
274         fsusage: check for GNU/Linux statvfs problem dynamically
275         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
276         Define STAT_STATFS2_BSIZE too, since in this case the code now
277         checks dynamically whether statvfs is reliable, falling back on
278         Linux-style statfs otherwise.
279         (statvfs_works): New function, for dynamically testing statvfs.
280         (get_fs_usage) [STAT_STATVFS]: Use it.
281         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
282         statvfs on GNU/Linux hosts, since it's now done dynamically.
283
284 2012-05-10  Bruno Haible  <bruno@clisp.org>
285
286         system-quote, execute, spawn-pipe: Escape '?' on Windows.
287         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
288         '?' character.
289         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
290         * tests/test-system-quote-main.c (check_all): Check also strings like
291         "??????????".
292         Reported by Eli Zaretskii <eliz@gnu.org>.
293
294 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
295
296         _Noreturn: port config.h to gcc -Wundef
297         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
298         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
299         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
300
301 2012-05-10  Bruno Haible  <bruno@clisp.org>
302
303         system-quote: Refactor.
304         * lib/system-quote.h (system_quote_copy): Fix comment.
305         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
306         New functions, extracted from system_quote_copy.
307         (system_quote_length, system_quote_copy): Use these functions.
308         Reported by Paul Eggert.
309
310 2012-05-08  Bruno Haible  <bruno@clisp.org>
311
312         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
313         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
314
315 2012-05-08  Bruno Haible  <bruno@clisp.org>
316
317         Tests for module 'system-quote'.
318         * modules/system-quote-tests: New file.
319         * tests/test-system-quote.sh: New file.
320         * tests/test-system-quote-main.c: New file.
321         * tests/test-system-quote-child.c: New file.
322
323         New module 'system-quote'.
324         * lib/system-quote.h: New file.
325         * lib/system-quote.c: New file.
326         * modules/system-quote: New file.
327
328 2012-05-08  Bruno Haible  <bruno@clisp.org>
329
330         sh-quote: Make C++ safe and allow multiple inclusion.
331         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
332         declarations in extern "C".
333
334 2012-05-08  Bruno Haible  <bruno@clisp.org>
335
336         sh-quote tests: Make tests stricter.
337         * tests/test-sh-quote.c (check_one): Check the return value of
338         shell_quote_copy.
339         (main): Check a string with a CR character. Check a string that
340         contains UCHAR_MAX.
341
342 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
343
344         warnings.m4: provide a means to specify the program to compile.
345         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
346         (gl_WARN_ADD): here.
347         Use gl_AS_VAR_APPEND.
348         Support an argument to specify the program to compile.
349         (gl_WARN_ADD): Accept an argument to specify the program to compile.
350         AC_SUBST the WARN_CFLAGS when they are used.
351         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
352         leave this to gl_WARN_ADD.
353
354 2012-05-08  Eric Blake  <eblake@redhat.com>
355
356         doc: recommendations on gettext version
357         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
358         choice between versions.
359         * DEPENDENCIES (gettext): Cover both approaches.
360
361 2012-05-08  Jim Meyering  <meyering@redhat.com>
362
363         init.sh: explain why EXEEXT support uses aliases rather than functions
364         * tests/init.sh: Add a comment.
365
366         init.sh: don't let bash aliases interfere with tests
367         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
368         is bash.  This avoids problems for those who alias standard commands to
369         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
370         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
371
372 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
373
374         stdint: be more consistent with glibc, SunOS libc
375         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
376         (gl_int_fast16_t, gl_uint_fast16_t)
377         (gl_int_fast32_t, gl_uint_fast32_t)
378         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
379         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
380         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
381         Be consistent with glibc by default, and with SunOS 5.10 and later
382         if __sun is defined.  This lessens the likelihood of clashes if
383         code compiled for older hosts is combined with code compiled for
384         newer ones.  Problem reported by Niels Möller in
385         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
386
387 2012-05-07  Eric Blake  <eblake@redhat.com>
388
389         isatty: relax license to LGPLv2+
390         * modules/isatty (License): Relax license.
391
392 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
393
394         stat-size: comment fix
395         * lib/stat-size.h: Remove obsolete comment about indenting.
396
397 2012-05-06  Bruno Haible  <bruno@clisp.org>
398
399         Tests for module 'sh-quote'.
400         * modules/sh-quote-tests: New file.
401         * tests/test-sh-quote.c: New file.
402
403 2012-05-06  Bruno Haible  <bruno@clisp.org>
404
405         sh-quote: Improve shell_quote_argv's signature.
406         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
407         * lib/sh-quote.c (shell_quote_argv): Likewise.
408
409 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
410
411         stdint: document issues with int_fast8_t etc.
412         * doc/posix-headers/stdint.texi (stdint.h): Say that other
413         stdint.h substitutes may define these types differently.  See
414         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
415
416 2012-05-05  Bruno Haible  <bruno@clisp.org>
417
418         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
420         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
421         or 'guessing no (mishandles large arguments)'.
422
423 2012-05-05  Bruno Haible  <bruno@clisp.org>
424
425         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
426         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
427         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
428         set gl_cv_func_link_follows_symlink to "guessing no".
429
430 2012-05-05  Bruno Haible  <bruno@clisp.org>
431
432         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
433         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
434         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
435         "guessing no".
436         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
437
438 2012-05-05  Bruno Haible  <bruno@clisp.org>
439
440         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
441         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
442         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
443         set gl_cv_struct_dirent_d_ino to "guessing yes".
444
445 2012-05-05  Bruno Haible  <bruno@clisp.org>
446
447         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
448         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
449         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
450         "guessing yes".
451
452 2012-05-05  Bruno Haible  <bruno@clisp.org>
453
454         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
455         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
456         compiling to a glibc system, set gl_cv_func_signbit and
457         gl_cv_func_signbit_gcc to "guessing yes".
458
459 2012-05-05  Bruno Haible  <bruno@clisp.org>
460
461         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
462         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
463         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
464         to "guessing yes".
465         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
466         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
467
468 2012-05-05  Bruno Haible  <bruno@clisp.org>
469
470         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
471         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
472         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
473         gl_cv_func_realpath_works to "guessing yes".
474
475 2012-05-05  Bruno Haible  <bruno@clisp.org>
476
477         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
478         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
479         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
480
481 2012-05-04  Bruno Haible  <bruno@clisp.org>
482
483         Tweak last commit.
484         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
485         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
486
487 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
488
489         unistd_h: make it easier to avoid sys_types_h
490         This is useful for Emacs, which has its own method of porting to
491         Windows, and which therefore does not need the sys_types_h module.
492         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
493         code moved here from gl_SYS_TYPES_H.
494         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
495         using the code directly.
496         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
497         gl_SYS_TYPES_H.
498         * modules/sys_types (Files):
499         * modules/unistd (Files): Add m4/off_t.m4.
500
501 2012-05-03  Bruno Haible  <bruno@clisp.org>
502
503         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
504         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
505         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
506         "guessing yes" or "guessing no".
507         (gl_FUNC_LSTAT): Update.
508         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
509         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
510         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
511
512 2012-05-03  Bruno Haible  <bruno@clisp.org>
513
514         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
515         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
516         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
517         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
518         cross-compiling, choose the first alternative on glibc systems.
519         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
520
521 2012-05-03  Bruno Haible  <bruno@clisp.org>
522
523         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
524         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
525         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
526
527 2012-05-03  Bruno Haible  <bruno@clisp.org>
528
529         chown: Avoid "guessing no" when cross-compiling to glibc systems.
530         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
531
532 2012-05-03  Bruno Haible  <bruno@clisp.org>
533
534         Avoid "guessing no" guesses when cross-compiling to glibc systems.
535         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
536         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
537         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
538         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
539         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
540         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
541         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
542         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
543         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
544         compiling to glibc systems, set gl_cv_func_chown_slash_works,
545         gl_cv_func_chown_ctime_works to "guessing yes".
546         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
547         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
548         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
549         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
550         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
552         compiling to glibc systems, set gl_cv_func_open_directory_works to
553         "guessing yes".
554         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
555         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
556         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
557         "guessing yes".
558         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
559         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
560         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
561         compiling to glibc systems, set gl_cv_func_floorf_ieee to
562         "guessing yes".
563         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
564         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
565         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
566         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
567         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
568         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
569         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
570         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
571         "guessing yes".
572         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
573         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
574         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
575         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
576         "guessing yes".
577         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
578         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
579         "guessing yes".
580         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
581         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
582         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
583         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
584         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
585         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
586         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
587         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
588         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
589         compiling to glibc systems, set gl_cv_func_log10f_ieee to
590         "guessing yes".
591         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
592         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
593         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
594         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
595         "guessing yes".
596         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
597         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
598         "guessing yes".
599         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
600         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
601         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
602         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
603         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
604         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
605         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
606         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
607         compiling to glibc systems, set gl_cv_func_mkfifo_works to
608         "guessing yes".
609         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
610         compiling to glibc systems, set gl_cv_func_mknod_works to
611         "guessing yes".
612         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
613         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
614         "guessing yes".
615         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
616         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
617         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
618         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
619         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
620         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
621         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
622         compiling to glibc systems, set gl_cv_func_svid_putenv to
623         "guessing yes".
624         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
625         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
626         "guessing yes".
627         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
628         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
629         "guessing yes".
630         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
631         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
632         to "guessing yes".
633         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
634         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
635         to "guessing yes".
636         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
637         compiling to glibc systems, set gl_cv_func_rmdir_works to
638         "guessing yes".
639         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
640         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
641         gl_cv_func_unlink_parent_fails to "guessing yes".
642         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
643         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
644         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
645         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
646         gl_cv_func_rename_dest_works to "guessing yes".
647         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
648         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
649         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
650         compiling to glibc systems, set gl_cv_func_roundf_ieee to
651         "guessing yes".
652         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
653         compiling to glibc systems, set gl_cv_func_roundl_ieee to
654         "guessing yes".
655         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
656         compiling to glibc systems, set gl_cv_func_setenv_works to
657         "guessing yes".
658         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
659         compiling to glibc systems, set gl_cv_func_unsetenv_works to
660         "guessing yes".
661         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
662         compiling to glibc systems, set gl_cv_func_sleep_works to
663         "guessing yes".
664         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
665         compiling to glibc systems, set gl_cv_func_stat_file_slash to
666         "guessing yes".
667         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
668         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
669         "guessing yes".
670         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
671         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
672         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
673         compiling to glibc systems, set gl_cv_func_truncf_ieee to
674         "guessing yes".
675         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
676         compiling to glibc systems, set gl_cv_func_truncl_ieee to
677         "guessing yes".
678         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
679         compiling to glibc systems, set gl_cv_func_usleep_works to
680         "guessing yes".
681         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
682         compiling to glibc systems, set gl_cv_func_futimesat_works to
683         "guessing yes".
684
685 2012-05-03  Bruno Haible  <bruno@clisp.org>
686
687         Say "guessing yes" or "guessing no" when cross-compiling.
688         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
689         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
690         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
691         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
692         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
693         am_cv_func_working_getline to "guessing yes" or "guessing no".
694         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
695         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
696         (gl_FUNC_MEMMEM): When cross-compiling, set
697         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
698         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
699         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
701         set gl_cv_func_strcasestr_works_always to "guessing yes" or
702         "guessing no".
703         (gl_FUNC_STRCASESTR): When cross-compiling, set
704         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
705         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
706         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
707         (gl_FUNC_STRSTR): When cross-compiling, set
708         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
709         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
710         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
711         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
712         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
713
714 2012-05-01  Bruno Haible  <bruno@clisp.org>
715
716         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
717         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
718         * build-aux/reloc-ldflags: Likewise.
719         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
720
721 2012-05-01  Bruno Haible  <bruno@clisp.org>
722
723         gnulib-tool: Remove transitional code.
724         * gnulib-tool: Don't warn about --import with 0 arguments any more.
725         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
726
727 2012-05-01  Bruno Haible  <bruno@clisp.org>
728
729         getcwd: Fix misindentation.
730         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
731
732 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
733
734         exclude: process exclude and include directives in order
735         This restores the pre-2009 behavior, and is part of a fix of a
736         grep bug reported by Quentin Arce in
737         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
738         * lib/exclude.c (struct exclude): Remove 'tail' member.
739         (new_exclude_segment): Prepend the new segment instead of appending.
740         Return void, since that's now more convenient.
741         (file_pattern_matches): Renamed from excluded_file_pattern_p.
742         (file_name_matches): Renamed from excluded_file_name_p.
743         (file_pattern_matches, file_name_matches):
744         Return true if the pattern matches, not if it excludes.
745         All callers changed.
746         (excluded_file_name): Process the list in reverse order;
747         since the list is now reversed this restores the pre-2009 behavior.
748         (add_exclude): Adjust to new reversed-order list.  Use local var
749         rather than macro, for clarity.
750         * tests/test-exclude7.sh: Adjust to corrected behavior.
751
752         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
753         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
754         it's not possible here.  Handle the case of \ at end of pattern
755         without dumping core.
756         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
757
758         _Noreturn: future-proof non-GNU and non-MSVC compilers
759         * build-aux/snippet/_Noreturn.h (_Noreturn):
760         * m4/gnulib-common.m4 (gl_COMMON_BODY):
761         Do not define _Noreturn if __STDC_VERSION__ indicates this is
762         C11 or later.  This is more likely to work with random future C
763         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
764         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
765
766         exclude: handle wildcards with FNM_EXTMATCH
767         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
768         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
769         comment that "has wildcards" really means "has or may have
770         wildcards".  Simplify by avoiding the need to call strcspn.
771
772 2012-04-29  Bruno Haible  <bruno@clisp.org>
773
774         gnulib-tool: Fix list of authors.
775         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
776
777 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
778
779         bootstrap: support Automake-NG in $buildreq
780         * bootstrap (check_versions): Handle automake and aclocal from
781         Automake-NG specially.  They can be specified as respectively
782         the "automake-ng" and "aclocal-ng" requirements.
783
784 2012-04-25  Eric Blake  <eblake@redhat.com>
785
786         bootstrap: only force latest Makefile.in.in for gettext module
787         * build-aux/bootstrap (with_gettext): Only install latest
788         Makefile.in.in for projects requesting bleeding edge gettext.
789
790 2012-04-22  Bruno Haible  <bruno@clisp.org>
791
792         doc: Mention reason for replacement on glibc/Linux systems.
793         * doc/posix-functions/dprintf.texi: Mention the problem with special
794         'long double' values.
795         * doc/posix-functions/fprintf.texi: Likewise.
796         * doc/posix-functions/printf.texi: Likewise.
797         * doc/posix-functions/snprintf.texi: Likewise.
798         * doc/posix-functions/sprintf.texi: Likewise.
799         * doc/posix-functions/vdprintf.texi: Likewise.
800         * doc/posix-functions/vfprintf.texi: Likewise.
801         * doc/posix-functions/vprintf.texi: Likewise.
802         * doc/posix-functions/vsnprintf.texi: Likewise.
803         * doc/posix-functions/vsprintf.texi: Likewise.
804         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
805         platforms with F_DUPFD_CLOEXEC problems.
806         * doc/posix-functions/glob.texi: Mention which platforms are affected
807         by the problem with symbolic links.
808         * doc/posix-functions/linkat.texi: Mention the problem with
809         AT_SYMLINK_FOLLOW on Linux.
810
811 2012-04-22  Bruno Haible  <bruno@clisp.org>
812
813         pwrite: Don't replace on all platforms.
814         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
815
816 2012-04-22  Bruno Haible  <bruno@clisp.org>
817
818         rint* tests: Avoid gcc warnings.
819         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
820         * tests/test-rintf.c (INFINITY, NAN): Likewise.
821         * tests/test-rintl.c (INFINITY, NAN): Likewise.
822
823 2012-04-21  Bruno Haible  <bruno@clisp.org>
824
825         users.txt: Update.
826         * users.txt: Add freedink, wdiff. Update URLs for projects that have
827         switched from CVS to git, bzr, or svn.
828
829 2012-04-21  Bruno Haible  <bruno@clisp.org>
830
831         Large File Support for native Windows platforms.
832
833         * m4/largefile.m4 (gl_LARGEFILE): New macro.
834         * modules/largefile (configure.ac): Require gl_LARGEFILE.
835
836         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
837         type.
838         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
839         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
840         * doc/posix-headers/sys_types.texi: Mention the effect of the
841         'largefile' module.
842
843         * lib/fcntl.in.h: Add comments about off_t.
844         * modules/fcntl-h (Depends-on): Add sys_types.
845
846         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
847         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
848         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
849         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
850         * modules/unistd (Depends-on): Add sys_types.
851         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
852
853         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
854         instead of lseek.
855         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
856         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
857         * modules/lseek (Depends-on): Add sys_types.
858
859         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
860         msvc-nothrow.h.
861         (SetFileSize): New function.
862         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
863         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
864         if Large File Support is requested.
865         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
866         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
867
868         * lib/stdio.in.h: Add comments about off_t.
869         * modules/stdio (Depends-on): Add sys_types.
870
871         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
872         instead of ftello.
873         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
874         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
875         (gl_PREREQ_FTELLO): New macro.
876         * modules/ftello (Depends-on): Add sys_types.
877         (configure.ac): Incoke gl_PREREQ_FTELLO.
878
879         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
880         instead of fseeko.
881         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
882         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
883         (gl_PREREQ_FSEEKO): New macro.
884         * modules/fseeko (Depends-on): Add sys_types.
885         (configure.ac): Invoke gl_PREREQ_FSEEKO.
886
887         * lib/sys_stat.in.h: Add comments about off_t.
888         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
889         64-bit integer for st_size in 'struct stat'.
890         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
891         Define _GL_WINDOWS_64_BIT_ST_SIZE.
892         * modules/sys_stat (Depends-on): Add sys_types.
893         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
894
895         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
896         instead of stat or _stat.
897
898         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
899         'struct _stati64' instead of fstat and 'struct stat'.
900         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
901         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
902
903         Reported by Ray Satiro <raysatiro@yahoo.com>.
904
905 2012-04-19  Eric Blake  <eblake@redhat.com>
906
907         bootstrap: accommodate older libtool
908         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
909         Reported by Daniel P. Berrange.
910
911 2012-04-19  Jim Meyering  <meyering@redhat.com>
912
913         announce-gen: avoid failure due to lack of Digest::SHA1
914         Even with the preferred Digest::SHA available, this script
915         would fail when the backup module, Digest::SHA1, was not installed.
916         * build-aux/announce-gen: Quote the conditional use of "use".
917         Reported by Reuben Thomas in:
918         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
919
920         bootstrap: don't let a user's CDPATH setting affect this script
921         When CDPATH is set, cd will sometimes generate output.
922         When "cd" is run in a subshell whose output matters, that
923         surprising-to-some output can cause malfunction.
924         Unsetting CDPATH turns off this shell "feature."
925         * build-aux/bootstrap (CDPATH): Unset.
926         Reported by Reuben Thomas in:
927         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
928         and inspired by his patch here:
929         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
930
931 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
932         and Jim Meyering  <meyering@redhat.com>
933
934         maint.mk: catch "see @xref{}" and similar
935         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
936         prohibit "See also @xref{", "Also see @pxref{", and similar.
937
938 2012-04-16  Jim Meyering  <meyering@redhat.com>
939
940         bootstrap: really use gnulib's po/Makefile.in.in
941         * build-aux/bootstrap: Correct the source file name in previous change.
942         Reported by Akim Demaille.
943
944         configmake: correct minor inconsistency in Makefile rule
945         * modules/configmake (Makefile.am): All other rules like this one
946         run the final "mv -f ..." in the same backslash-continued command
947         as the one that does everything else.  This one put the mv -f ...
948         command on a separate, non-backslash-continued line.
949         Make it like the others.
950
951         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
952         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
953         the one from gettext.  Reported by Akim Demaille.
954
955 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
956
957         Fix recursion of install-* into po directories.
958         Bison's install-pdf bug reported by Hans Aberg at
959         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
960         * build-aux/po/Makefile.in.in (install-dvi, install-html)
961         (install-info, install-pdf, install-ps): New targets.
962
963 2012-04-16  Jim Meyering  <meyering@redhat.com>
964
965         maint: avoid spurious "make sc_maint" failure
966         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
967         exempt all *.class file names, for lib/javaversion.class.
968
969 2012-04-15  Bruno Haible  <bruno@clisp.org>
970
971         lseek: Make configure test independent of environment.
972         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
973         Windows, we know that lseek() on pipes is broken; skip the runtime
974         test.
975
976 2012-04-14  Bruno Haible  <bruno@clisp.org>
977
978         stat: Bypass buggy override in mingw64.
979         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
980         * lib/stat.c (stat) [mingw64]: Define to _stat.
981         * doc/posix-functions/stat.texi: Mention mingw64 bug.
982
983 2012-04-14  Bruno Haible  <bruno@clisp.org>
984
985         pathmax: Fix compilation error on MSVC 9.
986         * modules/pathmax (Depends-on): Add unistd.
987
988 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
989
990         README: document pointer comparison assumption
991         * README (Portability guidelines): Document assumption about
992         pointer comparisons, in response to a recent bug-gnulib comment by
993         Jeffrey Kegler.
994
995 2012-04-12  Bruno Haible  <bruno@clisp.org>
996
997         Tests for module 'getrusage'.
998         * modules/getrusage-tests: New file.
999         * tests/test-getrusage.c: New file.
1000
1001         New module 'getrusage'.
1002         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1003         warn-on-use.h.
1004         (getrusage): New declaration.
1005         * lib/getrusage.c: New file.
1006         * m4/getrusage.m4: New file.
1007         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1008         is declared.
1009         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1010         HAVE_GETRUSAGE.
1011         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1012         snippet/c++defs, snippet/warn-on-use.
1013         (Makefile.am): Update generation of sys/resource.h. Substitute
1014         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1015         * modules/getrusage: New file.
1016         * doc/posix-functions/getrusage.texi: Mention the new module.
1017
1018 2012-04-12  Bruno Haible  <bruno@clisp.org>
1019
1020         Tests for module 'sys_resource'.
1021         * modules/sys_resource-tests: New file.
1022         * tests/test-sys_resource.c: New file.
1023
1024         New module 'sys_resource'.
1025         * lib/sys_resource.in.h: New file.
1026         * m4/sys_resource_h.m4: New file.
1027         * modules/sys_resource: New file.
1028         * doc/posix-headers/sys_resource.texi: Mention the new module.
1029
1030 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1031
1032         ioctl: Fix compilation error on mingw.
1033         * lib/ioctl.c: Include <windows.h>.
1034         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1035
1036 2012-04-04  Jim Meyering  <meyering@redhat.com>
1037
1038         regex: correct #pragma guard expression
1039         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1040         not 4.3.  Correct its cpp guard expression.
1041
1042 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1043
1044         regex: remove unnecessary type punning
1045         Problem reported by Vladimir Serbinenko in
1046         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1047         * lib/regex.h (struct re_pattern_buffer): Change the type of
1048         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1049         Fix comment to match code.
1050         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1051         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1052         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1053         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1054         (set_regs):
1055         Omit no-longer-necessary casts.
1056
1057 2012-04-03  Bruno Haible  <bruno@clisp.org>
1058
1059         Tests for module 'ilogbl'.
1060         * modules/ilogbl-tests: New file.
1061         * tests/test-ilogbl.c: New file.
1062
1063         New module 'ilogbl'.
1064         * lib/math.in.h (ilogbl): New declaration.
1065         * lib/ilogbl.c: New file.
1066         * m4/ilogbl.m4: New file.
1067         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1069         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1070         Split sed invocation, to avoid the limit of 100 substitutions of
1071         HP-UX 'sed'.
1072         * modules/ilogbl: New file.
1073         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1074         * doc/posix-functions/ilogbl.texi: Mention the new module.
1075
1076 2012-04-03  Bruno Haible  <bruno@clisp.org>
1077
1078         Tests for module 'ilogbf'.
1079         * modules/ilogbf-tests: New file.
1080         * tests/test-ilogbf.c: New file.
1081
1082         New module 'ilogbf'.
1083         * lib/math.in.h (ilogbf): New declaration.
1084         * lib/ilogbf.c: New file.
1085         * m4/ilogbf.m4: New file.
1086         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1088         REPLACE_ILOGBF.
1089         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1090         REPLACE_ILOGBF.
1091         * modules/ilogbf: New file.
1092         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1093         * doc/posix-functions/ilogbf.texi: Mention the new module.
1094
1095 2012-04-03  Bruno Haible  <bruno@clisp.org>
1096
1097         Tests for module 'ilogb'.
1098         * modules/ilogb-tests: New file.
1099         * tests/test-ilogb.c: New file.
1100         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1101         tests/test-logb-ieee.h.
1102
1103         New module 'ilogb'.
1104         * lib/math.in.h (ilogb): New declaration.
1105         * lib/ilogb.c: New file.
1106         * m4/ilogb.m4: New file.
1107         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1109         REPLACE_ILOGB.
1110         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1111         REPLACE_ILOGB.
1112         * modules/ilogb: New file.
1113         * tests/test-math-c++.cc: Check the declaration of ilogb.
1114         * doc/posix-functions/ilogb.texi: Mention the new module.
1115
1116 2012-04-03  Bruno Haible  <bruno@clisp.org>
1117
1118         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1119         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1120         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1121         (main): Check their values.
1122         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1123         problem.
1124
1125 2012-04-03  Bruno Haible  <bruno@clisp.org>
1126
1127         Tests for module 'logbl-ieee'.
1128         * modules/logbl-ieee-tests: New file.
1129         * tests/test-logbl-ieee.c: New file.
1130
1131         New module 'logbl-ieee'.
1132         * modules/logbl-ieee: New file.
1133
1134         Tests for module 'logb-ieee'.
1135         * modules/logb-ieee-tests: New file.
1136         * tests/test-logb-ieee.c: New file.
1137
1138         New module 'logb-ieee'.
1139         * modules/logb-ieee: New file.
1140
1141         Tests for module 'logbf-ieee'.
1142         * modules/logbf-ieee-tests: New file.
1143         * tests/test-logbf-ieee.c: New file.
1144         * tests/test-logb-ieee.h: New file.
1145
1146         New module 'logbf-ieee'.
1147         * modules/logbf-ieee: New file.
1148
1149 2012-04-03  Bruno Haible  <bruno@clisp.org>
1150
1151         Tests for module 'logbl'.
1152         * modules/logbl-tests: New file.
1153         * tests/test-logbl.c: New file.
1154
1155         New module 'logbl'.
1156         * lib/math.in.h (logbl): New declaration.
1157         * lib/logbl.c: New file.
1158         * m4/logbl.m4: New file.
1159         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1161         REPLACE_LOGBL.
1162         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1163         REPLACE_LOGBL.
1164         * modules/logbl: New file.
1165         * tests/test-math-c++.cc: Check the declaration of logbl.
1166         * doc/posix-functions/logbl.texi: Mention the new module.
1167
1168 2012-04-02  Bruno Haible  <bruno@clisp.org>
1169
1170         Tests for module 'logbf'.
1171         * modules/logbf-tests: New file.
1172         * tests/test-logbf.c: New file.
1173
1174         New module 'logbf'.
1175         * lib/math.in.h (logbf): New declaration.
1176         * lib/logbf.c: New file.
1177         * m4/logbf.m4: New file.
1178         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1179         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1180         REPLACE_LOGBF.
1181         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1182         REPLACE_LOGBF.
1183         * modules/logbf: New file.
1184         * tests/test-math-c++.cc: Check the declaration of logbf.
1185         * doc/posix-functions/logbf.texi: Mention the new module.
1186
1187 2012-04-02  Bruno Haible  <bruno@clisp.org>
1188
1189         logb tests: More tests.
1190         * tests/test-logb.h: New file, based on tests/test-logb.c and
1191         tests/test-frexp.h.
1192         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1193         (main): Just invoke test_function.
1194         * modules/logb-tests (Files): Add tests/test-logb.h,
1195         tests/minus-zero.h, tests/randomd.c.
1196         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1197
1198         logb: Provide replacement and workarounds.
1199         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1200         is 1.
1201         * lib/logb.c: New file.
1202         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1203         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1205         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1206         * modules/logb (Files): Add lib/logb.c.
1207         (Depends-on): Add isfinite, frexp, isnand.
1208         (configure.ac): Compile the replacement code logb.c if needed.
1209         * tests/test-math-c++.cc: Check the declaration of logb.
1210         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1211         with subnormal numbers.
1212
1213 2012-04-02  Bruno Haible  <bruno@clisp.org>
1214
1215         log10* tests: Speed up.
1216         * tests/test-log10.h (test_function): Reduce amount of random numbers
1217         to test.
1218
1219 2012-04-01  Bruno Haible  <bruno@clisp.org>
1220
1221         logf-ieee: Fix test whether logf works.
1222         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1223
1224 2012-04-01  Bruno Haible  <bruno@clisp.org>
1225
1226         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1227         * lib/log10l.c: Include <float.h>
1228         (log10l): On IRIX, normalize the +Infinity value.
1229         * modules/log10l (Depends-on): Add 'float'.
1230         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1231         +Infinity.
1232
1233         log10f-ieee: Work around test failure on NetBSD 5.1.
1234         * m4/log10f-ieee.m4: New file.
1235         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1236         test whether log10f works with a negative argument. Replace it if not.
1237         * lib/log10f.c (log10f): For negative arguments, return NaN.
1238         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1239         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1240         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1241
1242         log10f-ieee: Work around test failure on Solaris 9.
1243         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1244         (configure.ac): Require gl_FUNC_LOG10F.
1245
1246         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1247         * m4/log10-ieee.m4: New file.
1248         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1249         whether log10 works with a negative argument. Replace it if not.
1250         * lib/log10.c (log10): For negative arguments, return NaN.
1251         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1252         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1253         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1254
1255         Tests for module 'log10l-ieee'.
1256         * modules/log10l-ieee-tests: New file.
1257         * tests/test-log10l-ieee.c: New file.
1258
1259         New module 'log10l-ieee'.
1260         * modules/log10l-ieee: New file.
1261
1262         Tests for module 'log10-ieee'.
1263         * modules/log10-ieee-tests: New file.
1264         * tests/test-log10-ieee.c: New file.
1265
1266         New module 'log10-ieee'.
1267         * modules/log10-ieee: New file.
1268
1269         Tests for module 'log10f-ieee'.
1270         * modules/log10f-ieee-tests: New file.
1271         * tests/test-log10f-ieee.c: New file.
1272         * tests/test-log10-ieee.h: New file.
1273
1274         New module 'log10f-ieee'.
1275         * modules/log10f-ieee: New file.
1276
1277 2012-04-01  Bruno Haible  <bruno@clisp.org>
1278
1279         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1280         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1281         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1282         workaround.
1283         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1284         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1286         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1287         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1288         (Depends-on): Update conditions.
1289         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1290         IRIX 6.5, OSF/1 5.1 problems.
1291
1292 2012-04-01  Bruno Haible  <bruno@clisp.org>
1293
1294         log10f: Work around OSF/1 5.1 bug.
1295         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1296         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1297         workaround.
1298         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1299         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1301         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1302         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1303         (Depends-on): Update conditions.
1304         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1305
1306 2012-04-01  Bruno Haible  <bruno@clisp.org>
1307
1308         log10: Work around OSF/1 5.1 bug.
1309         * lib/math.in.h (log10): New declaration.
1310         * lib/log10.c: New file.
1311         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1312         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1313         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1315         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1316         * modules/log10 (Files): Add lib/log10.c.
1317         (Depends-on): Add math.
1318         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1319         * tests/test-math-c++.cc: Check the declaration of log10.
1320         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1321
1322 2012-03-31  Bruno Haible  <bruno@clisp.org>
1323
1324         log10l tests: More tests.
1325         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1326         tests/minus-zero.h, tests/randoml.c.
1327         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1328         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1329         (main): Invoke test_function.
1330
1331         log10f tests: More tests.
1332         * modules/log10f-tests (Files): Add tests/test-log10.h,
1333         tests/minus-zero.h, tests/randomf.c.
1334         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1335         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1336         (main): Invoke test_function.
1337
1338         log10 tests: More tests.
1339         * tests/test-log10.h: New file.
1340         * modules/log10-tests (Files): Add tests/test-log10.h,
1341         tests/minus-zero.h, tests/randomd.c.
1342         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1343         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1344         (main): Invoke test_function.
1345
1346 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1347
1348         fflush: Fix syntax error.
1349         * lib/fflush.c: Include unused-parameter.h, needed for
1350         _GL_UNUSED_PARAMETER.
1351         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1352
1353 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1354
1355         regex: pacify GCC when compiling GRUB
1356         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1357         a diagnostic.  Reported by Vladimir Serbinenko in
1358         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1359
1360 2012-03-29  Eric Blake  <eblake@redhat.com>
1361
1362         stdio: don't assume gets any more
1363         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1364         support.
1365         * modules/stdio (Makefile.am): Likewise.
1366         * lib/stdio-read.c (gets): Likewise.
1367         * tests/test-stdio-c++.cc: Likewise.
1368         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1369         * lib/stdio.in.h (gets): Make warning occur in more places.
1370         * doc/posix-functions/gets.texi (gets): Update documentation.
1371         Reported by Christer Solskogen.
1372
1373         maint.mk: fix syntax checks without exclusions
1374         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1375         Reported by Daniel P. Berrange.
1376
1377         strerror_r: avoid compiler warning
1378         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1379         level.
1380
1381         fflush: avoid compiler warning
1382         * lib/fflush.c (update_fpos_cache): Mark variables that are
1383         potentially unused.
1384
1385 2012-03-25  Bruno Haible  <bruno@clisp.org>
1386
1387         Tests for module 'localeconv'.
1388         * modules/localeconv-tests: New file.
1389         * tests/test-localeconv.c: New file.
1390
1391         New module 'localeconv'.
1392         * lib/locale.in.h (localeconv): New declaration.
1393         * lib/localeconv.c: New file.
1394         * m4/localeconv.m4: New file.
1395         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1396         REPLACE_LOCALECONV.
1397         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1398         REPLACE_LOCALECONV.
1399         * modules/localeconv: New file.
1400         * modules/nl_langinfo (Depends-on): Add localeconv.
1401         * modules/human (Depends-on): Likewise.
1402         * doc/posix-functions/localeconv.texi: Mention the new module.
1403
1404 2012-03-25  Bruno Haible  <bruno@clisp.org>
1405
1406         locale: Provide a complete 'struct lconv'.
1407         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1408         'struct lconv' does not contain int_p_cs_precedes.
1409         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1410         * doc/posix-headers/locale.texi: Update.
1411
1412         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1413         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1414         * doc/posix-headers/locale.texi: Update.
1415
1416         locale: Provide a working 'struct lconv'.
1417         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1418         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1419         'struct lconv' does not even contain decimal_point.
1420         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1421         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1422         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1423         * doc/posix-headers/locale.texi: Mention the problems with
1424         'struct lconv'.
1425         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1426
1427 2012-03-24  Bruno Haible  <bruno@clisp.org>
1428
1429         Enable common subexpression optimization in GCC.
1430         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1431         macros.
1432         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1433         GCC attribute 'const'.
1434         (uc_locale_language): Declare with GCC attribute 'pure'.
1435         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1436         with GCC attribute 'const'.
1437         * lib/unictype.in.h (uc_is_general_category_withtable,
1438         uc_combining_class, uc_combining_class_name,
1439         uc_combining_class_long_name, uc_bidi_class_name,
1440         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1441         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1442         uc_decimal_value, uc_digit_value, uc_numeric_value,
1443         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1444         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1445         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1446         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1447         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1448         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1449         Declare with GCC attribute 'const'.
1450         (uc_general_category_name, uc_general_category_long_name,
1451         uc_general_category_byname, uc_general_category,
1452         uc_is_general_category, uc_combining_class_byname,
1453         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1454         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1455         Declare with GCC attribute 'pure'.
1456         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1457         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1458         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1459         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1460         with GCC attribute 'pure'.
1461         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1462         'const'.
1463         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1464         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1465         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1466         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1467         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1468         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1469         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1470         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1471         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1472         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1473         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1474         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1475         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1476         GCC attribute 'pure'.
1477         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1478         'const'.
1479         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1480         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1481         u32_strwidth): Declare with GCC attribute 'pure'.
1482
1483         Enable common subexpression optimization in GCC.
1484         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1485         (alphasort): Declare with GCC attribute 'pure'.
1486         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1487         (atoll): Declare with GCC attribute 'pure'.
1488         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1489         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1490         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1491         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1492         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1493         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1494         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1495
1496 2012-03-24  Bruno Haible  <bruno@clisp.org>
1497
1498         gnulib-tool: Avoid unintended error output from 'cmp'.
1499         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1500         "cmp -s", not "cmp > /dev/null".
1501
1502 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1503
1504         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1505
1506         It's not just Automake versions < 1.9b that creates an empty
1507         pkgdatadir at installation time if pkgdata_DATA is specified
1508         to empty; modern automake versions do this as well, at least
1509         until automake 1.11.4 (not yet released at the moment of writing,
1510         but soon to appear).  That behaviour was generally considered a
1511         feature rather than a bug, at least until this discussion:
1512         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1513
1514         See also automake bugs #10997 and #11030.
1515
1516         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1517         reference to relevant automake bug numbers.
1518         (func_emit_tests_Makefile_am): Likewise.
1519
1520 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1521
1522         announce-gen: use Digest::SHA when possible
1523         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1524         back to Digest::SHA1 if necessary.
1525
1526 2012-03-20  Jim Meyering  <meyering@redhat.com>
1527
1528         tests: avoid gcc warnings about argv vs. const initializers
1529         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1530         warnings about discarding 'const' qualifier from pointer target type.
1531         * tests/test-posix_spawn2.c (main): Likewise.
1532
1533 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1534
1535         README-release: simplify slightly
1536         * top/README-release: Run "git checkout master" only once.
1537
1538 2012-03-15  Mark Wielaard  <mark@klomp.org>
1539
1540         git-merge-changelog: add specific example on how to use with hg.
1541         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1542
1543 2012-03-18  Mark Wielaard  <mark@klomp.org>
1544
1545         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1546
1547 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1548
1549         git-version-gen: don't let "prefix" envvar cause trouble
1550         * build-aux/git-version-gen (prefix): Initialize properly,
1551         so as not to use a value specified via the environment.
1552         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1553
1554 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1555
1556         regex: diagnose too-large repeat counts in EREs
1557         Previously, the code did not diagnose the too-large repeat count
1558         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1559         as if it were 'b\{1000000000}', which is unexpected.
1560         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1561         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1562         is a reasonable one for this problem.  Another option would be to
1563         create a new REG_OVERFLOW error for repeat counts that are too large.
1564         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1565         count is too large, so that the caller can distinguish the two cases.
1566         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1567         "Too large" return code, and that repeat counts are one example of this.
1568
1569 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1570
1571         doc: some glibc x32 integer width issues
1572         * doc/posix-headers/sys_types.texi (sys/types.h):
1573         * doc/posix-headers/time.texi (time.h):
1574         Mention that glibc x32 does not conform to POSIX in a couple of
1575         areas related to integer widths.
1576
1577 2012-03-15  Bruno Haible  <bruno@clisp.org>
1578
1579         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1580         * lib/fma.c (VOLATILE): New macro.
1581         (FUNC): Use it to work around a GCC compiler bug.
1582
1583 2012-03-13  Bruno Haible  <bruno@clisp.org>
1584
1585         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1586         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1587         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1588         REPLACE_HYPOTL to 1.
1589         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1590
1591 2012-03-13  Bruno Haible  <bruno@clisp.org>
1592
1593         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1594         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1595         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1596         REPLACE_REMAINDERL to 1.
1597         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1598         bug.
1599
1600 2012-03-13  Bruno Haible  <bruno@clisp.org>
1601
1602         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1603         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1604         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1605         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1606         too big rounding errors.
1607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1608         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1609         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1610         (Depends-on): Update conditions.
1611         * tests/test-sqrtl.c (my_ldexpl): New function.
1612         (main): Add test of a particular value.
1613         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1614
1615 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1616
1617         doc: Update timer_* platform portability notes.
1618         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1619         that always return ENOSYS.
1620         * doc/posix-functions/timer_delete.texi: Likewise.
1621         * doc/posix-functions/timer_gettime.texi: Likewise.
1622         * doc/posix-functions/timer_settime.texi: Likewise.
1623
1624 2012-03-13  Bruno Haible  <bruno@clisp.org>
1625
1626         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1627         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1628         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1629         REPLACE_CBRTL to 1.
1630         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1631
1632 2012-03-13  Bruno Haible  <bruno@clisp.org>
1633
1634         remainderl: Avoid compilation error on AIX >= 5.2.
1635         * lib/math.in.h (remainderl): Undefine macro from the system header.
1636
1637 2012-03-13  Bruno Haible  <bruno@clisp.org>
1638
1639         Avoid compilation errors with MSVC option -fp:strict.
1640         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1641         * lib/cbrtf.c: Likewise.
1642         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1643
1644 2012-03-12  Bruno Haible  <bruno@clisp.org>
1645
1646         uninorm: Don't crash in out-of-memory conditions.
1647         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1648         gracefully.
1649         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1650         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1651
1652 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1653
1654         quote: fix syntax-check
1655         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1656         also exports quote_quoting_options.
1657
1658 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1659
1660         Collapse list of copyright years to ranges.  See
1661         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1662         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1663         build-aux/csharpexec.sh.in, build-aux/gnupload,
1664         build-aux/install-reloc, build-aux/javacomp.sh.in,
1665         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1666         build-aux/move-if-change, build-aux/reloc-ldflags,
1667         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1668
1669 2012-03-11  Bruno Haible  <bruno@clisp.org>
1670
1671         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1672         * m4/log2f-ieee.m4: New file.
1673         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1674         whether log2f works with a minus zero argument. Replace it if not.
1675         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1676         (Depends-on): Add log2-ieee.
1677         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1678         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1679
1680         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1681         * m4/log2-ieee.m4: New file.
1682         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1683         whether log2 works with a minus zero argument. Replace it if not.
1684         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1685         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1686         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1687
1688         Tests for module 'log2l-ieee'.
1689         * modules/log2l-ieee-tests: New file.
1690         * tests/test-log2l-ieee.c: New file.
1691
1692         New module 'log2l-ieee'.
1693         * modules/log2l-ieee: New file.
1694
1695         Tests for module 'log2-ieee'.
1696         * modules/log2-ieee-tests: New file.
1697         * tests/test-log2-ieee.c: New file.
1698
1699         New module 'log2-ieee'.
1700         * modules/log2-ieee: New file.
1701
1702         Tests for module 'log2f-ieee'.
1703         * modules/log2f-ieee-tests: New file.
1704         * tests/test-log2f-ieee.c: New file.
1705         * tests/test-log2-ieee.h: New file.
1706
1707         New module 'log2f-ieee'.
1708         * modules/log2f-ieee: New file.
1709
1710 2012-03-11  Bruno Haible  <bruno@clisp.org>
1711
1712         Tests for module 'log2l'.
1713         * modules/log2l-tests: New file.
1714         * tests/test-log2l.c: New file.
1715
1716         New module 'log2l'.
1717         * lib/math.in.h (log2l): New declaration.
1718         * lib/log2l.c: New file.
1719         * m4/log2l.m4: New file.
1720         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1721         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1722         REPLACE_LOG2L.
1723         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1724         REPLACE_LOG2L.
1725         * modules/log2l: New file.
1726         * tests/test-math-c++.cc: Check the declaration of log2l.
1727         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1728         and OSF/1 problems.
1729
1730 2012-03-11  Bruno Haible  <bruno@clisp.org>
1731
1732         Tests for module 'log2f'.
1733         * modules/log2f-tests: New file.
1734         * tests/test-log2f.c: New file.
1735
1736         New module 'log2f'.
1737         * lib/math.in.h (log2f): New declaration.
1738         * lib/log2f.c: New file.
1739         * m4/log2f.m4: New file.
1740         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1742         REPLACE_LOG2F.
1743         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1744         REPLACE_LOG2F.
1745         * modules/log2f: New file.
1746         * tests/test-math-c++.cc: Check the declaration of log2f.
1747         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1748         and OSF/1 and Cygwin problems.
1749
1750 2012-03-11  Bruno Haible  <bruno@clisp.org>
1751
1752         Tests for module 'log2'.
1753         * modules/log2-tests: New file.
1754         * tests/test-log2.c: New file.
1755         * tests/test-log2.h: New file.
1756
1757         New module 'log2'.
1758         * lib/math.in.h (log2): New declaration.
1759         * lib/log2.c: New file.
1760         * m4/log2.m4: New file.
1761         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1763         REPLACE_LOG2.
1764         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1765         REPLACE_LOG2.
1766         * modules/log2: New file.
1767         * tests/test-math-c++.cc: Check the declaration of log2.
1768         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1769         and OSF/1 and Cygwin problems.
1770
1771 2012-03-11  Bruno Haible  <bruno@clisp.org>
1772
1773         exp2* tests: More tests.
1774         * tests/test-exp2.h (test_function): Test all integral arguments that
1775         don't need to overflow or denormalized numbers.
1776         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1777         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1778         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1779
1780 2012-03-10  Bruno Haible  <bruno@clisp.org>
1781
1782         log1pl-ieee: Work around test failure on AIX 7.1.
1783         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1784
1785         log1pl-ieee: Work around test failure on IRIX 6.5.
1786         * m4/log1pl-ieee.m4: New file.
1787         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1788         test whether log1pl works with a minus zero argument. Replace it if
1789         not.
1790         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1792         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1793         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1794         (Depends-on): Update conditions.
1795         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1796         m4/signbit.m4.
1797         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1798         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1799
1800         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1801         * m4/log1pf-ieee.m4: New file.
1802         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1803         test whether log1pf works with a minus zero argument. Replace it if
1804         not.
1805         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1806         m4/signbit.m4.
1807         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1808         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1809
1810         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1811         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1812         (configure.ac): Require gl_FUNC_LOG1PF.
1813
1814         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1815         * m4/log1p-ieee.m4: New file.
1816         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1817         whether log1p works with a minus zero argument. Replace it if not.
1818         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1820         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1821         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1822         (Depends-on): Update conditions.
1823         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1824         m4/signbit.m4.
1825         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1826         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1827
1828         Tests for module 'log1pl-ieee'.
1829         * modules/log1pl-ieee-tests: New file.
1830         * tests/test-log1pl-ieee.c: New file.
1831
1832         New module 'log1pl-ieee'.
1833         * modules/log1pl-ieee: New file.
1834
1835         Tests for module 'log1p-ieee'.
1836         * modules/log1p-ieee-tests: New file.
1837         * tests/test-log1p-ieee.c: New file.
1838
1839         New module 'log1p-ieee'.
1840         * modules/log1p-ieee: New file.
1841
1842         Tests for module 'log1pf-ieee'.
1843         * modules/log1pf-ieee-tests: New file.
1844         * tests/test-log1pf-ieee.c: New file.
1845         * tests/test-log1p-ieee.h: New file.
1846
1847         New module 'log1pf-ieee'.
1848         * modules/log1pf-ieee: New file.
1849
1850 2012-03-10  Bruno Haible  <bruno@clisp.org>
1851
1852         Tests for module 'log1pl'.
1853         * modules/log1pl-tests: New file.
1854         * tests/test-log1pl.c: New file.
1855
1856         New module 'log1pl'.
1857         * lib/math.in.h (log1pl): New declaration.
1858         * lib/log1pl.c: New file.
1859         * m4/log1pl.m4: New file.
1860         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1862         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1863         * modules/log1pl: New file.
1864         * tests/test-math-c++.cc: Check the declaration of log1pl.
1865         * doc/posix-functions/log1pl.texi: Mention the new module.
1866
1867 2012-03-10  Bruno Haible  <bruno@clisp.org>
1868
1869         Tests for module 'log1pf'.
1870         * modules/log1pf-tests: New file.
1871         * tests/test-log1pf.c: New file.
1872
1873         New module 'log1pf'.
1874         * lib/math.in.h (log1pf): New declaration.
1875         * lib/log1pf.c: New file.
1876         * m4/log1pf.m4: New file.
1877         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1879         REPLACE_LOG1PF.
1880         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1881         REPLACE_LOG1PF.
1882         * modules/log1pf: New file.
1883         * tests/test-math-c++.cc: Check the declaration of log1pf.
1884         * doc/posix-functions/log1pf.texi: Mention the new module.
1885
1886 2012-03-10  Bruno Haible  <bruno@clisp.org>
1887
1888         log1p tests: More tests.
1889         * tests/test-log1p.h: New file.
1890         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1891         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1892         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1893         (main): Invoke test_function.
1894
1895         log1p: Provide replacement for Minix and MSVC.
1896         * lib/math.in.h (log1p): New declaration.
1897         * lib/log1p.c: New file.
1898         * m4/log1p.m4: New file.
1899         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1901         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1902         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1903         (Depends-on): Add math, isnand, log, round.
1904         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1905         HAVE_LOG1P is 0.
1906         * tests/test-math-c++.cc: Check the declaration of log1p.
1907         * doc/posix-functions/log1p.texi: Mention the replacement.
1908
1909 2012-03-10  Bruno Haible  <bruno@clisp.org>
1910
1911         math tests: Small simplification.
1912         * tests/test-exp.h (test_function): Use the same err_bound for
1913         'double' on platforms with sizeof (long double) == sizeof (double)
1914         than on platforms with sizeof (long double) > sizeof (double).
1915         * tests/test-exp2.h (test_function): Likewise.
1916         * tests/test-expm1.h (test_function): Likewise.
1917         * tests/test-log.h (test_function): Likewise.
1918
1919 2012-03-10  Bruno Haible  <bruno@clisp.org>
1920
1921         Fix some comments.
1922         * lib/expl.c: Fix an ambiguous comment.
1923         * lib/expm1.c: Likewise.
1924         * lib/expm1l.c: Likewise.
1925         * lib/exp2.c: Likewise.
1926         * lib/exp2l.c: Likewise.
1927
1928 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1929
1930         regex: allow inclusion of <regex.h> before <limits.h>
1931         Without this patch, portable programs had to include <limits.h> before
1932         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1933         I ran into this problem with a test version of GNU grep on Solaris 8.
1934         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1935         This is done conditionally so that this change can be merged
1936         back to glibc.
1937         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1938         using the included regex.
1939
1940         fts: depend on fdopendir
1941         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1942         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1943         problem was introduced when fdopendir was split out.
1944
1945 2012-03-10  Bruno Haible  <bruno@clisp.org>
1946
1947         Remove unused variables.
1948         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1949         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1950
1951 2012-03-10  Bruno Haible  <bruno@clisp.org>
1952
1953         isnanf-nolibm: Fix last commit.
1954         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1955
1956         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1957         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1958
1959 2012-03-10  Bruno Haible  <bruno@clisp.org>
1960
1961         logf-ieee: Work around test failure on NetBSD 5.1.
1962         * m4/logf-ieee.m4: New file.
1963         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1964         whether logf works with a negative argument. Replace it if not.
1965         * lib/logf.c (logf): For negative arguments, return NaN.
1966         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1967         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1968         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1969
1970         logf-ieee: Work around test failure on Solaris 9.
1971         * modules/logf-ieee (Depends-on): Add log-ieee.
1972         (configure.ac): Require gl_FUNC_LOGF.
1973
1974         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1975         * m4/log-ieee.m4: New file.
1976         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1977         log works with a negative argument. Replace it if not.
1978         * lib/log.c (log): For negative arguments, return NaN.
1979         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1980         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1981         * doc/posix-functions/log.texi: Mention the log-ieee module.
1982
1983         Tests for module 'logl-ieee'.
1984         * modules/logl-ieee-tests: New file.
1985         * tests/test-logl-ieee.c: New file.
1986
1987         New module 'logl-ieee'.
1988         * modules/logl-ieee: New file.
1989
1990         Tests for module 'log-ieee'.
1991         * modules/log-ieee-tests: New file.
1992         * tests/test-log-ieee.c: New file.
1993
1994         New module 'log-ieee'.
1995         * modules/log-ieee: New file.
1996
1997         Tests for module 'logf-ieee'.
1998         * modules/logf-ieee-tests: New file.
1999         * tests/test-logf-ieee.c: New file.
2000         * tests/test-log-ieee.h: New file.
2001
2002         New module 'logf-ieee'.
2003         * modules/logf-ieee: New file.
2004
2005 2012-03-10  Bruno Haible  <bruno@clisp.org>
2006
2007         log: Fix bug introduced on 2012-03-09.
2008         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2009
2010 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2011
2012         timer-time: link explicitly with pthreads on glibc
2013         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2014         to support static linking, when newer glibc is
2015         detected, as that contains pthread emulation of
2016         POSIX timer functions where required.
2017         * modules/timer-time: Depend on threadlib to
2018         pull in the appropriate library to link.
2019
2020 2012-03-10  Bruno Haible  <bruno@clisp.org>
2021
2022         log* tests: More tests.
2023         * tests/test-log.h: New file.
2024         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2025         (main): Invoke test_function.
2026         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2027         (main): Invoke test_function.
2028         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2029         (main): Invoke test_function.
2030         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2031         tests/randomd.c.
2032         (Makefile.am): Add randomd.c to test_log_SOURCES.
2033         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2034         tests/randomf.c.
2035         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2036         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2037         tests/randoml.c.
2038         (Depends-on): Add 'float'.
2039         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2040
2041 2012-03-09  Bruno Haible  <bruno@clisp.org>
2042
2043         logl: Work around OSF/1 5.1 bug.
2044         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2045         * lib/logl.c (logl): If logl exists, use it and provide just the
2046         workaround.
2047         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2048         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2050         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2051         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2052         (Depends-on): Update conditions.
2053         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2054
2055 2012-03-09  Bruno Haible  <bruno@clisp.org>
2056
2057         logf: Work around OSF/1 5.1 bug.
2058         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2059         * lib/logf.c (logf): If logf exists, use it and provide just the
2060         workaround.
2061         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2062         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2064         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2065         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2066         (Depends-on): Update conditions.
2067         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2068
2069 2012-03-09  Bruno Haible  <bruno@clisp.org>
2070
2071         log: Work around OSF/1 5.1 bug.
2072         * lib/math.in.h (log): New declaration.
2073         * lib/log.c: New file.
2074         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2075         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2076         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2078         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2079         * modules/log (Files): Add lib/log.c.
2080         (Depends-on): Add math.
2081         (configure.ac): If REPLACE_LOG is 1, compile an override.
2082         * tests/test-math-c++.cc: Check the declaration of log.
2083         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2084
2085 2012-03-09  Jim Meyering  <meyering@redhat.com>
2086
2087         readtokens.c: adjust wording in a comment
2088         * lib/readtokens.c: Insert omitted "that" in a comment.
2089
2090 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2091
2092         modechange: add notations +40, 00440, etc.
2093         * lib/modechange.c (mode_compile): Support new notations
2094         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2095
2096 2012-03-08  Bruno Haible  <bruno@clisp.org>
2097
2098         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2099         * m4/exp2l-ieee.m4: New file.
2100         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2101         test whether exp2l works with a NaN argument and with a negative
2102         infinity argument. Replace it if not.
2103         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2105         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2106         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2107         (Depends-on): Update conditions.
2108         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2109         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2110         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2111
2112         Tests for module 'exp2l-ieee'.
2113         * modules/exp2l-ieee-tests: New file.
2114         * tests/test-exp2l-ieee.c: New file.
2115
2116         New module 'exp2l-ieee'.
2117         * modules/exp2l-ieee: New file.
2118
2119         Tests for module 'exp2-ieee'.
2120         * modules/exp2-ieee-tests: New file.
2121         * tests/test-exp2-ieee.c: New file.
2122
2123         New module 'exp2-ieee'.
2124         * modules/exp2-ieee: New file.
2125
2126         Tests for module 'exp2f-ieee'.
2127         * modules/exp2f-ieee-tests: New file.
2128         * tests/test-exp2f-ieee.c: New file.
2129         * tests/test-exp2-ieee.h: New file.
2130
2131         New module 'exp2f-ieee'.
2132         * modules/exp2f-ieee: New file.
2133
2134 2012-03-08  Bruno Haible  <bruno@clisp.org>
2135
2136         Tests for module 'exp2l'.
2137         * modules/exp2l-tests: New file.
2138         * tests/test-exp2l.c: New file.
2139
2140         New module 'exp2l'.
2141         * lib/math.in.h (exp2l): New declaration.
2142         * lib/exp2l.c: New file.
2143         * lib/expl-table.c: New file, extracted from lib/expl.c.
2144         * lib/expl.c (gl_expl_table): New declaration.
2145         (expl): Remove expl_table. Update reference.
2146         * m4/exp2l.m4: New file.
2147         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2148         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2149         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2150         * modules/exp2l: New file.
2151         * modules/expl (Files): Add lib/expl-table.c.
2152         (configure.ac): Compile also expl-table.c.
2153         * tests/test-math-c++.cc: Check the declaration of exp2l.
2154         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2155         problem.
2156
2157 2012-03-08  Bruno Haible  <bruno@clisp.org>
2158
2159         Tests for module 'exp2f'.
2160         * modules/exp2f-tests: New file.
2161         * tests/test-exp2f.c: New file.
2162
2163         New module 'exp2f'.
2164         * lib/math.in.h (exp2f): New declaration.
2165         * lib/exp2f.c: New file.
2166         * m4/exp2f.m4: New file.
2167         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2169         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2170         * modules/exp2f: New file.
2171         * tests/test-math-c++.cc: Check the declaration of exp2f.
2172         * doc/posix-functions/exp2f.texi: Mention the new module and the
2173         IRIX problem.
2174
2175 2012-03-08  Bruno Haible  <bruno@clisp.org>
2176
2177         Tests for module 'exp2'.
2178         * modules/exp2-tests: New file.
2179         * tests/test-exp2.c: New file.
2180         * tests/test-exp2.h: New file.
2181
2182         New module 'exp2'.
2183         * lib/math.in.h (exp2): New declaration.
2184         * lib/exp2.c: New file.
2185         * m4/exp2.m4: New file.
2186         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2188         REPLACE_EXP2.
2189         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2190         REPLACE_EXP2.
2191         * modules/exp2: New file.
2192         * tests/test-math-c++.cc: Check the declaration of exp2.
2193         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2194         and OpenBSD problems.
2195
2196 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2197
2198         savedir: fix comment typo
2199         * lib/savedir.c (savedirstream): Fix typo in comment.
2200
2201 2012-03-08  Bruno Haible  <bruno@clisp.org>
2202
2203         test-readtokens.c: use const; remove unwarranted cast
2204         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2205
2206 2012-03-08  Bruno Haible  <bruno@clisp.org>
2207
2208         fmal: Avoid compilation error on AIX.
2209         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2210         AIX 5.2..7.1.
2211
2212 2012-03-08  Bruno Haible  <bruno@clisp.org>
2213
2214         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2215         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2216         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2217         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2218         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2219         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2220         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2221
2222 2012-03-08  Bruno Haible  <bruno@clisp.org>
2223
2224         remainderf: Override buggy system function on IRIX 6.5.
2225         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2226         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2227         when it exists.
2228         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2229
2230 2012-03-08  Jim Meyering  <meyering@redhat.com>
2231
2232         test-readtokens.c: avoid const-related compilation warnings
2233         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2234
2235 2012-03-07  Jim Meyering  <meyering@redhat.com>
2236             Bruno Haible  <bruno@clisp.org>
2237
2238         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2239         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2240         tests/randomd.c.
2241         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2242         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2243         tests/randoml.c.
2244         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2245
2246 2012-03-07  Bruno Haible  <bruno@clisp.org>
2247
2248         expm1l: Avoid compilation error on AIX.
2249         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2250         AIX 5.2..7.1.
2251
2252 2012-03-07  Bruno Haible  <bruno@clisp.org>
2253
2254         expm1l: Don't override undeclared system function on IRIX 6.5.
2255         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2256         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2257         it exists. Set HAVE_DECL_EXPM1L.
2258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2259         HAVE_EXPM1L.
2260         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2261         HAVE_EXPM1L.
2262         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2263
2264 2012-03-07  Bruno Haible  <bruno@clisp.org>
2265
2266         remainderl: Don't override undeclared system function on IRIX 6.5.
2267         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2268         HAVE_REMAINDERL.
2269         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2270         declared when it exists. Set HAVE_DECL_REMAINDERL.
2271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2272         not HAVE_REMAINDERL.
2273         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2274         HAVE_REMAINDERL.
2275         * doc/posix-functions/remainderl.texi: Mention missing declaration
2276         problem.
2277
2278 2012-03-07  Bruno Haible  <bruno@clisp.org>
2279
2280         rintf: Don't override undeclared system function on IRIX 6.5.
2281         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2282         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2283         exists. Set HAVE_DECL_RINTF.
2284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2285         HAVE_RINTF.
2286         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2287         HAVE_RINTF.
2288         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2289
2290 2012-03-07  Bruno Haible  <bruno@clisp.org>
2291
2292         roundl: Avoid compilation error on AIX.
2293         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2294         AIX 5.2..7.1.
2295
2296 2012-03-07  Bruno Haible  <bruno@clisp.org>
2297
2298         roundl: Don't override undeclared system function on IRIX 6.5.
2299         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2300         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2301         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2302         * modules/roundl (configure.ac): For replacement code, test
2303         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2304         (Depends-on): Update conditions.
2305         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2306
2307 2012-03-07  Bruno Haible  <bruno@clisp.org>
2308
2309         roundf: Don't override undeclared system function on IRIX 6.5.
2310         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2311         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2312         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2313         * modules/roundf (configure.ac): For replacement code, test
2314         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2315         (Depends-on): Update conditions.
2316         * modules/roundf-ieee (Depends-on): Update conditions.
2317         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2318
2319 2012-03-07  Bruno Haible  <bruno@clisp.org>
2320
2321         round: Don't override undeclared system function on IRIX 6.5.
2322         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2323         argument.
2324         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2325         also when it is not declared. Set HAVE_ROUND. For replacement code,
2326         test HAVE_ROUND, not HAVE_DECL_ROUND.
2327         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2328         not HAVE_DECL_ROUND.
2329         (Depends-on): Update conditions.
2330         * modules/round-ieee (Depends-on): Update conditions.
2331         * doc/posix-functions/round.texi: Mention the IRIX problem.
2332
2333 2012-03-07  Bruno Haible  <bruno@clisp.org>
2334
2335         copysignf: Don't override undeclared system function on IRIX 6.5.
2336         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2337         HAVE_COPYSIGNF.
2338         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2339         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2341         not HAVE_COPYSIGNF.
2342         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2343         HAVE_COPYSIGNF.
2344         * doc/posix-functions/copysignf.texi: Mention missing declaration
2345         problem.
2346
2347 2012-03-07  Jim Meyering  <meyering@redhat.com>
2348
2349         readtokens: add tests
2350         * modules/readtokens-tests: New file.
2351         * tests/test-readtokens.c: New file.
2352
2353 2012-03-07  Jim Meyering  <meyering@redhat.com>
2354
2355         quotearg: the module must now include quote.h
2356         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2357         So must the module.
2358         * modules/quotearg (Files): Add quote.h.
2359
2360 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2361
2362         readtokens: avoid core dumps with unusual calling patterns
2363         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2364         * lib/readtokens.c: Include limits.h.
2365         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2366         (readtoken): Don't cache the delimiters; the cache code was buggy
2367         if !delim && saved_delim, or if the new n_delim differs from the old.
2368         Also, it wasn't thread-safe.
2369
2370 2012-03-07  Bruno Haible  <bruno@clisp.org>
2371
2372         quote: Adhere to common module description layout.
2373         * modules/quote (Makefile.am): Add back empty section.
2374
2375 2012-03-06  Akim Demaille  <demaille@gostai.com>
2376
2377         quote: fuse into quotearg
2378         This patch is made for the benefit of Bison.
2379         quote does not leave the choice of the quoting style to the user.
2380         quoting_style provides poor customizability, yet quoting_options,
2381         which is very rich, is hidden inside quotearg.c.  So in order to
2382         allow quote customization, move its implementation to quotearg.c.
2383         * lib/quote.c: Remove.
2384         * modules/quote: Adjust.
2385         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2386         warning: provide all the members of literal structs.
2387         (quote_quoting_options): New.
2388         (quote, quote_n): Import implementation from quote.c.
2389         * lib/quote.h: Import the comments from quote.c.
2390         (quote_quoting_options): New.
2391
2392 2012-03-06  Bruno Haible  <bruno@clisp.org>
2393
2394         Tests for module 'expm1l-ieee'.
2395         * modules/expm1l-ieee-tests: New file.
2396         * tests/test-expm1l-ieee.c: New file.
2397
2398         New module 'expm1l-ieee'.
2399         * modules/expm1l-ieee: New file.
2400
2401         Tests for module 'expm1f-ieee'.
2402         * modules/expm1f-ieee-tests: New file.
2403         * tests/test-expm1f-ieee.c: New file.
2404
2405         New module 'expm1f-ieee'.
2406         * modules/expm1f-ieee: New file.
2407
2408         Tests for module 'expm1-ieee'.
2409         * modules/expm1-ieee-tests: New file.
2410         * tests/test-expm1-ieee.c: New file.
2411         * tests/test-expm1-ieee.h: New file.
2412
2413         New module 'expm1-ieee'.
2414         * modules/expm1-ieee: New file.
2415         * m4/expm1-ieee.m4: New file.
2416         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2417         whether expm1 works with a minus zero argument. Replace it if not.
2418         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2420         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2421         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2422         (Depends-on): Update conditions.
2423         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2424         AIX problem.
2425
2426 2012-03-06  Bruno Haible  <bruno@clisp.org>
2427
2428         Work around expm1f bug on IRIX 6.5.
2429         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2430         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2431         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2432         not work.
2433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2434         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2435         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2436         (Depends-on): Update conditions.
2437         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2438
2439 2012-03-06  Bruno Haible  <bruno@clisp.org>
2440
2441         Tests for module 'expm1l'.
2442         * modules/expm1l-tests: New file.
2443         * tests/test-expm1l.c: New file.
2444
2445         New module 'expm1l'.
2446         * lib/math.in.h (expm1l): New declaration.
2447         * lib/expm1l.c: New file.
2448         * m4/expm1l.m4: New file.
2449         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2451         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2452         * modules/expm1l: New file.
2453         * tests/test-math-c++.cc: Check the declaration of expm1l.
2454         * doc/posix-functions/expm1l.texi: Mention the new module.
2455
2456 2012-03-06  Bruno Haible  <bruno@clisp.org>
2457
2458         Tests for module 'expm1f'.
2459         * modules/expm1f-tests: New file.
2460         * tests/test-expm1f.c: New file.
2461
2462         New module 'expm1f'.
2463         * lib/math.in.h (expm1f): New declaration.
2464         * lib/expm1f.c: New file.
2465         * m4/expm1f.m4: New file.
2466         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2468         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2469         * modules/expm1f: New file.
2470         * tests/test-math-c++.cc: Check the declaration of expm1f.
2471         * doc/posix-functions/expm1f.texi: Mention the new module.
2472
2473 2012-03-06  Bruno Haible  <bruno@clisp.org>
2474
2475         Tests for module 'expm1'.
2476         * modules/expm1-tests: New file.
2477         * tests/test-expm1.c: New file.
2478         * tests/test-expm1.h: New file.
2479
2480         New module 'expm1'.
2481         * lib/math.in.h (expm1): New declaration.
2482         * lib/expm1.c: New file.
2483         * m4/expm1.m4: New file.
2484         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2486         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2487         * modules/expm1: New file.
2488         * tests/test-math-c++.cc: Check the declaration of expm1.
2489         * doc/posix-functions/expm1.texi: Mention the new module.
2490
2491 2012-03-06  Bruno Haible  <bruno@clisp.org>
2492
2493         math: Ensure declarations of math functions.
2494         * modules/acosf (Depends-on): Add 'extensions'.
2495         * modules/asinf (Depends-on): Likewise.
2496         * modules/atan2f (Depends-on): Likewise.
2497         * modules/atanf (Depends-on): Likewise.
2498         * modules/cbrt (Depends-on): Likewise.
2499         * modules/cbrtf (Depends-on): Likewise.
2500         * modules/cbrtl (Depends-on): Likewise.
2501         * modules/copysignf (Depends-on): Likewise.
2502         * modules/copysignl (Depends-on): Likewise.
2503         * modules/cosf (Depends-on): Likewise.
2504         * modules/coshf (Depends-on): Likewise.
2505         * modules/expf (Depends-on): Likewise.
2506         * modules/fabsf (Depends-on): Likewise.
2507         * modules/fabsl (Depends-on): Likewise.
2508         * modules/fmaf (Depends-on): Likewise.
2509         * modules/fmal (Depends-on): Likewise.
2510         * modules/fmodf (Depends-on): Likewise.
2511         * modules/fmodl (Depends-on): Likewise.
2512         * modules/frexpf (Depends-on): Likewise.
2513         * modules/frexpl (Depends-on): Likewise.
2514         * modules/hypot (Depends-on): Likewise.
2515         * modules/hypotf (Depends-on): Likewise.
2516         * modules/hypotl (Depends-on): Likewise.
2517         * modules/ldexpf (Depends-on): Likewise.
2518         * modules/ldexpl (Depends-on): Likewise.
2519         * modules/log10f (Depends-on): Likewise.
2520         * modules/log10l (Depends-on): Likewise.
2521         * modules/log1p (Depends-on): Likewise.
2522         * modules/logb (Depends-on): Likewise.
2523         * modules/logf (Depends-on): Likewise.
2524         * modules/modff (Depends-on): Likewise.
2525         * modules/modfl (Depends-on): Likewise.
2526         * modules/powf (Depends-on): Likewise.
2527         * modules/remainderf (Depends-on): Likewise.
2528         * modules/remainderl (Depends-on): Likewise.
2529         * modules/rintf (Depends-on): Likewise.
2530         * modules/rintl (Depends-on): Likewise.
2531         * modules/sinf (Depends-on): Likewise.
2532         * modules/sinhf (Depends-on): Likewise.
2533         * modules/sqrtf (Depends-on): Likewise.
2534         * modules/tanf (Depends-on): Likewise.
2535         * modules/tanhf (Depends-on): Likewise.
2536         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2537         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2538         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2539         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2540         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2541         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2542         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2543         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2544         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2545         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2546         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2547         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2548         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2549         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2550         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2551         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2552         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2553         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2554         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2555         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2556         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2557         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2558         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2559         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2560         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2561         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2562         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2563         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2564         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2565         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2566         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2567         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2568         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2569         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2570         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2571         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2572         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2573         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2574         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2575         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2576         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2577
2578 2012-03-06  Bruno Haible  <bruno@clisp.org>
2579
2580         math: Update module names in warnings.
2581         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2582         tanl): Use specific module name in warn-on-use warning.
2583
2584 2012-03-06  Bruno Haible  <bruno@clisp.org>
2585
2586         expl: Simplify computation.
2587         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2588
2589 2012-03-05  Bruno Haible  <bruno@clisp.org>
2590
2591         exp* tests: More tests.
2592         * tests/test-exp.h: New file.
2593         * tests/test-exp.c: Include <float.h> and test-exp.h.
2594         (main): Invoke test_function.
2595         * tests/test-expf.c: Include <float.h> and test-exp.h.
2596         (main): Invoke test_function.
2597         * tests/test-expl.c: Include <float.h> and test-exp.h.
2598         (main): Invoke test_function.
2599         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2600         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2601         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2602         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2603         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2604         (Depends-on): Add 'float'.
2605         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2606
2607         expl: Fix precision of computed result.
2608         * lib/expl.c: Completely rewritten.
2609         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2610         (Maintainer): Add me.
2611         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2612
2613 2012-03-05  Bruno Haible  <bruno@clisp.org>
2614
2615         cbrt* tests: More tests.
2616         * tests/test-cbrt.h: New file.
2617         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2618         (main): Invoke test_function.
2619         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2620         (main): Invoke test_function.
2621         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2622         (main): Invoke test_function.
2623         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2624         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2625         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2626         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2627         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2628         (Depends-on): Add 'float'.
2629         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2630
2631 2012-03-05  Bruno Haible  <bruno@clisp.org>
2632
2633         hypot* tests: More tests.
2634         * tests/test-hypot.h: New file, partially extracted from
2635         tests/test-hypotl.c.
2636         * tests/test-hypot.c: Include test-hypot.h.
2637         (main): Invoke test_function.
2638         * tests/test-hypotf.c: Include test-hypot.h.
2639         (main): Invoke test_function.
2640         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2641         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2642         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2643         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2644         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2645         tests/randomf.c.
2646         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2647         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2648         tests/randoml.c.
2649         (Depends-on): Add 'fpucw', 'float'.
2650         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2651
2652 2012-03-05  Bruno Haible  <bruno@clisp.org>
2653
2654         fpucw: Doc about FreeBSD.
2655         * lib/fpucw.h: Mention FreeBSD in comments.
2656
2657 2012-03-04  Bruno Haible  <bruno@clisp.org>
2658
2659         sqrt* tests: More tests.
2660         * tests/test-sqrt.h: New file.
2661         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2662         (main): Invoke test_function.
2663         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2664         (main): Invoke test_function.
2665         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2666         (main): Invoke test_function.
2667         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2668         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2669         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2670         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2671         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2672         (Depends-on): Add 'float'.
2673         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2674
2675 2012-03-04  Bruno Haible  <bruno@clisp.org>
2676
2677         remainder* tests: More tests.
2678         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2679         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2680         (main): Invoke test_function.
2681         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2682         (main): Invoke test_function.
2683         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2684         (main): Invoke test_function.
2685         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2686         tests/randomd.c.
2687         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2688         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2689         tests/randomf.c.
2690         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2691         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2692         tests/randoml.c.
2693         (Depends-on): Add 'float'.
2694         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2695
2696 2012-03-04  Bruno Haible  <bruno@clisp.org>
2697
2698         remainder, remainderf, remainderl: Fix computation for large quotients.
2699         * lib/remainder.c: Completely rewritten.
2700         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2701         USE_FLOAT.
2702         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2703         USE_LONG_DOUBLE.
2704         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2705         isnand, isinf. Remove round, fma.
2706         * modules/remainderf (Files): Add lib/remainder.c.
2707         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2708         Remove roundf, fmaf.
2709         * modules/remainderl (Files): Add lib/remainder.c.
2710         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2711         isinf. Remove roundl, fmal.
2712         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2713         REMAINDER_LIBM.
2714         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2715         REMAINDERF_LIBM.
2716         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2717         REMAINDERL_LIBM.
2718
2719 2012-03-04  Bruno Haible  <bruno@clisp.org>
2720
2721         fmod* tests: More tests.
2722         * tests/test-fmod.h (my_ldexp): New function.
2723         (test_function): Reduce amount of random numbers to test. Add tests
2724         of very large quotients x / y.
2725         * tests/test-fmod.c (MAX_EXP): New macro.
2726         * tests/test-fmodf.c (MAX_EXP): Likewise.
2727         * tests/test-fmodl.c (MAX_EXP): Likewise.
2728
2729 2012-03-04  Bruno Haible  <bruno@clisp.org>
2730
2731         fmod, fmodl: Fix computation for large quotients x / y.
2732         * lib/fmod.c: Completely rewritten.
2733         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2734         USE_LONG_DOUBLE.
2735         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2736         isnand. Remove fma.
2737         * modules/fmodl (Files): Add lib/fmod.c.
2738         (Depends-on): Add float, isfinite, signbit, fabsl,
2739         frexpl, ldexpl, isnanl. Remove fma.
2740         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2741         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2742
2743 2012-03-03  Bruno Haible  <bruno@clisp.org>
2744
2745         fmod* tests: More tests.
2746         * tests/test-fmod.h: New file.
2747         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2748         (main): Invoke test_function.
2749         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2750         (main): Invoke test_function.
2751         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2752         (main): Invoke test_function.
2753         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2754         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2755         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2756         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2757         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2758         (Depends-on): Add 'float'.
2759         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2760
2761 2012-03-03  Bruno Haible  <bruno@clisp.org>
2762
2763         rint* tests: More tests.
2764         * tests/test-rint.h: New file, partially extracted from
2765         tests/test-rintl.c.
2766         * tests/test-rint.c: Include test-rint.h.
2767         (main): Invoke test_function.
2768         * tests/test-rintf.c: Include test-rint.h.
2769         (main): Invoke test_function.
2770         * tests/test-rintl.c: Include test-rint.h.
2771         (main): Invoke test_function.
2772         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2773         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2774         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2775         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2776         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2777         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2778
2779 2012-03-03  Bruno Haible  <bruno@clisp.org>
2780
2781         modf* tests: More tests.
2782         * tests/test-modf.h: New file.
2783         * tests/test-modf.c: Include <float.h> and test-modf.h.
2784         (main): Invoke test_function.
2785         * tests/test-modff.c: Include <float.h> and test-modf.h.
2786         (main): Invoke test_function.
2787         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2788         (main): Invoke test_function.
2789         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2790         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2791         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2792         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2793         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2794         (Depends-on): Add 'float'.
2795         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2796
2797 2012-03-03  Bruno Haible  <bruno@clisp.org>
2798
2799         fabs* tests: More tests.
2800         * tests/test-fabs.h: New file, partially extracted from
2801         tests/test-fabsl.c.
2802         * tests/test-fabs.c (RANDOM): New macro.
2803         * tests/test-fabsf.c (RANDOM): New macro.
2804         * tests/test-fabsl.c (RANDOM): New macro.
2805         * modules/fabs-tests (Files): Add tests/randomd.c.
2806         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2807         * modules/fabsf-tests (Files): Add tests/randomf.c.
2808         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2809         * modules/fabsl-tests (Files): Add tests/randoml.c.
2810         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2811
2812 2012-03-03  Bruno Haible  <bruno@clisp.org>
2813
2814         ldexp* tests: More tests.
2815         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2816         * tests/test-ldexp.c (RANDOM): New macro.
2817         * tests/test-ldexpf.c (RANDOM): New macro.
2818         * tests/test-ldexpl.c (RANDOM): New macro.
2819         * modules/ldexp-tests (Files): Add tests/randomd.c.
2820         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2821         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2822         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2823         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2824         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2825
2826 2012-03-03  Bruno Haible  <bruno@clisp.org>
2827
2828         frexp* tests: More tests.
2829         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2830         * tests/test-frexp.c (RANDOM): New macro.
2831         * tests/test-frexpf.c (RANDOM): New macro.
2832         * tests/test-frexpl.c (RANDOM): New macro.
2833         * modules/frexp-tests (Files): Add tests/randomd.c.
2834         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2835         * modules/frexpf-tests (Files): Add tests/randomf.c.
2836         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2837         * modules/frexpl-tests (Files): Add tests/randoml.c.
2838         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2839
2840 2012-03-03  Bruno Haible  <bruno@clisp.org>
2841
2842         Support for pseudo-random numbers in tests.
2843         * tests/randomf.c: New file.
2844         * tests/randomd.c: New file.
2845         * tests/randoml.c: New file.
2846         * tests/macros.h (randomf, randomd, randoml): New declarations.
2847
2848 2012-03-03  Bruno Haible  <bruno@clisp.org>
2849
2850         frexp* tests: Refactor.
2851         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2852         * tests/test-frexp.c: Include and use it.
2853         * tests/test-frexpf.c: Likewise.
2854         * tests/test-frexpl.c: Likewise.
2855         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2856         * modules/frexpf-tests (Files): Likewise.
2857         * modules/frexpl-tests (Files): Likewise.
2858
2859 2012-03-02  Jim Meyering  <meyering@redhat.com>
2860
2861         maint: don't specify XZ_OPT=-9ev in dist-related rule
2862         Using xz's -9 option is warranted only if you have a very large
2863         tarball (see xz's documentation for the sizes vs. presets), and
2864         requires 64MiB of memory at decompression time.
2865         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2866         Automake's default of just "-e" is fine.  Override on a
2867         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2868
2869 2012-03-01  Eric Blake  <eblake@redhat.com>
2870
2871         maint.mk: allow announcement for non-gnulib project
2872         * maint.mk (announcement): Skip gnulib version if not used.
2873
2874 2012-03-01  Jim Meyering  <meyering@redhat.com>
2875
2876         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2877         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2878         envvar settings cannot interfere.  Otherwise, setting envvars like
2879         prohibit=foo require=bar, etc. would cause spurious test failures.
2880
2881 2012-03-01  Eric Blake  <eblake@redhat.com>
2882
2883         maint.mk: add per-line exclusions to prohibitions
2884         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2885         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2886         (sc_const_long_option): Use it.
2887
2888 2012-03-01  Bruno Haible  <bruno@clisp.org>
2889
2890         Tests for module 'expl-ieee'.
2891         * modules/expl-ieee-tests: New file.
2892         * tests/test-expl-ieee.c: New file.
2893
2894         New module 'expl-ieee'.
2895         * modules/expl-ieee: New file.
2896
2897         Tests for module 'exp-ieee'.
2898         * modules/exp-ieee-tests: New file.
2899         * tests/test-exp-ieee.c: New file.
2900
2901         New module 'exp-ieee'.
2902         * modules/exp-ieee: New file.
2903
2904         Tests for module 'expf-ieee'.
2905         * modules/expf-ieee-tests: New file.
2906         * tests/test-expf-ieee.c: New file.
2907         * tests/test-exp-ieee.h: New file.
2908
2909         New module 'expf-ieee'.
2910         * modules/expf-ieee: New file.
2911
2912 2012-02-29  Bruno Haible  <bruno@clisp.org>
2913
2914         cbrtl-ieee: Work around test failure on IRIX 6.5.
2915         * m4/cbrtl-ieee.m4: New file.
2916         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2917         test whether cbrtl works with a minus zero argument. Replace it if not.
2918         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2920         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2921         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2922         (Depends-on): Update conditions.
2923         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2924         m4/signbit.m4.
2925         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2926         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2927         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2928
2929         Tests for module 'cbrtl-ieee'.
2930         * modules/cbrtl-ieee-tests: New file.
2931         * tests/test-cbrtl-ieee.c: New file.
2932
2933         New module 'cbrtl-ieee'.
2934         * modules/cbrtl-ieee: New file.
2935
2936         Tests for module 'cbrt-ieee'.
2937         * modules/cbrt-ieee-tests: New file.
2938         * tests/test-cbrt-ieee.c: New file.
2939
2940         New module 'cbrt-ieee'.
2941         * modules/cbrt-ieee: New file.
2942
2943         Tests for module 'cbrtf-ieee'.
2944         * modules/cbrtf-ieee-tests: New file.
2945         * tests/test-cbrtf-ieee.c: New file.
2946         * tests/test-cbrt-ieee.h: New file.
2947
2948         New module 'cbrtf-ieee'.
2949         * modules/cbrtf-ieee: New file.
2950
2951 2012-02-29  Bruno Haible  <bruno@clisp.org>
2952
2953         cbrtf: Work around bug in IRIX 6.5 system function.
2954         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2955         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2956         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2957         work.
2958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2959         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2960         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2961         (Depends-on): Update conditions.
2962         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2963
2964 2012-02-29  Bruno Haible  <bruno@clisp.org>
2965
2966         Tests for module 'cbrtl'.
2967         * modules/cbrtl-tests: New file.
2968         * tests/test-cbrtl.c: New file.
2969
2970         New module 'cbrtl'.
2971         * lib/math.in.h (cbrtl): New declaration.
2972         * lib/cbrtl.c: New file.
2973         * m4/cbrtl.m4: New file.
2974         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2976         HAVE_DECL_CBRTL.
2977         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2978         HAVE_DECL_CBRTL.
2979         * modules/cbrtl: New file.
2980         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2981         * doc/posix-functions/cbrtl.texi: Mention the new module.
2982
2983 2012-02-29  Bruno Haible  <bruno@clisp.org>
2984
2985         Tests for module 'cbrtf'.
2986         * modules/cbrtf-tests: New file.
2987         * tests/test-cbrtf.c: New file.
2988
2989         New module 'cbrtf'.
2990         * lib/math.in.h (cbrtf): New declaration.
2991         * lib/cbrtf.c: New file.
2992         * m4/cbrtf.m4: New file.
2993         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2994         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2995         HAVE_DECL_CBRTF.
2996         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2997         HAVE_DECL_CBRTF.
2998         * modules/cbrtf: New file.
2999         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3000         * doc/posix-functions/cbrtf.texi: Mention the new module.
3001
3002 2012-02-29  Bruno Haible  <bruno@clisp.org>
3003
3004         cbrt: Provide replacement on MSVC and Minix.
3005         * lib/math.in.h (cbrt): New declaration.
3006         * lib/cbrt.c: New file.
3007         * m4/cbrt.m4: New file.
3008         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3010         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3011         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3012         (Depends-on): Add dependencies.
3013         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3014         * tests/test-math-c++.cc: Check the declaration of cbrt.
3015         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3016         replacement.
3017
3018 2012-02-29  Bruno Haible  <bruno@clisp.org>
3019
3020         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3021         * m4/hypotl-ieee.m4: New file.
3022         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3023         test whether hypotl works with mixed NaN and Infinity arguments.
3024         Replace it if not.
3025         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3027         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3028         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3029         (Depends-on): Update conditions.
3030         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3031         (Depends-on): Add hypot-ieee.
3032         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3033         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3034
3035         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3036         * m4/hypotf-ieee.m4: New file.
3037         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3038         test whether hypotf works with mixed NaN and Infinity arguments.
3039         Replace it if not.
3040         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3041         (Depends-on): Add hypot-ieee.
3042         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3043         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3044
3045         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3046         * lib/math.in.h (hypot): New declaration.
3047         * lib/hypot.c: New file.
3048         * m4/hypot-ieee.m4: New file.
3049         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3050         whether hypot works with mixed NaN and Infinity arguments. Replace it
3051         if not.
3052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3053         REPLACE_HYPOT.
3054         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3055         * modules/hypot (Files): Add lib/hypot.c.
3056         (Depends-on): Add dependencies.
3057         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3058         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3059         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3060         * tests/test-math-c++.cc: Check the declaration of hypot.
3061         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3062
3063         Tests for module 'hypotl-ieee'.
3064         * modules/hypotl-ieee-tests: New file.
3065         * tests/test-hypotl-ieee.c: New file.
3066
3067         New module 'hypotl-ieee'.
3068         * modules/hypotl-ieee: New file.
3069
3070         Tests for module 'hypot-ieee'.
3071         * modules/hypot-ieee-tests: New file.
3072         * tests/test-hypot-ieee.c: New file.
3073
3074         New module 'hypot-ieee'.
3075         * modules/hypot-ieee: New file.
3076
3077         Tests for module 'hypotf-ieee'.
3078         * modules/hypotf-ieee-tests: New file.
3079         * tests/test-hypotf-ieee.c: New file.
3080         * tests/test-hypot-ieee.h: New file.
3081
3082         New module 'hypotf-ieee'.
3083         * modules/hypotf-ieee: New file.
3084
3085 2012-02-29  Bruno Haible  <bruno@clisp.org>
3086
3087         Remove unused variables.
3088         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3089         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3090         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3091         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3092
3093 2012-02-29  Eric Blake  <eblake@redhat.com>
3094
3095         termios: fix pid_t always, not just for tcgetsid
3096         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3097         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3098         just when building tcgetsid.
3099
3100 2012-02-29  Bruno Haible  <bruno@clisp.org>
3101
3102         Tests for module 'hypotl'.
3103         * modules/hypotl-tests: New file.
3104         * tests/test-hypotl.c: New file.
3105
3106         New module 'hypotl'.
3107         * lib/math.in.h (hypotl): New declaration.
3108         * lib/hypotl.c: New file.
3109         * m4/hypotl.m4: New file.
3110         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3112         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3113         * modules/hypotl: New file.
3114         * tests/test-math-c++.cc: Check the hypotl declaration.
3115         * doc/posix-functions/hypotl.texi: Mention the new module.
3116
3117 2012-02-29  Eric Blake  <eblake@redhat.com>
3118
3119         tcgetsid: fix cygwin header bug
3120         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3121
3122         docs: update cygwin progress
3123         * doc/posix-functions/llround.texi (llround): Added in cygwin
3124         1.7.8.
3125         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3126         * doc/glibc-functions/program_invocation_name.texi
3127         (program_invocation_name): Likewise.
3128         * doc/glibc-functions/program_invocation_short_name.texi
3129         (program_invocation_short_name): Likewise.
3130         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3131         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3132         Likewise.
3133         * doc/posix-functions/pthread_spin_destroy.texi
3134         (pthread_spin_destroy): Added in cygwin 1.7.10.
3135         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3136         Likewise.
3137         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3138         Likewise.
3139         * doc/posix-functions/pthread_spin_trylock.texi
3140         (pthread_spin_trylock): Likewise.
3141         * doc/posix-functions/pthread_spin_unlock.texi
3142         (pthread_spin_unlock): Likewise.
3143         * doc/posix-functions/pthread_setschedprio.texi
3144         (pthread_setschedprio): Likewise.
3145         * doc/posix-functions/pthread_attr_getstack.texi
3146         (pthread_attr_getstack): Likewise.
3147         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3148         (pthread_attr_getstackaddr): Likewise.
3149         * doc/glibc-functions/pthread_getattr_np.texi
3150         (pthread_getattr_np): Likewise.
3151         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3152         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3153         * doc/posix-functions/clock_settime.texi (clock_settime):
3154         Likewise.
3155         * doc/posix-functions/pthread_attr_getguardsize.texi
3156         (pthread_attr_getguardsize): Likewise.
3157         * doc/posix-functions/pthread_attr_setguardsize.texi
3158         (pthread_attr_setguardsize): Likewise.
3159         * doc/posix-functions/pthread_attr_setstack.texi
3160         (pthread_attr_setstack): Likewise.
3161         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3162         (pthread_attr_setstackaddr): Likewise.
3163         * doc/posix-functions/clock_getcpuclockid.texi
3164         (clock_getcpuclockid): Likewise.
3165         * doc/posix-functions/pthread_getcpuclockid.texi
3166         (pthread_getcpuclockid): Likewise.
3167         * doc/glibc-functions/error.texi (error): Likewise.
3168         * doc/glibc-functions/error_at_line.texi (error_at_line):
3169         Likewise.
3170         * doc/glibc-functions/error_message_count.texi
3171         (error_message_count): Likewise.
3172         * doc/glibc-functions/error_one_per_line.texi
3173         (error_one_per_line): Likewise.
3174         * doc/glibc-functions/error_print_progname.texi
3175         (error_print_progname): Likewise.
3176         * doc/posix-functions/pthread_condattr_getclock.texi
3177         (pthread_condattr_getclock): Likewise.
3178         * doc/posix-functions/pthread_condattr_setclock.texi
3179         (pthread_condattr_setclock): Likewise.
3180         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3181         Likewise.
3182         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3183         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3184         * doc/glibc-functions/get_current_dir_name.texi
3185         (get_current_dir_name): Likewise.
3186         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3187         Likewise.
3188         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3189         wrong return type.
3190         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3191         1.7.11.
3192
3193 2012-02-29  Bruno Haible  <bruno@clisp.org>
3194
3195         Tests for module 'hypotf'.
3196         * modules/hypotf-tests: New file.
3197         * tests/test-hypotf.c: New file.
3198
3199         New module 'hypotf'.
3200         * lib/math.in.h (hypotf): New declaration.
3201         * lib/hypotf.c: New file.
3202         * m4/hypotf.m4: New file.
3203         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3205         REPLACE_HYPOTF.
3206         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3207         REPLACE_HYPOTF.
3208         * modules/hypotf: New file.
3209         * tests/test-math-c++.cc: Check the hypotf declaration.
3210         * doc/posix-functions/hypotf.texi: Mention the new module.
3211
3212         hypot: Prepare for hypotf module.
3213         * m4/hypot.m4: New file.
3214         * modules/hypot (Files): Add m4/hypot.m4.
3215         (configure.ac): Invoke gl_FUNC_HYPOT.
3216
3217 2012-02-29  Bruno Haible  <bruno@clisp.org>
3218
3219         hypot tests: More tests.
3220         * tests/test-hypot.c: Include <float.h>.
3221         (main): Add tests about overflow and underflow.
3222
3223 2012-02-29  Bruno Haible  <bruno@clisp.org>
3224
3225         math code: Add comments.
3226         * lib/acosl.c: Add comment about related glibc source files.
3227         * lib/asinl.c: Likewise.
3228         * lib/atanl.c: Likewise.
3229         * lib/expl.c: Likewise.
3230         * lib/logl.c: Likewise.
3231         * lib/sincosl.c: Likewise.
3232         * lib/sinl.c: Likewise.
3233         * lib/tanl.c: Likewise.
3234         * lib/trigl.c: Likewise.
3235         * lib/cosl.c: Likewise. Fix comments.
3236
3237 2012-02-28  Bruno Haible  <bruno@clisp.org>
3238
3239         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3240         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3241         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3242         HUGE_VALL are defined.
3243         (numeric_equald): Renamed from numeric_equal.
3244         (numeric_equalf, numeric_equall): New functions.
3245         (main): Check also HUGE_VALF, HUGE_VALL.
3246         * modules/math-tests (Files): Add tests/macros.h.
3247         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3248         HUGE_VALL.
3249
3250 2012-02-28  Bruno Haible  <bruno@clisp.org>
3251
3252         doc: Move ISO C11 feature notes into POSIX chapters.
3253         * doc/posix-functions/aligned_alloc.texi: Renamed from
3254         doc/glibc-functions/aligned_alloc.texi.
3255         * doc/posix-functions/quick_exit.texi: Renamed from
3256         doc/glibc-functions/quick_exit.texi.
3257         * doc/posix-headers/uchar.texi: Renamed from
3258         doc/glibc-headers/uchar.texi.
3259         * doc/posix-functions/c16rtomb.texi: Renamed from
3260         doc/glibc-functions/c16rtomb.texi.
3261         * doc/posix-functions/c32rtomb.texi: Renamed from
3262         doc/glibc-functions/c32rtomb.texi.
3263         * doc/posix-functions/mbrtoc16.texi: Renamed from
3264         doc/glibc-functions/mbrtoc16.texi.
3265         * doc/posix-functions/mbrtoc32.texi: Renamed from
3266         doc/glibc-functions/mbrtoc32.texi.
3267         * doc/gnulib.texi: Update.
3268         (Glibc uchar.h): Remove section.
3269         Suggested by Eric Blake.
3270
3271 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3272
3273         stdnoreturn: port to MSVC better
3274         MSVC standard headers use __declspec(noreturn), so #define noreturn
3275         to empty on that platform.  Reported by Bruno Haible in
3276         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3277         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3278         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3279
3280 2012-02-28  Bruno Haible  <bruno@clisp.org>
3281
3282         doc: Mention new glibc headers and functions.
3283         * doc/glibc-headers/uchar.texi: New file.
3284         * doc/glibc-functions/aligned_alloc.texi: New file.
3285         * doc/glibc-functions/c16rtomb.texi: New file.
3286         * doc/glibc-functions/c32rtomb.texi: New file.
3287         * doc/glibc-functions/clock_adjtime.texi: New file.
3288         * doc/glibc-functions/fanotify_init.texi: New file.
3289         * doc/glibc-functions/fanotify_mark.texi: New file.
3290         * doc/glibc-functions/inet6_opt_append.texi: New file.
3291         * doc/glibc-functions/inet6_opt_find.texi: New file.
3292         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3293         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3294         * doc/glibc-functions/inet6_opt_init.texi: New file.
3295         * doc/glibc-functions/inet6_opt_next.texi: New file.
3296         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3297         * doc/glibc-functions/inet6_rth_add.texi: New file.
3298         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3299         * doc/glibc-functions/inet6_rth_init.texi: New file.
3300         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3301         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3302         * doc/glibc-functions/inet6_rth_space.texi: New file.
3303         * doc/glibc-functions/login.texi: New file.
3304         * doc/glibc-functions/mbrtoc16.texi: New file.
3305         * doc/glibc-functions/mbrtoc32.texi: New file.
3306         * doc/glibc-functions/name_to_handle_at.texi: New file.
3307         * doc/glibc-functions/ntp_gettimex.texi: New file.
3308         * doc/glibc-functions/open_by_handle_at.texi: New file.
3309         * doc/glibc-functions/prlimit.texi: New file.
3310         * doc/glibc-functions/process_vm_readv.texi: New file.
3311         * doc/glibc-functions/process_vm_writev.texi: New file.
3312         * doc/glibc-functions/recvmmsg.texi: New file.
3313         * doc/glibc-functions/scandirat.texi: New file.
3314         * doc/glibc-functions/sendmmsg.texi: New file.
3315         * doc/glibc-functions/setns.texi: New file.
3316         * doc/glibc-functions/timespec_get.texi: New file.
3317         * doc/gnulib.texi: Include them.
3318         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3319         sections.
3320         Reported by Eric Blake.
3321
3322 2012-02-28  Bruno Haible  <bruno@clisp.org>
3323
3324         Avoid compilation errors with MSVC option -fp:strict.
3325         * lib/floor.c: Use MSVC specific pragma fenv_access.
3326         * lib/ceil.c: Likewise.
3327         * lib/trunc.c: Likewise.
3328         * lib/round.c: Likewise.
3329         * lib/rint.c: Likewise.
3330         * lib/fma.c: Likewise.
3331         * lib/integer_length.c: Likewise.
3332         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3333         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3334         * tests/test-floor2.c: Likewise.
3335         * tests/test-floorf2.c: Likewise.
3336         * tests/test-ceil2.c: Likewise.
3337         * tests/test-ceilf2.c: Likewise.
3338         * tests/test-trunc2.c: Likewise.
3339         * tests/test-truncf2.c: Likewise.
3340         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3341
3342 2012-02-27  Bruno Haible  <bruno@clisp.org>
3343
3344         Tests for module 'sqrtl-ieee'.
3345         * modules/sqrtl-ieee-tests: New file.
3346         * tests/test-sqrtl-ieee.c: New file.
3347
3348         New module 'sqrtl-ieee'.
3349         * modules/sqrtl-ieee: New file.
3350
3351         Tests for module 'sqrt-ieee'.
3352         * modules/sqrt-ieee-tests: New file.
3353         * tests/test-sqrt-ieee.c: New file.
3354
3355         New module 'sqrt-ieee'.
3356         * modules/sqrt-ieee: New file.
3357
3358         Tests for module 'sqrtf-ieee'.
3359         * modules/sqrtf-ieee-tests: New file.
3360         * tests/test-sqrtf-ieee.c: New file.
3361         * tests/test-sqrt-ieee.h: New file.
3362
3363         New module 'sqrtf-ieee'.
3364         * modules/sqrtf-ieee: New file.
3365
3366 2012-02-27  Bruno Haible  <bruno@clisp.org>
3367
3368         remainderl-ieee: Work around test failure on OSF/1.
3369         * m4/remainderl-ieee.m4: New file.
3370         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3371         present, test whether remainderl works with a zero second argument.
3372         Replace it if not.
3373         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3375         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3376         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3377         (Depends-on): Update conditions.
3378         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3379         (Depends-on): Add remainder-ieee.
3380         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3381         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3382         module.
3383
3384         remainderf-ieee: Work around test failure on OSF/1.
3385         * m4/remainderf-ieee.m4: New file.
3386         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3387         present, test whether remainderf works with a zero second argument.
3388         Replace it if not.
3389         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3391         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3392         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3393         (Depends-on): Update conditions.
3394         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3395         (Depends-on): Add remainder-ieee.
3396         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3397         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3398         module.
3399
3400         remainder-ieee: Work around test failure on OSF/1.
3401         * m4/remainder-ieee.m4: New file.
3402         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3403         present, test whether remainder works with a zero second argument.
3404         Replace it if not.
3405         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3407         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3408         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3409         (Depends-on): Update dependencies.
3410         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3411         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3412         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3413
3414         Tests for module 'remainderl-ieee'.
3415         * modules/remainderl-ieee-tests: New file.
3416         * tests/test-remainderl-ieee.c: New file.
3417
3418         New module 'remainderl-ieee'.
3419         * modules/remainderl-ieee: New file.
3420
3421         Tests for module 'remainder-ieee'.
3422         * modules/remainder-ieee-tests: New file.
3423         * tests/test-remainder-ieee.c: New file.
3424
3425         New module 'remainder-ieee'.
3426         * modules/remainder-ieee: New file.
3427
3428         Tests for module 'remainderf-ieee'.
3429         * modules/remainderf-ieee-tests: New file.
3430         * tests/test-remainderf-ieee.c: New file.
3431         * tests/test-remainder-ieee.h: New file.
3432
3433         New module 'remainderf-ieee'.
3434         * modules/remainderf-ieee: New file.
3435
3436 2012-02-27  Bruno Haible  <bruno@clisp.org>
3437
3438         modff, modfl: Fix configure syntax error.
3439         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3440         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3441
3442 2012-02-27  Bruno Haible  <bruno@clisp.org>
3443
3444         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3445         * m4/fmodl-ieee.m4: New file.
3446         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3447         whether fmodl works with zero arguments. Replace it if not.
3448         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3449         (Depends-on): Add fmod-ieee.
3450         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3451         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3452
3453         fmodf-ieee: Work around test failure on OSF/1.
3454         * m4/fmodf-ieee.m4: New file.
3455         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3456         whether fmodf works with zero arguments. Replace it if not.
3457         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3459         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3460         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3461         (Depends-on): Update dependencies.
3462         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3463         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3464         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3465
3466         fmodf-ieee: Work around test failure on MSVC 9.
3467         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3468         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3469
3470         fmod-ieee: Work around test failures on OSF/1, mingw.
3471         * m4/fmod-ieee.m4: New file.
3472         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3473         whether fmod works with zero arguments. Replace it if not.
3474         * lib/math.in.h (fmod): New declaration.
3475         * lib/fmod.c: New file.
3476         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3478         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3479         * modules/fmod (Files): Add lib/fmod.c.
3480         (Depends-on): Add math, isinf, trunc, fma.
3481         (configure.ac): Arrange to compile lib/fmod.c if needed.
3482         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3483         m4/signbit.m4.
3484         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3485         * tests/test-math-c++.cc: Check the declaration of fmod.
3486         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3487
3488         fmodl-ieee: Fix test failures.
3489         * lib/fmodl.c (fmodl): Treat Inf specially.
3490         * modules/fmodl (Depends-on): Add isinf.
3491
3492         Tests for module 'fmodl-ieee'.
3493         * modules/fmodl-ieee-tests: New file.
3494         * tests/test-fmodl-ieee.c: New file.
3495
3496         New module 'fmodl-ieee'.
3497         * modules/fmodl-ieee: New file.
3498
3499         Tests for module 'fmod-ieee'.
3500         * modules/fmod-ieee-tests: New file.
3501         * tests/test-fmod-ieee.c: New file.
3502
3503         New module 'fmod-ieee'.
3504         * modules/fmod-ieee: New file.
3505
3506         Tests for module 'fmodf-ieee'.
3507         * modules/fmodf-ieee-tests: New file.
3508         * tests/test-fmodf-ieee.c: New file.
3509         * tests/test-fmod-ieee.h: New file.
3510
3511         New module 'fmodf-ieee'.
3512         * modules/fmodf-ieee: New file.
3513
3514 2012-02-27  Bruno Haible  <bruno@clisp.org>
3515
3516         Tests for module 'rintl-ieee'.
3517         * modules/rintl-ieee-tests: New file.
3518         * tests/test-rintl-ieee.c: New file.
3519
3520         New module 'rintl-ieee'.
3521         * modules/rintl-ieee: New file.
3522
3523         Tests for module 'rint-ieee'.
3524         * modules/rint-ieee-tests: New file.
3525         * tests/test-rint-ieee.c: New file.
3526
3527         New module 'rint-ieee'.
3528         * modules/rint-ieee: New file.
3529
3530         Tests for module 'rintf-ieee'.
3531         * modules/rintf-ieee-tests: New file.
3532         * tests/test-rintf-ieee.c: New file.
3533         * tests/test-rint-ieee.h: New file.
3534
3535         New module 'rintf-ieee'.
3536         * modules/rintf-ieee: New file.
3537
3538 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3539
3540         regex: re_search etc. should return -2 when memory exhausted
3541         This bug was uncovered when testing 'grep'.  Without the fix,
3542         re_search and friends return -1 when memory is exhausted, but -1
3543         means no match, and this causes grep to falsely report no-match
3544         instead of memory-exhaustion.  See
3545         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3546         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3547         trouble; this can occur if re_search_internal ran out of memory.
3548
3549 2012-02-26  Bruno Haible  <bruno@clisp.org>
3550
3551         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3552         * m4/modfl-ieee.m4: New file.
3553         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3554         whether modfl works with Inf. Replace it if not.
3555         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3557         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3558         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3559         (Depends-on): Update dependencies.
3560         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3561         m4/signbit.m4.
3562         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3563         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3564
3565         modfl-ieee: Fix dependencies.
3566         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3567
3568         modfl-ieee: Fix test failures.
3569         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3570         * modules/modfl (Depends-on): Add isfinite, isinf.
3571
3572         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3573         * m4/modff-ieee.m4: New file.
3574         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3575         whether modff works with NaN and Inf. Replace it if not.
3576         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3578         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3579         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3580         (Depends-on): Update dependencies.
3581         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3582         m4/signbit.m4.
3583         (Depends-on): Add modf-ieee.
3584         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3585         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3586
3587         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3588         * m4/modf-ieee.m4: New file.
3589         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3590         whether modf works with NaN and Inf. Replace it if not.
3591         * lib/math.in.h (modf): New declaration.
3592         * lib/modf.c: New file.
3593         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3595         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3596         * modules/modf (Files): Add lib/modf.c.
3597         (Depends-on): Add math, isfinite, trunc, isinf.
3598         (configure.ac): Addrange to compile lib/modf.c if needed.
3599         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3600         m4/signbit.m4.
3601         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3602         * tests/test-math-c++.cc: Check the declaration of modf.
3603         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3604
3605         Tests for module 'modfl-ieee'.
3606         * modules/modfl-ieee-tests: New file.
3607         * tests/test-modfl-ieee.c: New file.
3608
3609         New module 'modfl-ieee'.
3610         * modules/modfl-ieee: New file.
3611
3612         Tests for module 'modf-ieee'.
3613         * modules/modf-ieee-tests: New file.
3614         * tests/test-modf-ieee.c: New file.
3615
3616         New module 'modf-ieee'.
3617         * modules/modf-ieee: New file.
3618
3619         Tests for module 'modff-ieee'.
3620         * modules/modff-ieee-tests: New file.
3621         * tests/test-modff-ieee.c: New file.
3622         * tests/test-modf-ieee.h: New file.
3623
3624         New module 'modff-ieee'.
3625         * modules/modff-ieee: New file.
3626
3627 2012-02-26  Bruno Haible  <bruno@clisp.org>
3628
3629         Tests for module 'fabsl-ieee'.
3630         * modules/fabsl-ieee-tests: New file.
3631         * tests/test-fabsl-ieee.c: New file.
3632
3633         New module 'fabsl-ieee'.
3634         * modules/fabsl-ieee: New file.
3635
3636         Tests for module 'fabs-ieee'.
3637         * modules/fabs-ieee-tests: New file.
3638         * tests/test-fabs-ieee.c: New file.
3639
3640         New module 'fabs-ieee'.
3641         * modules/fabs-ieee: New file.
3642
3643         Tests for module 'fabsf-ieee'.
3644         * modules/fabsf-ieee-tests: New file.
3645         * tests/test-fabsf-ieee.c: New file.
3646         * tests/test-fabs-ieee.h: New file.
3647
3648         New module 'fabsf-ieee'.
3649         * modules/fabsf-ieee: New file.
3650
3651 2012-02-26  Bruno Haible  <bruno@clisp.org>
3652
3653         Tests for module 'fmal-ieee'.
3654         * modules/fmal-ieee-tests: New file.
3655         * tests/test-fmal-ieee.c: New file.
3656
3657         New module 'fmal-ieee'.
3658         * modules/fmal-ieee: New file.
3659
3660         Tests for module 'fma-ieee'.
3661         * modules/fma-ieee-tests: New file.
3662         * tests/test-fma-ieee.c: New file.
3663
3664         New module 'fma-ieee'.
3665         * modules/fma-ieee: New file.
3666
3667         Tests for module 'fmaf-ieee'.
3668         * modules/fmaf-ieee-tests: New file.
3669         * tests/test-fmaf-ieee.c: New file.
3670         * tests/test-fma-ieee.h: New file.
3671
3672         New module 'fmaf-ieee'.
3673         * modules/fmaf-ieee: New file.
3674
3675 2012-02-26  Bruno Haible  <bruno@clisp.org>
3676
3677         Tests for module 'ldexpl-ieee'.
3678         * modules/ldexpl-ieee-tests: New file.
3679         * tests/test-ldexpl-ieee.c: New file.
3680
3681         New module 'ldexpl-ieee'.
3682         * modules/ldexpl-ieee: New file.
3683
3684         Tests for module 'ldexp-ieee'.
3685         * modules/ldexp-ieee-tests: New file.
3686         * tests/test-ldexp-ieee.c: New file.
3687
3688         New module 'ldexp-ieee'.
3689         * modules/ldexp-ieee: New file.
3690
3691         Tests for module 'ldexpf-ieee'.
3692         * modules/ldexpf-ieee-tests: New file.
3693         * tests/test-ldexpf-ieee.c: New file.
3694         * tests/test-ldexp-ieee.h: New file.
3695
3696         New module 'ldexpf-ieee'.
3697         * modules/ldexpf-ieee: New file.
3698
3699 2012-02-26  Bruno Haible  <bruno@clisp.org>
3700
3701         Refactor frexp*-ieee tests.
3702         * tests/test-frexp-ieee.h: New file.
3703         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3704         (main): Just call test_function.
3705         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3706         (main): Just call test_function.
3707         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3708         (main): Just call test_function.
3709         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3710         * modules/frexp-ieee-tests (Files): Likewise.
3711         * modules/frexpl-ieee-tests (Files): Likewise.
3712
3713         Tests for module 'frexpl-ieee'.
3714         * modules/frexpl-ieee-tests: New file.
3715         * tests/test-frexpl-ieee.c: New file.
3716
3717         New module 'frexpl-ieee'.
3718         * modules/frexpl-ieee: New file.
3719
3720         Tests for module 'frexp-ieee'.
3721         * modules/frexp-ieee-tests: New file.
3722         * tests/test-frexp-ieee.c: New file.
3723
3724         New module 'frexp-ieee'.
3725         * modules/frexp-ieee: New file.
3726
3727         Tests for module 'frexpf-ieee'.
3728         * modules/frexpf-ieee-tests: New file.
3729         * tests/test-frexpf-ieee.c: New file.
3730
3731         New module 'frexpf-ieee'.
3732         * modules/frexpf-ieee: New file.
3733
3734 2012-02-26  Bruno Haible  <bruno@clisp.org>
3735
3736         roundl-ieee tests: More tests.
3737         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3738         (main): Add tests for [MX] shaded specification in POSIX.
3739         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3740         (Depends-on): Add isnanl-nolibm.
3741
3742         round-ieee tests: More tests.
3743         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3744         (main): Add tests for [MX] shaded specification in POSIX.
3745         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3746         (Depends-on): Add isnand-nolibm.
3747
3748         roundf-ieee tests: More tests.
3749         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3750         (main): Add tests for [MX] shaded specification in POSIX.
3751         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3752         (Depends-on): Add isnanf-nolibm.
3753
3754         truncl-ieee tests: More tests.
3755         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3756         (main): Add tests for [MX] shaded specification in POSIX.
3757         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3758         (Depends-on): Add isnanl-nolibm.
3759
3760         trunc-ieee tests: More tests.
3761         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3762         (main): Add tests for [MX] shaded specification in POSIX.
3763         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3764         (Depends-on): Add isnand-nolibm.
3765
3766         truncf-ieee tests: More tests.
3767         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3768         (main): Add tests for [MX] shaded specification in POSIX.
3769         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3770         (Depends-on): Add isnanf-nolibm.
3771
3772         ceill-ieee tests: More tests.
3773         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3774         (main): Add tests for [MX] shaded specification in POSIX.
3775         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3776         (Depends-on): Add isnanl-nolibm.
3777
3778         ceil-ieee tests: More tests.
3779         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3780         (main): Add tests for [MX] shaded specification in POSIX.
3781         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3782         (Depends-on): Add isnand-nolibm.
3783
3784         ceilf-ieee tests: More tests.
3785         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3786         (main): Add tests for [MX] shaded specification in POSIX.
3787         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3788         (Depends-on): Add isnanf-nolibm.
3789
3790         floorl-ieee tests: More tests.
3791         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3792         (main): Add tests for [MX] shaded specification in POSIX.
3793         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3794         (Depends-on): Add isnanl-nolibm.
3795
3796         floor-ieee tests: More tests.
3797         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3798         (main): Add tests for [MX] shaded specification in POSIX.
3799         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3800         (Depends-on): Add isnand-nolibm.
3801
3802         floorf-ieee tests: More tests.
3803         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3804         (main): Add tests for [MX] shaded specification in POSIX.
3805         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3806         (Depends-on): Add isnanf-nolibm.
3807
3808 2012-02-26  Bruno Haible  <bruno@clisp.org>
3809
3810         fpieee: More comments.
3811         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3812
3813 2012-02-25  Bruno Haible  <bruno@clisp.org>
3814
3815         Tests for module 'log10l'.
3816         * modules/log10l-tests: New file.
3817         * tests/test-log10l.c: New file.
3818         * tests/test-math-c++.cc: Check the declaration of log10l.
3819
3820         New module 'log10l'.
3821         * lib/math.in.h (log10l): New declaration.
3822         * lib/log10l.c: New file.
3823         * m4/log10l.m4: New file.
3824         * modules/log10l: New file.
3825         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3827         HAVE_DECL_LOG10L.
3828         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3829         HAVE_DECL_LOG10L.
3830         * doc/posix-functions/log10l.texi: Mention the new module.
3831
3832 2012-02-25  Bruno Haible  <bruno@clisp.org>
3833
3834         fmodl, remainder*: Avoid wrong results due to rounding errors.
3835         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3836         expected bounds.
3837         * lib/remainderf.c (remainderf): Likewise.
3838         * lib/remainder.c (remainder): Likewise.
3839         * lib/remainderl.c (remainderl): Likewise.
3840
3841 2012-02-25  Bruno Haible  <bruno@clisp.org>
3842
3843         Tests for module 'remainderl'.
3844         * modules/remainderl-tests: New file.
3845         * tests/test-remainderl.c: New file.
3846         * tests/test-math-c++.cc: Check the declaration of remainderl.
3847
3848         New module 'remainderl'.
3849         * lib/math.in.h (remainderl): New declaration.
3850         * lib/remainderl.c: New file.
3851         * m4/remainderl.m4: New file.
3852         * modules/remainderl: New file.
3853         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3855         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3856         HAVE_REMAINDERL.
3857         * doc/posix-functions/remainderl.texi: Mention the new module.
3858
3859 2012-02-25  Bruno Haible  <bruno@clisp.org>
3860
3861         Tests for module 'remainderf'.
3862         * modules/remainderf-tests: New file.
3863         * tests/test-remainderf.c: New file.
3864         * tests/test-math-c++.cc: Check the declaration of remainderf.
3865
3866         New module 'remainderf'.
3867         * lib/math.in.h (remainderf): New declaration.
3868         * lib/remainderf.c: New file.
3869         * m4/remainderf.m4: New file.
3870         * modules/remainderf: New file.
3871         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3873         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3874         HAVE_REMAINDERF.
3875         * doc/posix-functions/remainderf.texi: Mention the new module.
3876
3877 2012-02-25  Bruno Haible  <bruno@clisp.org>
3878
3879         remainder: Support for MSVC.
3880         * lib/math.in.h (remainder): New declaration.
3881         * lib/remainder.c: New file.
3882         * m4/remainder.m4: New file.
3883         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3884         (Depends-on): Add math, round, fma.
3885         (configure.ac): Use results of gl_FUNC_REMAINDER.
3886         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3888         HAVE_DECL_REMAINDER.
3889         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3890         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3891         * tests/test-math-c++.cc: Check the declaration of remainder.
3892         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3893         problems are fixed.
3894
3895 2012-02-25  Bruno Haible  <bruno@clisp.org>
3896
3897         Tests for module 'fmodl'.
3898         * modules/fmodl-tests: New file.
3899         * tests/test-fmodl.c: New file.
3900         * tests/test-math-c++.cc: Check the declaration of fmodl.
3901
3902         New module 'fmodl'.
3903         * lib/math.in.h (fmodl): New declaration.
3904         * lib/fmodl.c: New file.
3905         * m4/fmodl.m4: New file.
3906         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3907         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3908         REPLACE_FMODL.
3909         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3910         REPLACE_FMODL.
3911         * modules/fmodl: New file.
3912         * doc/posix-functions/fmodl.texi: Mention the new module.
3913
3914 2012-02-25  Bruno Haible  <bruno@clisp.org>
3915
3916         Tests for module 'modfl'.
3917         * modules/modfl-tests: New file.
3918         * tests/test-modfl.c: New file.
3919         * tests/test-math-c++.cc: Check the declaration of modfl.
3920
3921         New module 'modfl'.
3922         * lib/math.in.h (modfl): New declaration.
3923         * lib/modfl.c: New file.
3924         * m4/modfl.m4: New file.
3925         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3927         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3928         * modules/modfl: New file.
3929         * doc/posix-functions/modfl.texi: Mention the new module.
3930
3931 2012-02-25  Bruno Haible  <bruno@clisp.org>
3932
3933         Tests for module 'fabsl'.
3934         * modules/fabsl-tests: New file.
3935         * tests/test-fabsl.c: New file.
3936         * tests/test-math-c++.cc: Check the declaration of fabsl.
3937
3938         New module 'fabsl'.
3939         * lib/math.in.h (fabsl): New declaration.
3940         * lib/fabsl.c: New file.
3941         * m4/fabsl.m4: New file.
3942         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3944         REPLACE_FABSL.
3945         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3946         REPLACE_FABSL.
3947         * modules/fabsl: New file.
3948         * doc/posix-functions/fabsl.texi: Mention the new module.
3949
3950 2012-02-25  Bruno Haible  <bruno@clisp.org>
3951
3952         fabs tests: More tests.
3953         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3954         (zero): New variable.
3955         (main): Add tests for signed zero.
3956         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3957
3958         fabsf tests: More tests.
3959         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3960         (zero): New variable.
3961         (main): Add tests for signed zero.
3962         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3963
3964 2012-02-24  Bruno Haible  <bruno@clisp.org>
3965
3966         atanl: Provide function definition on MSVC.
3967         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3968         function pointer.
3969         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3970
3971 2012-02-24  Bruno Haible  <bruno@clisp.org>
3972
3973         acosl: Provide function definition on MSVC.
3974         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3975         function pointer.
3976         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3977
3978 2012-02-24  Bruno Haible  <bruno@clisp.org>
3979
3980         asinl: Provide function definition on MSVC.
3981         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3982         function pointer.
3983         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3984
3985 2012-02-24  Bruno Haible  <bruno@clisp.org>
3986
3987         tanl: Provide function definition on MSVC.
3988         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3989         function pointer.
3990         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3991
3992 2012-02-24  Bruno Haible  <bruno@clisp.org>
3993
3994         cosl: Provide function definition on MSVC.
3995         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3996         function pointer.
3997         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3998
3999 2012-02-24  Bruno Haible  <bruno@clisp.org>
4000
4001         sinl: Provide function definition on MSVC.
4002         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4003         function pointer.
4004         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4005
4006 2012-02-24  Bruno Haible  <bruno@clisp.org>
4007
4008         logl: Provide function definition on MSVC.
4009         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4010         function pointer.
4011         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4012
4013 2012-02-24  Bruno Haible  <bruno@clisp.org>
4014
4015         expl: Provide function definition on MSVC.
4016         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4017         function pointer.
4018         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4019
4020 2012-02-24  Bruno Haible  <bruno@clisp.org>
4021
4022         sqrtl: Provide function definition on MSVC.
4023         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4024         a function pointer.
4025         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4026
4027 2012-02-24  Bruno Haible  <bruno@clisp.org>
4028
4029         ceill: Provide function definition on MSVC.
4030         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4031         used as a function pointer.
4032         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4033
4034 2012-02-24  Bruno Haible  <bruno@clisp.org>
4035
4036         floorl: Provide function definition on MSVC.
4037         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4038         used as a function pointer.
4039         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4040
4041 2012-02-24  Bruno Haible  <bruno@clisp.org>
4042
4043         ceilf: Provide function definition on MSVC.
4044         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4045         used as a function pointer.
4046         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4047
4048 2012-02-24  Bruno Haible  <bruno@clisp.org>
4049
4050         floorf: Provide function definition on MSVC.
4051         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4052         used as a function pointer.
4053         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4054
4055 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4056
4057         stdnoreturn: new module
4058         This implements a replacement for C11's <stdnoreturn.h>.
4059         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4060         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4061         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4062         * tests/test-stdnoreturn.c: New files.
4063
4064 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4065
4066         regex: fix false multibyte matches in some regular expressions
4067         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4068         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4069         * lib/regex_internal.c (re_string_skip_chars):
4070         Fix miscomputation of remain_len that may cause incomplete
4071         multi-byte character and false match.
4072
4073 2012-02-24  Jim Meyering  <meyering@redhat.com>
4074
4075         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4076         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4077         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4078         Remove now-unnecessary str''cmp obfuscation.
4079         Suggested by Akim Demaille.
4080
4081 2012-02-24  Bruno Haible  <bruno@clisp.org>
4082
4083         streq: Rename macro.
4084         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4085         * NEWS: Mention the change.
4086         * lib/mbrtowc.c (mbrtowc): Update.
4087         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4088         * lib/wcwidth.c (wcwidth): Update.
4089         Suggested by Akim Demaille and Jim Meyering.
4090
4091 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4092
4093         regex: fix typo in definition of MIN
4094         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4095         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4096
4097 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4098             Bruno Haible  <bruno@clisp.org>
4099
4100         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4101         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4102         entries into a stack-allocated buffer directly.
4103         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4104
4105 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4106             Bruno Haible  <bruno@clisp.org>
4107
4108         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4109
4110          - There were several instances of this pattern:
4111
4112              for (;;) {
4113                n = acl (f, GETACLCNT, 0, NULL);
4114                [ allocate an array A of size N ]
4115                if (acl (f, GETACL, n, a) == n)
4116                  break;
4117              }
4118
4119            This loop might never terminate if some other process is constantly
4120            manipulating the file's ACL.  The loop should be rewritten to
4121            terminate.
4122
4123          - The acl (... GETACLNT ...) call is merely an optimization; its value
4124            is merely a hint as to how big to make the array.  A better
4125            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4126            and just guess a reasonably-big size, growing the size and trying
4127            again if it's not large enough.  This guarantees termination, and
4128            saves a system call.
4129
4130         * lib/acl-internal.h: Include <limits.h>.
4131         (MIN, SIZE_MAX): New macros.
4132         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4133         a stack-allocated buffer, and use malloc if it does not fit. Don't
4134         use GETACLCNT.
4135         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4136
4137 2012-02-19  Bruno Haible  <bruno@clisp.org>
4138
4139         acl: Fix endless loop on Solaris with vxfs.
4140         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4141         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4142         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4143         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4144         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4145         Reported by Bill Jones in
4146         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4147
4148 2012-02-19  Bruno Haible  <bruno@clisp.org>
4149
4150         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4151         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4152         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4153         that this function returns 0 in some more cases.
4154
4155 2012-02-19  Bruno Haible  <bruno@clisp.org>
4156
4157         acl: Update doc references.
4158         * doc/acl-resources.txt: Update links to Solaris documentation.
4159
4160 2012-02-19  Bruno Haible  <bruno@clisp.org>
4161
4162         Fix test failure in many locales on Solaris 11.
4163         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4164         'tr' arguments.
4165         * tests/test-pipe-filter-ii1.c (main): Likewise.
4166         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4167         expressions in the C locale.
4168         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4169         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4170
4171 2012-02-19  Bruno Haible  <bruno@clisp.org>
4172
4173         gnulib-tool: Improve usage message.
4174         * gnulib-tool (func_usage): Move doc of --help and --version to the
4175         section "Operation modes".
4176
4177 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4178
4179         README-release: make it easier to execute commands
4180         * top/README-release: break commands out on to separate lines.
4181
4182 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4183
4184         GNUmakefile: simplify detection of unconfigured trees
4185         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4186         whether the tree make is being run from is already configured or
4187         not.  Related simplifications.
4188
4189 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4190
4191         * gnulib-tool (func_usage): Document --help and --version.
4192
4193 2012-02-11  Jim Meyering  <meyering@redhat.com>
4194
4195         bootstrap: don't exit 0 upon gnulib-tool failure
4196         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4197         its exit status, not 0.
4198
4199 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4200
4201         README-release: various improvements
4202         * top/README-release: Give a command to push changes for the
4203         release.  Add "distcheck" to list of other pre-release checks.
4204         Fix instance of "make stable" which should be "make TYPE".
4205
4206 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4207
4208         maint: replace FSF snail-mail addresses with URLs
4209         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4210         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4211         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4212         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4213         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4214         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4215         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4216         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4217         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4218         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4219         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4220         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4221         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4222         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4223         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4224         * lib/glthread/thread.c, lib/glthread/thread.h:
4225         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4226         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4227         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4228         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4229         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4230         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4231         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4232         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4233         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4234         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4235         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4236         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4237         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4238         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4239         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4240         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4241         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4242         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4243         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4244         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4245         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4246         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4247         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4248         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4249         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4250         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4251         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4252         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4253         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4254         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4255         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4256         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4257         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4258         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4259         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4260         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4261         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4262         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4263         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4264         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4265         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4266         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4267         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4268         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4269         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4270         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4271         * tests/test-poll.c, tests/test-quotearg-simple.c:
4272         * tests/test-quotearg.c, tests/test-quotearg.h:
4273         * tests/test-round-ieee.c, tests/test-round1.c:
4274         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4275         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4276         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4277         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4278         * tests/test-strerror.c, tests/test-strerror_r.c:
4279         * tests/test-strsignal.c, tests/test-strverscmp.c:
4280         * tests/test-xmemdup0.c:
4281         Replace FSF snail mail addresses with URLs, as per GNU coding
4282         standards.  See glibc bug
4283         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4284
4285 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4286
4287         README-release: capitalize a word and split a line
4288         * top/README-release: Fix punctuation and spacing.
4289
4290 2012-02-08  Akim Demaille  <demaille@gostai.com>
4291
4292         fatal-signal: use C prototypes (with explicit void).
4293         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4294         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4295
4296 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4297
4298         regex: spelling fix
4299         * lib/regexec.c: spelling fix
4300
4301         regex: rely on stdint.h for SIZE_MAX
4302         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4303
4304 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4305
4306         regex: merge glibc changes
4307
4308         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4309         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4310         (init_word_char): Work even if bitset words are not exactly 32 or
4311         64 bits wide.  Don't assume there are no padding bits.
4312         * lib/regex.c [_LIBC]: Do not include <config.h>.
4313         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4314         and -Wtype-limits.
4315         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4316         needless disagreement with glibc.  All uses changed.  Define it to
4317         1 only if _GNU_SOURCE, to match glibc.
4318         (_REG_RM_NAME): Remove; no longer needed, since the names in
4319         question are now all protected by __USE_GNU.
4320         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4321         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4322         * lib/regex_internal.h (MIN): New macro.
4323
4324         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4325         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4326
4327         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4328         * lib/regex_internal.c (re_string_fetch_byte_case):
4329         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4330         is miscompiled, and it turns out it is because of an incorrect
4331         attribute on re_string_fetch_byte_case.  Unlike
4332         re_string_peek_byte_case, this one is really not pure, it modifies
4333         memory (increments pstr->cur_idx), and with the pure attribute GCC
4334         assumed it doesn't and it cached the presumed value of
4335         regexp->cur_idx in a variable across the
4336          for (;; ++i)
4337            {
4338              if (i >= BRACKET_NAME_BUF_SIZE)
4339                return REG_EBRACK;
4340              if (token->type == OP_OPEN_CHAR_CLASS)
4341                ch = re_string_fetch_byte_case (regexp);
4342              else
4343                ch = re_string_fetch_byte (regexp);
4344              if (re_string_eoi(regexp))
4345                return REG_EBRACK;
4346              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4347                break;
4348              elem->opr.name[i] = ch;
4349            }
4350
4351         2011-11-29 Andreas Schwab <schwab@redhat.com>
4352         * lib/regcomp.c (build_equiv_class):
4353         Fix access after end of search string in regex matcher.
4354
4355         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4356         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4357
4358         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4359         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4360
4361         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4362         * lib/regcomp.c (parse_branch, parse_sub_exp):
4363         More regex memory leak fixes and tests.
4364         (parse_sub_exp, parse_bracket_exp):
4365         Fix memory leak for some invalid regular expressions.
4366
4367         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4368         * lib/regex_internal.c, lib/regexec.c:
4369         Fix unnecessary overallocation due to incomplete character.  When
4370         incomplete characters are found at the end of a string the code
4371         ran amok and allocated lots of memory.  Stricter limits are now in
4372         place.
4373
4374         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4375         * lib/regex.h: Update documentation.
4376
4377         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4378         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4379
4380         2010-05-05 Andreas Schwab <schwab@redhat.com>
4381         * lib/regexec.c (find_collation_sequence_value):
4382         Fix lookup of collation sequence value during regexp matching.
4383
4384         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4385         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4386
4387         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4388         * lib/regex.h: Cleanup namespace.
4389
4390         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4391         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4392
4393         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4394         * lib/regex_internal.h: Prevent some declarations and definitions
4395         to be seen when used in tests.
4396
4397         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4398         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4399         __libc_lock_* macros if not _LIBC.
4400         (struct re_dfa_t): Add lock.
4401
4402 2012-02-07  Eric Blake  <eblake@redhat.com>
4403
4404         maint.mk: also prohibit lower-case @var@
4405         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4406         lower case, like @top_srcdir@.
4407
4408 2012-02-04  Eric Blake  <eblake@redhat.com>
4409
4410         canonicalize: avoid uninitialized memory use
4411         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4412         random '/' left in dest.
4413         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4414
4415 2012-02-04  Bruno Haible  <bruno@clisp.org>
4416
4417         isatty: Fix test failure of ptsname_r on native Windows.
4418         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4419         and don't set errno.
4420         (isatty): Test first whether fd is valid. Set errno when returning 0.
4421
4422 2012-02-04  Bruno Haible  <bruno@clisp.org>
4423
4424         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4425         * tests/test-spawn-pipe-main.c: Include progname.h.
4426         (main): Invoke set_program_name.
4427         * modules/spawn-pipe-tests (Depends-on): Add progname.
4428
4429         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4430         * tests/test-nonblocking-socket-main.c: Include progname.h.
4431         (main): Invoke set_program_name.
4432         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4433
4434         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4435         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4436         (main): Invoke set_program_name.
4437         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4438
4439 2012-02-04  Eric Blake  <eblake@redhat.com>
4440
4441         canonicalize-lgpl: fix // handling
4442         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4443
4444         canonicalize: fix // handling
4445         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4446         /// to //, since only // is special.
4447
4448 2012-02-04  Bruno Haible  <bruno@clisp.org>
4449
4450         ioctl: Fix test failure on native Windows.
4451         * lib/ioctl.c: Include msvc-nothrow.h.
4452         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4453
4454 2012-02-04  Bruno Haible  <bruno@clisp.org>
4455
4456         fsync: Avoid test failure on native Windows.
4457         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4458         read-only.
4459
4460 2012-02-04  Bruno Haible  <bruno@clisp.org>
4461
4462         sys_select: Avoid syntax error on OpenBSD 5.0.
4463         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4464         currently being included, just include the system's <sys/select.h>.
4465
4466 2012-02-04  Bruno Haible  <bruno@clisp.org>
4467
4468         sys_select: Avoid syntax error on OpenBSD 5.0.
4469         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4470         <sys/select.h>, not before.
4471         Reported by Jiri B <jirib@devio.us>.
4472
4473 2012-02-04  Bruno Haible  <bruno@clisp.org>
4474
4475         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4476         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4477         global variables.
4478         * tests/test-get-rusage-data.c (main): Likewise.
4479         Reported by Jim Meyering.
4480
4481 2012-02-04  Bruno Haible  <bruno@clisp.org>
4482
4483         stdioext: Fix last commit.
4484         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4485
4486 2012-02-03  Bruno Haible  <bruno@clisp.org>
4487
4488         stdioext: Add tentative support for Plan9.
4489         * lib/stdio-impl.h: Include <errno.h>.
4490         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4491         * lib/freadable.c (freadable): Likewise.
4492         * lib/fwritable.c (fwritable): Likewise.
4493         * lib/fbufmode.c (fbufmode): Likewise.
4494         * lib/freading.c (freading): Likewise.
4495         * lib/fwriting.c (fwriting): Likewise.
4496         * lib/freadptr.c (freadptr): Likewise.
4497         * lib/freadseek.c (freadptrinc): Likewise.
4498         * lib/freadahead.c (freadahead): Likewise.
4499         * lib/fpurge.c (fpurge): Likewise.
4500         * lib/fseeko.c (rpl_fseeko): Likewise.
4501         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4502         Reported by Jens Staal <staal1978@gmail.com>.
4503
4504 2012-02-02  Jim Meyering  <meyering@redhat.com>
4505
4506         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4507         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4508         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4509         not even to try to add the attribute.  Instead, add a pragma to suppress
4510         the suggestion/warning.
4511
4512 2012-01-31  Karl Berry  <karl@gnu.org>
4513
4514         setstate doc: typo.
4515         * doc/posix-functions/setstate.texi (setstate): { not (.
4516
4517 2012-01-31  Bruno Haible  <bruno@clisp.org>
4518
4519         popen: Make more robust on Windows.
4520         * lib/popen.c: On native Windows, use the _popen based code even if
4521         HAVE_POPEN is set.
4522         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4523         environment variable on native Windows.
4524
4525 2012-01-30  Bruno Haible  <bruno@clisp.org>
4526
4527         pclose: Fix typo.
4528         * lib/stdio.in.h (pclose): Fix typo in warning message.
4529
4530 2012-01-30  Bruno Haible  <bruno@clisp.org>
4531
4532         doc about getlogin_r, setstate.
4533         * doc/posix-functions/getlogin_r.texi: List the incompatible
4534         declaration problem under "not fixed by gnulib".
4535         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4536         problem on Solaris 11 and other platforms.
4537
4538 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4539             Bruno Haible  <bruno@clisp.org>
4540
4541         poll tests: Make test more robust.
4542         * tests/test-poll.c: Include macros.h.
4543         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4544         return value of various I/O operations.
4545         * modules/poll-tests (Files): Add tests/macros.h.
4546
4547 2012-01-30  Bruno Haible  <bruno@clisp.org>
4548
4549         sys_stat: Fix support for mingw64 and MSVC.
4550         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4551         header files already do it.
4552         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4553         stat itself.
4554         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4555
4556 2012-01-30  Bruno Haible  <bruno@clisp.org>
4557
4558         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4559         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4560         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4561
4562 2012-01-29  Bruno Haible  <bruno@clisp.org>
4563
4564         quotearg: Fix test failure on MacOS X 10.5.
4565         * tests/test-quotearg-simple.c: Include localcharset.h.
4566         (main): If the locale encoding is not ASCII, bypass the tests of
4567         locale_quoting_style and clocale_quoting_style.
4568         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4569
4570 2012-01-29  Jim Meyering  <meyering@redhat.com>
4571
4572         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4573         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4574         detect uses of canonicalize_file_name.
4575
4576 2012-01-28  Bruno Haible  <bruno@clisp.org>
4577
4578         test-framework-sh: Fix test failure with AIX 7.1 diff.
4579         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4580         in column 1, like 'diff -c' does.
4581         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4582         whether 'diff -u' is used. Instead, test whether the output contains
4583         some '@' character.
4584
4585 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4586
4587         strtoimax: eliminate need for stdint.h, inttypes.h checks
4588         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4589         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4590         the prerequisites for a recently-introduced strtoimax test.
4591         I guess this might cause strtoimax to be replaced when not
4592         strictly necessary on older hosts, but this shouldn't introduce
4593         any bugs and it should make Emacs 'configure' faster on typical
4594         modern hosts.  Problem discovered when importing the latest gnulib
4595         to an Emacs test version.
4596         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4597
4598 2012-01-28  Bruno Haible  <bruno@clisp.org>
4599
4600         sys_time: Override 'struct timeval' on some native Windows platforms.
4601         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4602         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4603         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4604         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4605         needs to be overridden.
4606         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4607         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4608         * tests/test-sys_select.c: Check that the tv_sec member has the same
4609         size as a 'time_t'.
4610         * tests/test-sys_time.c: Likewise.
4611         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4612         is set, set also REPLACE_GETTIMEOFDAY.
4613         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4614         convert the resulting 'struct timeval' before returning.
4615         * lib/select.c: Include <sys/time.h>.
4616         (select, timeval): Undefine at the right place.
4617         * modules/select (Depends-on): Add sys_time.
4618         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4619         some Windows platforms.
4620         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4621
4622 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4623
4624         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4625         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4626         an integer.
4627         * lib/fcntl.c (dupfd): Likewise.
4628         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4629
4630 2012-01-28  Bruno Haible  <bruno@clisp.org>
4631
4632         fcntl: Avoid compilation error on native Windows.
4633         * modules/fcntl (Depends-on): Add 'close'.
4634
4635 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4636
4637         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4638         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4639         pointer to an integer.
4640         * lib/poll.c (IsConsoleHandle): Likewise.
4641         * lib/isatty.c (IsConsoleHandle): Likewise.
4642
4643 2012-01-28  Jim Meyering  <meyering@redhat.com>
4644
4645         doc: clarify README-release
4646         * top/README-release: Clarify: you should make a point to have
4647         the latest stable versions of build tools in your PATH, and the
4648         reference to buildreq is solely for its list of tool names, not
4649         for its minimal-functional version numbers.
4650         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4651
4652         maint.mk: use more readable (yet functionally equivalent) quoting
4653         It is common to quote a single quote in a single quoted string like
4654         this:  '...'\''...'.  Unless you know the idiom, that looks like
4655         gibberish, so prefer to double-quote the string when possible.
4656         Then you can use a more readable, lone single quote: "...'..."
4657         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4658         "don't" is more readable than the equivalent 'don'\''t'.
4659         (sc_cast_of_x_alloc_return_value): Likewise.
4660         (sc_cast_of_alloca_return_value): Likewise.
4661         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4662         rather than '\'':'\''.
4663
4664 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4665
4666         stdalign: relax _Alignof and tighten _Alignas test
4667         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4668         as it was too strict: alignof must divide offsetof, but it need
4669         not equal offsetof.  Inspired by Joseph S. Myers's comment
4670         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4671         Conversely, tighten the _Alignas test a bit, as the resulting
4672         alignment must be exactly 8.
4673
4674 2012-01-27  Bruno Haible  <bruno@clisp.org>
4675
4676         stdalign: Document the last change.
4677         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4678
4679 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4680
4681         stdalign: check that alignof and offsetof are consistent
4682         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4683         Problem reported for gnulib by Richard W.M. Jones in
4684         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4685
4686 2012-01-27  Jim Meyering  <meyering@redhat.com>
4687
4688         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4689         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4690         convert a sequence with gaps to the minimal containing range.
4691         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4692         * tests/test-update-copyright.sh: Test for this.
4693         The FSF confirmed it is ok to do this, assuming there is at
4694         least one significant change per year in the affected range:
4695         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4696
4697 2012-01-26  Bruno Haible  <bruno@clisp.org>
4698
4699         pipe2: refine doc about thread-safety
4700         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4701         multithread-safety problem.
4702         * doc/glibc-functions/accept4.texi: Likewise.
4703
4704 2012-01-26  Bruno Haible  <bruno@clisp.org>
4705
4706         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4707         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4708         In the test program, include <fcntl.h>, for O_RDONLY.
4709
4710 2012-01-26  Eric Blake  <eblake@redhat.com>
4711
4712         pipe2: document lack of thread-safety in replacement
4713         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4714         issue in replacement.
4715         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4716         Based on a report by Eric Wong.
4717
4718 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4719             Bruno Haible  <bruno@clisp.org>
4720
4721         malloca: Avoid warnings on x86_64 mingw64.
4722         * lib/malloca.c: Include <stdint.h>.
4723         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4724         * modules/malloca (Depends-on): Add stdint.
4725         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4726
4727 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4728
4729         obstack: remove __STDC__ conditionals
4730         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4731         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4732         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4733         m4/include_next.m4 as the only gnulib-maintained places that still
4734         refer to __STDC__.
4735
4736 2012-01-24  Bruno Haible  <bruno@clisp.org>
4737
4738         havelib: Modern quoting.
4739         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4740         the recent change to the GNU coding standards.
4741
4742 2012-01-24  Bruno Haible  <bruno@clisp.org>
4743
4744         stdint: Improve support for Android.
4745         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4746         Reported by Simon Josefsson <simon@josefsson.org>.
4747
4748 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4749
4750         doc: omit trailing empty lines from INSTALL etc.
4751         * doc/Makefile (INSTALL): Omit trailing empty lines.
4752         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4753         omit trailing empty lines.  This simplifies the build procedure.
4754
4755 2012-01-23  Jim Meyering  <meyering@redhat.com>
4756
4757         tests: avoid spurious warnings about gl_sockets_startup
4758         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4759         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4760         reporting a "statement with no effect".
4761         * tests/test-accept.c (main): Mark as "(void)".
4762         * tests/test-accept4.c (main): Likewise.
4763         * tests/test-bind.c (main): Likewise.
4764         * tests/test-connect.c (main): Likewise.
4765         * tests/test-getpeername.c (main): Likewise.
4766         * tests/test-getsockname.c (main): Likewise.
4767         * tests/test-getsockopt.c (main): Likewise.
4768         * tests/test-listen.c (main): Likewise.
4769         * tests/test-recv.c (main): Likewise.
4770         * tests/test-recvfrom.c (main): Likewise.
4771         * tests/test-send.c (main): Likewise.
4772         * tests/test-sendto.c (main): Likewise.
4773         * tests/test-setsockopt.c (main): Likewise.
4774         * tests/test-shutdown.c (main): Likewise.
4775
4776 2012-01-21  Bruno Haible  <bruno@clisp.org>
4777
4778         locale-fr.m4: Fix for Android.
4779         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4780         failure of the test program on Bionic libc.
4781
4782 2012-01-21  Jim Meyering  <meyering@redhat.com>
4783
4784         bootstrap: fail when bootstrap_post_import_hook fails
4785         Otherwise, it's far too easy to miss diagnostics emitted
4786         between gnulib-tool's output and that of running configure.
4787         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4788
4789 2012-01-17  Jim Meyering  <meyering@redhat.com>
4790
4791         maint: enable sc_trailing_blank
4792         * build-aux/pmccabe.css: Remove trailing blanks.
4793         * doc/acl-cygwin.txt: Likewise.
4794         * doc/gnu-oids.texi: Likewise
4795         * cfg.mk: Enable sc_trailing_blank.
4796         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4797
4798 2012-01-17  Jim Meyering  <meyering@redhat.com>
4799
4800         maint: enable sc_prohibit_openat_without_use
4801         * cfg.mk: Enable sc_prohibit_openat_without_use.
4802         Exempt lib/selinux-at.c.
4803
4804 2012-01-17  Jim Meyering  <meyering@redhat.com>
4805
4806         maint: enable sc_prohibit_cloexec_without_use
4807         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4808         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4809
4810 2012-01-17  Jim Meyering  <meyering@redhat.com>
4811
4812         maint: enable sc_prohibit_intprops_without_use
4813         * cfg.mk: Enable sc_prohibit_intprops_without_use
4814         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4815
4816 2012-01-17  Jim Meyering  <meyering@redhat.com>
4817
4818         maint: enable sc_prohibit_hash_pjw_without_use
4819         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4820         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4821         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4822         following " (".
4823
4824 2012-01-17  Jim Meyering  <meyering@redhat.com>
4825
4826         maint: enable double-word-prohibiting rule
4827         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4828         Exempt three files.
4829
4830 2012-01-17  Jim Meyering  <meyering@redhat.com>
4831
4832         maint: remove empty lines at EOF, but excluding modules/*
4833         Apply syntax rules at home as well as abroad.  Most changes
4834         were induced by running this:
4835           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4836             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4837             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4838         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4839         Exempt modules/* and two binary files.
4840         Also exempt doc/INSTALL*, per request from Bruno Haible.
4841         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4842         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4843         * doc/Copyright/request-assign.future: Likewise.
4844         * doc/Copyright/request-disclaim.changes: Likewise.
4845         * doc/INSTALL: Likewise.
4846         * doc/INSTALL.ISO: Likewise.
4847         * doc/INSTALL.UTF-8: Likewise.
4848         * doc/acl-cygwin.txt: Likewise.
4849         * doc/acl-resources.txt: Likewise.
4850         * doc/fdl-1.2.texi: Likewise.
4851         * doc/fdl-1.3.texi: Likewise.
4852         * doc/fdl.texi: Likewise.
4853         * lib/argp-pin.c: Likewise.
4854         * lib/round.c: Likewise.
4855         * lib/unicase/u16-totitle.c: Likewise.
4856         * lib/unictype/block_test.c: Likewise.
4857         * lib/uninorm/canonical-decomposition.c: Likewise.
4858         * m4/README: Likewise.
4859         * m4/relocatable-lib.m4: Likewise.
4860         * tests/test-isnand-nolibm.c: Likewise.
4861         * tests/test-isnand.c: Likewise.
4862         * tests/uninorm/NormalizationTest.txt: Likewise.
4863
4864 2012-01-17  Jim Meyering  <meyering@redhat.com>
4865
4866         maint: add framework to run syntax-check rules against gnulib sources
4867         * cfg.mk: New file, to disable all currently-failing tests.
4868         We'll enable them one by one, as they are made to pass.
4869         * Makefile (sc_maint): New rule.
4870
4871 2012-01-21  Bruno Haible  <bruno@clisp.org>
4872
4873         stdint: Add support for Android.
4874         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4875         include the system's <stdint.h>.
4876         Reported by Simon Josefsson <simon@josefsson.org>.
4877
4878 2012-01-19  Jim Meyering  <meyering@redhat.com>
4879
4880         bootstrap: add bootstrap_post_import_hook
4881         Bison does still need something like the gnulib_mk_hook whose
4882         invocation I had to remove along with slurp in commit 767ccd40.
4883         Technically, we could get along without it, but doing so would
4884         have required living with a warning and a mandatory post-bootstrap
4885         automake rerun.
4886         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4887         (bootstrap_post_import_hook): New function.
4888         Invoke it after gnulib-tool --import and before autoreconf.
4889
4890 2012-01-18  Jim Meyering  <meyering@redhat.com>
4891
4892         gitlog-to-changelog: don't use "no_"-prefixed variable name
4893         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4894         to enable both --cluster and --no-cluster.  Change variable name,
4895         s/\$no_cluster/$cluster/, and reverse usage to match.
4896
4897         gitlog-to-changelog: use "||", not "or" in expressions
4898         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4899         expressions.
4900
4901 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4902
4903         gitlog-to-changelog: new option --no-cluster
4904         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4905         clustering of adjacent commit messages.
4906
4907 2012-01-17  Jim Meyering  <meyering@redhat.com>
4908
4909         maint: spell file systems with two words, not one
4910         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4911         two words, not one.
4912
4913 2012-01-16  Jim Meyering  <meyering@redhat.com>
4914
4915         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4916         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4917
4918 2012-01-16  Eric Blake  <eblake@redhat.com>
4919
4920         bootstrap: cater to autoconf 2.59
4921         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4922         is not available.
4923
4924         bootstrap: properly check for libtool
4925         * build-aux/bootstrap (libtoolize): Also run libtool when older
4926         usage is detected.
4927
4928 2012-01-15  Bruno Haible  <bruno@clisp.org>
4929
4930         Improve support for MSVC 9.
4931         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4932         clashes on MSVC.
4933         * lib/fcntl.in.h: Likewise.
4934         * lib/stdlib.in.h: Likewise.
4935         * lib/sys_stat.in.h: Likewise.
4936
4937 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4938
4939         gnupload: we hold the master copy of this script now
4940         For motivation and more information, see:
4941         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4942         * build-aux/gnupload: Make it clear in the heading comments that the
4943         master copy of this file is maintained by gnulib.  Since we are at
4944         it, bump its copyright year and ...
4945         ($scriptversion): ... the date in its version.
4946         ($usage): Patches and bug reports should be sent to the gnulib list,
4947         not the automake one.
4948         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4949         anymore.
4950
4951 2012-01-15  Bruno Haible  <bruno@clisp.org>
4952
4953         Fix module 'random'.
4954         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4955         initstate, setstate are declared.
4956
4957 2012-01-14  Bruno Haible  <bruno@clisp.org>
4958
4959         Tests for module 'random'.
4960         * modules/random-tests: New file.
4961         * tests/test-random.c: New file, based on tests/test-random_r.c.
4962
4963         New module 'random'.
4964         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4965         declarations.
4966         * lib/random.c: New file, based on glibc/stdlib/random.c.
4967         * m4/random.m4: New file.
4968         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4969         HAVE_RANDOM.
4970         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4971         * modules/random: New file.
4972         * config/srclist.txt: Add an entry for random.c.
4973         * doc/posix-functions/random.texi: Mention the 'random' module.
4974         * doc/posix-functions/initstate.texi: Likewise.
4975         * doc/posix-functions/setstate.texi: Likewise.
4976         * doc/posix-functions/srandom.texi: Likewise.
4977
4978 2012-01-12  Bruno Haible  <bruno@clisp.org>
4979
4980         random_r: Use common idioms.
4981         * lib/random_r.c: Include <stdlib.h> first.
4982
4983         random_r: Override incompatible API on AIX, OSF/1.
4984         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4985         Override the system function if REPLACE_RANDOM_R is 1.
4986         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4987         and OSF/1, set REPLACE_RANDOM_R.
4988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4989         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4990         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4991         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4992         * doc/glibc-functions/random_r.texi: Likewise.
4993         * doc/glibc-functions/setstate_r.texi: Likewise.
4994
4995         random_r: Support for MSVC 9.
4996         * lib/random_r.c: Include stdint.h, not inttypes.h.
4997
4998 2012-01-12  Eric Blake  <eblake@redhat.com>
4999
5000         inet_ntop: guard extra work by IF_LINT
5001         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5002         better code generation when not checking for warnings.
5003         Suggested by Paul Eggert and Jim Meyering.
5004
5005         strptime: fix regression on mingw
5006         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5007         Fix regression.  Reported by Bruno Haible.
5008
5009 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5010             Bruno Haible  <bruno@clisp.org>
5011
5012         copy-file: add error-code-returning variant.
5013         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5014         (qcopy_file_preserving): New declaration.
5015         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5016         copy_file_preserving. Change return type to 'int'. Don't emit an error
5017         message here.
5018         (copy_file_preserving): New function.
5019         * tests/test-copy-file.c: Include <stdlib.h>.
5020         (main): Test qcopy_file_preserving if the environment variable
5021         NO_STDERR_OUTPUT is set.
5022         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5023         with NO_STDERR_OUTPUT
5024         * tests/test-copy-file-2.sh: Likewise.
5025
5026 2012-01-10  Bruno Haible  <bruno@clisp.org>
5027
5028         copy-file: Use 'quote' module consistently.
5029         * lib/copy-file.c (copy_file_preserving): Use quote().
5030
5031         copy-file: Refactor.
5032         * lib/copy-file.c: Include quote.h.
5033         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5034         message here.
5035         * modules/copy-file (Depends-on): Add quote.
5036
5037         acl: Export qcopy_acl.
5038         * lib/acl.h (qcopy_acl): New declaration.
5039         * lib/copy-acl.c (qcopy_acl): Make non-static.
5040
5041         acl: Rename a local variable.
5042         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5043
5044         acl: Align return values of copy_acl and qcopy_acl.
5045         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5046         maybe < -1.
5047
5048 2012-01-11  Eric Blake  <eblake@redhat.com>
5049
5050         strptime: silence gcc warnings
5051         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5052         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5053         Reported by Daniel P. Berrange.
5054
5055         inet_ntop: silence gcc warning
5056         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5057         Reported by Daniel P. Berrange.
5058
5059 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5060
5061         getloadavg test: skip the test on GNU/Linux without /proc mounted
5062         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5063         file.  When /proc is not mounted, it always fails with ENOENT.
5064         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5065         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5066
5067 2012-01-10  Bruno Haible  <bruno@clisp.org>
5068
5069         regex: Avoid link error on MSVC 9.
5070         * modules/regex (Depends-on): Add wctype.
5071
5072 2012-01-10  Bruno Haible  <bruno@clisp.org>
5073
5074         doc: Mention --with-tests option.
5075         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5076         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5077         --with-tests.
5078         Reported by Reuben Thomas.
5079
5080 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5081
5082         users.txt: order package names lexicographically.
5083         * users.txt: Order package names lexicographically.
5084
5085 2012-01-10  Jim Meyering  <meyering@redhat.com>
5086
5087         maint.mk: fix description in comment
5088         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5089
5090         ignore-value: remove deprecated ignore_ptr function
5091         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5092         * NEWS: Note this.
5093
5094 2012-01-09  Jim Meyering  <meyering@redhat.com>
5095
5096         test-init.sh: avoid a subshell
5097         * tests/test-init.sh: Remove protective subshell.
5098         Suggested by Bernhard Voelker.  While a subshell is normally
5099         required to protect against older shells (Solaris, FreeBSD) that
5100         warn about a missing program before performing redirection, the
5101         shell-selection tests performed by init.sh probably exclude any
5102         offending shell.
5103
5104 2012-01-08  Bruno Haible  <bruno@clisp.org>
5105
5106         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5107         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5108         variable.
5109
5110 2012-01-08  Bruno Haible  <bruno@clisp.org>
5111
5112         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5113         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5114         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5115         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5116         macro.
5117         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5118         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5119         * lib/spawn_faction_addopen.c: Add workaround implementation if
5120         HAVE_WORKING_POSIX_SPAWN.
5121         * modules/spawn (Makefile): Substitute
5122         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5123         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5124         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5125         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5126         (Depends-on): Update conditions.
5127         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5128         the Solaris 11 bug.
5129
5130 2012-01-08  Bruno Haible  <bruno@clisp.org>
5131
5132         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5133         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5134         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5135         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5136         macro.
5137         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5138         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5139         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5140         HAVE_WORKING_POSIX_SPAWN.
5141         * modules/spawn (Makefile): Substitute
5142         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5143         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5144         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5145         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5146         (Depends-on): Update conditions.
5147         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5148         the Solaris 11 bug.
5149
5150 2012-01-08  Bruno Haible  <bruno@clisp.org>
5151
5152         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5153         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5154         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5155         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5156         HAVE_WORKING_POSIX_SPAWN.
5157         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5158         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5159         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5160         * lib/spawn_faction_addclose.c: Add workaround implementation if
5161         HAVE_WORKING_POSIX_SPAWN.
5162         * modules/spawn (Makefile): Substitute
5163         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5164         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5165         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5166         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5167         (Depends-on): Update conditions.
5168         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5169         the Solaris 11 bug.
5170
5171 2012-01-08  Bruno Haible  <bruno@clisp.org>
5172
5173         doc: Update for Solaris 11 2011-11.
5174         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5175         * m4/printf.m4: Update comments.
5176
5177 2012-01-08  Bruno Haible  <bruno@clisp.org>
5178
5179         mktime: Avoid compilation error on Solaris 11.
5180         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5181
5182 2012-01-08  Bruno Haible  <bruno@clisp.org>
5183
5184         doc: Small fix.
5185         * doc/posix-headers/nl_types.texi: Correct platforms list.
5186
5187 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5188
5189         Add lgpl-3.0 module.
5190         * MODULES.html.sh (Support for building documentation): Add
5191         lgpl-3.0.
5192         * modules/lgpl-3.0: New file.
5193
5194 2012-01-08  Jim Meyering  <meyering@redhat.com>
5195
5196         select.c: indent with spaces, not TABs
5197         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5198
5199 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5200
5201         quotearg: do not use grave accent for left quote
5202         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5203         locale_quoting_style.
5204         (quotearg_buffer_restyled): Fix example.
5205         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5206
5207 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5208
5209         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5210         Most programs do not have translation catalogs for English and much
5211         less separate catalogs for British and American English.  Drop the
5212         suggestion to translators about these two, and provide it
5213         automatically for Unicode locales.  Like most programs, even those
5214         using American English, we use single quotation marks.  This conflicts
5215         with the American typographic convention, but works better when you
5216         cite the entire error message within double quotes.  It also tries not
5217         to clash with established practice and with what non-gnulib programs
5218         will usually do.
5219         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5220         using an UTF-8 or GB-18030 locale.  The list of other locales with
5221         quotes was provided by Bruno Haible.
5222         (quotearg_buffer_restyled): Adjust instructions to translators.
5223         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5224         text, since this would be wrong when using Unicode.
5225         * modules/quotearg: Depend on c-strcaseeq.
5226
5227 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5228
5229         quotearg: fix Wikipedia link
5230         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5231
5232 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5233
5234         Fix for mingw with MSVC9.
5235         * m4/ld-version-script.m4: Check that compiler rejects version
5236         scripts with syntax errors.  Reported by Bruno Haible
5237         <bruno@clisp.org>.
5238
5239 2012-01-06  Bruno Haible  <bruno@clisp.org>
5240
5241         Talk about "native Windows API", not "Woe32".
5242         * lib/accept4.c: Update comments to mention native Windows.
5243         * lib/execute.c: Likewise.
5244         * lib/fatal-signal.c: Likewise.
5245         * lib/localcharset.c: Likewise.
5246         * lib/nanosleep.c: Likewise.
5247         * lib/nl_langinfo.c: Likewise.
5248         * lib/pclose.c: Likewise.
5249         * lib/pipe-filter-gi.c: Likewise.
5250         * lib/pipe-filter-ii.c: Likewise.
5251         * lib/pipe.c: Likewise.
5252         * lib/pipe2.c: Likewise.
5253         * lib/popen.c: Likewise.
5254         * lib/progreloc.c: Likewise.
5255         * lib/relocatable.c: Likewise.
5256         * lib/sigaction.c: Likewise.
5257         * lib/sigprocmask.c: Likewise.
5258         * lib/spawn-pipe.h: Likewise.
5259         * lib/spawn-pipe.c: Likewise.
5260         * lib/spawni.c: Likewise.
5261         * lib/stat-time.h: Likewise.
5262         * lib/w32spawn.h: Likewise.
5263         * tests/test-isatty.c: Likewise.
5264         * lib/config.charset: More comments.
5265         * doc/gnulib-intro.texi: Mention native Windows.
5266         * doc/posix-functions/_Exit_C99.texi: Likewise.
5267         * doc/posix-headers/fcntl.texi: Likewise.
5268
5269 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5270
5271         argp: Avoid crash if translator uses % characters in a translation.
5272         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5273         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5274
5275 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5276
5277         doc: C11 and C++11 are now official
5278         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5279         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5280         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5281         * modules/stdalign:
5282         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5283
5284 2012-01-06  Bruno Haible  <bruno@clisp.org>
5285
5286         uc-is-grapheme-break tests: Tweak.
5287         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5288         message.
5289
5290 2012-01-06  Bruno Haible  <bruno@clisp.org>
5291
5292         test-init.sh: correct the test for diff -u
5293         * tests/test-init.sh: Also redirect stdout to /dev/null.
5294
5295 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5296
5297         Use ', not `, for quoting output.
5298         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5299         (print_changelog_deltas, get_tool_versions, main program):
5300         * build-aux/git-version-gen:
5301         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5302         * build-aux/move-if-change (help):
5303         * build-aux/useless-if-before-free (usage, main program):
5304         * check-module (parse_module_file, usage)
5305         (find_included_lib_files, check_module):
5306         * lib/argmatch.c (main) [TEST]:
5307         * lib/argp-help.c (_help):
5308         * lib/getopt1.c (main) [TEST]:
5309         * lib/git-merge-changelog.c (usage):
5310         * lib/xstrtol-error.c (xstrtol_error):
5311         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5312         * m4/argz.m4 (gl_FUNC_ARGZ):
5313         * m4/bison.m4 (gl_BISON):
5314         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5315         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5316         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5317         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5318         * m4/gc-random.m4 (gl_GC_RANDOM):
5319         * m4/intl.m4 (gt_CHECK_DECL):
5320         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5321         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5322         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5323         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5324         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5325         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5326         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5327         * tests/test-dirname.c (main):
5328         * tests/test-getpass.c (main):
5329         * tests/test-iconvme.c (main):
5330         * tests/test-parse-datetime.c (LOG):
5331         * tests/test-xstrtoimax.sh:
5332         * tests/test-xstrtol.sh:
5333         * tests/test-xstrtoll.sh:
5334         * tests/test-xstrtoumax.sh:
5335         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5336         * top/GNUmakefile (abort-due-to-no-makefile):
5337         Quote 'like this', not `like this', as per the recent change to
5338         the GNU coding standards.
5339
5340 2012-01-05  Bruno Haible  <bruno@clisp.org>
5341
5342         strtoimax: Don't force a replacement on systems where intmax_t is int.
5343         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5344         'intmax_t' is not larger than 'int'.
5345         Reported by Pádraig Brady <P@draigBrady.com>.
5346
5347 2012-01-05  Bruno Haible  <bruno@clisp.org>
5348
5349         doc: Mention NetBSD bugs.
5350         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5351         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5352
5353 2012-01-05  Bruno Haible  <bruno@clisp.org>
5354
5355         strtoumax tests: Enhance tests.
5356         * tests/test-strtoumax.c (main): Add tests for large values.
5357
5358 2012-01-05  Bruno Haible  <bruno@clisp.org>
5359
5360         strtoimax: Work around AIX 5.1 bug.
5361         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5362         definition.
5363         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5364         Set HAVE_STRTOIMAX.
5365         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5366         REPLACE_STRTOIMAX.
5367         * modules/inttypes-incomplete (Makefile.am): Substitute
5368         REPLACE_STRTOIMAX.
5369         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5370         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5371         (Depends-on): Update conditions.
5372         * tests/test-strtoimax.c (main): Add tests for large values.
5373         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5374
5375 2012-01-05  Bruno Haible  <bruno@clisp.org>
5376
5377         inttypes: Modernize.
5378         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5379         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5380         (Makefile.am): Update inttypes.h rule.
5381
5382 2012-01-05  Jim Meyering  <meyering@redhat.com>
5383
5384         init.sh: don't waste a subshell just to redirect stderr
5385         * tests/init.sh: In testing for diff -u and diff -c, use a
5386         stderr-redirecting exec inside `...` rather than a subshell.
5387
5388         test-init.sh: avoid failure on HP-UX 11.00
5389         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5390         resolves to diff -c or cmp.  Reported by Bruno Haible.
5391
5392 2012-01-05  Bruno Haible  <bruno@clisp.org>
5393
5394         Tests for module 'strtoull'.
5395         * modules/strtoull-tests: New file.
5396         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5397
5398 2012-01-05  Bruno Haible  <bruno@clisp.org>
5399
5400         Tests for module 'strtoll'.
5401         * modules/strtoll-tests: New file.
5402         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5403
5404 2012-01-05  Bruno Haible  <bruno@clisp.org>
5405
5406         Tests for module 'strtoul'.
5407         * modules/strtoul-tests: New file.
5408         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5409
5410 2012-01-05  Bruno Haible  <bruno@clisp.org>
5411
5412         Tests for module 'strtol'.
5413         * modules/strtol-tests: New file.
5414         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5415
5416 2012-01-04  Jim Meyering  <meyering@redhat.com>
5417
5418         test-init.sh: accommodate Solaris 5.10's different diff -u output
5419         * tests/test-init.sh: Also exempt @@ lines from the comparison
5420         of diff output, since Solaris 5.10 and GNU diff formats differ.
5421         Reported by Stefano Lattarini.
5422
5423 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5424
5425         test-posixtm: don't assume signed integer wraparound
5426         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5427         after signed integer overflow.  Inspired by (though it may not
5428         fix) Bruno Haible's bug report in
5429         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5430
5431         Spell out "Windows 9x" and "Windows XP".
5432         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5433         "Windows 9x" and "WinXP" with "Windows XP".
5434
5435 2012-01-04  Jim Meyering  <meyering@redhat.com>
5436
5437         test-vc-list-files-cvs.sh: remove obsolete comment
5438         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5439         double exit.  Now that's all encapsulated via skip_ and Exit.
5440
5441 2012-01-04  Bruno Haible  <bruno@clisp.org>
5442
5443         Talk about "native Windows API", not "Win32".
5444         * lib/classpath.c: Update comments to mention native Windows.
5445         * lib/csharpexec.c: Likewise.
5446         * lib/dup2.c: Likewise.
5447         * lib/error.c: Likewise.
5448         * lib/fcntl.c: Likewise.
5449         * lib/filename.h: Likewise.
5450         * lib/findprog.c: Likewise.
5451         * lib/get-rusage-as.c: Likewise.
5452         * lib/get-rusage-data.c: Likewise.
5453         * lib/getpagesize.c: Likewise.
5454         * lib/javaexec.c: Likewise.
5455         * lib/msvc-inval.c: Likewise.
5456         * lib/msvc-nothrow.c: Likewise.
5457         * lib/nanosleep.c: Likewise.
5458         * lib/nonblocking.c: Likewise.
5459         * lib/printf-parse.c: Likewise.
5460         * lib/setlocale.c: Likewise.
5461         * lib/sigaction.c: Likewise.
5462         * lib/strerror_r.c: Likewise.
5463         * lib/tmpdir.c: Likewise.
5464         * lib/vasnprintf.c: Likewise.
5465         * lib/w32spawn.h: Likewise.
5466         * lib/waitpid.c: Likewise.
5467         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5468         * m4/locale-ar.m4: Likewise.
5469         * m4/locale-fr.m4: Likewise.
5470         * m4/locale-ja.m4: Likewise.
5471         * m4/locale-tr.m4: Likewise.
5472         * m4/locale-zh.m4: Likewise.
5473         * m4/printf.m4: Likewise.
5474         * tests/test-cloexec.c: Likewise.
5475         * tests/test-copy-acl.sh: Likewise.
5476         * tests/test-copy-file.sh: Likewise.
5477         * tests/test-file-has-acl.sh: Likewise.
5478         * tests/test-set-mode-acl.sh: Likewise.
5479         * tests/test-dup-safer.c: Likewise.
5480         * tests/test-dup2.c: Likewise.
5481         * tests/test-dup3.c: Likewise.
5482         * tests/test-fcntl.c: Likewise.
5483         * tests/test-nonblocking-pipe.h: Likewise.
5484         * tests/test-nonblocking-socket.h: Likewise.
5485         * tests/test-pipe.c: Likewise.
5486         * tests/test-pipe2.c: Likewise.
5487         * tests/test-spawn-pipe-child.c: Likewise.
5488         * doc/acl-resources.txt: Likewise.
5489         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5490         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5491         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5492         * lib/localcharset.c: Update comments to mention native Windows.
5493         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5494         * lib/localename.c: Likewise.
5495         * lib/progreloc.c: Likewise.
5496         * lib/relocatable.c: Likewise.
5497         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5498         (windows_compute_revents): Renamed from win32_compute_revents.
5499         (windows_compute_revents_socket): Renamed from
5500         win32_compute_revents_socket.
5501         * lib/select.c: Update comments to mention native Windows.
5502         (windows_poll_handle): Renamed from win32_poll_handle.
5503         * m4/threadlib.m4: Update comments to mention native Windows.
5504         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5505         --enable-threads=windows instead of --enable-threads=win32. Set
5506         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5507         * lib/glthread/lock.h: Update comments to mention native Windows.
5508         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5509         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5510         USE_WIN32_THREADS.
5511         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5512         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5513         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5514         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5515         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5516         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5517         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5518         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5519         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5520         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5521         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5522         * tests/test-tls.c: Likewise.
5523         Rationale:
5524         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5525         on both 32-bit and 64-bit Windows systems.
5526         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5527         line of distinction is between "native Windows" on one side and Unix/
5528         POSIX systems on the other side. More details in
5529         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5530         Suggested by Paul Eggert.
5531
5532 2012-01-03  Bruno Haible  <bruno@clisp.org>
5533
5534         isatty: Support for MSVC 9.
5535         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5536         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5537         (_isatty_nothrow): New function.
5538         (isatty): Use it instead of _isatty.
5539         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5540         * lib/poll.c (IsConsoleHandle): Likewise.
5541         * lib/select.c (IsConsoleHandle): Likewise.
5542         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5543         (gl_PREREQ_ISATTY): New macro.
5544         * modules/isatty (Depends-on): Add msvc-inval.
5545         (configure.ac): Invoke gl_PREREQ_ISATTY.
5546
5547 2012-01-03  Jim Meyering  <meyering@redhat.com>
5548
5549         maint.mk: remove temporary transition aid from over 1.5 years ago
5550         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5551         purpose was to aid in the transition (avoiding silent malfunction)
5552         from that old name to the new _sc_search_regexp.  This shim was
5553         added by commit 219c504b.
5554
5555         init.sh: do not try to accommodate compare arguments starting with "-"
5556         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5557         compare arguments that start with "-".  Besides, we do not worry
5558         about this when invoking diff or cmp; why start now with sed?
5559         Using "--" to separate options from argument would trigger sed
5560         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5561         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5562
5563 2012-01-02  Bruno Haible  <bruno@clisp.org>
5564
5565         Enhance tests for module 'isatty'.
5566         * modules/isatty-tests (Depends-on): Add pipe-posix.
5567         * tests/test-isatty.c: Include <fcntl.h>.
5568         (DEV_NULL): New macro.
5569         (main): Test the resut of isatty() also on regular files, pipes, and
5570         /dev/null.
5571
5572         New module 'isatty'.
5573         * lib/unistd.in.h (isatty): New declaration.
5574         * lib/isatty.c: New file, based on an idea of
5575         Bastien Roucariès <roucaries.bastien@gmail.com>.
5576         * m4/isatty.m4: New file.
5577         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5578         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5579         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5580         REPLACE_ISATTY.
5581         * modules/isatty: New file.
5582         * doc/posix-functions/isatty.texi: Mention the new module.
5583         Suggested by Paolo Bonzini.
5584
5585 2012-01-02  Bruno Haible  <bruno@clisp.org>
5586
5587         canonicalize: Tweak 2011-12-29 commit.
5588         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5589         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5590
5591 2012-01-02  Jim Meyering  <meyering@redhat.com>
5592
5593         gitlog-to-changelog: describe input syntax in --help output
5594         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5595
5596         gitlog-to-changelog: fix typo in --help: show backslash before email @
5597         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5598         in sources, but not in actual output.
5599
5600 2011-12-30  Jim Meyering  <meyering@redhat.com>
5601
5602         gitlog-to-changelog: don't malfunction when name contains %-directive
5603         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5604         in a name string cause trouble.  E.g., with a user name of "%s",
5605         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5606
5607 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5608
5609         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5610         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5611         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5612         the "  (tiny change)" notation that is appended to the standard
5613         ChangeLog "date  name  email" header line.
5614
5615 2012-01-01  Jim Meyering  <meyering@redhat.com>
5616
5617         test-framework-sh: init.sh: fix "make dist" failure
5618         When using gnulib-tool's --with-tests option and any module that
5619         depends on test-framework-sh, "make dist" would fail due to the
5620         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5621         in the gltests directory, and not in the gllib/ directory.
5622         One way to work around that is to move the EXTRA_DIST += init.sh
5623         from the primary module to the -tests one:
5624         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5625         * modules/test-framework-sh (Makefile.am): ...not here.
5626         Reported by Tom G. Christensen in
5627         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5628
5629         version-etc: update copyright year reported by --version
5630         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5631
5632 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5633
5634         canonicalize: only stat() if required
5635         * lib/canonicalize.c (canonicalize_filename_mode):
5636         Avoid calling l?stat() when both CAN_MISSING,
5637         and CAN_NOLINKS are set, as we neither need
5638         to resolve symlinks or test component existence.
5639
5640 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5641
5642         doc: cover st_ino issues once; add OpenVMS etc.
5643         * doc/posix-functions/stat.texi (stat):
5644         * doc/posix-functions/lstat.texi (lstat):
5645         * doc/posix-functions/fstatat.texi (fstatat):
5646         * doc/posix-functions/fstat.texi (fstat):
5647         Move general 'struct stat' stuff to sys_stat.texi,
5648         leaving behind a pointer.
5649         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5650         Merge duplicate info about 'struct stat' problems into here.
5651         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5652         and suggest partial workarounds.
5653
5654         same-inode: port to OpenVMS
5655         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5656         three st_ino values.
5657
5658 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5659
5660         canonicalize: fix references to stat() and lstat()
5661         * lib/canonicalize.c (canonicalize_filename_mode):
5662         Ensure references always resolve to a replacement
5663         function if required (even via a macro).
5664
5665 2011-12-30  Jim Meyering  <meyering@redhat.com>
5666
5667         gitlog-to-changelog: remove a little duplication
5668         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5669         rather than twice.
5670
5671 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5672
5673         canonicalize: add support for not resolving symlinks
5674         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5675         indicate we don't want to follow symlinks.  Also
5676         provide CAN_MODE_MASK to aid setting these existing
5677         mutually exclusive values.
5678         * lib/canonicalize.c (canonicalize_filename_mode):
5679         Extract the flags from can_mode parameter, which
5680         are currently just used to select between stat()
5681         and lstat().  Also ensure that mutually exclusive
5682         values are flagged immediately as invalid.
5683         * tests/test-canonicalize.c: Verify symlinks are
5684         not followed, and that invalid flag combinations
5685         are diagnosed.
5686
5687 2011-12-25  Jim Meyering  <meyering@redhat.com>
5688
5689         gitlog-to-changelog: do not clump multi-paragraph entries
5690         Identical header lines (date,name,email+coauthors) are suppressed,
5691         thus putting all entries with those same characteristics under
5692         a single header.  However, when a log entry consists of two or
5693         more paragraphs, it may not be clear where it starts and ends.
5694         This change makes it so that such an entry is always separated
5695         from others by a header line, even when that header would
5696         otherwise be suppressed.
5697         * build-aux/gitlog-to-changelog: Implement the above.
5698         Inspired by a related request from Stefano Lattarini in
5699         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5700
5701 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5702
5703         announce-gen: fix `cmd' typo in diagnostic
5704         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5705         diagnostic: a missing '$' meant that the command was not output.
5706
5707 2011-12-23  Jim Meyering  <meyering@redhat.com>
5708
5709         test-framework-sh: distribute init.sh
5710         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5711         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5712         fail due to the lack of init.sh.
5713
5714         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5715         * modules/atexit-tests: Rather than listing tests/init.sh,
5716         now that there's a module for it, simply depend on that new module.
5717         * modules/closein-tests: Likewise.
5718         * modules/exclude-tests: Likewise.
5719         * modules/getcwd-tests: Likewise.
5720         * modules/perror-tests: Likewise.
5721         * modules/pread-tests: Likewise.
5722         * modules/pwrite-tests: Likewise.
5723         * modules/vc-list-files-tests: Likewise.
5724         * modules/verify-tests: Likewise.
5725         * modules/xalloc-die-tests: Likewise.
5726         * modules/xstrtoimax-tests: Likewise.
5727         * modules/xstrtol-tests: Likewise.
5728         * modules/xstrtoll-tests: Likewise.
5729         * modules/xstrtoumax-tests: Likewise.
5730         * modules/yesno-tests: Likewise.
5731
5732 2011-12-22  Jim Meyering  <meyering@redhat.com>
5733
5734         test-framework-sh: add minimal tests of init.sh's compare function
5735         * modules/test-framework-sh-tests: New file.
5736         * tests/test-init.sh: New file.
5737
5738         test-framework-sh: new module
5739         * modules/test-framework-sh: New file.
5740         * MODULES.html.sh (Support for maintaining and releasing projects):
5741         List it.
5742
5743         init.sh: do not emit simulated diff output to stderr
5744         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5745
5746 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5747
5748         .gitignore: ignore gnulib.dvi and regex.info
5749         * doc/.gitignore:add gnulib.dvi and regex.info
5750
5751 2011-12-22  Jim Meyering  <meyering@redhat.com>
5752
5753         init.sh: correct previous change
5754         * tests/init.sh (compare): My previous change was wrong.
5755         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5756
5757         init.sh: avoid unwarranted test failure when using "set -e"
5758         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5759         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5760         a use like "compare exp out" would get evoke an unconditional failure.
5761
5762 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5763
5764         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5765         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5766         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5767         autoreconf that did not.
5768         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5769         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5770
5771 2011-12-17  Jim Meyering  <meyering@redhat.com>
5772
5773         bootstrap: remove some now-unneeded code
5774         This script arose back when gnulib-tool was young.
5775         Since then, it has seen improvements that render much of this
5776         script unnecessary.  In particular, it can now make symlinks
5777         to the files it uses.  Also, I no longer see as much value in
5778         marking files as read-only via comments.
5779         If you relied on the symlink-creation feature of the preceding
5780         version of this script, you can get most of that functionality
5781         by adding the --symlink option to the definition of
5782         gnulib_tool_option_extras in your bootstrap.conf file.
5783         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5784         Run autopoint and libtoolize *before* gnulib-tool.
5785         After it, run an abbreviated autoreconf, rather than a loop around
5786         all tools.
5787         (slirp, bt_mark_as_generated): Remove functions.
5788
5789 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5790
5791         ftoastr: fix typo
5792         * lib/ftoastr.h: Fix misspelling in comment.
5793
5794 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5795
5796         * top/README-release: fix punctuation.
5797
5798 2011-12-17  Jim Meyering  <meyering@redhat.com>
5799
5800         bootstrap: correct the recent buildreq change
5801         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5802         had no effect.
5803         * build-aux/bootstrap (buildreq): Bracket each search term with
5804         "*...*", so that the shell "case" statement works as intended.
5805         Add comments.
5806
5807 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5808
5809         build: let bootstrap resort to wget when downloading .po files
5810         * build-aux/bootstrap (download_po_files): Fallback to wget when
5811         downloading the .po files via rsync fails.  This is necessary to
5812         bootstrap from behind a strict firewall.
5813
5814 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5815
5816         stdint: don't assume C++11 when compiling with g++
5817         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5819         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5820         work also in C++ before C++11, as that improperly inhibits
5821         generating a substitute stdint.h for that case.
5822
5823 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5824
5825         alloca: protect comment from gnulib-tool
5826         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5827         that gnulib-tool doesn't think it's a license, and munge it to
5828         say "GCC version 3".
5829
5830 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5831
5832         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5833         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5834         $(abs_top_builddir) instead of $(top_builddir).
5835
5836 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5837
5838         strftime-tests: also test nanoseconds
5839         * tests/test-strftime.c (T): Add a test of %N.
5840
5841 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5842
5843         inttypes, stdint: add C++11 support
5844         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5845         when including inttypes.h and stdint.h.  Support this change to
5846         the standard.
5847         * doc/posix-headers/inttypes.texi (inttypes.h):
5848         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5849         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5850         Define if not defined already, for the benefit of pre-C++11 hosts.
5851         Define the standard format macros (e.g., PRId8) always.
5852         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5853         Likewise, if __cpluspus.  Define the standard constant and limit
5854         macros (e.g., INT8_C, INT8_MAX) always.
5855         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5856         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5857         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5858         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5859         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5860         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5861         Likewise.
5862
5863 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5864
5865         nonblocking tests: Fix test failure on Linux/PPC.
5866         Suggested by Prerna Saxena in
5867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5868         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5869         Set to 1100000.
5870
5871 2011-12-12  Jim Meyering  <meyering@redhat.com>
5872
5873         argmatch: don't hard-code `' when listing valid option arguments
5874         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5875         use the quote function to add quotes.  Use fputs rather than
5876         fprintf for the format string with no format directive.
5877
5878 2011-12-07  Eric Blake  <eblake@redhat.com>
5879
5880         bootstrap: detect tools required by gnulib-tool
5881         * build-aux/bootstrap (buildreq): Provide minimum implicit
5882         dependencies.
5883         * DEPENDENCIES: Mention patch as a prereq.
5884
5885 2011-12-04  Bruno Haible  <bruno@clisp.org>
5886
5887         sethostname: Port to Windows platforms.
5888         * lib/sethostname.c: Provide an alternate implementation for Windows
5889         platforms.
5890         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5891         (main): Skip the test if sethostname() fails with EPERM. On Windows
5892         platforms, don't check the result of gethostname().
5893
5894 2011-12-04  Bruno Haible  <bruno@clisp.org>
5895             Jim Meyering  <meyering@redhat.com>
5896
5897         tests: Avoid spurious error message on platforms without mktemp program.
5898         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5899
5900 2011-12-04  Bruno Haible  <bruno@clisp.org>
5901
5902         sethostname: Fix documentation.
5903         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5904         "not fixed" section.
5905
5906 2011-12-03  Bruno Haible  <bruno@clisp.org>
5907
5908         gnulib-tool: Verify that the License field is present and non-empty.
5909         * gnulib-tool (func_get_license_raw): New function, extracted from
5910         func_get_license.
5911         (func_get_license): Use it. Warn if the module is not a test module and
5912         has no license.
5913         Suggested by Jim Meyering.
5914
5915 2011-12-03  Bruno Haible  <bruno@clisp.org>
5916
5917         sethostname tests: Fix link error on mingw.
5918         * tests/test-sethostname1.c: New file, extracted from
5919         tests/test-sethostname.c.
5920         * tests/test-sethostname2.c: New file, extracted from
5921         tests/test-sethostname.c.
5922         * tests/test-sethostname.c: Remove file.
5923         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5924         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5925         (Depends-on): Add gethostname.
5926         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5927         Link the latter with $(GETHOSTNAME_LIB).
5928
5929         sethostname tests: Fix compilation error on mingw.
5930         * tests/test-sethostname.c: Don't include <sys/types.h>.
5931         (geteuid): Use a dummy value without uid_t.
5932         * modules/sethostname-tests (Depends-on): Remove sys_types.
5933
5934         sethostname tests: Avoid a gcc warning.
5935         * tests/test-sethostname.c (main): Remove an unused variable.
5936
5937         Tweak last commit.
5938         * modules/sethostname-tests (Files): Sort by decreasing importance.
5939         (configure.ac): Check for geteuid.
5940         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5941         the test when there's nothing to test. Drop an unnecessary cast.
5942         Improve an error message. Verify that the final sethostname() call
5943         succeeds.
5944
5945 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5946
5947         Add a test suite for the sethostname module.
5948         * modules/sethostname-tests: New file.  A test program
5949         for the sethostname module.
5950         * tests/test-sethostname.c: Likewise.
5951
5952 2011-12-03  Bruno Haible  <bruno@clisp.org>
5953
5954         Tweak last commit.
5955         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5956         Fix preprocessor directives indentation. Fix typos.
5957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5958         * modules/unistd (Makefile): Likewise.
5959
5960 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5961
5962         Integrate the sethostname module into unistd.
5963         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5964         into the unistd.h header.
5965         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5966         preprocessor directives.
5967         * modules/unistd: Setup the Makefile substitutions of the
5968         SETHOSTNAME preprocessor directives.
5969
5970 2011-12-03  Bruno Haible  <bruno@clisp.org>
5971
5972         Tweak last commit.
5973         * lib/sethostname.c: Don't include <string.h>.
5974         (sethostname): No need to copy the argument string to the stack. Don't
5975         call clearerr. Preserve errno when fprintf failed.
5976         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5977         Don't invoke AC_REPLACE_FUNCS.
5978         * modules/sethostname (Link): Remove empty section.
5979         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5980         failure problem.
5981
5982 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5983
5984         New module 'sethostname'.
5985         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5986         for systems that lack it.
5987         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5988         sethostname declaration and function.
5989         * modules/sethostname: New file.  Define the sethostname module.
5990
5991 2011-12-03  Bruno Haible  <bruno@clisp.org>
5992
5993         Tweak last commit.
5994         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5995
5996 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5997
5998         Split the HOST_NAME_MAX detection into a separate m4 macro.
5999         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6000         macro so it can be used by the pending sethostname module.
6001
6002 2011-12-03  Bruno Haible  <bruno@clisp.org>
6003
6004         Fix module descriptions syntax.
6005         * modules/argv-iter (License): Fix syntax.
6006         * modules/di-set (License): Likewise.
6007         * modules/ino-map (License): Likewise.
6008         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6009
6010 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6011
6012         stdalign: port to Clang 3.0
6013         Problem reported by Simon Josefsson in
6014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6015         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6016         which has <stdalign.h> but which does not define alignof.
6017         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6018
6019 2011-12-01  Eric Blake  <eblake@redhat.com>
6020
6021         mktempd: silence dd usage
6022         * build-aux/mktempd (rand_bytes): Silence dd.
6023
6024 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6025
6026         manywarnings: Don't mention gcc version in docstring.
6027         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6028         Jim Meyering <meyering@redhat.com>.
6029
6030 2011-11-30  Jim Meyering  <meyering@redhat.com>
6031
6032         hash: mark a few floating point constants with "f" suffix
6033         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6034         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6035         floating point constants with "f", since they're destined to be
6036         saved/used as "float"s.
6037
6038 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6039
6040         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6041         * tests/test-float.c (test_long_double): Correct and re-enable the
6042         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6043
6044 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6045
6046         Avoid subtracting two pointers that don't point into the same block.
6047         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6048         only pointers into the same memory block are subtracted. We cannot
6049         assume that sizeof (ptrdiff_t) == sizeof (void *).
6050
6051 2011-11-29  Eric Blake  <eblake@redhat.com>
6052
6053         maint.mk: add syntax check for use of compare from init.sh
6054         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6055         moved here from coreutils.
6056
6057         manywarnings: drop -Wunsuffixed-float-constants
6058         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6059         '1.0D', which is the only way to silence this warning for 'double'.
6060
6061 2011-11-29  Jim Meyering  <meyering@redhat.com>
6062
6063         hash: mark compute_bucket_size with the pure attribute
6064         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6065
6066         quotearg, propername: correct pragma guard expression
6067         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6068         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6069
6070 2011-11-28  Jim Meyering  <meyering@redhat.com>
6071
6072         propername: do not mark proper_name with the const attribute
6073         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6074         since it examines data pointed to by its parameter.
6075         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6076         the suggestion from -Wsuggest-attribute=const.
6077
6078         propername: mark one more function as const
6079         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6080
6081 2011-11-27  Jim Meyering  <meyering@redhat.com>
6082
6083         mark functions with const and pure attributes
6084
6085         Mark functions per suggestions from gcc-4.6 when using these options:
6086         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6087         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6088         Follow these guidelines: when possible, apply the attribute to
6089         an extern declaration, not to its definition.  Apply it to the
6090         definition only when the definition is static.
6091         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6092         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6093         * lib/base64.h (isbase64): Likewise.
6094         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6095         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6096         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6097         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6098         (c_tolower, c_toupper): Likewise.
6099         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6100         * lib/chdir-long.c (find_non_slash): Likewise.
6101         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6102         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6103         * lib/file-type.h (file_type): Likewise.
6104         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6105         * lib/filevercmp.c (verrevcmp): Likewise.
6106         * lib/freadahead.h (freadahead): Likewise.
6107         * lib/fts.c (fts_maxarglen): Likewise.
6108         * lib/hash-pjw.h (hash_pjw): Likewise.
6109         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6110         * lib/hash.c (is_prime, next_prime): Likewise.
6111         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6112         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6113         (hash_table_ok, hash_get_first, hash_string): Likewise.
6114         (compute_bucket_size): Likewise.
6115         * lib/i-ring.h (i_ring_empty): Likewise.
6116         * lib/isnan.c (isnanl): Likewise.
6117         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6118         * lib/memcasecmp.h (memcasecmp): Likewise.
6119         * lib/memchr2.h (memchr2): Likewise.
6120         * lib/memcmp2.h (memcmp2): Likewise.
6121         * lib/parse-datetime.y (lookup_zone): Likewise.
6122         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6123         [!WINDOWS_SOCKETS]: Likewise.
6124         * lib/strnlen1.h (strnlen1): Likewise.
6125         * lib/uniwidth.in.h (uc_width): Likewise.
6126         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6127         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6128         (quoting_options_from_style): Add a comment.
6129         * lib/propername.h (proper_name): Add a comment.
6130
6131 2011-11-27  Bruno Haible  <bruno@clisp.org>
6132
6133         Remove unused macros from !_LIBC code in glibc-borrowed files.
6134         * lib/fnmatch.c (STRCOLL): Remove macro.
6135         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6136         * lib/glob.c (__stat, __readdir64): Remove macros.
6137         * lib/tempname.c (__open64, __xstat64): Remove macros.
6138         Suggested by Paul Eggert.
6139
6140 2011-11-27  Bruno Haible  <bruno@clisp.org>
6141
6142         getcwd: Fix link error on MSVC 9.
6143         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6144
6145 2011-11-27  Bruno Haible  <bruno@clisp.org>
6146
6147         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6148         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6149         HAVE_OPENDIR is 0.
6150         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6151         HAVE_CLOSEDIR is 0.
6152         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6153         is 0.
6154         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6155
6156 2011-11-27  Bruno Haible  <bruno@clisp.org>
6157
6158         getcwd: Fix bug from 2011-08-17.
6159         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6160         platforms that need it.
6161         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6162         code of 4 to be a failure, not a success. This ensures that
6163         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6164
6165 2011-11-27  Bruno Haible  <bruno@clisp.org>
6166
6167         binary-io tests: Avoid test failure on mingw when libtool is used.
6168         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6169         Don't verify the size of t-bin-out1.tmp here.
6170         * tests/test-binary-io.sh: Verify it here.
6171         Reported by Simon Josefsson.
6172
6173 2011-11-26  Bruno Haible  <bruno@clisp.org>
6174
6175         Fix conflict between two instantiations of module 'unistd'.
6176         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6177         ${include_guard_prefix} also in the autoconf snippet.
6178         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6180         GNULIB_UNISTD_H_GETOPT.
6181         * modules/getopt-posix (configure.ac): Set the
6182         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6183         * modules/getopt-gnu (configure.ac): Likewise.
6184         * modules/unistd (Makefile.am): Change the substitution value of
6185         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6186         Reported by Simon Josefsson.
6187
6188 2011-11-25  Bruno Haible  <bruno@clisp.org>
6189
6190         pagealign_alloc: Doc and comments.
6191         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6192         module.
6193         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6194
6195 2011-11-25  Jim Meyering  <meyering@redhat.com>
6196
6197         test-update-copyright.sh: avoid false-positive failure
6198         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6199         around false positive failure on Cygwin/Windows.  The latter was
6200         matching erroneously-created files with names like
6201         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6202
6203 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6204
6205         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6206         * m4/valgrind-tests.m4: Check that the parameters that will be
6207         used works, not just a subset of them.  Reported by Bruno Haible
6208         <bruno@clisp.org>.
6209
6210 2011-11-24  Jim Meyering  <meyering@redhat.com>
6211
6212         test-stdalign.c: comment out long double tests
6213         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6214         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6215         error: '_Alignas' specifiers cannot reduce alignment of \
6216         'static_longdouble_alignas'.
6217
6218 2011-11-22  Jim Meyering  <meyering@redhat.com>
6219
6220         init.sh: make "compare /dev/null FILE" output more readable
6221         * tests/init.sh (compare_): Document the preferred order of arguments.
6222         (emit_diff_u_header_): New function.
6223         (compare_dev_null_): Emit a simulated diff, rather than just the
6224         contents of the unexpected file.  Suggestion from Bruno Haible.
6225
6226 2011-11-21  Jim Meyering  <meyering@redhat.com>
6227             Eric Blake  <eblake@redhat.com>
6228
6229         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6230         * tests/init.sh: Make our compare function slightly more portable.
6231         Reported by Bruno Haible in
6232         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6233
6234 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6235
6236         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6237         before using it, in code that ends up in config.h.
6238
6239 2011-11-20  Bruno Haible  <bruno@clisp.org>
6240
6241         getcwd: Work around getcwd bug on AIX 5..7.
6242         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6243         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6244         Use a different value for gl_cv_func_getcwd_path_max. Move the
6245         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6246         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6247         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6248         Define HAVE_MINIMALLY_WORKING_GETCWD.
6249         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6250         where it is not even minimally working, that is, on AIX.
6251         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6252         m4/getcwd-path-max.m4.
6253         (main): Update exit code computation.
6254         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6255         getcwd does not handle long file names.
6256
6257 2011-11-20  Bruno Haible  <bruno@clisp.org>
6258
6259         getcwd: Fix bug from 2009-09-10.
6260         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6261         like "no".
6262
6263 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6264
6265         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6266
6267 2011-11-20  Bruno Haible  <bruno@clisp.org>
6268
6269         fma tests: Avoid shadowing local variables.
6270         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6271         expected.
6272
6273 2011-11-20  Bruno Haible  <bruno@clisp.org>
6274
6275         copysignf tests: Fix.
6276         * tests/test-copysignf.c: Fix signature check.
6277
6278 2011-11-20  Bruno Haible  <bruno@clisp.org>
6279
6280         fma: Remove unused code.
6281         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6282         unused macros.
6283
6284 2011-11-20  Bruno Haible  <bruno@clisp.org>
6285
6286         sethostname: Fix doc about AIX.
6287         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6288         sethostname; it has it.
6289
6290         sethostname: Mention more portability problems.
6291         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6292         problem.
6293         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6294
6295 2011-11-19  Bruno Haible  <bruno@clisp.org>
6296
6297         Depend on module fcntl-h when AT_FDCWD is used.
6298         * modules/utimens (Depends-on): Add fcntl-h.
6299         * modules/areadlinkat (Depends-on): Likewise.
6300         * modules/areadlinkat-with-size (Depends-on): Likewise.
6301         * modules/faccessat (Depends-on): Likewise.
6302         * modules/fchmodat (Depends-on): Likewise.
6303         * modules/fchownat (Depends-on): Likewise.
6304         * modules/getcwd (Depends-on): Likewise.
6305         * modules/mkdirat (Depends-on): Likewise.
6306         * modules/mkfifoat (Depends-on): Likewise.
6307         * modules/readlinkat (Depends-on): Likewise.
6308         * modules/symlinkat (Depends-on): Likewise.
6309         * modules/dup2-tests (Depends-on): Likewise.
6310         * modules/fdutimensat-tests (Depends-on): Likewise.
6311         * modules/futimens-tests (Depends-on): Likewise.
6312
6313 2011-11-19  Bruno Haible  <bruno@clisp.org>
6314
6315         euidaccess: Update a comment.
6316         * lib/euidaccess.c: Update comment about platforms with faccessat.
6317
6318 2011-11-19  Bruno Haible  <bruno@clisp.org>
6319
6320         openat: Fix file list.
6321         * modules/openat (Files): Remove lib/at-func.c.
6322
6323 2011-11-19  Bruno Haible  <bruno@clisp.org>
6324
6325         fstatat: Simplify.
6326         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6327         gnulib should define rpl_fstatat, there is a
6328         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6329
6330 2011-11-19  Bruno Haible  <bruno@clisp.org>
6331
6332         Ensure 'inline' can be used in tests/test-utimens-common.h.
6333         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6334         * modules/futimens-tests (configure.ac): Likewise.
6335         * modules/utimens-tests (configure.ac): Likewise.
6336         * modules/utimensat-tests (configure.ac): Likewise.
6337
6338 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6339
6340         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6341         not hash_insert0.
6342         (hash_insert_if_absent): Doc fix.
6343
6344 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6345
6346         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6347
6348 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6349
6350         test-getcwd: disambiguate exit status
6351         * tests/test-getcwd.c (test_long_name): Return 0..7.
6352         (main): Exit with an unambiguous exit status.  The old
6353         code yielded a mysterious mixture of two failure codes.
6354
6355         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6356         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6357         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6358         rpl_fstatat or fstatat.  This should fix the other problem
6359         reported by Kai Habel in
6360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6361         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6363         and I reproduced it on a Solaris 8 host we still have in production.
6364
6365 2011-11-18  Jim Meyering  <meyering@redhat.com>
6366
6367         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6368         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6369         Add a sentence to the comment.
6370         (hash_insert0): New function that simply calls hash_insert_if_absent.
6371         * lib/hash.h (hash_insert_if_absent): Declare it.
6372         (hash_insert0): Add deprecation attribute.
6373         (_GL_ATTRIBUTE_DEPRECATED): Define.
6374         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6375         not hash_insert0.
6376         * NEWS: Mention it, even though it's not really an incompatible change.
6377
6378 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6379
6380         openat: avoid compilation failure due to lack of <errno.h> inclusion
6381         * lib/openat.c: Include <errno.h>.
6382
6383 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6384
6385         * modules/getcwd (Depends-on): Add fdopendir.
6386         This fixes one of the two problems reported by Kai Habel in
6387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6388
6389         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6390         stdalign problem reported by Ian Beckwith in
6391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6392         * modules/crypto/gc-arcfour (Depends-on):
6393         Depend conditionally on crypto/arcfour.
6394         * modules/crypto/gc-arctwo (Depends-on):
6395         Depend conditionally on crypto/arctwo.
6396         * modules/crypto/gc-des (Depends-on):
6397         Depend conditionally on crypto/des.
6398         * modules/crypto/gc-hmac-md5 (Depends-on):
6399         Depend conditionally on crypto/hmac-md5.
6400         * modules/crypto/gc-hmac-sha1 (Depends-on):
6401         Depend conditionally on crypto/hmac-sha1.
6402         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6403         * modules/crypto/gc-md4 (Depends-on):
6404         Depend conditionally on crypto/md4.
6405         * modules/crypto/gc-md5 (Depends-on):
6406         Depend conditionally on crypto/md5.
6407         * modules/crypto/gc-rijndael (Depends-on):
6408         Depend conditionally on crypto/rijndael.
6409         * modules/crypto/gc-sha1 (Depends-on):
6410         Depend conditionally on crypto/sha1.
6411         * modules/crypto/gc-arcfour:
6412         * modules/crypto/gc-arctwo:
6413         * modules/crypto/gc-des:
6414         * modules/crypto/gc-hmac-md5:
6415         * modules/crypto/gc-hmac-sha1:
6416         * modules/crypto/gc-md2:
6417         * modules/crypto/gc-md4:
6418         * modules/crypto/gc-md5:
6419         * modules/crypto/gc-rijndael:
6420         * modules/crypto/gc-sha1:
6421         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6422         now that the conditional dependencies do the work for us.
6423
6424 2011-11-17  Jim Meyering  <meyering@redhat.com>
6425
6426         tests: factor st_ctime-comparison out of two headers
6427         * tests/test-utimens-common.h (ctime_compare): Define.
6428         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6429         * tests/test-lutimens.h (test_lutimens): Likewise.
6430         * tests/test-utimens.h (test_utimens): Likewise.
6431
6432         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6433         Invoke the test program via an init.sh-using wrapper.
6434         * tests/test-getcwd.sh: New file.
6435         * modules/getcwd-tests (Files): Add it.
6436         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6437
6438 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6439
6440         gitlog-to-changelog: support multi-author commits.
6441         The FSF cares about keeping track of all authors of patches to its
6442         projects, but Git doesn't provide obvious support for multi-author
6443         changesets. Consensus seems to be forming around the use of extra
6444         Signed-off-by inspired lines in the log message formatted as
6445         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6446         multi-author commits between version control systems.
6447         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6448         log message and output in standard ChangeLog multi-author format.
6449         Reported by Peter Rosin <peda@lysator.liu.se>
6450
6451 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6452             Bruno Haible  <bruno@clisp.org>
6453
6454         Fix some modules' file list.
6455         * modules/fstatat (Files): Add m4/lstat.m4.
6456         * modules/openat (Files): Likewise.
6457         * modules/unlinkat (Files): Likewise.
6458
6459 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6460
6461         maint.mk: fix tight-scope.mk generation in VPATH builds.
6462         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6463         reference with $(srcdir) so that the file is found correctly even
6464         when running `make syntax-check' in a VPATH build.
6465
6466 2011-11-13  Bruno Haible  <bruno@clisp.org>
6467             Jim Meyering  <meyering@redhat.com>
6468
6469         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6470         * tests/init.sh (compare): Remove "No differences encountered" or
6471         synonymous output from the 'diff' program.
6472
6473 2011-11-13  Bruno Haible  <bruno@clisp.org>
6474
6475         Makefile: Tweak indentation.
6476         * Makefile: Use tab as first character in every line that contains rule
6477         commands.
6478
6479 2011-11-13  Bruno Haible  <bruno@clisp.org>
6480
6481         Syntax check for copyright statements.
6482         * check-copyright: New file.
6483         * Makefile (sc_check_copyright): New rule.
6484
6485 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6486
6487         * build-aux/git-version-gen: Add --prefix to configure the tag
6488         match string.
6489
6490 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6491
6492         * build-aux/git-version-gen: Add --help and --version.
6493
6494 2011-11-12  Jim Meyering  <meyering@redhat.com>
6495
6496         revamp the other test-exclude?.sh scripts to use init.sh, too
6497         * tests/test-exclude1.sh: Use init.sh.
6498         * tests/test-exclude2.sh: Likewise.
6499         * tests/test-exclude3.sh: Likewise.
6500         * tests/test-exclude4.sh: Likewise.
6501         * tests/test-exclude5.sh: Likewise.
6502         * tests/test-exclude6.sh: Likewise.
6503         * tests/test-exclude7.sh: Likewise.
6504         * tests/test-exclude8.sh: Likewise.
6505         * modules/exclude-tests (Files): List init.sh.
6506
6507         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6508         These shell scripts ignored failure of the binary test-exclude,
6509         so making the latter return 77 didn't cause them to be skipped.
6510         * tests/test-exclude5.sh: Exit with test-exclude's error status
6511         when that program fails.  Revamp to use init.sh.
6512         * tests/test-exclude2.sh: Likewise.
6513
6514         test-exclude: fix a typo
6515         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6516
6517 2011-11-11  Bruno Haible  <bruno@clisp.org>
6518
6519         obstack: Fix compilation error on MSVC 9.
6520         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6521
6522 2011-11-11  Jim Meyering  <meyering@redhat.com>
6523
6524         test-exclude: skip tests rather than failing on deficient systems
6525         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6526         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6527         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6528         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6529
6530 2011-11-10  Bruno Haible  <bruno@clisp.org>
6531
6532         ptsname_r test: Avoid gcc warning on glibc systems.
6533         * tests/test-ptsname_r.c (null_ptr): New function.
6534         (test_errors): Use it.
6535
6536 2011-11-10  Bruno Haible  <bruno@clisp.org>
6537
6538         ptsname_r: Avoid compilation error on OSF/1 5.1.
6539         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6541         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6542         function is not declared or incompatibly declared.
6543         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6544         * modules/ptsname_r (Depends-on, configure.ac): Update.
6545         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6546
6547 2011-11-10  Bruno Haible  <bruno@clisp.org>
6548
6549         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6550         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6551         When cross-compiling, guess yes on all platforms except AIX.
6552         Reported by Ludovic Courtès <ludo@gnu.org>.
6553
6554 2011-11-09  Bruno Haible  <bruno@clisp.org>
6555
6556         ptsname_r tests: Fix bugs.
6557         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6558         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6559
6560 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6561
6562         fstatat: work with cross-compilation
6563         Problem reported by Ludovic Courtès in
6564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6565         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6566         "cross-compiling" and assume the bug is present.  Replace
6567         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6568         an inverted sense, to be more conservative about our assumptions.
6569         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6570
6571 2011-11-09  Bruno Haible  <bruno@clisp.org>
6572
6573         Improve MODULES.html output.
6574         * modules/mkfifoat (Description): Use the word "function".
6575         * modules/readlinkat (Description): Likewise.
6576         * modules/symlinkat (Description): Likewise.
6577
6578 2011-11-09  Eric Blake  <eblake@redhat.com>
6579
6580         ptsname_r-tests: new test module
6581         * modules/ptsname_r-tests: New module.
6582         * tests/test-ptsname_r.c: New file.
6583
6584         ptsname_r: new module
6585         * modules/ptsname_r: New module.
6586         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6587         * lib/ptsname.c (__ptsname_r): Split...
6588         * lib/ptsname_r.c: ...into new file.
6589         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6590         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6591         * modules/stdlib (Makefile.am): Substitute witnesses.
6592         * lib/stdlib.in.h (ptsname_r): Declare it.
6593         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6594         * MODULES.html.sh (Misc): Likewise.
6595         * modules/ptsname (Depends-on): Alter dependency.
6596         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6597
6598 2011-11-09  Jim Meyering  <meyering@redhat.com>
6599
6600         announce-gen: be more concise when there's only one URL+tarball
6601         * build-aux/announce-gen (get_tool_versions): When you distribute
6602         only one type of tarball, combine the first two "Here are..."
6603         sections and make the key-checking grammar independent of
6604         how many tarballs there are.
6605
6606 2011-11-09  Eric Blake  <eblake@redhat.com>
6607
6608         openpty: provide a stub on mingw
6609         * lib/pty.in.h (includes): Provide forward declarations.
6610         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6611
6612         raise: fix mingw handling of SIGPIPE
6613         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6614
6615 2011-11-08  Bruno Haible  <bruno@clisp.org>
6616
6617         More conditional dependencies.
6618         * modules/faccessat (Depends-on): Add conditions.
6619         * modules/fchmodat (Depends-on): Likewise.
6620         * modules/fchownat (Depends-on): Likewise.
6621         * modules/fstatat (Depends-on): Likewise.
6622         * modules/mkfifoat (Depends-on): Likewise.
6623         * modules/readlinkat (Depends-on): Likewise.
6624         * modules/symlinkat (Depends-on): Likewise.
6625         * modules/unlinkat (Depends-on): Likewise.
6626         * modules/utimensat (Depends-on): Likewise.
6627         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6628         * modules/linkat (Depends-on): Refine the conditions.
6629         * modules/renameat (Depends-on): Likewise.
6630
6631 2011-11-08  Bruno Haible  <bruno@clisp.org>
6632
6633         faccessat: Move AC_LIBOBJ invocation to module description.
6634         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6635         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6636         invocation from here...
6637         * modules/faccessat (configure.ac): ... to here. Invoke
6638         gl_PREREQ_FACCESSAT.
6639
6640 2011-11-08  Bruno Haible  <bruno@clisp.org>
6641
6642         faccessat: Simplify autoconf macro.
6643         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6644         gl_FUNC_EUIDACCESS.
6645
6646 2011-11-08  Bruno Haible  <bruno@clisp.org>
6647
6648         renameat: Fix dependencies.
6649         * modules/renameat (Depends-on): Add stdbool.
6650
6651 2011-11-08  Bruno Haible  <bruno@clisp.org>
6652
6653         mkfifoat: Fix module description.
6654         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6655         not gl_UNISTD_MODULE_INDICATOR.
6656
6657 2011-11-08  Bruno Haible  <bruno@clisp.org>
6658
6659         fstatat: Remove unused dependency.
6660         * modules/fstatat (Depends-on): Remove fstat.
6661
6662 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6663
6664         GNUmakefile: behave when Makefile is missing.
6665         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6666
6667 2011-11-08  Bruno Haible  <bruno@clisp.org>
6668
6669         openat: Conditionalize dependencies.
6670         * lib/openat.c: Reduce the scope of some #includes.
6671         * modules/openat (Depends-on): Add conditions.
6672
6673 2011-11-07  Jim Meyering  <meyering@redhat.com>
6674
6675         maint.mk: extract GPG key ID without using a temporary file
6676         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6677         without using a temporary file.  Based on a suggestion from Werner Koch
6678         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6679
6680 2011-11-07  Eric Blake  <eblake@redhat.com>
6681
6682         grantpt: fix typo
6683         * lib/stdlib.in.h (grantpt): Check correct function.
6684
6685         maint.mk: silence new syntax check
6686         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6687
6688 2011-11-06  Bruno Haible  <bruno@clisp.org>
6689
6690         Doc about floating-point and math API.
6691         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6692         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6693
6694 2011-11-06  Bruno Haible  <bruno@clisp.org>
6695
6696         stdalign tests: Skip the test when compiled by Sun C.
6697         * tests/test-stdalign.c (main): Skip the test on Sun C.
6698
6699 2011-11-06  Bruno Haible  <bruno@clisp.org>
6700
6701         ansi-c++-opt: Complete the 2011-06-05 change.
6702         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6703         does not support namespaces, set the variable to "no", not to ":".
6704
6705 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6706
6707         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6708
6709 2011-11-06  Bruno Haible  <bruno@clisp.org>
6710
6711         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6712         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6713         (minus_zerol) [HP-UX]: New macro.
6714         (unary_minus) [HP-UX]: New function.
6715         (copysignl) [HP-UX]: Use unary_minus function.
6716
6717 2011-11-06  Bruno Haible  <bruno@clisp.org>
6718
6719         ldexp, ldexpf, ldexpl: Enhance tests.
6720         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6721         and tests/test-ldexpl.c.
6722         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6723         LDEXP, MIN_EXP, MAX_EXP): New macros.
6724         Include test-ldexp.h.
6725         (main): Just call test_function.
6726         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6727         infinity.h, nan.h.
6728         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6729         MAX_EXP): New macros.
6730         Include test-ldexp.h.
6731         (x, y): Remove variables.
6732         (main): Just call test_function.
6733         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6734         infinity.h, nan.h.
6735         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6736         MAX_EXP): New macros.
6737         Include test-ldexp.h.
6738         (x, y): Remove variables.
6739         (main): Just call test_function.
6740         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6741         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6742         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6743         (Depends-on): Add isnand-nolibm, signbit, float.
6744         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6745         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6746         (Depends-on): Add isnanf-nolibm, signbit, float.
6747
6748 2011-11-06  Bruno Haible  <bruno@clisp.org>
6749
6750         math tests: Cosmetics.
6751         * tests/test-math-c++.cc: Reorder declarations.
6752
6753 2011-11-05  Bruno Haible  <bruno@clisp.org>
6754
6755         fma*: Simplify test.
6756         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6757         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6758
6759         Tests for module 'fmal'.
6760         * modules/fmal-tests: New file.
6761         * tests/test-fmal1.c: New file.
6762         * tests/test-fmal2.c: New file.
6763
6764         New module 'fmal'.
6765         * lib/math.in.h (fmal): New declaration.
6766         * lib/fmal.c: New file.
6767         * m4/fmal.m4: New file.
6768         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6770         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6771         REPLACE_FMAL.
6772         * modules/fmal: New file.
6773         * doc/posix-functions/fmal.texi: Mention the new module and the various
6774         bugs.
6775
6776         Tests for module 'fmaf'.
6777         * modules/fmaf-tests: New file.
6778         * tests/test-fmaf1.c: New file.
6779         * tests/test-fmaf2.c: New file.
6780
6781         New module 'fmaf'.
6782         * lib/math.in.h (fmaf): New declaration.
6783         * lib/fmaf.c: New file.
6784         * m4/fmaf.m4: New file.
6785         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6787         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6788         REPLACE_FMAF.
6789         * modules/fmaf: New file.
6790         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6791         bugs.
6792
6793         Tests for module 'fma'.
6794         * modules/fma-tests: New file.
6795         * tests/test-fma1.c: New file.
6796         * tests/test-fma1.h: New file.
6797         * tests/test-fma2.c: New file.
6798         * tests/test-fma2.h: New file.
6799
6800         New module 'fma'.
6801         * lib/math.in.h (fma): New declaration.
6802         * lib/fma.c: New file.
6803         * m4/fma.m4: New file.
6804         * m4/fegetround.m4: New file.
6805         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6807         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6808         REPLACE_FMA.
6809         * modules/fma: New file.
6810         * doc/posix-functions/fma.texi: Mention the new module and the various
6811         bugs.
6812
6813         Extend gl_MATHFUNC.
6814         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6815         Support 'void' as argument type.
6816         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6817
6818 2011-11-05  Jim Meyering  <meyering@redhat.com>
6819
6820         maint.mk: also prohibit inclusion of dirent.h without use
6821         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6822
6823 2011-11-05  Bruno Haible  <bruno@clisp.org>
6824
6825         ldexpl tests: Avoid test failure on MSVC 9.
6826         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6827         value. Needed in order to enforce the conversion from a value greater
6828         than LDBL_MAX to Infinity.
6829
6830 2011-11-05  Bruno Haible  <bruno@clisp.org>
6831
6832         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6833         * modules/at-internal: New file, extracted from modules/openat.
6834         * modules/openat-h: New file.
6835         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6836         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6837         * modules/openat (Description): Add reference to POSIX function.
6838         (Files): Remove lib/openat.h, lib/openat-proc.c.
6839         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6840         intprops, unistd.
6841         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6842         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6843         gl_FCNTL_MODULE_INDICATOR.
6844         (Include): Remove unistd.h, openat.h.
6845         * modules/areadlinkat (Files): Add lib/at-func.c.
6846         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6847         openat-die, openat-h, save-cwd.
6848         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6849         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6850         openat-die, openat-h, save-cwd, unistd.
6851         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6852         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6853         openat-h, save-cwd. Remove fcntl-h, openat.
6854         * modules/fchmodat (Files): Remove lib/openat.h.
6855         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6856         openat, stdbool, unistd.
6857         * modules/fchownat (Files): Remove lib/openat.h.
6858         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6859         openat, stdbool, sys_stat.
6860         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6861         lib/openat-proc.c.
6862         (Depends-on): Add at-internal.
6863         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6864         * modules/fstatat (Files): Remove lib/openat.h.
6865         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6866         stdbool, unistd.
6867         * modules/fts (Depends-on): Add openat-h.
6868         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6869         openat.
6870         * modules/mkdirat (Files): Remove lib/openat.h.
6871         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6872         openat, stdbool, sys_stat.
6873         * modules/mkfifoat (Files): Add lib/at-func.c.
6874         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6875         openat-h, save-cwd. Remove fcntl-h, openat.
6876         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6877         * modules/readlinkat (Files): Add lib/at-func.c.
6878         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6879         openat-h, save-cwd. Remove fcntl-h, openat.
6880         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6881         openat.
6882         * modules/selinux-at (Files): Add lib/at-func.c.
6883         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6884         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6885         * modules/symlinkat (Files): Add lib/at-func.c.
6886         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6887         openat-h, save-cwd. Remove fcntl-h, openat.
6888         * modules/unlinkat (Files): Remove lib/openat.h.
6889         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6890         stdbool.
6891         * modules/utimensat (Files): Add lib/at-func.c.
6892         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6893         openat-die, openat-h, save-cwd.
6894         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6895         * modules/fdutimensat-tests (Depends-on): Add openat.
6896         * modules/fstatat-tests (Depends-on): Add openat-h.
6897         * modules/readlinkat-tests (Depends-on): Add openat.
6898         * modules/symlinkat-tests (Depends-on): Add openat.
6899
6900 2011-11-05  Bruno Haible  <bruno@clisp.org>
6901
6902         openat: Include <stdbool.h>.
6903         * lib/openat.c: Include <stdbool.h>.
6904
6905 2011-11-04  Bruno Haible  <bruno@clisp.org>
6906
6907         fchownat, renameat, unlinkat: Fix dependencies.
6908         * modules/fchownat (Depends-on): Add fstatat.
6909         * modules/renameat (Depends-on): Likewise.
6910         * modules/unlinkat (Depends-on): Likewise.
6911
6912 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6913
6914         openat: remove direct dependency on dirent
6915         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6916         and hasn't been needed ever since fdopendir was split into its own
6917         module on 2009-08-31.
6918         * modules/openat (Depends-on): Remove dirent.
6919
6920 2011-11-04  Bruno Haible  <bruno@clisp.org>
6921
6922         renameat: Optimize code size.
6923         * modules/renameat (configure.ac): Don't compile at-func2.c if
6924         REPLACE_RENAMEAT is 1.
6925
6926 2011-11-04  Bruno Haible  <bruno@clisp.org>
6927
6928         openat tests: Fix file list.
6929         * modules/openat-tests (Files): Add tests/test-open.h.
6930
6931 2011-11-04  Bruno Haible  <bruno@clisp.org>
6932
6933         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6934         * modules/fchmodat (Depends-on): Add openat-die.
6935         * modules/fchownat (Depends-on): Likewise.
6936         * modules/linkat (Depends-on): Likewise.
6937         * modules/renameat (Depends-on): Likewise.
6938         * modules/openat (Depends-on): Add dirent.
6939
6940 2011-11-04  Jim Meyering  <meyering@redhat.com>
6941
6942         at-func*.c: fix comments
6943         * lib/at-func2.c: Correct/improve first-line comment.
6944         * lib/at-func.c: Correct grammar in first-line comment.
6945
6946 2011-11-04  Bruno Haible  <bruno@clisp.org>
6947
6948         New module 'mkdirat', split off from module 'openat'.
6949         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6950         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6951         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6952         * modules/mkdirat: New file, extracted from modules/openat.
6953         * modules/openat (Files): Remove lib/mkdirat.c.
6954         (Depends-on): Remove mkdir.
6955         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6956         (Include): Remove <sys/stat.h>.
6957         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6958         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6959         tests/test-mkdir.h.
6960         (Depends-on): Remove ignore-value.
6961         (Makefile.am): Remove rules for test-mkdirat.
6962         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6963         of module 'openat'.
6964         * NEWS: Mention the change.
6965
6966 2011-11-04  Bruno Haible  <bruno@clisp.org>
6967
6968         closedir: Avoid warning on mingw.
6969         * lib/closedir.c: Include <unistd.h>.
6970
6971 2011-11-04  Bruno Haible  <bruno@clisp.org>
6972
6973         New module 'fstatat', split off from module 'openat'.
6974         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6975         defined.
6976         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6977         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6978         gl_FUNC_FSTATAT.
6979         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6980         * modules/fstatat: New file, extracted from modules/openat.
6981         * modules/openat (Files): Remove lib/fstatat.c.
6982         (Depends-on): Remove lstat.
6983         (configure.ac): Remove AC_LIBOBJ of fstatat.
6984         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6985         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6986         tests/test-lstat.h, tests/test-stat.h.
6987         (Depends-on): Remove getcwd-lgpl.
6988         (Makefile.am): Remove rules for test-fstatat.
6989         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6990         of module 'openat'.
6991         * NEWS: Mention the change.
6992         * modules/getcwd (Depends-on): Add fstatat.
6993         * modules/linkat (Depends-on): Likewise.
6994         * modules/mkfifoat-tests (Depends-on): Likewise.
6995         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6996
6997 2011-11-03  Bruno Haible  <bruno@clisp.org>
6998
6999         New module 'unlinkat', split off from module 'openat'.
7000         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7001         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7002         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7003         * modules/unlinkat: New file, extracted from modules/openat. Correct
7004         the dependency conditions.
7005         * modules/openat (Files): Remove lib/unlinkat.c.
7006         (Depends-on): Remove rmdir, unlink.
7007         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7008         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7009         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7010         tests/test-rmdir.h, tests/test-unlink.h.
7011         (Depends-on): Remove unlinkdir.
7012         (Makefile.am): Remove rules for test-unlinkat.
7013         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7014         of module 'openat'.
7015         * NEWS: Mention the change.
7016         * modules/linkat-tests (Depends-on): Add unlinkat.
7017         * modules/mkfifoat-tests (Depends-on): Likewise.
7018         * modules/readlinkat-tests (Depends-on): Likewise.
7019
7020 2011-11-02  Bruno Haible  <bruno@clisp.org>
7021
7022         New module 'fchmodat', split off from module 'openat'.
7023         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7024         defined.
7025         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7026         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7027         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7028         * modules/fchmodat: New file, extracted from modules/openat.
7029         * modules/openat (Files): Remove lib/fchmodat.c.
7030         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7031         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7032         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7033         (Makefile.am): Remove rules for test-fchmodat.
7034         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7035         of module 'openat'.
7036         * NEWS: Mention the change.
7037
7038 2011-11-02  Jim Meyering  <meyering@redhat.com>
7039
7040         putenv: indent #definition of "environ" to placate cppi
7041         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7042
7043         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7044         Git logs are often treated as immutable, because editing them
7045         changes the SHA1 checksums of all descendants.  Thus, errors in
7046         git logs tend to stay there forever.  However, when we generate
7047         a ChangeLog file -- typically for distribution -- from that git log,
7048         we can actually make corrections in the generated file.  The key
7049         lies in recording in machine-readable/applicable form the desired
7050         corrections.  See --help for description and an example.
7051         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7052         (usage): Describe it; alphabetize option descriptions.
7053         (main): Honor the new option, carefully.
7054
7055 2011-11-01  Jim Meyering  <meyering@redhat.com>
7056
7057         gitlog-to-changelog: avoid an infloop
7058         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7059         that ends up being empty.
7060
7061 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7062
7063         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7064         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7065         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7066         contains (possibly-quoted) backslashes.  This should avoid
7067         all-too-common shell bugs if COMPLICATED contains backslashes in
7068         the "wrong" places.  Reported by David Evans in
7069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7070         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7071         because we want ASCII ranges.  Is there some reason we don't use
7072         the C locale everywhere in this script?
7073         (func_module, top level): Avoid unwanted pathname expansion when
7074         $repo_url_prefix or $repo_url_suffix_repl contain shell
7075         metacharacters like '?' and '*'.
7076
7077 2011-11-01  Bruno Haible  <bruno@clisp.org>
7078
7079         fchownat: Improve description.
7080         * modules/fchownat (Description): Add link to function.
7081
7082 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7083
7084         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7085         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7087         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7088
7089 2011-11-01  Bruno Haible  <bruno@clisp.org>
7090
7091         alignof: Avoid collision with stdalign module.
7092         * lib/alignof.h (alignof): Remove macro.
7093         * NEWS: Mention the change.
7094         Reported by Paul Eggert.
7095
7096 2011-11-01  Bruno Haible  <bruno@clisp.org>
7097
7098         New module 'fchownat', split off from module 'openat'.
7099         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7100         defined.
7101         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7102         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7103         invoke gl_FUNC_FCHOWNAT.
7104         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7105         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7106         * modules/fchownat: New file, extracted from modules/openat.
7107         * modules/openat (Files): Remove lib/fchownat.c.
7108         (Depends-on): Remove lchown.
7109         (configure.ac): Remove AC_LIBOBJ of fchownat.
7110         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7111         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7112         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7113         (Depends-on): Remove mgetgroups, usleep, stat-time.
7114         (configure.ac): Remove test for getegid.
7115         (Makefile.am): Remove rules for test-fchownat.
7116         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7117         of module 'openat'.
7118         * NEWS: Mention the change.
7119
7120 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7121
7122         stdalign: port better to MSVC and to Sun C 5.11
7123         This fixes some of the problems reported by Bruno Haible in
7124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7125         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7126         shortcomings of MSVC and of Sun C 5.11.
7127         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7128         around __declspec arg.
7129         * modules/stdalign-tests (Files): Add tests/macros.h.
7130         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7131         Include macros.h, for ASSERT.
7132         (DECLARE_ALIGNED): Remove.
7133         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7134         to catch bug), and to 1 if not (simplifies the rest of the code).
7135         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7136         (CHECK_AUTO): Remove.
7137         (CHECK_ALIGNED): Check only the alignment of the static vars,
7138         since auto var alignment isn't supported by Sun C 5.11.
7139         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7140         ASSERT failures are easier to diagnose.
7141
7142 2011-10-31  Bruno Haible  <bruno@clisp.org>
7143
7144         doc about some IRIX 5.3 problems.
7145         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7146         on IRIX 5.3.
7147         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7148         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7149         5.3.
7150         * doc/posix-functions/grantpt.texi: Likewise.
7151         * doc/posix-functions/unlockpt.texi: Likewise.
7152         * doc/posix-functions/lgamma.texi: Likewise.
7153         * doc/posix-functions/nextafter.texi: Likewise.
7154         * doc/posix-functions/remainder.texi: Likewise.
7155         * doc/posix-functions/select.texi: Mention misplaced declaration on
7156         IRIX 5.3.
7157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7158
7159 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7160
7161         gitlog-to-changelog: fix git-log invocation.
7162         git-log mishandles date strings before 1970-01-01 UTC, and there is
7163         no use to specify --since=1970-01-01 by default anyway.
7164         * build-aux/gitlog-to-changelog: By default, when no --since option
7165         was given, do not specify explicit --since option to git-log.
7166
7167 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7168
7169         gitlog-to-changelog: new option --append-dot.
7170         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7171         first non-blank line of each commit message terminated with a dot.
7172
7173 2011-10-30  Bruno Haible  <bruno@clisp.org>
7174
7175         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7176         * lib/ffsl.h: Include <config.h>.
7177         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7178
7179 2011-10-30  Jim Meyering  <meyering@redhat.com>
7180
7181         GNUmakefile: reenable "make syntax-check" for most projects
7182         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7183         build-aux variable", "syntax-check" would do nothing but succeed with
7184         the "No version control files detected..." diagnostic (unless you
7185         happened to override _build-aux via cfg.mk).
7186         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7187         to precede inclusion of maint.mk.  Otherwise, these variables would
7188         be used undefined in any project that does not override the default.
7189
7190 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7191
7192         gitlog-to-changelog: treat a message with only blank lines as empty.
7193         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7194         trailing blank lines before the code that issues a warning about an
7195         empty commit message.
7196
7197 2011-10-30  Jim Meyering  <meyering@redhat.com>
7198
7199         test-parse-datetime.c: avoid new DST-related false positive test failure
7200         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7201         based on the time/date we'll convert, not the current time.
7202         Otherwise, the moment we cross a DST boundary like today's in
7203         Europe, (CEST to CET), that offset ends up being one hour off.
7204
7205 2011-10-27  Bruno Haible  <bruno@clisp.org>
7206
7207         fstat: Tweak documentation.
7208         * modules/fstat (Description): More precise description.
7209
7210 2011-10-27  Bruno Haible  <bruno@clisp.org>
7211
7212         Update documentation regarding 'largefile' module.
7213         * doc/posix-functions/fstat.texi: Tweak wording.
7214         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7215         problems with huge directories and/or small ino_t types.
7216         * doc/posix-functions/readdir.texi: Likewise.
7217         * doc/posix-functions/rewinddir.texi: Likewise.
7218
7219 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7220
7221         maint.mk: don't maintain a second build-aux variable.
7222         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7223         depends on GNUmakefile, which already maintains a cfg.mk
7224         overridable $(_build-aux) for projects with a non-standard
7225         build-aux directory location, although without the $(srcdir)
7226         prefix.  Use that variable consistently instead of introducing a
7227         second one.  Adjust all call sites.
7228
7229 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7230
7231         Add stdalign module and use it in other modules.
7232         This is based on a previous proposal by Bruno Haible
7233         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7234
7235         stdalign: new module
7236         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7237         * modules/stdalign: New files.
7238         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7239         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7240
7241         stdalign-tests: new module
7242         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7243
7244         argp: use stdalign
7245         * lib/argp-parse.c: Include <stdalign.h>.
7246         (alignof): Remove.
7247         * modules/argp (Depends-on): Add stdalign.
7248
7249         crypto libraries: use stdalign
7250         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7251         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7252         Do not include <stdlib.h> twice, in md4.c.
7253         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7254         because we are accessing a pointer's bit-pattern, not a size.
7255         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7256         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7257         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7258         * modules/crypto/sha512: Likewise.
7259
7260         sys_socket: use stdalign, not alignof
7261         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7262         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7263
7264 2011-10-27  Bruno Haible  <bruno@clisp.org>
7265
7266         raise test: Avoid a test failure on Linux/MIPS.
7267         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7268         because 99 is a valid signal on Linux/MIPS.
7269
7270 2011-10-27  Bruno Haible  <bruno@clisp.org>
7271
7272         nonblocking tests: Fix test failure on Linux/MIPS.
7273         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7274         Set to 270000.
7275
7276 2011-10-27  Bruno Haible  <bruno@clisp.org>
7277
7278         utimensat: Work around problem on Linux/hppa.
7279         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7280         values.
7281         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7282
7283 2011-10-25  Jim Meyering  <meyering@redhat.com>
7284
7285         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7286         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7287         after symbols like NULL, size_t, etc.
7288         Reported by Alfred M. Szmidt.
7289
7290         maint.mk: exempt ENODATA from a syntax-check rule
7291         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7292         from the sc_prohibit_always-defined_macros syntax-check rule.
7293         Add a comment.  See this for more details:
7294         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7295
7296 2011-10-23  Jim Meyering  <meyering@redhat.com>
7297
7298         fts: close parent dir FD before returning from post-traversal fts_read
7299         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7300         unlink A, even though an FD open on A remained.  This is suboptimal
7301         (holding a file descriptor open longer than needed), but otherwise not
7302         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7303         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7304         that represents a real problem: it causes the removal of A to fail
7305         with e.g., "rm: cannot remove `A': Device or resource busy"
7306
7307         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7308         directory file descriptors.  After completing the final, FTS_DP,
7309         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7310         cache, but then proceeded to add a new FD to it via the subsequent
7311         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7312         final file descriptor would be closed only via fts_close's call to
7313         fd_ring_clear.  Now, it is usually closed earlier, via the final
7314         FTS_DP-returning fts_read call.
7315         * lib/fts.c (restore_initial_cwd): New function, converted from
7316         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7317         Update callers.
7318         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7319         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7320
7321 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7322             Bruno Haible  <bruno@clisp.org>
7323             Jim Meyering  <jim@meyering.net>
7324
7325         readme-release: improve safety of release prep instructions.
7326         * README-release: Don't git pull all branches when only master
7327         is needed for the release process.
7328         Run make maintainer-clean before changing trees and merging.
7329         Don't try to run ./configure right after git pull in case files
7330         that influence the bootstrap process have changed, move the
7331         ./configure step to after running ./bootstrap.
7332         Don't bootstrap "one last time"... it's the first time!
7333
7334 2011-10-22  Bruno Haible  <bruno@clisp.org>
7335
7336         errno, strerror-override: Support for MSVC 10.
7337         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7338         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7339         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7340         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7341         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7342         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7343         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7344         Assign values compatible with MSVC 10.
7345         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7346         New macros.
7347         (GNULIB_defined_EWINSOCK): New macro.
7348         * lib/strerror-override.c (strerror_override): Update accordingly.
7349         * lib/strerror-override.h: Likewise.
7350         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7351         longer equal to the corresponding errno value.
7352         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7353
7354 2011-10-22  Bruno Haible  <bruno@clisp.org>
7355
7356         perror: Recognize when test program crashes.
7357         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7358         strerror, set gl_cv_func_perror_works to no.
7359         Reported by Daniel Richard G. <skunk@iskunk.org>.
7360
7361         perror: Fix indentation.
7362         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7363
7364 2011-10-22  Bruno Haible  <bruno@clisp.org>
7365
7366         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7367         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7368         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7369         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7370         functions, not as a macro.
7371         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7372         macros.
7373         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7374         absence of macro.
7375         Suggested by Eric Blake.
7376         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7377
7378 2011-10-21  Bruno Haible  <bruno@clisp.org>
7379
7380         relocatable-prog-wrapper: Don't leave object files behind.
7381         * build-aux/install-reloc: Re-synchronize list of .o files to be
7382         removed with list of compilation units.
7383
7384 2011-10-20  Bruno Haible  <bruno@clisp.org>
7385
7386         openpty, posix_openpt: Remove code duplication.
7387         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7388         * lib/openpty.c: Include <stdlib.h>.
7389         (openpty): Use posix_openpt on all platforms except IRIX.
7390         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7391
7392 2011-10-20  Bruno Haible  <bruno@clisp.org>
7393
7394         unlockpt: Detect invalid argument.
7395         * lib/unlockpt.c: Include <fcntl.h>.
7396         (unlockpt): Check whether fd is valid, using fcntl().
7397         * modules/unlockpt (Depends-on): Add fcntl-h.
7398
7399 2011-10-20  Bruno Haible  <bruno@clisp.org>
7400
7401         openpty: Avoid compilation error on AIX 6.1.
7402         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7403
7404 2011-10-20  Bruno Haible  <bruno@clisp.org>
7405
7406         posix_openpt: Support for OpenBSD.
7407         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7408         (posix_openpt) [OpenBSD]: New code.
7409         * lib/grantpt.c: Include <fcntl.h>.
7410         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7411         * modules/grantpt (Depends-on): Add fcntl-h.
7412
7413 2011-10-20  Bruno Haible  <bruno@clisp.org>
7414
7415         posix_openpt test: Coding style.
7416         * tests/test-posix_openpt.c: Use GNU coding style.
7417
7418 2011-10-20  Bruno Haible  <bruno@clisp.org>
7419
7420         grantpt: Support --avoid=pt_chown.
7421         * modules/grantpt (Files): Add lib/pty-private.h.
7422
7423 2011-10-20  Bruno Haible  <bruno@clisp.org>
7424
7425         posix_openpt: Fix autoconf macro.
7426         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7427         unneeded check for _getpty.
7428
7429 2011-10-20  Bruno Haible  <bruno@clisp.org>
7430
7431         openpty: Update comments.
7432         * lib/openpty.c: Add comments about Minix.
7433
7434 2011-10-19  Eric Blake  <eblake@redhat.com>
7435
7436         openpty: relax license
7437         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7438
7439         pt_chown: use configmake to simplify build
7440         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7441
7442         ptsname and others: relax license
7443         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7444         * modules/unlockpt (License): Likewise.
7445         * modules/pt_chown (License): Likewise.
7446         * modules/ptsname (License): Likewise.
7447         * modules/ttyname_r (License): Likewise.
7448
7449 2011-10-19  Jim Meyering  <meyering@redhat.com>
7450
7451         posix_openpt: remove spurious #endif
7452         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7453
7454 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7455
7456         maint.mk: Respect $(build_aux) in web-manual rule.
7457         * top/maint.mk (web-manual): Find gen-announce script in user's
7458         $(build_aux) directory instead of hard-coding 'build-aux'.
7459
7460 2011-10-19  Bruno Haible  <bruno@clisp.org>
7461
7462         posix_openpt: Fix compilation error.
7463         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7464         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7465         Mention the openpty module as an alternative.
7466
7467 2011-10-19  Bruno Haible  <bruno@clisp.org>
7468
7469         Support for old NeXTstep 3.3 frexp().
7470         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7471         execution time of the test to 5 seconds.
7472         Reported by Daniel Richard G. <skunk@iskunk.org>.
7473
7474 2011-10-19  Bruno Haible  <bruno@clisp.org>
7475
7476         Support for old NeXTstep 3.3 sed.
7477         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7478         part, use /.../, not \|...|. Escape periods in the header file name.
7479         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7480         Reported by Daniel Richard G. <skunk@iskunk.org>.
7481
7482 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7483
7484         Support for old NeXTstep 3.3 gcc.
7485         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7486         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7487         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7488         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7489         * lib/regex.h (_Restrict_arr_): Likewise.
7490         * lib/regex_internal.h (re_token_t): Likewise.
7491         * lib/regexec.c (check_node_accept_bytes): Likewise.
7492         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7493
7494 2011-10-18  Eric Blake  <eblake@redhat.com>
7495
7496         posix_openpt: new module
7497         * modules/posix_openpt: New module.
7498         * m4/posix_openpt.m4: New file.
7499         * lib/posix_openpt.c: Likewise.
7500         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7501         (gl_STDLIB_H_DEFAULTS): Set defaults.
7502         * modules/stdlib (Makefile.am): Substitute macros.
7503         * lib/stdlib.in.h (posix_openpt): Declare.
7504         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7505         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7506         * modules/posix_openpt-tests: New test module.
7507         * tests/test-posix_openpt.c: New test.
7508
7509 2011-10-15  Bruno Haible  <bruno@clisp.org>
7510
7511         xstrtoll: Fix compilation failure.
7512         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7513         from lib/strtol.c.
7514         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7515         some platforms.
7516         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7517
7518 2011-10-15  Bruno Haible  <bruno@clisp.org>
7519
7520         vasnprintf: Optimize bit search operation.
7521         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7523         gl_DOUBLE_EXPONENT_LOCATION.
7524         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7525         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7526         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7527         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7528         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7529         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7530         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7531         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7532         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7533
7534 2011-10-15  Bruno Haible  <bruno@clisp.org>
7535
7536         vasnprintf: Fix comments.
7537         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7538
7539 2011-10-14  Bruno Haible  <bruno@clisp.org>
7540
7541         Tests for module 'integer_length_ll'.
7542         * modules/integer_length_ll-tests: New file.
7543         * tests/test-integer_length_ll.c: New file.
7544
7545         New module 'integer_length_ll'.
7546         * lib/integer_length_ll.c: New file.
7547         * modules/integer_length_ll: New file.
7548
7549 2011-10-14  Bruno Haible  <bruno@clisp.org>
7550
7551         Tests for module 'integer_length_l'.
7552         * modules/integer_length_l-tests: New file.
7553         * tests/test-integer_length_l.c: New file.
7554
7555         New module 'integer_length_l'.
7556         * lib/integer_length_l.c: New file.
7557         * modules/integer_length_l: New file.
7558
7559 2011-10-14  Bruno Haible  <bruno@clisp.org>
7560
7561         Tests for module 'integer_length'.
7562         * modules/integer_length-tests: New file.
7563         * tests/test-integer_length.c: New file.
7564
7565         New module 'integer_length'.
7566         * lib/integer_length.h: New file.
7567         * lib/integer_length.c: New file.
7568         * modules/integer_length: New file.
7569
7570 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7571
7572         popen: Fix dependency conditions.
7573         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7574
7575 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7576
7577         perror: Fix autoconf test.
7578         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7579         <stdlib.h> and <string.h>.
7580
7581 2011-10-14  Bruno Haible  <bruno@clisp.org>
7582
7583         ffsl: Optimize on 64-bit platforms.
7584         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7585         unrolling.
7586
7587 2011-10-13  Bruno Haible  <bruno@clisp.org>
7588
7589         ffsl: Optimize on 32-bit platforms.
7590         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7591         use ffs() without a loop.
7592
7593         ffsl, ffsll: Optimize for GCC.
7594         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7595         * lib/ffsl.c (GCC_BUILTIN): New macro.
7596         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7597
7598 2011-10-13  Bruno Haible  <bruno@clisp.org>
7599
7600         ffs, bcopy, memset: Support symbol renaming via config.h.
7601         * lib/ffs.c: Include <config.h>.
7602         * lib/bcopy.c: Likewise.
7603         * lib/memset.c: Likewise.
7604
7605 2011-10-10  Bruno Haible  <bruno@clisp.org>
7606
7607         atanl: Simplify for platforms where 'long double' == 'double'.
7608         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7609         alternative implementation.
7610         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7611         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7612         * modules/atanl (Depends-on): Add atan. Update conditions.
7613
7614 2011-10-10  Bruno Haible  <bruno@clisp.org>
7615
7616         acosl: Simplify for platforms where 'long double' == 'double'.
7617         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7618         alternative implementation.
7619         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7620         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7621         * modules/acosl (Depends-on): Add acos. Update conditions.
7622
7623 2011-10-10  Bruno Haible  <bruno@clisp.org>
7624
7625         asinl: Simplify for platforms where 'long double' == 'double'.
7626         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7627         alternative implementation.
7628         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7629         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7630         * modules/asinl (Depends-on): Add asin. Update conditions.
7631
7632 2011-10-10  Bruno Haible  <bruno@clisp.org>
7633
7634         tanl: Simplify for platforms where 'long double' == 'double'.
7635         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7636         implementation.
7637         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7638         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7639         * modules/tanl (Depends-on): Add tan. Update conditions.
7640         (configure.ac): Don't compile trigl.c if
7641         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7642
7643 2011-10-10  Bruno Haible  <bruno@clisp.org>
7644
7645         cosl: Simplify for platforms where 'long double' == 'double'.
7646         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7647         implementation.
7648         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7649         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7650         * modules/cosl (Depends-on): Add cos. Update conditions.
7651         (configure.ac): Don't compile sincosl.c and trigl.c if
7652         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7653
7654 2011-10-10  Bruno Haible  <bruno@clisp.org>
7655
7656         sinl: Simplify for platforms where 'long double' == 'double'.
7657         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7658         implementation.
7659         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7660         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7661         * modules/sinl (Depends-on): Add sin. Update conditions.
7662         (configure.ac): Don't compile sincosl.c and trigl.c if
7663         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7664
7665 2011-10-10  Bruno Haible  <bruno@clisp.org>
7666
7667         logl: Simplify for platforms where 'long double' == 'double'.
7668         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7669         implementation.
7670         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7671         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7672         * modules/logl (Depends-on): Add log. Update conditions.
7673
7674 2011-10-10  Bruno Haible  <bruno@clisp.org>
7675
7676         expl: Simplify for platforms where 'long double' == 'double'.
7677         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7678         implementation.
7679         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7680         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7681         * modules/expl (Depends-on): Add exp. Update conditions.
7682
7683 2011-10-10  Bruno Haible  <bruno@clisp.org>
7684
7685         sqrtl: Simplify for platforms where 'long double' == 'double'.
7686         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7687         alternative implementation.
7688         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7689         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7690         * modules/sqrtl (Depends-on): Update conditions.
7691
7692 2011-10-10  Bruno Haible  <bruno@clisp.org>
7693
7694         ldexpl: Simplify for platforms where 'long double' == 'double'.
7695         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7696         alternative implementation.
7697         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7698         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7699         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7700
7701 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7702
7703         ffsll: set correct witness
7704         * modules/ffsll (configure.ac): Fix typo.
7705
7706 2011-10-10  Bruno Haible  <bruno@clisp.org>
7707
7708         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7709         * lib/printf-frexpl.c: Include <config.h>.
7710         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7711         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7712         second time.
7713         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7714         gl_LONG_DOUBLE_VS_DOUBLE.
7715         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7716         conditions.
7717
7718 2011-10-10  Bruno Haible  <bruno@clisp.org>
7719
7720         frexpl: Simplify for platforms where 'long double' == 'double'.
7721         * lib/frexpl.c: Include <config.h>.
7722         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7723         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7724         time.
7725         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7726         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7727         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7728         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7729         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7730         conditions.
7731
7732 2011-10-10  Jim Meyering  <meyering@redhat.com>
7733
7734         test-renameat: don't leave behind a temporary file
7735         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7736           ERROR: files left in build directory after distclean:
7737           ./gltests/test-renameat.too
7738           make[1]: *** [distcleancheck] Error 1
7739         Reported by Tom G. Christensen.
7740
7741 2011-10-09  Bruno Haible  <bruno@clisp.org>
7742
7743         rint: Determine RINT_LIBM correctly on AIX 7.
7744         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7745         directly, not only through a function pointer. Also accept an optional
7746         4th argument with extra code.
7747         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7748         rintf() call by gcc when optimizing.
7749
7750         mathfunc.m4: Refactor.
7751         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7752         m4 variable.
7753
7754 2011-10-09  Bruno Haible  <bruno@clisp.org>
7755
7756         rintl: Simplify for platforms where 'long double' == 'double'.
7757         * lib/rintl.c: Include <config.h>.
7758         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7759         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7760         time.
7761         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7762         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7763         * modules/rintl (Depends-on): Add rint. Update conditions.
7764
7765 2011-10-09  Bruno Haible  <bruno@clisp.org>
7766
7767         roundl: Simplify for platforms where 'long double' == 'double'.
7768         * lib/roundl.c: Include <config.h>.
7769         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7770         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7771         time.
7772         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7773         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7774         * modules/roundl (Depends-on): Add round. Update conditions.
7775
7776 2011-10-09  Bruno Haible  <bruno@clisp.org>
7777
7778         truncl: Simplify for platforms where 'long double' == 'double'.
7779         * lib/truncl.c: Include <config.h>.
7780         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7781         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7782         time.
7783         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7784         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7785         * modules/truncl (Depends-on): Add trunc. Update conditions.
7786
7787 2011-10-09  Bruno Haible  <bruno@clisp.org>
7788
7789         ceill: Simplify for platforms where 'long double' == 'double'.
7790         * lib/ceill.c: Include <config.h>.
7791         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7792         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7793         time.
7794         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7795         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7796         * modules/ceill (Depends-on): Add ceil. Update conditions.
7797
7798 2011-10-09  Bruno Haible  <bruno@clisp.org>
7799
7800         floorl: Simplify for platforms where 'long double' == 'double'.
7801         * lib/floorl.c: Include <config.h>.
7802         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7803         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7804         time.
7805         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7806         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7807         * modules/floorl (Depends-on): Add floor. Update conditions.
7808
7809 2011-10-09  Bruno Haible  <bruno@clisp.org>
7810
7811         rint: Fix ordering constraints.
7812         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7813         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7814         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7815
7816 2011-10-09  Bruno Haible  <bruno@clisp.org>
7817
7818         copysignl: Simplify for platforms where 'long double' == 'double'.
7819         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7820         alternative.
7821         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7822         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7823         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7824
7825 2011-10-09  Bruno Haible  <bruno@clisp.org>
7826
7827         Tests for module 'rintl'.
7828         * modules/rintl-tests: New file.
7829         * tests/test-rintl.c: New file.
7830
7831         New module 'rintl'.
7832         * lib/math.in.h (rintl): New declaration.
7833         * lib/rintl.c: New file.
7834         * m4/rintl.m4: New file.
7835         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7836         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7837         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7838         * modules/rintl: New file.
7839         * tests/test-math-c++.cc: Check the declaration of rintl.
7840         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7841         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7842         * doc/posix-functions/rintl.texi: Mention the new module.
7843
7844 2011-10-09  Bruno Haible  <bruno@clisp.org>
7845
7846         Tests for module 'rintf'.
7847         * modules/rintf-tests: New file.
7848         * tests/test-rintf.c: New file.
7849
7850         New module 'rintf'.
7851         * lib/math.in.h (rintf): New declaration.
7852         * lib/rintf.c: New file.
7853         * m4/rintf.m4: New file.
7854         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7856         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7857         * modules/rintf: New file.
7858         * tests/test-math-c++.cc: Check the declaration of rintf.
7859         * doc/posix-functions/rintf.texi: Mention the new module.
7860
7861 2011-10-09  Bruno Haible  <bruno@clisp.org>
7862
7863         rint: Support for MSVC.
7864         * lib/math.in.h (rint): New declaration.
7865         * lib/rint.c: New file.
7866         * m4/rint.m4: New file.
7867         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7869         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7870         * modules/rint (Description): Fix.
7871         (Files): Add lib/rint.c, m4/rint.m4.
7872         (Depends-on): Add math.
7873         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7874         gl_MATH_MODULE_INDICATOR.
7875         * tests/test-math-c++.cc: Check the declaration of rint.
7876         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7877         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7878         * doc/posix-functions/rint.texi: Mention the replacement provided by
7879         the module.
7880
7881         rint tests: More tests.
7882         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7883         minus-zero.h, infinity.h, nan.h.
7884         (main): Skip the test if the current rounding mode is not standard. Add
7885         tests for negative numbers, minus zero, infinity, NaN.
7886         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7887         tests/nan.h.
7888         (Depends-on): Add isnand-nolibm.
7889
7890 2011-10-09  Bruno Haible  <bruno@clisp.org>
7891
7892         Tests for module 'copysignl'.
7893         * modules/copysignl-tests: New file.
7894         * tests/test-copysignl.c: New file.
7895
7896         New module 'copysignl'.
7897         * lib/math.in.h (copysignl): New declaration.
7898         * lib/copysignl.c: New file.
7899         * m4/copysignl.m4: New file.
7900         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7902         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7903         HAVE_COPYSIGNL.
7904         * modules/copysignl: New file.
7905         * tests/test-math-c++.cc: Check the declaration of copysignl.
7906         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7907         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7908         * doc/posix-functions/copysignl.texi: Mention the new module.
7909
7910 2011-10-09  Bruno Haible  <bruno@clisp.org>
7911
7912         Tests for module 'copysignf'.
7913         * modules/copysignf-tests: New file.
7914         * tests/test-copysignf.c: New file.
7915
7916         New module 'copysignf'.
7917         * lib/math.in.h (copysignf): New declaration.
7918         * lib/copysignf.c: New file.
7919         * m4/copysignf.m4: New file.
7920         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7922         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7923         HAVE_COPYSIGNF.
7924         * modules/copysignf: New file.
7925         * tests/test-math-c++.cc: Check the declaration of copysignf.
7926         * doc/posix-functions/copysignf.texi: Mention the new module.
7927
7928 2011-10-09  Bruno Haible  <bruno@clisp.org>
7929
7930         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7931         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7932         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7933         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7934         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7935         gl_SIGNAL_H_DEFAULTS.
7936
7937 2011-10-09  Bruno Haible  <bruno@clisp.org>
7938
7939         poll: Make macro safer.
7940         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7941         ac_cv_header_poll_h is not set.
7942
7943 2011-10-09  Bruno Haible  <bruno@clisp.org>
7944
7945         copysign: Provide replacement.
7946         * lib/math.in.h (copysign): New declaration.
7947         * lib/copysign.c: New file.
7948         * m4/copysign.m4: New file.
7949         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7951         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7952         HAVE_COPYSIGN.
7953         * modules/copysign (Description): Clarify.
7954         (Files): Add lib/copysign.c, m4/copysign.m4.
7955         (Depends-on): Add math, signbit.
7956         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7957         gl_MATH_MODULE_INDICATOR.
7958         * tests/test-math-c++.cc: Check the declaration of copysign.
7959         * doc/posix-functions/copysign.texi: Mention the effects of the module
7960         on Minix and MSVC.
7961
7962 2011-10-09  Bruno Haible  <bruno@clisp.org>
7963
7964         isinf: Ensure macro on AIX 5.1.
7965         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7966         macro.
7967         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7968
7969 2011-10-09  Bruno Haible  <bruno@clisp.org>
7970
7971         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7972         * modules/snprintf-posix-tests (configure.ac): Require
7973         gl_LONG_DOUBLE_VS_DOUBLE.
7974         * modules/sprintf-posix-tests (configure.ac): Likewise.
7975         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7976         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7977         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7978         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7979         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7980         tests on platforms where 'long double' is the same as 'double'.
7981         * tests/test-sprintf-posix.h (test_function): Likewise.
7982         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7983         * tests/test-vasprintf-posix.c (test_function): Likewise.
7984
7985         *printf: Fix for platforms where 'long double' == 'double'.
7986         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7987         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7988         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7989         * modules/fprintf-posix (Files): Likewise.
7990         * modules/obstack-printf-posix (Files): Likewise.
7991         * modules/snprintf-posix (Files): Likewise.
7992         * modules/sprintf-posix (Files): Likewise.
7993         * modules/vasnprintf (Files): Likewise.
7994         * modules/vasnprintf-posix (Files): Likewise.
7995         * modules/vasprintf-posix (Files): Likewise.
7996         * modules/vdprintf-posix (Files): Likewise.
7997         * modules/vfprintf-posix (Files): Likewise.
7998         * modules/vsnprintf-posix (Files): Likewise.
7999         * modules/vsprintf-posix (Files): Likewise.
8000         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8001         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8002         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8003         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8004         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8005         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8006         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8007
8008         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8009         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8010         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8011         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8012         'long double'.
8013         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8014
8015         isinf: Fix for platforms where 'long double' == 'double'.
8016         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8017         Don't blindly assume 80-bit 'long double'.
8018
8019         isfinite: Fix for platforms where 'long double' == 'double'.
8020         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8021         Don't blindly assume 80-bit 'long double'.
8022
8023         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8024         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8025         * modules/isfinite-tests (configure.ac): Require
8026         gl_LONG_DOUBLE_VS_DOUBLE.
8027         * modules/isinf-tests (configure.ac): Likewise.
8028         * modules/isnan-tests (configure.ac): Likewise.
8029         * modules/isnanl-tests (configure.ac): Likewise.
8030         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8031         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8032         tests on platforms where 'long double' is the same as 'double'.
8033         * tests/test-isinf.c (test_isinfl): Likewise.
8034         * tests/test-isnan.c (test_long_double): Likewise.
8035         * tests/test-isnanl.h (main): Likewise.
8036
8037 2011-10-08  Bruno Haible  <bruno@clisp.org>
8038
8039         Tests for module 'tanhf'.
8040         * modules/tanhf-tests: New file.
8041         * tests/test-tanhf.c: New file.
8042
8043         New module 'tanhf'.
8044         * lib/math.in.h (tanhf): New declaration.
8045         * lib/tanhf.c: New file.
8046         * m4/tanhf.m4: New file.
8047         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8049         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8050         * modules/tanhf: New file.
8051         * tests/test-math-c++.cc: Check the declaration of tanhf.
8052         * doc/posix-functions/tanhf.texi: Mention the new module.
8053
8054         tanh: Use a .m4 file.
8055         * m4/tanh.m4: New file.
8056         * modules/tanh (Files): Add it.
8057         (configure.ac): Just invoke gl_FUNC_TANH.
8058
8059 2011-10-08  Bruno Haible  <bruno@clisp.org>
8060
8061         Tests for module 'coshf'.
8062         * modules/coshf-tests: New file.
8063         * tests/test-coshf.c: New file.
8064
8065         New module 'coshf'.
8066         * lib/math.in.h (coshf): New declaration.
8067         * lib/coshf.c: New file.
8068         * m4/coshf.m4: New file.
8069         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8071         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8072         * modules/coshf: New file.
8073         * tests/test-math-c++.cc: Check the declaration of coshf.
8074         * doc/posix-functions/coshf.texi: Mention the new module.
8075
8076         cosh: Use a .m4 file.
8077         * m4/cosh.m4: New file.
8078         * modules/cosh (Files): Add it.
8079         (configure.ac): Just invoke gl_FUNC_COSH.
8080
8081 2011-10-08  Bruno Haible  <bruno@clisp.org>
8082
8083         Tests for module 'sinhf'.
8084         * modules/sinhf-tests: New file.
8085         * tests/test-sinhf.c: New file.
8086
8087         New module 'sinhf'.
8088         * lib/math.in.h (sinhf): New declaration.
8089         * lib/sinhf.c: New file.
8090         * m4/sinhf.m4: New file.
8091         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8093         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8094         * modules/sinhf: New file.
8095         * tests/test-math-c++.cc: Check the declaration of sinhf.
8096         * doc/posix-functions/sinhf.texi: Mention the new module.
8097
8098         sinh: Use a .m4 file.
8099         * m4/sinh.m4: New file.
8100         * modules/sinh (Files): Add it.
8101         (configure.ac): Just invoke gl_FUNC_SINH.
8102
8103 2011-10-08  Bruno Haible  <bruno@clisp.org>
8104
8105         Tests for module 'atan2f'.
8106         * modules/atan2f-tests: New file.
8107         * tests/test-atan2f.c: New file.
8108
8109         New module 'atan2f'.
8110         * lib/math.in.h (atan2f): New declaration.
8111         * lib/atan2f.c: New file.
8112         * m4/atan2f.m4: New file.
8113         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8115         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8116         * modules/atan2f: New file.
8117         * tests/test-math-c++.cc: Check the declaration of atan2f.
8118         * doc/posix-functions/atan2f.texi: Mention the new module.
8119
8120         atan2: Use a .m4 file.
8121         * m4/atan2.m4: New file.
8122         * modules/atan2 (Files): Add it.
8123         (configure.ac): Just invoke gl_FUNC_ATAN2.
8124
8125 2011-10-08  Bruno Haible  <bruno@clisp.org>
8126
8127         Tests for module 'atanf'.
8128         * modules/atanf-tests: New file.
8129         * tests/test-atanf.c: New file.
8130
8131         New module 'atanf'.
8132         * lib/math.in.h (atanf): New declaration.
8133         * lib/atanf.c: New file.
8134         * m4/atanf.m4: New file.
8135         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8137         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8138         * modules/atanf: New file.
8139         * tests/test-math-c++.cc: Check the declaration of atanf.
8140         * doc/posix-functions/atanf.texi: Mention the new module.
8141
8142         atan: Use a .m4 file.
8143         * m4/atan.m4: New file.
8144         * modules/atan (Files): Add it.
8145         (configure.ac): Just invoke gl_FUNC_ATAN.
8146
8147 2011-10-08  Bruno Haible  <bruno@clisp.org>
8148
8149         Tests for module 'acosf'.
8150         * modules/acosf-tests: New file.
8151         * tests/test-acosf.c: New file.
8152
8153         New module 'acosf'.
8154         * lib/math.in.h (acosf): New declaration.
8155         * lib/acosf.c: New file.
8156         * m4/acosf.m4: New file.
8157         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8159         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8160         * modules/acosf: New file.
8161         * tests/test-math-c++.cc: Check the declaration of acosf.
8162         * doc/posix-functions/acosf.texi: Mention the new module.
8163
8164         acos: Use a .m4 file.
8165         * m4/acos.m4: New file.
8166         * modules/acos (Files): Add it.
8167         (configure.ac): Just invoke gl_FUNC_ACOS.
8168
8169 2011-10-08  Bruno Haible  <bruno@clisp.org>
8170
8171         Tests for module 'asinf'.
8172         * modules/asinf-tests: New file.
8173         * tests/test-asinf.c: New file.
8174
8175         New module 'asinf'.
8176         * lib/math.in.h (asinf): New declaration.
8177         * lib/asinf.c: New file.
8178         * m4/asinf.m4: New file.
8179         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8181         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8182         * modules/asinf: New file.
8183         * tests/test-math-c++.cc: Check the declaration of asinf.
8184         * doc/posix-functions/asinf.texi: Mention the new module.
8185
8186         asin: Use a .m4 file.
8187         * m4/asin.m4: New file.
8188         * modules/asin (Files): Add it.
8189         (configure.ac): Just invoke gl_FUNC_ASIN.
8190
8191 2011-10-08  Bruno Haible  <bruno@clisp.org>
8192
8193         Tests for module 'tanf'.
8194         * modules/tanf-tests: New file.
8195         * tests/test-tanf.c: New file.
8196
8197         New module 'tanf'.
8198         * lib/math.in.h (tanf): New declaration.
8199         * lib/tanf.c: New file.
8200         * m4/tanf.m4: New file.
8201         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8202         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8203         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8204         * modules/tanf: New file.
8205         * tests/test-math-c++.cc: Check the declaration of tanf.
8206         * doc/posix-functions/tanf.texi: Mention the new module.
8207
8208         tan: Use a .m4 file.
8209         * m4/tan.m4: New file.
8210         * modules/tan (Files): Add it.
8211         (configure.ac): Just invoke gl_FUNC_TAN.
8212
8213 2011-10-08  Bruno Haible  <bruno@clisp.org>
8214
8215         Tests for module 'cosf'.
8216         * modules/cosf-tests: New file.
8217         * tests/test-cosf.c: New file.
8218
8219         New module 'cosf'.
8220         * lib/math.in.h (cosf): New declaration.
8221         * lib/cosf.c: New file.
8222         * m4/cosf.m4: New file.
8223         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8225         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8226         * modules/cosf: New file.
8227         * tests/test-math-c++.cc: Check the declaration of cosf.
8228         * doc/posix-functions/cosf.texi: Mention the new module.
8229
8230         cos: Use a .m4 file.
8231         * m4/cos.m4: New file.
8232         * modules/cos (Files): Add it.
8233         (configure.ac): Just invoke gl_FUNC_COS.
8234
8235 2011-10-08  Bruno Haible  <bruno@clisp.org>
8236
8237         Tests for module 'sinf'.
8238         * modules/sinf-tests: New file.
8239         * tests/test-sinf.c: New file.
8240
8241         New module 'sinf'.
8242         * lib/math.in.h (sinf): New declaration.
8243         * lib/sinf.c: New file.
8244         * m4/sinf.m4: New file.
8245         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8247         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8248         * modules/sinf: New file.
8249         * tests/test-math-c++.cc: Check the declaration of sinf.
8250         * doc/posix-functions/sinf.texi: Mention the new module.
8251
8252         sin: Use a .m4 file.
8253         * m4/sin.m4: New file.
8254         * modules/sin (Files): Add it.
8255         (configure.ac): Just invoke gl_FUNC_SIN.
8256
8257 2011-10-08  Bruno Haible  <bruno@clisp.org>
8258
8259         Tests for module 'powf'.
8260         * modules/powf-tests: New file.
8261         * tests/test-powf.c: New file.
8262
8263         New module 'powf'.
8264         * lib/math.in.h (powf): New declaration.
8265         * lib/powf.c: New file.
8266         * m4/powf.m4: New file.
8267         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8268         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8269         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8270         * modules/powf: New file.
8271         * tests/test-math-c++.cc: Check the declaration of powf.
8272         * doc/posix-functions/powf.texi: Mention the new module.
8273
8274         pow: Use a .m4 file.
8275         * m4/pow.m4: New file.
8276         * modules/pow (Files): Add it.
8277         (configure.ac): Just invoke gl_FUNC_POW.
8278
8279 2011-10-08  Bruno Haible  <bruno@clisp.org>
8280
8281         Tests for module 'log10f'.
8282         * modules/log10f-tests: New file.
8283         * tests/test-log10f.c: New file.
8284
8285         New module 'log10f'.
8286         * lib/math.in.h (log10f): New declaration.
8287         * lib/log10f.c: New file.
8288         * m4/log10f.m4: New file.
8289         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8291         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8292         * modules/log10f: New file.
8293         * tests/test-math-c++.cc: Check the declaration of log10f.
8294         * doc/posix-functions/log10f.texi: Mention the new module.
8295
8296         log10: Use a .m4 file.
8297         * m4/log10.m4: New file.
8298         * modules/log10 (Files): Add it.
8299         (configure.ac): Just invoke gl_FUNC_LOG10.
8300
8301 2011-10-08  Bruno Haible  <bruno@clisp.org>
8302
8303         Tests for module 'logf'.
8304         * modules/logf-tests: New file.
8305         * tests/test-logf.c: New file.
8306
8307         New module 'logf'.
8308         * lib/math.in.h (logf): New declaration.
8309         * lib/logf.c: New file.
8310         * m4/logf.m4: New file.
8311         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8312         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8313         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8314         * modules/logf: New file.
8315         * tests/test-math-c++.cc: Check the declaration of logf.
8316         * doc/posix-functions/logf.texi: Mention the new module.
8317
8318         log: Use a .m4 file.
8319         * m4/log.m4: New file.
8320         * modules/log (Files): Add it.
8321         (configure.ac): Just invoke gl_FUNC_LOG.
8322
8323 2011-10-08  Bruno Haible  <bruno@clisp.org>
8324
8325         Tests for module 'expf'.
8326         * modules/expf-tests: New file.
8327         * tests/test-expf.c: New file.
8328
8329         New module 'expf'.
8330         * lib/math.in.h (expf): New declaration.
8331         * lib/expf.c: New file.
8332         * m4/expf.m4: New file.
8333         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8335         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8336         * modules/expf: New file.
8337         * tests/test-math-c++.cc: Check the declaration of expf.
8338         * doc/posix-functions/expf.texi: Mention the new module.
8339
8340         exp: Use a .m4 file.
8341         * m4/exp.m4: New file.
8342         * modules/exp (Files): Add it.
8343         (configure.ac): Just invoke gl_FUNC_EXP.
8344
8345 2011-10-08  Bruno Haible  <bruno@clisp.org>
8346
8347         Tests for module 'sqrtf'.
8348         * modules/sqrtf-tests: New file.
8349         * tests/test-sqrtf.c: New file.
8350
8351         New module 'sqrtf'.
8352         * lib/math.in.h (sqrtf): New declaration.
8353         * lib/sqrtf.c: New file.
8354         * m4/sqrtf.m4: New file.
8355         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8356         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8357         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8358         * modules/sqrtf: New file.
8359         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8360         * doc/posix-functions/sqrtf.texi: Mention the new module.
8361
8362 2011-10-08  Bruno Haible  <bruno@clisp.org>
8363
8364         Tests: Avoid link failures w.r.t. libintl.
8365         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8366         $(LIBINTL).
8367         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8368         $(LIBINTL).
8369         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8370         against $(LIBINTL).
8371         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8372         $(LIBINTL).
8373         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8374         $(LIBINTL).
8375         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8376
8377 2011-10-08  Bruno Haible  <bruno@clisp.org>
8378
8379         pow tests: Defeat compiler optimizations.
8380         * tests/test-pow.c (main): Assign arguments to x and y before use.
8381
8382 2011-10-08  Bruno Haible  <bruno@clisp.org>
8383
8384         gnulib-tool: Improve last commit.
8385         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8386         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8387         ignore dependencies that are not among the modules list.
8388
8389 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8390
8391         gnulib-tool: don't follow dependencies to avoided modules
8392         This fixes a bug that is related to the previous one.
8393         * gnulib-tool (func_modules_transitive_closure)
8394         (func_emit_autoconf_snippets):
8395         Check whether a dependency is acceptable before using it.
8396         (--extract-dependencies): Report an error if --avoid is also used,
8397         since this combination of options is not yet supported.
8398
8399         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8400         Problem reported by Peter Dyballa in
8401         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8402         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8403         when echoing "$condition".
8404
8405 2011-10-07  Bruno Haible  <bruno@clisp.org>
8406
8407         Fix documentation about math functions on MacOS X.
8408         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8409         MacOS X 10.5.
8410         * doc/posix-functions/fdim.texi: Likewise.
8411         * doc/posix-functions/feclearexcept.texi: Likewise.
8412         * doc/posix-functions/fegetenv.texi: Likewise.
8413         * doc/posix-functions/fegetround.texi: Likewise.
8414         * doc/posix-functions/feholdexcept.texi: Likewise.
8415         * doc/posix-functions/feraiseexcept.texi: Likewise.
8416         * doc/posix-functions/fesetenv.texi: Likewise.
8417         * doc/posix-functions/fesetround.texi: Likewise.
8418         * doc/posix-functions/fetestexcept.texi: Likewise.
8419         * doc/posix-functions/feupdateenv.texi: Likewise.
8420         * doc/posix-functions/fmax.texi: Likewise.
8421         * doc/posix-functions/fmin.texi: Likewise.
8422         * doc/posix-functions/log2.texi: Likewise.
8423         * doc/posix-functions/modff.texi: Likewise.
8424         * doc/posix-functions/nan.texi: Likewise.
8425         * doc/posix-functions/nanf.texi: Likewise.
8426         * doc/posix-functions/nextafterf.texi: Likewise.
8427         * doc/posix-functions/remquo.texi: Likewise.
8428
8429 2011-10-07  Bruno Haible  <bruno@clisp.org>
8430
8431         modff: Drop assumption about library that defines modff.
8432         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8433         AC_CHECK_FUNCS.
8434         * modules/modff (Files): Add m4/mathfunc.m4.
8435
8436 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8437
8438         raise tests: Avoid a GCC warning.
8439         * tests/test-raise.c (handler): Use _Noreturn.
8440
8441 2011-10-07  Bruno Haible  <bruno@clisp.org>
8442
8443         Tests for module 'ldexpf'.
8444         * modules/ldexpf-tests: New file.
8445         * tests/test-ldexpf.c: New file.
8446
8447         New module 'ldexpf'.
8448         * lib/math.in.h (ldexpf): New declaration.
8449         * lib/ldexpf.c: New file.
8450         * m4/ldexpf.m4: New file.
8451         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8453         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8454         * modules/ldexpf: New file.
8455         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8456         * doc/posix-functions/ldexpf.texi: Mention the new module.
8457
8458 2011-10-06  Bruno Haible  <bruno@clisp.org>
8459
8460         frexpf: Work around problems on IRIX and mingw.
8461         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8463         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8464         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8465         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8466         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8467         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8468
8469 2011-10-06  Bruno Haible  <bruno@clisp.org>
8470
8471         fabsf: Drop assumption about library that defines fabsf.
8472         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8473         AC_CHECK_FUNCS.
8474         * modules/fabsf (Files): Add m4/mathfunc.m4.
8475
8476 2011-10-06  Bruno Haible  <bruno@clisp.org>
8477
8478         frexpf: Drop assumption about library that defines frexpf.
8479         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8480         'int *', 'float *', 'long double *', 'float', 'long double'.
8481         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8482         AC_CHECK_FUNCS.
8483         * modules/frexpf (Files): Add m4/mathfunc.m4.
8484
8485         Tests for module 'frexpf'.
8486         * modules/frexpf-tests: New file.
8487         * tests/test-frexpf.c: New file.
8488
8489         New module 'frexpf'.
8490         * lib/math.in.h (frexpf): New declaration.
8491         * lib/frexpf.c: New file.
8492         * m4/frexpf.m4: New file.
8493         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8494         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8495         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8496         * modules/frexpf: New file.
8497         * tests/test-math-c++.cc: Check the declaration of frexpf.
8498         * doc/posix-functions/frexpf.texi: Mention the new module.
8499
8500 2011-10-06  Bruno Haible  <bruno@clisp.org>
8501
8502         math: Sort function declarations of math.in.h.
8503         * lib/math.in.h (frexp, logb): Move declarations.
8504
8505 2011-10-05  Bruno Haible  <bruno@clisp.org>
8506
8507         Tests for module 'modff'.
8508         * modules/modff-tests: New file.
8509         * tests/test-modff.c: New file.
8510
8511         New module 'modff'.
8512         * lib/math.in.h (modff): New declaration.
8513         * lib/modff.c: New file.
8514         * m4/modff.m4: New file.
8515         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8517         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8518         * modules/modff: New file.
8519         * tests/test-math-c++.cc: Check the declaration of modff.
8520         * doc/posix-functions/modff.texi: Mention the new module.
8521
8522         modf tests: Make test sharper.
8523         * tests/test-modf.c (main): Strengthen upper bound.
8524
8525         modf: Use a .m4 file.
8526         * m4/modf.m4: New file.
8527         * modules/modf (Files): Add it.
8528         (configure.ac): Just invoke gl_FUNC_MODF.
8529
8530 2011-10-05  Bruno Haible  <bruno@clisp.org>
8531
8532         Tests for module 'fmodf'.
8533         * modules/fmodf-tests: New file.
8534         * tests/test-fmodf.c: New file.
8535
8536         New module 'fmodf'.
8537         * lib/math.in.h (fmodf): New declaration.
8538         * lib/fmodf.c: New file.
8539         * m4/fmodf.m4: New file.
8540         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8542         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8543         * modules/fmodf: New file.
8544         * tests/test-math-c++.cc: Check the declaration of fmodf.
8545         * doc/posix-functions/fmodf.texi: Mention the new module.
8546
8547         fmod: Use a .m4 file.
8548         * m4/fmod.m4: New file.
8549         * modules/fmod (Files): Add it.
8550         (configure.ac): Just invoke gl_FUNC_FMOD.
8551
8552 2011-10-05  Bruno Haible  <bruno@clisp.org>
8553
8554         Tests for module 'fabsf'.
8555         * modules/fabsf-tests: New file.
8556         * tests/test-fabsf.c: New file.
8557
8558         New module 'fabsf'.
8559         * lib/math.in.h (fabsf): New declaration.
8560         * lib/fabsf.c: New file.
8561         * m4/fabsf.m4: New file.
8562         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8564         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8565         * modules/fabsf: New file.
8566         * tests/test-math-c++.cc: Check the declaration of fabsf.
8567         * doc/posix-functions/fabsf.texi: Mention the new module.
8568
8569         fabs: Use a .m4 file.
8570         * m4/fabs.m4: New file.
8571         * modules/fabs (Files): Add it.
8572         (configure.ac): Just invoke gl_FUNC_FABS.
8573
8574 2011-10-05  Jim Meyering  <meyering@redhat.com>
8575
8576         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8577         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8578         ls -lL regression introduced in coreutils-8.12, it does so at the
8579         cost of an additional stat call in the common case.  Besides, now
8580         that the kernel change that prompted commit 95f7c57f has been reverted
8581         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8582         we have no use for commit 95f7c57f, "file-has-acl: use
8583         acl_extended_file_nofollow if available".
8584
8585 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8586
8587         file-has-acl: revert unintended change in behavior of ls -L
8588         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8589         derived from...
8590         (file_has_acl): ...code here.  Call it.
8591         This problem was introduced with 2011-07-22 commit 95f7c57f,
8592         "file-has-acl: use acl_extended_file_nofollow if available".
8593         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8594
8595 2011-10-03  Bruno Haible  <bruno@clisp.org>
8596
8597         poll: Avoid link errors on MSVC.
8598         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8599         * modules/poll (Depends-on): Add sockets.
8600         (Link): New section.
8601         * NEWS: Mention the change.
8602         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8603         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8604         $(LIB_POLL) instead of $(LIBSOCKET).
8605
8606 2011-10-03  Bruno Haible  <bruno@clisp.org>
8607
8608         sys_select tests: Fix link error on MSVC 9.
8609         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8610         with $(LIB_SELECT) instead of $(LIBSOCKET).
8611
8612 2011-10-03  Bruno Haible  <bruno@clisp.org>
8613
8614         sys_select: Fix compilation error on mingw.
8615         * lib/sys_select.in.h: On native Windows, include <io.h>.
8616
8617 2011-10-03  Bruno Haible  <bruno@clisp.org>
8618
8619         wmemset: Support for MSVC.
8620         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8621         whether wmemset() exists.
8622
8623 2011-10-03  Bruno Haible  <bruno@clisp.org>
8624
8625         wmemmove: Support for MSVC.
8626         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8627         whether wmemmove() exists.
8628
8629 2011-10-03  Bruno Haible  <bruno@clisp.org>
8630
8631         wmemcpy: Support for MSVC.
8632         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8633         whether wmemcpy() exists.
8634
8635 2011-10-03  Bruno Haible  <bruno@clisp.org>
8636
8637         wmemcmp: Support for MSVC.
8638         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8639         whether wmemcmp() exists.
8640
8641 2011-10-03  Bruno Haible  <bruno@clisp.org>
8642
8643         wmemchr: Support for MSVC.
8644         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8645         whether wmemchr() exists.
8646
8647 2011-10-03  Bruno Haible  <bruno@clisp.org>
8648
8649         glthread/*, strsignal: Support for MSVC.
8650         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8651         including <winsock.h> on MSVC 9.
8652         * lib/glthread/lock.h: Likewise.
8653         * lib/glthread/thread.h: Likewise.
8654         * lib/glthread/tls.h: Likewise.
8655         * lib/glthread/yield.h: Likewise.
8656         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8657         if HAVE_UNISTD_H is false.
8658         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8659
8660 2011-10-03  Bruno Haible  <bruno@clisp.org>
8661
8662         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8663         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8664         Set to 100000.
8665
8666 2011-10-03  Bruno Haible  <bruno@clisp.org>
8667
8668         acl: Fix specification.
8669         * lib/file-has-acl.c (file_has_acl): Fix specification.
8670
8671 2011-10-03  Bruno Haible  <bruno@clisp.org>
8672
8673         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8674         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8675         (compute_curr_prefix, shared_library_fullname,
8676         find_shared_library_fullname, get_shared_library_fullname, relocate):
8677         Use it together with PIC && INSTALLDIR.
8678         Reported by <jojelino@gmail.com>
8679         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8680
8681 2011-10-01  Jim Meyering  <meyering@redhat.com>
8682
8683         maint.mk: adjust a release-related rule not to require use of gzip
8684         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8685         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8686         projects that build only .tar.xz files.  Also fix an erroneous test.
8687
8688         test-linkat: don't leave behind a temporary file
8689         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8690         Otherwise, coreutils' "make distcheck" would fail with this:
8691           Only in /c/cu/tests/torture/coreutils/test/\
8692             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8693           make[2]: *** [my-distcheck] Error 1
8694
8695         float, math: add omitted file
8696         * lib/itold.c: Add file, required for yesterday's float change.
8697
8698 2011-10-01  Bruno Haible  <bruno@clisp.org>
8699
8700         isinf: Fix for OpenBSD/x86.
8701         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8702         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8703         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8704
8705 2011-10-01  Bruno Haible  <bruno@clisp.org>
8706
8707         isfinite: Fix syntax error in configure test.
8708         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8709
8710         isfinite: Fix typo.
8711         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8712         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8713
8714 2011-10-01  Bruno Haible  <bruno@clisp.org>
8715
8716         nonblocking tests: Fix test failure on Linux/IA-64.
8717         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8718         Set to 270000.
8719
8720 2011-10-01  Bruno Haible  <bruno@clisp.org>
8721
8722         mkfifoat tests: Fix a test failure on mingw.
8723         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8724         with error ENOSYS.
8725
8726 2011-09-30  Bruno Haible  <bruno@clisp.org>
8727
8728         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8729         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8730         'long double'. Set REPLACE_ITOLD.
8731         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8732         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8733         * lib/itold.c: New file.
8734         * modules/float (Files): Add lib/itold.c.
8735         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8736         (Makefile.am): Substitute REPLACE_ITOLD.
8737         * modules/math (Depends-on): Add float.
8738         (Makefile.am): Substitute REPLACE_ITOLD.
8739         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8740         * doc/posix-headers/math.texi: Likewise.
8741         * doc/posix-functions/logl.texi: Likewise.
8742
8743 2011-09-30  Bruno Haible  <bruno@clisp.org>
8744
8745         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8746         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8747         Set to 140000.
8748
8749 2011-09-30  Bruno Haible  <bruno@clisp.org>
8750
8751         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8752         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8753         invocation, say "right after AC_PROG_CC_STDC", not "right after
8754         AC_PROG_CC".
8755         Reported by Gary V. Vaughan <gary@gnu.org>.
8756
8757 2011-09-30  Bruno Haible  <bruno@clisp.org>
8758
8759         Centralize C99 requirement.
8760         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8761         * modules/stdarg (configure.ac-early): Invoke it instead of
8762         AC_PROG_CC_STDC.
8763         Reported by Gary V. Vaughan and Paul Eggert.
8764
8765 2011-09-29  Bruno Haible  <bruno@clisp.org>
8766
8767         float: Fix LDBL_MAX value on Linux/PowerPC.
8768         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8769         on Linux/PowerPC.
8770         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8771         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8772         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8773         platform.
8774         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8775
8776 2011-09-29  Bruno Haible  <bruno@clisp.org>
8777
8778         doc: Improve doc about gl_EARLY.
8779         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8780         AC_PROG_CC_STDC invocation.
8781         Reported by Gary V. Vaughan <gary@gnu.org>.
8782
8783 2011-09-28  Bruno Haible  <bruno@clisp.org>
8784
8785         fgetc, fputc, fread, fwrite tests: Fix link error.
8786         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8787         on non-MSVC platforms.
8788         * tests/test-fputc.c (main): Likewise.
8789         * tests/test-fread.c (main): Likewise.
8790         * tests/test-fwrite.c (main): Likewise.
8791         Reported by Jim Meyering.
8792
8793 2011-09-27  Bruno Haible  <bruno@clisp.org>
8794
8795         fputc, fwrite tests: Avoid test failure on MSVC.
8796         * tests/test-fgetc.c: Include msvc-inval.h.
8797         (main): Invoke gl_msvc_inval_ensure_handler.
8798         * tests/test-fputc.c: Include msvc-inval.h.
8799         (main): Invoke gl_msvc_inval_ensure_handler.
8800         * tests/test-fread.c: Include msvc-inval.h.
8801         (main): Invoke gl_msvc_inval_ensure_handler.
8802         * tests/test-fwrite.c: Include msvc-inval.h.
8803         (main): Invoke gl_msvc_inval_ensure_handler.
8804         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8805         * modules/fputc-tests (Depends-on): Likewise.
8806         * modules/fread-tests (Depends-on): Likewise.
8807         * modules/fwrite-tests (Depends-on): Likewise.
8808
8809 2011-09-27  Bruno Haible  <bruno@clisp.org>
8810
8811         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8812         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8813         (raise): Remove older, duplicated declaration.
8814         (_gl_raise_SIGPIPE): New declaration.
8815         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8816         (rpl_raise): Remove function.
8817         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8818         a gnulib-defined SIGPIPE here.
8819         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8820         'sigprocmask' has detected missing signal-blocking and the module
8821         'sigpipe' is enabled.
8822         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8823
8824 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8825
8826         base64-tests: avoid memory leak
8827         * tests/test-base64.c (main): Plug memory leak.
8828
8829         base32: new module
8830         * modules/base32: New module.
8831         * lib/base32.c: New file.
8832         * lib/base32.h: Likewise.
8833         * m4/base32.m4: Likewise.
8834         * modules/base32-tests: New test.
8835         * tests/test-base32.c: Likewise.
8836         * MODULES.html.sh (Misc): Mention it.
8837
8838 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8839
8840         gnulib: use more-standard license notice wording
8841         * gnulib-tool (func_emit_copyright_notice): When emitting a
8842         license notice into a file, use the standard wording as suggested
8843         by the current information for GNU maintainers, except say "file"
8844         rather than "program".  The new wording gives a license version
8845         number, which addresses an issue raised by Glenn Morris in
8846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8847         * m4/onceonly.m4: Use that same wording here, too.
8848
8849         dup2: minor simplification
8850         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8851         as lib/dup2.c no longer uses 'inline'.
8852
8853 2011-09-25  Bruno Haible  <bruno@clisp.org>
8854
8855         strings: Fix compilation error on MSVC.
8856         * lib/strings.in.h: Include <stddef.h> for size_t.
8857
8858 2011-09-25  Bruno Haible  <bruno@clisp.org>
8859
8860         fflush et al.: Document limitation on MSVC.
8861         * doc/posix-functions/fflush.texi: Document possible crash in handling
8862         mode other than DEFAULT_HANDLING.
8863         * doc/posix-functions/fgetc.texi: Likewise.
8864         * doc/posix-functions/fputc.texi: Likewise.
8865         * doc/posix-functions/fread.texi: Likewise.
8866         * doc/posix-functions/fwrite.texi: Likewise.
8867
8868 2011-09-25  Bruno Haible  <bruno@clisp.org>
8869
8870         msvc-inval: Allow three invalid parameter handling modes.
8871         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8872         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8873         macros.
8874         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8875         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8876         SANE_LIBRARY_HANDLING as a no-op.
8877         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8878         <stdlib.h>.
8879         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8880
8881 2011-09-25  Bruno Haible  <bruno@clisp.org>
8882
8883         msvc-inval: Make handler multithread-safe.
8884         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8885         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8886         declarations.
8887         (gl_msvc_inval_current): New declaration.
8888         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8889         Operate on the structure returned by gl_msvc_inval_current().
8890         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8891         Remove varaiables.
8892         (tls_index, tls_initialized): New variables.
8893         (not_per_thread): New variable.
8894         (gl_msvc_inval_current): New function.
8895         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8896         returned by gl_msvc_inval_current().
8897
8898 2011-09-25  Bruno Haible  <bruno@clisp.org>
8899
8900         msvc-inval: Install handler globally.
8901         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8902         !_MSC_VER.
8903         (gl_msvc_invalid_parameter_handler): Remove declaration.
8904         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8905         declarations.
8906         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8907         Install the handler globally, don't uninstall it.
8908         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8909         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8910         currently valid, call RaiseException instead.
8911         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8912         for !_MSC_VER.
8913
8914 2011-09-25  Bruno Haible  <bruno@clisp.org>
8915
8916         strerror_r-posix: Fix for MSVC 9.
8917         * lib/strerror_r.c (local_snprintf): New function.
8918         (snprintf): Define to local_snprintf, not to _snprintf.
8919
8920 2011-09-25  Bruno Haible  <bruno@clisp.org>
8921
8922         ftruncate: Support for MSVC 9.
8923         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8924         (chsize_nothrow): New function.
8925         (chsize): Redefine as a macro.
8926         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8927         * modules/ftruncate (Depends-on): Add msvc-inval.
8928
8929 2011-09-25  Bruno Haible  <bruno@clisp.org>
8930
8931         New module 'fstat'.
8932         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8933         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8934         * lib/fchdir.c (rpl_fstat): Remove function.
8935         * m4/fstat.m4: New file.
8936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8937         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8938         declared.
8939         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8940         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8941         * modules/fstat: New file.
8942         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8943         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8944         is set.
8945         * doc/posix-functions/fstat.texi: Mention the new module and the
8946         problem on MSVC.
8947         * NEWS: Mention the change.
8948         * modules/acl (Depends-on): Add fstat.
8949         * modules/chdir-safer (Depends-on): Likewise.
8950         * modules/chown (Depends-on): Likewise.
8951         * modules/copy-file (Depends-on): Likewise.
8952         * modules/fchdir (Depends-on): Likewise.
8953         * modules/fdopendir (Depends-on): Likewise.
8954         * modules/fopen (Depends-on): Likewise.
8955         * modules/fts (Depends-on): Likewise.
8956         * modules/getcwd (Depends-on): Likewise.
8957         * modules/isapipe (Depends-on): Likewise.
8958         * modules/linkat (Depends-on): Likewise.
8959         * modules/lseek (Depends-on): Likewise.
8960         * modules/mkdir-p (Depends-on): Likewise.
8961         * modules/open (Depends-on): Likewise.
8962         * modules/openat (Depends-on): Likewise.
8963         * modules/read-file (Depends-on): Likewise.
8964         * modules/renameat (Depends-on): Likewise.
8965         * modules/utimens (Depends-on): Likewise.
8966
8967 2011-09-25  Bruno Haible  <bruno@clisp.org>
8968
8969         linkat: Fix compilation on MSVC 9.
8970         * lib/linkat.c: Don't include <stdint.h>.
8971
8972 2011-09-25  Bruno Haible  <bruno@clisp.org>
8973
8974         fclose: Support for MSVC 9.
8975         * lib/fclose.c: Include msvc-inval.h.
8976         (fclose_nothrow): New function.
8977         (rpl_fclose): Use it.
8978         * modules/fclose (Depends-on): Add msvc-inval.
8979         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8980
8981 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8982
8983         dup2: minor simplifications
8984         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8985         that it's a performance win.
8986         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8987         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8988
8989 2011-09-24  Jim Meyering  <meyering@redhat.com>
8990
8991         test-futimens: avoid a warning from gcc -Wshadow
8992         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8993         to avoid a shadowing warning.
8994
8995 2011-09-24  Bruno Haible  <bruno@clisp.org>
8996
8997         fdopen: Support for MSVC 9.
8998         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8999         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9000         * lib/fdopen.c: Include msvc-inval.h.
9001         (fdopen_nothrow): New function.
9002         (rpl_fdopen): Use it.
9003         * modules/fdopen (Depends-on): Add msvc-inval.
9004         * modules/fclose-tests (Depends-on): Add fdopen.
9005         * modules/fflush-tests (Depends-on): Likewise.
9006         * modules/fgetc-tests (Depends-on): Likewise.
9007         * modules/fputc-tests (Depends-on): Likewise.
9008         * modules/fread-tests (Depends-on): Likewise.
9009         * modules/freopen-tests (Depends-on): Likewise.
9010         * modules/fseeko-tests (Depends-on): Likewise.
9011         * modules/ftello-tests (Depends-on): Likewise.
9012         * modules/fwrite-tests  (Depends-on): Likewise.
9013         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9014
9015 2011-09-24  Bruno Haible  <bruno@clisp.org>
9016
9017         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9018         * modules/fgetc-tests (Depends-on): Add unistd.
9019         * modules/fputc-tests (Depends-on): Likewise.
9020         * modules/fread-tests (Depends-on): Likewise.
9021         * modules/fwrite-tests (Depends-on): Likewise.
9022
9023 2011-09-24  Bruno Haible  <bruno@clisp.org>
9024
9025         dup: Simplify autoconf test.
9026         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9027         on gl_MSVC_INVAL's result.
9028
9029 2011-09-24  Bruno Haible  <bruno@clisp.org>
9030
9031         Tests for function fwrite().
9032         * modules/fwrite-tests: New file.
9033         * tests/test-fwrite.c: New file.
9034         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9035
9036         Tests for function fread().
9037         * modules/fread-tests: New file.
9038         * tests/test-fread.c: New file.
9039         * modules/stdio-tests (Depends-on): Add fread-tests.
9040
9041         Activate fputc tests.
9042         * modules/stdio-tests (Depends-on): Add fputc-tests.
9043
9044         Enhance fgetc, fputc tests.
9045         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9046         * tests/test-fputc.c (main): Likewise.
9047
9048 2011-09-24  Bruno Haible  <bruno@clisp.org>
9049
9050         write: Support for MSVC 9.
9051         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9052         is not 1.
9053         * lib/write.c (write_nothrow): New function.
9054         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9055         not 1. Use write_nothrow.
9056         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9057         invalid parameter handler.
9058         (gl_PREREQ_WRITE): New macro.
9059         * modules/write (Depends-on): Add msvc-inval.
9060         (configure.ac): Invoke gl_PREREQ_WRITE.
9061         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9062
9063 2011-09-24  Bruno Haible  <bruno@clisp.org>
9064
9065         read: Fix last commit.
9066         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9067
9068 2011-09-24  Bruno Haible  <bruno@clisp.org>
9069
9070         dup2: Fix last commit.
9071         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9072         (rpl_dup2): Disable fcntl workaround on native Windows.
9073
9074         sigprocmask: Make code safer.
9075         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9076         section that changes macro definitions for this compilation unit.
9077
9078 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9079
9080         dup2: clarify by coalescing Windows-specific material
9081         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9082         "msvc-nothrow.h"' to the Windows-specific section, so that the
9083         Emacs source need not contain these include files.
9084         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9085         Windows-specific fixes into this function rather than just the
9086         nothrow fix, as this shortens and clarifies the code.  Always
9087         define as a function, as that's a bit cleaner than having it be
9088         sometimes a function and sometimes a macro.
9089         (rpl_dup2): Move the Windows-specific stuff out of here and into
9090         ms_windows_dup2.  Don't protect the Haiku-related fix with
9091         "#if !defined __linux__", as the same code also works around
9092         a Linux kernel bug, and it doesn't add any system calls on any
9093         platform.  Add comment about FreeBSD 6.1.
9094
9095         sigprocmask: move #include directive
9096         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9097         Windows-specific section, so that the Emacs source need not
9098         contain msvc-inval.h.
9099
9100 2011-09-23  Bruno Haible  <bruno@clisp.org>
9101
9102         read: Support for MSVC 9.
9103         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9104         is not 1.
9105         * lib/read.c (read_nothrow): New function.
9106         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9107         read_nothrow.
9108         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9109         invalid parameter handler.
9110         (gl_PREREQ_READ): New macro.
9111         * modules/read (Depends-on): Add msvc-inval.
9112         (configure.ac): Invoke gl_PREREQ_READ.
9113         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9114
9115 2011-09-23  Bruno Haible  <bruno@clisp.org>
9116
9117         close: Support for MSVC 9.
9118         * lib/close.c: Include <errno.h>, msvc-inval.h.
9119         (close_nothrow): New function.
9120         (rpl_close): Use it.
9121         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9122         invalid parameter handler.
9123         * modules/close (Depends-on): Add msvc-inval.
9124         * modules/dup2-tests (Depends-on): Add close.
9125         * modules/dup3-tests (Depends-on): Likewise.
9126         * modules/fcntl-tests (Depends-on): Likewise.
9127         * modules/spawn-pipe-tests (Depends-on): Likewise.
9128         * modules/unistd-safer-tests (Depends-on): Likewise.
9129         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9130
9131 2011-09-23  Bruno Haible  <bruno@clisp.org>
9132
9133         New module 'dup'.
9134         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9135         Allow replacement.
9136         * lib/dup.c: New file.
9137         * lib/fchdir.c (rpl_dup): Remove function.
9138         * m4/dup.m4: New file.
9139         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9140         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9141         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9142         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9143         * modules/dup: New file.
9144         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9145         'dup' module is in use.
9146         * modules/fdopendir (Depends-on): Add dup.
9147         * modules/fdutimensat-tests (Depends-on): Likewise.
9148         * modules/fts (Depends-on): Likewise.
9149         * modules/futimens-tests (Depends-on): Likewise.
9150         * modules/posix_spawnp-tests (Depends-on): Likewise.
9151         * modules/unistd-safer-tests (Depends-on): Likewise.
9152         * modules/utimens-tests (Depends-on): Likewise.
9153         * doc/posix-functions/dup.texi: Mention the new module and the problem
9154         on MSVC.
9155
9156 2011-09-23  Bruno Haible  <bruno@clisp.org>
9157
9158         getdtablesize: Support for MSVC 9.
9159         * lib/getdtablesize.c: Include msvc-inval.h.
9160         (_setmaxstdio_nothrow): New function.
9161         (_setmaxstdio): Redefine it.
9162         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9163         * modules/getdtablesize (Depends-on): Add msvc-inval.
9164         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9165
9166 2011-09-23  Bruno Haible  <bruno@clisp.org>
9167
9168         signal-h: Rename from signal.
9169         * modules/signal-h: Renamed from modules/signal.
9170         * modules/pthread_sigmask (Depends-on): Update.
9171         * modules/raise (Depends-on): Likewise.
9172         * modules/sigaction (Depends-on): Likewise.
9173         * modules/sigpipe (Depends-on): Likewise.
9174         * modules/sigprocmask (Depends-on): Likewise.
9175         * modules/sys_select (Depends-on): Likewise.
9176         * modules/signal-h-tests: Renamed from modules/signal-tests.
9177         (Files, Depends-on, Makefile.am): Update.
9178         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9179         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9180         (Files, Makefile.am): Update.
9181         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9182         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9183         * modules/signal: New placeholder file.
9184         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9185         * doc/posix-headers/signal.texi: Update.
9186         * NEWS: Mention the change.
9187
9188 2011-09-23  Bruno Haible  <bruno@clisp.org>
9189
9190         sigprocmask: Avoid crashes through signal() on MSVC 9.
9191         * lib/sigprocmask.c: Include msvc-inval.h.
9192         (signal_nothrow): New function.
9193         (signal): Redefine it.
9194         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9195         * modules/sigprocmask (Depends-on): Add msvc-inval.
9196         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9197
9198 2011-09-23  Bruno Haible  <bruno@clisp.org>
9199
9200         Tests for module 'raise'.
9201         * modules/raise-tests: New file.
9202         * tests/test-raise.c: New file.
9203
9204         raise: Support for MSVC.
9205         * lib/signal.in.h (raise): New declaration.
9206         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9207         for native Windows platforms.
9208         * m4/raise.m4: New file.
9209         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9210         HAVE_RAISE, REPLACE_RAISE.
9211         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9212         REPLACE_RAISE.
9213         * modules/raise (Status, Notice): Remove fields.
9214         (Files): Add m4/raise.m4.
9215         (Depends-on): Add signal, msvc-inval.
9216         (configure.ac): Use the common idioms.
9217         (Maintainer): Add me.
9218         * tests/test-signal-c++.cc: Check the signature of raise.
9219         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9220
9221 2011-09-23  Bruno Haible  <bruno@clisp.org>
9222
9223         pipe2: Fix compilation on pre-C99 compilers.
9224         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9225
9226 2011-09-23  Bruno Haible  <bruno@clisp.org>
9227
9228         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9229         * lib/msvc-nothrow.h: New file.
9230         * lib/msvc-nothrow.c: New file.
9231         * m4/msvc-nothrow.m4: New file.
9232         * modules/msvc-nothrow: New file.
9233         * lib/dup2.c: Include msvc-nothrow.h.
9234         (rpl_dup2): No need to protect _get_osfhandle call here.
9235         * lib/accept4.c: Include msvc-nothrow.h.
9236         * lib/error.c: Likewise.
9237         * lib/fcntl.c: Likewise.
9238         * lib/lseek.c: Likewise.
9239         * lib/nonblocking.c: Likewise.
9240         * lib/poll.c: Likewise.
9241         * lib/read.c: Likewise.
9242         * lib/select.c: Likewise.
9243         * lib/sockets.h: Likewise.
9244         * lib/sockets.c: Likewise.
9245         * lib/stdio-read.c: Likewise.
9246         * lib/stdio-write.c: Likewise.
9247         * lib/write.c: Likewise.
9248         * lib/w32sock.h: Likewise.
9249         * lib/w32spawn.h: Likewise.
9250         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9251         * lib/fsync.c: Likewise.
9252         * lib/isapipe.c: Likewise.
9253         * modules/dup2 (Depends-on): Add msvc-nothrow.
9254         * modules/accept4 (Depends-on): Likewise.
9255         * modules/error (Depends-on): Likewise.
9256         * modules/fcntl (Depends-on): Likewise.
9257         * modules/lseek (Depends-on): Likewise.
9258         * modules/nonblocking (Depends-on): Likewise.
9259         * modules/poll (Depends-on): Likewise.
9260         * modules/read (Depends-on): Likewise.
9261         * modules/select (Depends-on): Likewise.
9262         * modules/sockets (Depends-on): Likewise.
9263         * modules/sigpipe (Depends-on): Likewise.
9264         * modules/write (Depends-on): Likewise.
9265         * modules/accept (Depends-on): Likewise.
9266         * modules/bind (Depends-on): Likewise.
9267         * modules/connect (Depends-on): Likewise.
9268         * modules/gethostname (Depends-on): Likewise.
9269         * modules/getpeername (Depends-on): Likewise.
9270         * modules/getsockname (Depends-on): Likewise.
9271         * modules/getsockopt (Depends-on): Likewise.
9272         * modules/ioctl (Depends-on): Likewise.
9273         * modules/listen (Depends-on): Likewise.
9274         * modules/recv (Depends-on): Likewise.
9275         * modules/recvfrom (Depends-on): Likewise.
9276         * modules/send (Depends-on): Likewise.
9277         * modules/sendto (Depends-on): Likewise.
9278         * modules/setsockopt (Depends-on): Likewise.
9279         * modules/shutdown (Depends-on): Likewise.
9280         * modules/socket (Depends-on): Likewise.
9281         * modules/execute (Depends-on): Likewise.
9282         * modules/spawn-pipe (Depends-on): Likewise.
9283         * modules/flock (Depends-on): Likewise.
9284         * modules/fsync (Depends-on): Likewise.
9285         * modules/isapipe (Depends-on): Likewise.
9286         * tests/test-cloexec.c: Include msvc-nothrow.h.
9287         * tests/test-dup-safer.c: Likewise.
9288         * tests/test-dup2.c: Likewise.
9289         * tests/test-dup3.c: Likewise.
9290         * tests/test-fcntl.c: Likewise.
9291         * tests/test-pipe.c: Likewise.
9292         * tests/test-pipe2.c: Likewise.
9293         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9294         * modules/unistd-safer-tests (Depends-on): Likewise.
9295         * modules/dup2-tests (Depends-on): Likewise.
9296         * modules/dup3-tests (Depends-on): Likewise.
9297         * modules/fcntl-tests (Depends-on): Likewise.
9298         * modules/pipe-posix-tests (Depends-on): Likewise.
9299         * modules/pipe2-tests (Depends-on): Likewise.
9300
9301 2011-09-23  Bruno Haible  <bruno@clisp.org>
9302
9303         dup2: Make code more maintainable.
9304         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9305         (rpl_dup2): Use it.
9306         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9307         * modules/dup2 (configure.ac): Invoke it.
9308         Reported by Paul Eggert.
9309
9310 2011-09-23  Bruno Haible  <bruno@clisp.org>
9311
9312         msvc-inval: Fix compilation error.
9313         * lib/msvc-inval.h: Include <excpt.h>.
9314
9315 2011-09-23  Bruno Haible  <bruno@clisp.org>
9316
9317         mkdir: Tweak for MSVC 9.
9318         * lib/sys_stat.in.h: Update comments.
9319         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9320
9321         Tests for module 'chdir'.
9322         * modules/chdir-tests: New file.
9323         * tests/test-chdir.c: New file.
9324
9325         New module 'chdir'.
9326         * modules/chdir: New file.
9327         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9328         (chdir): New declaration.
9329         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9330         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9331         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9332         * tests/test-unistd-c++.cc: Check signature of chdir.
9333         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9334         * modules/chdir-long (Depends-on): Add chdir.
9335         * modules/fchdir (Depends-on): Likewise.
9336         * modules/rename (Depends-on): Likewise.
9337         * modules/savewd (Depends-on): Likewise.
9338
9339         rmdir: Support for mingw, MSVC 9.
9340         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9341         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9342
9343         getcwd: Tweak for MSVC 9.
9344         * lib/unistd.in.h: Update comments.
9345         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9346
9347 2011-09-22  Bruno Haible  <bruno@clisp.org>
9348
9349         strerror_r-posix: Avoid a link error on MSVC.
9350         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9351         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9352
9353 2011-09-22  Bruno Haible  <bruno@clisp.org>
9354
9355         select: Avoid link errors on MSVC.
9356         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9357         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9358         * modules/pselect (Link): Likewise.
9359         * NEWS: Mention the change.
9360         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9361         test-select-stdin against $(LIB_SELECT).
9362         * modules/pselect-tests (Makefile.am): Link test-pselect against
9363         $(LIB_SELECT).
9364
9365 2011-09-22  Bruno Haible  <bruno@clisp.org>
9366
9367         select: Avoid compilation error on MSVC.
9368         * lib/select.c: Don't include <stdbool.h>.
9369
9370 2011-09-21  Bruno Haible  <bruno@clisp.org>
9371
9372         Consolidate all uses of PATH_MAX in *.m4 files.
9373         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9374         macros.
9375         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9376         and gl_PATHMAX_SNIPPET.
9377         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9378         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9379         * modules/chdir-long (Files): Add m4/pathmax.m4.
9380         * modules/getcwd (Files): Likewise.
9381
9382 2011-09-21  Bruno Haible  <bruno@clisp.org>
9383
9384         ftruncate: Un-deprecate, concentrate on Win32 support.
9385         * modules/ftruncate (Status, Notice): Remove sections.
9386         (Depends-on): Add largefile.
9387         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9388         non-mingw platforms.
9389         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9390         include <io.h>.
9391         * modules/perror-tests (Depends-on): Add ftruncate.
9392         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9393         'ftruncate' module.
9394
9395 2011-09-21  Bruno Haible  <bruno@clisp.org>
9396
9397         Add dependencies to new dirent related modules.
9398         * modules/opendir (Depends-on): Add closedir.
9399         * modules/getcwd (Depends-on): Add opendir, closedir.
9400         * modules/dirent-safer-tests (Depends-on): Likewise.
9401         * modules/fdopendir-tests (Depends-on): Likewise.
9402         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9403         * modules/renameat-tests (Depends-on): Likewise.
9404
9405 2011-09-21  Bruno Haible  <bruno@clisp.org>
9406
9407         opendir: Avoid compilation error on mingw.
9408         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9409         * modules/opendir (Depends-on): Add unistd.
9410
9411 2011-09-21  Bruno Haible  <bruno@clisp.org>
9412
9413         ftruncate tests: Avoid a test failure on mingw.
9414         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9415
9416 2011-09-21  Bruno Haible  <bruno@clisp.org>
9417
9418         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9419         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9420         native Windows.
9421
9422 2011-09-21  Bruno Haible  <bruno@clisp.org>
9423
9424         New module 'fdopen'.
9425         * lib/stdio.in.h (fdopen): New declaration.
9426         * lib/fdopen.c: New file.
9427         * m4/fdopen.m4: New file.
9428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9429         REPLACE_FDOPEN.
9430         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9431         REPLACE_FDOPEN.
9432         * modules/fdopen: New file.
9433         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9434         * tests/test-stdio-c++.cc: Check signature of fdopen.
9435         * doc/posix-functions/fdopen.texi: Mention the new module.
9436
9437 2011-09-21  Bruno Haible  <bruno@clisp.org>
9438
9439         unlockpt tests: Avoid test failure on NetBSD 5.1.
9440         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9441         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9442
9443 2011-09-21  Bruno Haible  <bruno@clisp.org>
9444
9445         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9446         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9447         * tests/test-getlogin_r.c (main): Likewise.
9448
9449 2011-09-20  Bruno Haible  <bruno@clisp.org>
9450
9451         time tests: Don't require pid_t.
9452         * doc/posix-headers/time.texi: Revert last change.
9453         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9454         * tests/test-time.c: Comment out the check for pid_t.
9455
9456 2011-09-20  Bruno Haible  <bruno@clisp.org>
9457
9458         fsync tests: Avoid a test failure on mingw.
9459         * tests/test-fsync.c (main): Allow a failure with EIO.
9460
9461 2011-09-20  Bruno Haible  <bruno@clisp.org>
9462
9463         euidaccess: Update comments.
9464         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9465
9466 2011-09-20  Bruno Haible  <bruno@clisp.org>
9467
9468         Ensure EBADF returns for socket functions on mingw.
9469         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9470         descriptor is invalid.
9471         * lib/bind.c (rpl_bind): Likewise.
9472         * lib/connect.c (rpl_connect): Likewise.
9473         * lib/getpeername.c (rpl_getpeername): Likewise.
9474         * lib/getsockname.c (rpl_getsockname): Likewise.
9475         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9476         * lib/listen.c (rpl_listen): Likewise.
9477         * lib/recv.c (rpl_recv): Likewise.
9478         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9479         * lib/send.c (rpl_send): Likewise.
9480         * lib/sendto.c (rpl_sendto): Likewise.
9481         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9482         * lib/shutdown.c (rpl_shutdown): Likewise.
9483
9484 2011-09-20  Bruno Haible  <bruno@clisp.org>
9485
9486         select tests: EBADF tests.
9487         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9488         test_bad_fd): New functions.
9489         (test_function): Invoke also test_bad_fd.
9490
9491 2011-09-20  Bruno Haible  <bruno@clisp.org>
9492
9493         Tests for module 'posix_spawn_file_actions_addopen.
9494         * modules/posix_spawn_file_actions_addopen-tests: New file.
9495         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9496
9497         Tests for module 'posix_spawn_file_actions_adddup2'.
9498         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9499         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9500
9501         Tests for module 'posix_spawn_file_actions_addclose'.
9502         * modules/posix_spawn_file_actions_addclose-tests: New file.
9503         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9504
9505 2011-09-20  Bruno Haible  <bruno@clisp.org>
9506
9507         Tests for module 'unlockpt'.
9508         * modules/unlockpt-tests: New file.
9509         * tests/test-unlockpt.c: New file.
9510         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9511
9512         Tests for module 'grantpt'.
9513         * modules/grantpt-tests: New file.
9514         * tests/test-grantpt.c: New file.
9515         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9516
9517 2011-09-20  Bruno Haible  <bruno@clisp.org>
9518
9519         freopen tests: EBADF tests.
9520         * tests/test-freopen.c: Include errno.h, unistd.h.
9521         (main): Add tests for EBADF, commented out for the moment.
9522
9523         fclose tests: EBADF tests.
9524         * tests/test-fclose.c (main): Add tests for EBADF.
9525
9526         fflush tests: EBADF tests.
9527         * tests/test-fflush.c: Include errno.h, macros.h.
9528         (main): Add tests for EBADF.
9529
9530         ftello tests: EBADF tests.
9531         * tests/test-ftello4.sh: New file.
9532         * tests/test-ftello4.c: New file.
9533         * modules/ftello-tests (Files): Add them.
9534         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9535
9536         fseeko tests: EBADF tests.
9537         * tests/test-fseeko4.sh: New file.
9538         * tests/test-fseeko4.c: New file.
9539         * modules/fseeko-tests (Files): Add them.
9540         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9541
9542         Tests for function fputc().
9543         * modules/fputc-tests: New file.
9544         * tests/test-fputc.c: New file.
9545         * modules/stdio-tests (Depends-on): Add fputc-tests.
9546
9547         Tests for function fgetc().
9548         * modules/fgetc-tests: New file.
9549         * tests/test-fgetc.c: New file.
9550         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9551
9552         Tests for function fdopen().
9553         * modules/fdopen-tests: New file.
9554         * tests/test-fdopen.c: New file.
9555         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9556
9557         Tests for module 'vdprintf'.
9558         * modules/vdprintf-tests: New file.
9559         * tests/test-vdprintf.c: New file.
9560
9561         Tests for module 'dprintf'.
9562         * modules/dprintf-tests: New file.
9563         * tests/test-dprintf.c: New file.
9564
9565 2011-09-20  Bruno Haible  <bruno@clisp.org>
9566
9567         Tests for module 'ioctl'.
9568         * modules/ioctl-tests: New file.
9569         * tests/test-ioctl.c: New file.
9570
9571 2011-09-20  Bruno Haible  <bruno@clisp.org>
9572
9573         fcntl tests: EBADF tests.
9574         * tests/test-fcntl.c (main): Add more tests for EBADF.
9575
9576 2011-09-20  Bruno Haible  <bruno@clisp.org>
9577
9578         utimensat tests: EBADF tests.
9579         * tests/test-utimensat.c (main): Add tests for EBADF.
9580
9581         renameat tests: EBADF tests.
9582         * tests/test-renameat.c (main): Add tests for EBADF.
9583
9584         mkfifoat tests: EBADF tests.
9585         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9586
9587         readlinkat tests: EBADF tests.
9588         * tests/test-readlinkat.c (main): Add tests for EBADF.
9589
9590         symlinkat tests: EBADF tests.
9591         * tests/test-symlinkat.c (main): Add tests for EBADF.
9592
9593         linkat tests: EBADF tests.
9594         * tests/test-linkat.c (main): Add tests for EBADF.
9595
9596         Tests for module 'faccessat'.
9597         * modules/faccessat-tests: New file.
9598         * tests/test-faccessat.c: New file.
9599
9600         fdopendir tests: EBADF tests.
9601         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9602
9603         openat tests: EBADF tests.
9604         * tests/test-fchownat.c (main): Add tests for EBADF.
9605         * tests/test-fstatat.c (main): Likewise.
9606         * tests/test-mkdirat.c (main): Likewise.
9607         * tests/test-openat.c (main): Likewise.
9608         * tests/test-unlinkat.c (main): Likewise.
9609         * tests/test-fchmodat.c: New file.
9610         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9611         (Makefile.am): Also run 'test-fchmodat'.
9612
9613 2011-09-20  Bruno Haible  <bruno@clisp.org>
9614
9615         utimens, futimens, fdutimensat tests: EBADF tests.
9616         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9617
9618         Tests for function fstat().
9619         * modules/fstat-tests: New file.
9620         * tests/test-fstat.c: New file.
9621         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9622
9623 2011-09-20  Bruno Haible  <bruno@clisp.org>
9624
9625         test-ttyname_r tests: EBADF tests.
9626         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9627
9628         Tests for module 'isatty'.
9629         * modules/isatty-tests: New file.
9630         * tests/test-isatty.c: New file.
9631
9632         Tests for module 'write'.
9633         * modules/write-tests: New file.
9634         * tests/test-write.c: New file.
9635
9636         Tests for module 'read'.
9637         * modules/read-tests: New file.
9638         * tests/test-read.c: New file.
9639
9640         pwrite tests: EBADF tests.
9641         * tests/test-pwrite.c (main): Add tests for EBADF.
9642
9643         pread tests: EBADF tests.
9644         * tests/test-pread.c (main): Add tests for EBADF.
9645
9646         lseek tests: EBADF tests.
9647         * tests/test-lseek.c (main): Add more tests for EBADF.
9648
9649         Tests for module 'ftruncate'.
9650         * modules/ftruncate-tests: New file.
9651         * tests/test-ftruncate.sh: New file.
9652         * tests/test-ftruncate.c: New file.
9653
9654         fsync tests: EBADF tests.
9655         * tests/test-fsync.c (main): Add more tests for EBADF.
9656
9657         fdatasync tests: EBADF tests.
9658         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9659
9660         Tests for module 'fchown'.
9661         * modules/fchown-tests: New file.
9662         * tests/test-fchown.c: New file.
9663
9664         Tests for module 'fchmod'.
9665         * modules/fchmod-tests: New file.
9666         * tests/test-fchmod.c: New file.
9667
9668         fchdir tests: EBADF tests.
9669         * tests/test-fchdir.c (main): Add more tests for EBADF.
9670
9671         dup2 tests: EBADF tests.
9672         * tests/test-dup2.c (main): Add more tests for EBADF.
9673
9674         Tests for module 'dup'.
9675         * modules/dup-tests: New file.
9676         * tests/test-dup.c: New file.
9677
9678         Tests for module 'close'.
9679         * modules/close-tests: New file.
9680         * tests/test-close.c: New file.
9681
9682 2011-09-20  Bruno Haible  <bruno@clisp.org>
9683
9684         Tests for module 'shutdown'.
9685         * modules/shutdown-tests: New file.
9686         * tests/test-shutdown.c: New file.
9687
9688         Tests for module 'setsockopt'.
9689         * modules/setsockopt-tests: New file.
9690         * tests/test-setsockopt.c: New file.
9691
9692         Tests for module 'sendto'.
9693         * modules/sendto-tests: New file.
9694         * tests/test-sendto.c: New file.
9695
9696         Tests for module 'send'.
9697         * modules/send-tests: New file.
9698         * tests/test-send.c: New file.
9699
9700         Tests for module 'recvfrom'.
9701         * modules/recvfrom-tests: New file.
9702         * tests/test-recvfrom.c: New file.
9703
9704         Tests for module 'recv'.
9705         * modules/recv-tests: New file.
9706         * tests/test-recv.c: New file.
9707
9708         Tests for module 'listen'.
9709         * modules/listen-tests: New file.
9710         * tests/test-listen.c: New file.
9711
9712         Tests for module 'getsockopt'.
9713         * modules/getsockopt-tests: New file.
9714         * tests/test-getsockopt.c: New file.
9715
9716         Tests for module 'getsockname'.
9717         * modules/getsockname-tests: New file.
9718         * tests/test-getsockname.c: New file.
9719
9720         Tests for module 'getpeername'.
9721         * modules/getpeername-tests: New file.
9722         * tests/test-getpeername.c: New file.
9723
9724         Tests for module 'connect'.
9725         * modules/connect-tests: New file.
9726         * tests/test-connect.c: New file.
9727
9728         Tests for module 'bind'.
9729         * modules/bind-tests: New file.
9730         * tests/test-bind.c: New file.
9731
9732         accept4 tests: Fix for native Windows.
9733         * tests/test-accept4.c: Include sockets.h.
9734         (main): Invoke gl_sockets_startup.
9735         * modules/accept4-tests (Depends-on): Add sockets.
9736
9737         accept tests: Fix for native Windows.
9738         * tests/test-accept.c: Include sockets.h.
9739         (main): Invoke gl_sockets_startup.
9740         * modules/accept-tests (Depends-on): Add sockets.
9741
9742 2011-09-19  Bruno Haible  <bruno@clisp.org>
9743
9744         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9745         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9746         do...while(0).
9747         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9748         Suggested by Paul Eggert.
9749
9750 2011-09-19  Bruno Haible  <bruno@clisp.org>
9751
9752         sched: Ensure pid_t is defined.
9753         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9754         not define pid_t.
9755         * lib/sched.in.h: Include <sys/types.h>.
9756         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9757         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9758
9759 2011-09-19  Bruno Haible  <bruno@clisp.org>
9760
9761         msvc-inval: Ensure the entire expansion is a single statement.
9762         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9763         of braces.
9764
9765 2011-09-19  Jim Meyering  <meyering@redhat.com>
9766
9767         tests: use printf, not echo in init.sh's warn_ function
9768         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9769         misbehave when given strings containing a backslash or starting
9770         with e.g., -n.  James Youngman suggested setting IFS.
9771
9772 2011-09-19  Eric Blake  <eblake@redhat.com>
9773
9774         futimens: enhance test
9775         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9776         closed non-negative fd.
9777
9778         date: accept 'hence' as opposite of 'ago'
9779         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9780         * tests/test-parse-datetime.c (main): Enhance test.
9781         Suggested by Jesse Wilson.
9782
9783 2011-09-19  Jim Meyering  <meyering@redhat.com>
9784
9785         getcwd: don't fail in a deep directory on a system without openat
9786         Before this change, getcwd would fail when called from a directory
9787         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9788         the non-openat implementation used "..", "../..", "../../..", etc.
9789         to access ancestor directories.  With too many, that string would
9790         be longer than PATH_MAX.
9791         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9792         using gnulib's openat replacement.
9793         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9794         we're using the replacement function.
9795
9796 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9797
9798         maint.mk: avoid warnings from perl about missing files
9799         * top/maint.mk (def_sym_regex): Ignore files listed in
9800         $(gl_other_headers_) that do not exist, say because a project
9801         does not use a corresponding module.
9802
9803 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9804
9805         stat: use pathmax.h only if needed
9806         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9807         This is better for Emacs, which does not have a mingw port and
9808         therefore can avoid the pathmax module.
9809
9810         utimens: remove dependency on dup2
9811         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9812         to work around the Linux kernel bug.
9813         * modules/utimens (Depends-on): Remove dup2.
9814
9815 2011-09-18  Bruno Haible  <bruno@clisp.org>
9816
9817         inet_ntop, inet_pton: Look for it also in libresolv.
9818         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9819         libnsl, search for it in libresolv.
9820         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9821         Needed on Solaris 7.
9822
9823 2011-09-18  Bruno Haible  <bruno@clisp.org>
9824
9825         accept, accept4 tests: Avoid link error on Solaris.
9826         * modules/accept-tests (Makefile.am): Link test-accept against
9827         $(LIBSOCKET).
9828         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9829         $(LIBSOCKET).
9830
9831         accept4: Avoid link error on Solaris.
9832         * modules/accept4 (Link): New section.
9833
9834         socket functions: Avoid link errors on Solaris.
9835         * modules/accept (Depends-on): Add socketlib.
9836         (Link): New section.
9837         * modules/bind (Depends-on): Add socketlib.
9838         (Link): New section.
9839         * modules/connect (Depends-on): Add socketlib.
9840         (Link): New section.
9841         * modules/getpeername (Depends-on): Add socketlib.
9842         (Link): New section.
9843         * modules/getsockname (Depends-on): Add socketlib.
9844         (Link): New section.
9845         * modules/getsockopt (Depends-on): Add socketlib.
9846         (Link): New section.
9847         * modules/listen (Depends-on): Add socketlib.
9848         (Link): New section.
9849         * modules/recv (Depends-on): Add socketlib.
9850         (Link): New section.
9851         * modules/recvfrom (Depends-on): Add socketlib.
9852         (Link): New section.
9853         * modules/send (Depends-on): Add socketlib.
9854         (Link): New section.
9855         * modules/sendto (Depends-on): Add socketlib.
9856         (Link): New section.
9857         * modules/setsockopt (Depends-on): Add socketlib.
9858         (Link): New section.
9859         * modules/shutdown (Depends-on): Add socketlib.
9860         (Link): New section.
9861         * modules/socket (Depends-on): Add socketlib.
9862         (Link): New section.
9863
9864 2011-09-18  Bruno Haible  <bruno@clisp.org>
9865
9866         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9867         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9868         than 5 seconds.
9869         * modules/ptsname-tests (configure.ac): Test for alarm.
9870
9871 2011-09-18  Bruno Haible  <bruno@clisp.org>
9872
9873         posix_spawn_file_actions_add*: Fix module dependencies.
9874         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9875         posix_spawn_file_actions_init.
9876         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9877         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9878
9879 2011-09-18  Bruno Haible  <bruno@clisp.org>
9880
9881         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9882         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9883         * tests/test-renameat.c (main): Likewise.
9884
9885 2011-09-18  Bruno Haible  <bruno@clisp.org>
9886
9887         Tests for module 'accept4'.
9888         * modules/accept4-tests: New file.
9889         * tests/test-accept4.c: New file.
9890
9891 2011-09-18  Bruno Haible  <bruno@clisp.org>
9892
9893         Tests for module 'accept'.
9894         * modules/accept-tests: New file.
9895         * tests/test-accept.c: New file.
9896
9897 2011-09-18  Bruno Haible  <bruno@clisp.org>
9898
9899         dup2: Support for MSVC.
9900         * lib/dup2.c: Include msvc-inval.h.
9901         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9902         _get_osfhandle calls.
9903         * modules/dup2 (Depends-on): Add msvc-inval.
9904         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9905
9906         New module 'msvc-inval'.
9907         * lib/msvc-inval.h: New file.
9908         * lib/msvc-inval.c: New file.
9909         * m4/msvc-inval.m4: New file.
9910         * modules/msvc-inval: New file.
9911
9912 2011-09-17  Bruno Haible  <bruno@clisp.org>
9913
9914         Tests for module 'pclose'.
9915         * modules/pclose-tests: New file.
9916
9917         New module 'pclose'.
9918         * lib/stdio.in.h (pclose): New declaration.
9919         * lib/pclose.c: New file.
9920         * m4/pclose.m4: New file.
9921         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9922         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9923         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9924         * modules/pclose: New file.
9925         * modules/popen-tests (Depends-on): Add pclose.
9926         * modules/popen-safer-tests (Depends-on): Likewise.
9927         * doc/posix-functions/pclose.texi: Mention the new module.
9928
9929 2011-09-17  Bruno Haible  <bruno@clisp.org>
9930
9931         popen: Support for MSVC.
9932         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9933         * lib/popen.c (popen): Provide alternate definition for native Windows.
9934         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9936         * modules/popen (Depends-on, configure.ac): Update condition.
9937         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9938         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9939         fixed.
9940
9941 2011-09-17  Bruno Haible  <bruno@clisp.org>
9942
9943         isnanl, isnand, isnanf: Work around MSVC bug.
9944         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9945
9946 2011-09-17  Bruno Haible  <bruno@clisp.org>
9947
9948         sys_socket tests: Fix recent mistake.
9949         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9950
9951 2011-09-17  Bruno Haible  <bruno@clisp.org>
9952
9953         putenv: Support for MSVC.
9954         * modules/putenv (Depends-on): Add environ.
9955         * lib/putenv.c (environ): Disable declaration.
9956         * lib/unistd.in.h: Update comment.
9957
9958 2011-09-17  Bruno Haible  <bruno@clisp.org>
9959
9960         math: Avoid macro redefinition warnings on MSVC.
9961         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9962         Undefine before redefining.
9963
9964 2011-09-17  Bruno Haible  <bruno@clisp.org>
9965
9966         doc: Mention functions which are declared as macros.
9967         * doc/posix-functions/*[fl].texi: Mention that some functions are
9968         defined as macros with arguments only.
9969
9970 2011-09-17  Bruno Haible  <bruno@clisp.org>
9971
9972         Add dependencies to new dirent related modules.
9973         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9974         * modules/fts (Depends-on): Likewise.
9975         * modules/glob (Depends-on): Likewise.
9976         * modules/savedir (Depends-on): Likewise.
9977         * modules/scandir (Depends-on): Likewise.
9978         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9979         * modules/fdopendir (Depends-on): Add opendir.
9980
9981 2011-09-17  Bruno Haible  <bruno@clisp.org>
9982
9983         inet_pton: Support for MSVC on Windows Vista or newer.
9984         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9985         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9986         HAVE_DECL_INET_PTON is defined.
9987         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9988         On platforms with <winsock2.h>, test whether inet_pton is declared in
9989         <ws2tcpip.h>. If so, arrange to replace it.
9990         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9991         REPLACE_INET_PTON.
9992         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9993         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9994         (Depends-on, configure.ac): Update condition.
9995         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9996
9997 2011-09-17  Bruno Haible  <bruno@clisp.org>
9998
9999         inet_ntop: Support for MSVC on Windows Vista or newer.
10000         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10001         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10002         HAVE_DECL_INET_NTOP is defined.
10003         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10004         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10005         <ws2tcpip.h>. If so, arrange to replace it.
10006         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10007         REPLACE_INET_NTOP.
10008         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10009         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10010         (Depends-on, configure.ac): Update condition.
10011         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10012
10013 2011-09-16  Eric Blake  <eblake@redhat.com>
10014
10015         test-fsync: yet another enhancement
10016         * tests/test-fsync.c (main): Also test behavior on read-only text
10017         file.
10018
10019 2011-09-16  Bruno Haible  <bruno@clisp.org>
10020
10021         Enhance fsync, fdatasync tests.
10022         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10023         * tests/test-fdatasync.c (main): Likewise.
10024
10025 2011-09-16  Bruno Haible  <bruno@clisp.org>
10026
10027         Support for MSVC compiler: Ensure mode_t gets defined.
10028         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10029         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10030         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10031         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10032         * tests/test-fcntl-h.c: Check that mode_t is defined.
10033         * tests/test-sys_stat.c: Likewise.
10034         * tests/test-sys_types.c: Likewise.
10035         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10036         * doc/posix-headers/sys_stat.texi: Likewise.
10037         * doc/posix-headers/sys_types.texi: Likewise.
10038
10039 2011-09-16  Bruno Haible  <bruno@clisp.org>
10040
10041         sys_stat: Support for MSVC.
10042         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10043         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10044         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10045         MSVC.
10046
10047 2011-09-16  Bruno Haible  <bruno@clisp.org>
10048
10049         Support for MSVC compiler: Ensure off_t gets defined.
10050         * lib/unistd.in.h: Include <sys/types.h>.
10051         * tests/test-fcntl-h.c: Check that off_t is defined.
10052         * tests/test-sys_stat.c: Likewise.
10053         * tests/test-sys_types.c: Likewise.
10054
10055 2011-09-16  Eric Blake  <eblake@redhat.com>
10056
10057         fdatasync: port to Solaris
10058         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10059         * modules/fdatasync (Link): Document it.
10060         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10061
10062         fdatasync: port to MacOS X 10.7
10063         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10064         declared.
10065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10066         * modules/unistd (Makefile.am): Substitute it.
10067         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10068         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10069
10070         fdatasync: minor improvements
10071         * modules/fdatasync (Depends-on): Add condition for fsync.
10072         * lib/fdatasync.c (fdatasync): Add comment.
10073         * tests/test-unistd-c++.cc: Test fdatasync.
10074
10075         unistd: update refs to newer POSIX
10076         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10077         Suggested by Bruno Haible.
10078
10079         fdatasync: new module
10080         * modules/fsync (Description): Document difference to fdatasync.
10081         * modules/fdatasync: New module.
10082         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10083         * lib/fdatasync.c (fdatasync): Likewise.
10084         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10085         defaults.
10086         * modules/unistd (Makefile.am): Set witnesses.
10087         * lib/unistd.in.h (fdatasync): Declare.
10088         * MODULES.html.sh: Document it.
10089         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10090         * modules/fdatasync-tests: New test.
10091         * tests/test-fdatasync.c: Likewise.
10092
10093 2011-09-16  Eric Blake  <eblake@redhat.com>
10094
10095         test-fsync: enhance tests
10096         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10097         * tests/test-fsync.c (main): Enhance test.
10098
10099 2011-09-15  Bruno Haible  <bruno@clisp.org>
10100
10101         Support for MSVC compiler: Ensure ssize_t gets defined.
10102         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10103         * doc/posix-headers/stdio.texi: Likewise.
10104         * modules/stdio (Depends-on): Add ssize_t.
10105         * modules/sys_socket (Depends-on): Likewise.
10106         * modules/sys_types (Depends-on): Likewise.
10107         * modules/sys_uio (Depends-on): Likewise.
10108         * modules/unistd (Depends-on): Likewise.
10109         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10110         * tests/test-sys_types.c: Check that ssize_t is defined.
10111
10112 2011-09-14  Bruno Haible  <bruno@clisp.org>
10113
10114         Avoid using #, the m4 comment starter character, near brackets.
10115         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10116         delimiter character in sed expressions.
10117         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10118         Suggested by Eric Blake.
10119
10120         Properly quote AC_CHECK_DECLS' 4th argument.
10121         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10122         argument.
10123         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10124         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10125         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10126         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10127         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10128         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10129         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10130         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10131         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10132         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10133         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10134         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10135         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10136         * m4/isinf.m4 (gl_ISINF): Likewise.
10137         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10138         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10139         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10140         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10141         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10142         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10143         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10144         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10145         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10146         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10147         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10148         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10149         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10150         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10152         Reported by Eric Blake.
10153
10154         Properly quote AC_CHECK_DECL's 4th argument.
10155         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10156         argument.
10157         * m4/argp.m4 (gl_ARGP): Likewise.
10158         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10159         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10160         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10161         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10162         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10163         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10164         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10165         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10166         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10167         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10168         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10169         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10170         Reported by Eric Blake.
10171
10172 2011-09-14  Eric Blake  <eblake@redhat.com>
10173
10174         opendir: avoid compile warning
10175         * lib/opendir.c (includes): Always include errno.h.
10176         Reported by Tatsuro MATSUOKA.
10177
10178 2011-09-14  Jim Meyering  <meyering@redhat.com>
10179
10180         maint.mk: sc_tight_scope: propagate failure from sub-make
10181         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10182         Reported by Martin von Gagern.
10183
10184 2011-09-13  Bruno Haible  <bruno@clisp.org>
10185
10186         tempname: Support for MSVC.
10187         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10188         MSVC.
10189         * modules/tempname (Depends-on): Add fcntl-h.
10190
10191 2011-09-13  Bruno Haible  <bruno@clisp.org>
10192
10193         sys_time: Support for MSVC.
10194         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10195         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10196         include <winsock2.h>.
10197         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10198         function declarations that collide with POSIX.
10199         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10200         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10201
10202 2011-09-13  Bruno Haible  <bruno@clisp.org>
10203
10204         stat: Support for MSVC.
10205         * lib/stat.c: Include pathmax.h.
10206         * modules/stat (Depends-on): Add pathmax.
10207
10208         pathmax: Support for native Windows.
10209         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10210
10211 2011-09-12  Bruno Haible  <bruno@clisp.org>
10212
10213         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10214         * lib/dirent.in.h (struct dirent): New type.
10215         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10216         DT_WHT): New macros.
10217         (DIR): New type.
10218         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10219         (readdir, rewinddir): New declarations.
10220         * lib/dirent-private.h: New file.
10221         * lib/opendir.c: New file.
10222         * lib/readdir.c: New file.
10223         * lib/rewinddir.c: New file.
10224         * lib/closedir.c: New file.
10225         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10226         * m4/opendir.m4: New file.
10227         * m4/readdir.m4: New file.
10228         * m4/rewinddir.m4: New file.
10229         * m4/closedir.m4: New file.
10230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10231         REPLACE_CLOSEDIR here.
10232         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10233         readdir, rewinddir are declared.
10234         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10235         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10236         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10237         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10238         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10239         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10240         * modules/opendir: New file.
10241         * modules/readdir: New file.
10242         * modules/rewinddir: New file.
10243         * modules/closedir: New file.
10244         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10245         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10246         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10247         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10248         * NEWS: Mention the 'fchdir' change.
10249
10250 2011-09-11  Bruno Haible  <bruno@clisp.org>
10251
10252         asm-underscore.m4: Support for MSVC.
10253         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10254         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10255
10256 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10257
10258         Doc about crypt functions.
10259         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10260         needing for _GNU_SOURCE to get crypt.
10261         * doc/posix-functions/encrypt.texi: Likewise.
10262         * doc/posix-functions/setkey.texi: Likewise.
10263
10264 2011-09-11  Bruno Haible  <bruno@clisp.org>
10265
10266         doc: Update regarding MSVC 9.
10267         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10268         tested".
10269         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10270         * doc/posix-headers/*.texi: Likewise.
10271         * doc/pastposix-functions/*.texi: Likewise.
10272         * doc/glibc-functions/*.texi: Likewise.
10273         * doc/glibc-headers/*.texi: Likewise.
10274
10275 2011-09-11  Bruno Haible  <bruno@clisp.org>
10276
10277         unistd et al.: Don't assume <unistd.h> exists.
10278         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10279         does not exist.
10280         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10281         exist. But include <stdlib.h>.
10282         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10283         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10284         symlink() does not exist.
10285         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10286         include <io.h> instead.
10287         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10288         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10289         include <direct.h> instead.
10290         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10291         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10292         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10293         <io.h> instead.
10294         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10295         correctly if the system does not have hard links.
10296         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10297         <direct.h> instead.
10298         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10299         it when looking for function declarations.
10300         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10301         <direct.h> and <io.h> instead.
10302         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10303
10304 2011-09-11  Bruno Haible  <bruno@clisp.org>
10305
10306         strcase: Support for MSVC.
10307         * modules/strcase (Status, Notice): Remove obsoletion mark.
10308         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10309         * doc/posix-functions/strncasecmp.texi: Likewise.
10310
10311         strings: Don't assume <strings.h> exists.
10312         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10313         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10314         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10315         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10316
10317 2011-09-11  Bruno Haible  <bruno@clisp.org>
10318
10319         dirent: Don't assume <dirent.h> exists.
10320         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10321         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10322         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10323         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10324
10325 2011-09-11  Bruno Haible  <bruno@clisp.org>
10326
10327         Fix wint_t on MSVC.
10328         * lib/wchar.in.h (wint_t): On MSVC, override it.
10329         * lib/wctype.in.h (wint_t): Likewise.
10330         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10331         MSVC.
10332         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10333         * doc/posix-headers/wctype.texi: Likewise.
10334
10335 2011-09-11  Bruno Haible  <bruno@clisp.org>
10336
10337         sys_types: Fix typo.
10338         * lib/sys_types.in.h: Fix typo in comment.
10339         Reported by Paul Eggert.
10340
10341         Support for MSVC compiler: Ensure size_t gets defined.
10342         * modules/strings (Depends-on): Add 'sys_types'.
10343         * modules/sys_uio (Depends-on): Likewise.
10344         * lib/sys_uio.in.h: Update comment.
10345
10346         C++ tests for module 'sys_types'.
10347         * modules/sys_types-c++-tests: New file.
10348         * tests/test-sys_types-c++.cc: New file.
10349
10350         Tests for module 'sys_types'.
10351         * modules/sys_types-tests: New file.
10352         * tests/test-sys_types.c: New file.
10353
10354         New module 'sys_types'.
10355         * lib/sys_types.in.h: New file.
10356         * m4/sys_types_h.m4: New file.
10357         * modules/sys_types: New file.
10358         * doc/posix-headers/sys_types.texi: Mention the new module and the
10359         size_t problem on MSVC 9.
10360
10361 2011-09-11  Bruno Haible  <bruno@clisp.org>
10362
10363         Support for MSVC compiler: Avoid division by a literal 0.
10364         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10365         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10366         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10367         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10368         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10369         * tests/infinity.h: New file.
10370         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10371         on MSVC.
10372         * tests/test-ceilf1.c: Include infinity.h.
10373         (main): Use Infinityf.
10374         * tests/test-ceil1.c: Include infinity.h.
10375         (main): Use Infinityd.
10376         * tests/test-ceill.c: Include infinity.h.
10377         (main): Use Infinityl.
10378         * tests/test-dprintf-posix.c: Include infinity.h.
10379         (test_function): Use Infinityd.
10380         * tests/test-floorf1.c: Include infinity.h.
10381         (main): Use Infinityf.
10382         * tests/test-floor1.c: Include infinity.h.
10383         (main): Use Infinityd.
10384         * tests/test-floorl.c: Include infinity.h.
10385         (main): Use Infinityl.
10386         * tests/test-fprintf-posix.c: Include infinity.h.
10387         (test_function): Use Infinityd.
10388         * tests/test-frexp.c: Include infinity.h.
10389         (main): Use Infinityd.
10390         * tests/test-frexpl.c: Include infinity.h.
10391         (main): Use Infinityl.
10392         * tests/test-isfinite.c: Include infinity.h.
10393         (test_isfinitef): Use Infinityf.
10394         (test_isfinited): Use Infinityd.
10395         (test_isfinitel): Use Infinityl.
10396         * tests/test-isinf.c: Include infinity.h.
10397         (test_isinff): Use Infinityf.
10398         (test_isinfd): Use Infinityd.
10399         (test_isinfl): Use Infinityl.
10400         * tests/test-isnan.c: Include infinity.h.
10401         (test_float): Use Infinityf.
10402         (test_double): Use Infinityd.
10403         (test_long_double): Use Infinityl.
10404         * tests/test-isnanf.h: Include infinity.h.
10405         (main): Use Infinityf.
10406         * tests/test-isnand.h: Include infinity.h.
10407         (main): Use Infinityd.
10408         * tests/test-isnanl.h: Include infinity.h.
10409         (main): Use Infinityl.
10410         * tests/test-ldexpl.c: Include infinity.h.
10411         (main): Use Infinityl.
10412         * tests/test-printf-posix.h: Include infinity.h.
10413         (test_function): Use Infinityd.
10414         * tests/test-roundf1.c: Include infinity.h.
10415         (main): Use Infinityf.
10416         * tests/test-round1.c: Include infinity.h.
10417         (main): Use Infinityd.
10418         * tests/test-roundl.c: Include infinity.h.
10419         (main): Use Infinityl.
10420         * tests/test-signbit.c: Include infinity.h.
10421         (test_signbitf): Use Infinityf.
10422         (test_signbitd): Use Infinityd.
10423         (test_signbitl): Use Infinityl.
10424         * tests/test-snprintf-posix.h: Include infinity.h.
10425         (test_function): Use Infinityd, Infinityl.
10426         * tests/test-sprintf-posix.h: Include infinity.h.
10427         (test_function): Use Infinityd, Infinityl.
10428         * tests/test-truncf1.c: Include infinity.h.
10429         (main): Use Infinityf.
10430         * tests/test-trunc1.c: Include infinity.h.
10431         (main): Use Infinityd.
10432         * tests/test-truncl.c: Include infinity.h.
10433         (main): Use Infinityl.
10434         * tests/test-vasnprintf-posix.c: Include infinity.h.
10435         (test_function): Use Infinityd, Infinityl.
10436         * tests/test-vasprintf-posix.c: Include infinity.h.
10437         (test_function): Use Infinityd, Infinityl.
10438         * modules/ceilf-tests (Files): Add tests/infinity.h.
10439         * modules/ceil-tests (Files): Likewise.
10440         * modules/ceill-tests (Files): Likewise.
10441         * modules/dprintf-posix-tests (Files): Likewise.
10442         * modules/floorf-tests (Files): Likewise.
10443         * modules/floor-tests (Files): Likewise.
10444         * modules/floorl-tests (Files): Likewise.
10445         * modules/fprintf-posix-tests (Files): Likewise.
10446         * modules/frexp-tests (Files): Likewise.
10447         * modules/frexp-nolibm-tests (Files): Likewise.
10448         * modules/frexpl-tests (Files): Likewise.
10449         * modules/frexpl-nolibm-tests (Files): Likewise.
10450         * modules/isfinite-tests (Files): Likewise.
10451         * modules/isinf-tests (Files): Likewise.
10452         * modules/isnan-tests (Files): Likewise.
10453         * modules/isnanf-tests (Files): Likewise.
10454         * modules/isnanf-nolibm-tests (Files): Likewise.
10455         * modules/isnand-tests (Files): Likewise.
10456         * modules/isnand-nolibm-tests (Files): Likewise.
10457         * modules/isnanl-tests (Files): Likewise.
10458         * modules/isnanl-nolibm-tests (Files): Likewise.
10459         * modules/ldexpl-tests (Files): Likewise.
10460         * modules/printf-posix-tests (Files): Likewise.
10461         * modules/roundf-tests (Files): Likewise.
10462         * modules/round-tests (Files): Likewise.
10463         * modules/roundl-tests (Files): Likewise.
10464         * modules/signbit-tests (Files): Likewise.
10465         * modules/snprintf-posix-tests (Files): Likewise.
10466         * modules/sprintf-posix-tests (Files): Likewise.
10467         * modules/truncf-tests (Files): Likewise.
10468         * modules/trunc-tests (Files): Likewise.
10469         * modules/truncl-tests (Files): Likewise.
10470         * modules/vasnprintf-posix-tests (Files): Likewise.
10471         * modules/vasprintf-posix-tests (Files): Likewise.
10472         * modules/vdprintf-posix-tests (Files): Likewise.
10473         * modules/vfprintf-posix-tests (Files): Likewise.
10474         * modules/vprintf-posix-tests (Files): Likewise.
10475         * modules/vsnprintf-posix-tests (Files): Likewise.
10476         * modules/vsprintf-posix-tests (Files): Likewise.
10477         * modules/xprintf-posix-tests (Files): Likewise.
10478
10479 2011-09-11  Bruno Haible  <bruno@clisp.org>
10480
10481         Ensure pid_t gets defined.
10482         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10483         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10484         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10485         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10486         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10487         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10488         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10489         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10490         * tests/test-fcntl-h.c: Check that pid_t is defined.
10491         * tests/test-sched.c: Likewise.
10492         * tests/test-termios.c: Likewise.
10493         * tests/test-time.c: Likewise.
10494         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10495         * doc/posix-headers/signal.texi: Likewise.
10496         * doc/posix-headers/sys_types.texi: Likewise.
10497         * doc/posix-headers/time.texi: Likewise.
10498
10499 2011-09-11  Bruno Haible  <bruno@clisp.org>
10500
10501         acl: Fix compilation on Solaris 10 (older version).
10502         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10503         of ACE_EVERYONE.
10504         * lib/set-mode-acl.c (qset_acl): Likewise.
10505         Reported by Christian Jullien <eligis@orange.fr>.
10506
10507 2011-09-10  Bruno Haible  <bruno@clisp.org>
10508
10509         iconv, unsetenv: Add support for MSVC compiler.
10510         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10511         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10512
10513 2011-09-10  Bruno Haible  <bruno@clisp.org>
10514
10515         *printf: Add support for MSVC compiler.
10516         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10517         handles the exception caused by the %n directive. When cross-compiling,
10518         guess no on native Windows.
10519         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10520         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10521         emulate it through vsnprintf.
10522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10523         * doc/posix-functions/dprintf.texi: Update documentation regarding
10524         MSVC 9.
10525         * doc/posix-functions/fprintf.texi: Likewise.
10526         * doc/posix-functions/printf.texi: Likewise.
10527         * doc/posix-functions/snprintf.texi: Likewise.
10528         * doc/posix-functions/sprintf.texi: Likewise.
10529         * doc/posix-functions/swprintf.texi: Likewise.
10530         * doc/posix-functions/vdprintf.texi: Likewise.
10531         * doc/posix-functions/vfprintf.texi: Likewise.
10532         * doc/posix-functions/vprintf.texi: Likewise.
10533         * doc/posix-functions/vsnprintf.texi: Likewise.
10534         * doc/posix-functions/vsprintf.texi: Likewise.
10535         * doc/glibc-functions/asprintf.texi: Likewise.
10536         * doc/glibc-functions/obstack_printf.texi: Likewise.
10537         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10538         * doc/glibc-functions/vasprintf.texi: Likewise.
10539
10540 2011-09-10  Bruno Haible  <bruno@clisp.org>
10541
10542         nocrash: Add support for native Windows.
10543         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10544
10545 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10546             Bruno Haible  <bruno@clisp.org>
10547
10548         absolute-header, include-next: Add support for MSVC compiler.
10549         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10550         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10551         directory separator in #line directives.
10552         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10553         recognize also backslash as directory separator in #line directives.
10554
10555 2011-09-08  Jim Meyering  <meyering@redhat.com>
10556
10557         maint.mk: mark the post-release commit log with "maint: " prefix
10558         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10559         one-line commit-log summary.
10560
10561 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10562             Bruno Haible  <bruno@clisp.org>
10563
10564         Doc about crypt functions.
10565         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10566         systems.
10567         * doc/posix-functions/encrypt.texi: Likewise.
10568         * doc/posix-functions/setkey.texi: Likewise.
10569
10570 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10571
10572         * lib/gc.h: Fix copyright header.
10573
10574 2011-09-07  Bruno Haible  <bruno@clisp.org>
10575
10576         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10577         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10578         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10579
10580 2011-09-07  Bruno Haible  <bruno@clisp.org>
10581
10582         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10583         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10584         * lib/freopen.c: Likewise.
10585         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10586         * lib/lstat.c: Likewise.
10587         * lib/stat.c: Likewise.
10588         * lib/open.c: Use different syntax for include of <fcntl.h>.
10589         * lib/openat.c: Include fcntl.h again, explicitly.
10590
10591 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10592
10593         parse-datetime: document the newly accepted format
10594         * doc/parse-datetime.texi (Combined date and time of day items):
10595         New section.
10596
10597 2011-09-06  Bruno Haible  <bruno@clisp.org>
10598
10599         acl: Fix a test failure on newer Solaris 10 with ZFS.
10600         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10601         ENOSYS as no ACL.
10602         Reported by Jim Meyering.
10603
10604 2011-09-06  Bruno Haible  <bruno@clisp.org>
10605
10606         acl: Update for AIX >= 5.3 with NFS.
10607         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10608         ENOSYS as no ACL.
10609
10610         acl: Fix a test failure on AIX >= 5.3 with NFS.
10611         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10612         as no ACL.
10613
10614 2011-09-06  Bruno Haible  <bruno@clisp.org>
10615
10616         acl: Fix a test failure on IRIX 6.5 with NFS.
10617         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10618         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10619         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10620         * lib/copy-acl.c (qcopy_acl): Likewise.
10621
10622 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10623
10624         openat: port to AIX 7.1 with large files
10625         AIX 7.1 does a "#define openat open64at" if large files are in use,
10626         so we can't simply #undef openat.  Use the orig_openat trick (similar
10627         to orig_open in lib/open.c) to work around the problem.  Problem
10628         reported by Kevin Brott for GNU tar, in the thread containing
10629         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10630         * lib/openat.c (__need_system_fcntl_h): Define first.
10631         Include <fcntl.h> and <sys/types.h> before undefining.
10632         (orig_openat) [HAVE_OPENAT]: New inline function.
10633         (openat) [HAVE_OPENAT]: Do not undef.
10634         (rpl_openat): Use orig_openat, not openat.
10635
10636 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10637             Bruno Haible  <bruno@clisp.org>
10638
10639         acl: Avoid errors on NonStop Kernel.
10640         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10641         ENOTSUP errors.
10642
10643 2011-09-05  Bruno Haible  <bruno@clisp.org>
10644
10645         acl: Clean up Solaris code.
10646         * lib/acl-internal.h: Remove no-op #if.
10647         * lib/file-has-acl.c: Likewise.
10648         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10649         * lib/copy-acl.c (qcopy_acl): Likewise.
10650
10651 2011-09-05  Bruno Haible  <bruno@clisp.org>
10652
10653         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10654         binaries built on the original Solaris 10.
10655         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10656         trivial.
10657
10658 2011-09-05  Bruno Haible  <bruno@clisp.org>
10659
10660         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10661         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10662         10.
10663         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10664         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10665         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10666         instead of acl_get, facl_get, acl_set, facl_set.
10667
10668 2011-09-05  Bruno Haible  <bruno@clisp.org>
10669
10670         copy-file: Try unit tests on more file systems.
10671         * tests/test-copy-file-1.sh: New file.
10672         * tests/test-copy-file-2.sh: New file.
10673         * modules/copy-file-tests (Files): Add them.
10674         (Makefile.am): Add them to TESTS.
10675
10676         acl: Try unit tests on more file systems.
10677         * tests/test-file-has-acl-1.sh: New file.
10678         * tests/test-file-has-acl-2.sh: New file.
10679         * tests/test-set-mode-acl-1.sh: New file.
10680         * tests/test-set-mode-acl-2.sh: New file.
10681         * tests/test-copy-acl-1.sh: New file.
10682         * tests/test-copy-acl-2.sh: New file.
10683         * modules/acl-tests (Files): Add them.
10684         (Makefile.am): Add them to TESTS.
10685
10686 2011-09-04  Bruno Haible  <bruno@clisp.org>
10687
10688         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10689         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10690         10.
10691         (OLD_ALLOW, OLD_DENY): New macros.
10692         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10693         ACE_ACCESS_ALLOWED_ACE_TYPE.
10694         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10695         ACE_ACCESS_DENIED_ACE_TYPE.
10696         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10697         (NEW_ACE_EXECUTE): Fix value.
10698         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10699         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10700         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10701         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10702         NEW_ACE_SYNCHRONIZE): New macros.
10703         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10704         instead of acl_fromtext, acl_set, facl_set.
10705         Fixes a coreutils/tests/cp/perm failure.
10706
10707 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10708
10709         openat: test for fstatat (..., 0) bug
10710         Further testing with tar suggests that fstatat (..., 0)
10711         does not work in general, on AIX 7.1; see
10712         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10713         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10714         replacement fstatat (which is what older AIX releases were using
10715         anyway).
10716         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10717         use is now changed to orig_fstatat.  This was probably the right
10718         thing to do anyway.
10719         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10720         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10721         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10722         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10723         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10724         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10725         if the bug is found.
10726
10727         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10728         This tests for another fstatat bug on AIX 7.1:
10729         fstatat (AT_FDCWD, ..., 0) does not work.  See
10730         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10731         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10732         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10733         (rpl_fstatat): Adjust so that it works around either (or both)
10734         bugs if present.
10735         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10736
10737 2011-09-03  Karl Berry  <karl@gnu.org>
10738
10739         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10740         in index entries.
10741
10742 2011-09-02  Bruno Haible  <bruno@clisp.org>
10743
10744         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10745         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10746         values of AR, ARFLAGS, RANLIB.
10747         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10748
10749 2011-09-02  Bruno Haible  <bruno@clisp.org>
10750
10751         Find 'ar' program that fits with --host argument.
10752         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10753
10754 2011-09-02  Bruno Haible  <bruno@clisp.org>
10755
10756         tests: init.sh: Support any non-GNU diff.
10757         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10758         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10759         Solaris 8.
10760
10761 2011-09-02  Bruno Haible  <bruno@clisp.org>
10762
10763         tests: init.sh: work also with any non-GNU diff that supports -u
10764         * tests/init.sh: Relax check for diff -u support.
10765         Rather than checking for GNU diff via --version, simply check
10766         for support for -u itself.  Useful at least on OpenBSD 4.9,
10767         AIX 7.1, IRIX 6.5, and Solaris 10.
10768
10769 2011-09-01  Bruno Haible  <bruno@clisp.org>
10770
10771         strtoimax, strtoumax: Document problem on HP-UX 11.
10772         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10773         * doc/posix-functions/strtoumax.texi: Likewise.
10774
10775 2011-09-01  Bruno Haible  <bruno@clisp.org>
10776
10777         strtoumax: Avoid link error on OSF/1 with DTK cc.
10778         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10779         defined as a function.
10780         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10781         strtoumax is defined, not whether it is declared.
10782
10783 2011-09-01  Bruno Haible  <bruno@clisp.org>
10784
10785         strtoimax: Avoid link error on OSF/1 with DTK cc.
10786         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10787         defined as a function.
10788         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10789         strtoimax is defined, not whether it is declared.
10790
10791 2011-09-01  Bruno Haible  <bruno@clisp.org>
10792
10793         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10794         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10795         as a function.
10796         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10797         whether it is declared.
10798
10799 2011-09-01  Bruno Haible  <bruno@clisp.org>
10800
10801         imaxabs: Avoid link error on OSF/1 with DTK cc.
10802         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10803         as a function.
10804         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10805         whether it is declared.
10806
10807 2011-09-01  Bruno Haible  <bruno@clisp.org>
10808
10809         Tests for module 'strtoumax'.
10810         * modules/strtoumax-tests: New file.
10811         * tests/test-strtoumax.c: New file.
10812
10813         Tests for module 'strtoimax'.
10814         * modules/strtoimax-tests: New file.
10815         * tests/test-strtoimax.c: New file.
10816
10817         Tests for module 'imaxdiv'.
10818         * modules/imaxdiv-tests: New file.
10819         * tests/test-imaxdiv.c: New file.
10820
10821         Tests for module 'imaxabs'.
10822         * modules/imaxabs-tests: New file.
10823         * tests/test-imaxabs.c: New file.
10824
10825 2011-09-01  Bruno Haible  <bruno@clisp.org>
10826
10827         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10828         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10829         pthread_create.
10830
10831 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10832
10833         openat: work around AIX 7.1 fstatat issue
10834         This should fix the problem that was not properly fixed
10835         in the previous change, dated 2011-08-30.
10836         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10837         __need_system_stat_h defined.
10838         (orig_fstatat) [HAVE_FSTATAT]: New function.
10839         (rpl_fstatat): Go back to the old way of doing things,
10840         except call orig_fstatat instead of fstatat.
10841         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10842         Remove unnecessary check whether fstatat fills in st_size etc.
10843
10844 2011-09-01  Bruno Haible  <bruno@clisp.org>
10845
10846         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10847         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10848         just include the system's header.
10849
10850 2011-08-31  Jim Meyering  <meyering@redhat.com>
10851
10852         tests: avoid spurious assertion failure in test-float.c on ppc64
10853         * tests/test-float.c (test_long_double): Comment out an assertion,
10854         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10855         with gcc-4.4.4.
10856
10857         maint: indent with spaces, not TABs
10858         I need to get in the habit of running gnulib's "make check".
10859         Both of these would have been caught.
10860         * m4/largefile.m4: Indent with spaces, not TABs.
10861         * lib/parse-datetime.y (iso_8601_time): Likewise.
10862         Spotted by Pádraig Brady.
10863
10864         test-parse-datetime.c: accommodate a relatively strict gcc warning
10865         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10866         to avoid a warning from gcc's -Werror=missing-declarations.
10867         Insert a few spaces-before-funcall-parenthesis.
10868
10869 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10870
10871         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10872         The parser now accepts ISO 8601 date-time strings with "T" as the
10873         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10874         with a space between the date and time strings.  Now it also parses
10875         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10876         variants like "2004-02-29T16:21:42.333-07:00"
10877         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10878         of day representation using the 'T' separator character.
10879         * doc/parse-datetime.texi (General date syntax): replace use of
10880         deprecated --iso-8601 option with --rfc-3339 in example of date
10881         command output formats that can be parsed.
10882         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10883         lib/parse-datetime.y.
10884         (gmt_offset): New function.
10885         (main): Add additional test cases to validate ISO8601 extended
10886         date and time of day parsing.
10887
10888 2011-08-31  Bruno Haible  <bruno@clisp.org>
10889
10890         freopen: Documentation.
10891         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10892         name.
10893         Reported by Claudio Bley <claudio.bley@gmail.com>.
10894
10895 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10896
10897         freopen: Don't crash if the filename argument is NULL.
10898         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10899         NULL.
10900
10901 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10902
10903         openat: work around AIX 7.1 fstatat bug
10904         Problem reported by Kevin Brott for GNU tar, in the thread containing
10905         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10906         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10907         FSTATAT_ST_SIZE_ETC_BROKEN.
10908         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10909         rpl_fstatat.
10910         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10911         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10912         AC_CHECK_FUNCS_ONCE for fstatat.
10913         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10914         fchmodat, mkdirat, openat and unlinkat.
10915
10916 2011-08-30  Bruno Haible  <bruno@clisp.org>
10917
10918         Avoid endless recursions if config.h includes some header files.
10919         * lib/fopen.c (__need_FILE): Define already before including config.h.
10920         * lib/freopen.c (__need_FILE): Likewise.
10921         * lib/open.c (__need_system_fcntl_h): Likewise.
10922         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10923         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10924         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10925
10926 2011-08-25  Karl Berry  <karl@gnu.org>
10927
10928         * config/srclist.txt (ylwrap): new try.
10929         * build-aux/ylwrap: new file.
10930
10931 2011-08-23  Bruno Haible  <bruno@clisp.org>
10932
10933         tmpdir: Use a good default directory on native Windows.
10934         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10935         (P_tmpdir): Default to _P_tmpdir on native Windows.
10936         (path_search): On native Windows, try the value returned by GetTempPath
10937         before trying P_tmpdir.
10938         * modules/tmpdir (Depends-on): Add pathmax.
10939         Suggested by John Darrington <john@darrington.wattle.id.au>.
10940
10941 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10942
10943         doc: fix typo in README-release
10944         * top/README-release: Capitalize first word of a sentence.
10945
10946 2011-08-19  Jim Meyering  <meyering@redhat.com>
10947
10948         fts: do not exhaust memory when processing million-entry directories
10949         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10950         directory would require about 256*N bytes of memory.  Thus, it was
10951         easy to construct a directory too large to be processed by any of
10952         those tools.  With this change, fts' maximum memory utilization is
10953         now limited to around 30MB.
10954         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10955         (fts_read): When we've processed the final entry (i.e., when
10956         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10957         using the parent entry to read any remaining entries.  Dispatch
10958         depending on what fts_build returns:
10959         - NULL+stop, aka failure: stop
10960         - NULL otherwise: move up in the dir hierarchy
10961         - non-NULL: handle this new entry
10962         (fts_build): Declare and use new local, continue_readdir.
10963         Prepare to be called from fts_read, when the entries
10964         from a partially-read directory have just been exhausted.
10965         In that case, we'll skip the opendir and instead use the parent's
10966         fts_dirp and derive dir_fd from that.
10967         Finally, in the readdir loop, if we read max_entries entries,
10968         exit the loop ensuring *not* to call closedir.  This is required
10969         so that fts_dirp can be reused on a subsequent call.
10970         Prompted by Ben England's report of memory exhaustion in find
10971         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10972
10973         maint: fts: move decl of `dp' down into while loop; split a long line
10974         * lib/fts.c (fts_build): No semantic change.
10975
10976         fts: add/use new struct member, fts_dirp
10977         We are about to use this to manage any directory with
10978         too many entries to read all of them into memory at once.
10979         To do that, we'll need to save the DIR* pointer in each
10980         affected FTSENT struct.
10981         * lib/fts_.h: Include <dirent.h>.
10982         (struct FTSENT) [fts_dirp]: New member.
10983         * lib/fts.c (closedir_and_clear): Define.
10984         Use it in place of closedir so that we are sure to
10985         clear the new fts_dirp member when done with it.
10986         (fts_alloc): Initialize the new member.
10987         (fts_lfree): Free, if needed.
10988
10989         maint: fts: give __opendir2 a new parameter and rename
10990         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10991         than surreptitiously using sole caller's "dir_fd".
10992         (fts_opendir): Rename from __opendir2.
10993
10994         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10995         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10996
10997         maint: fts.c: correct off-by-one indentation
10998         * lib/fts.c (fts_build): Correct indentation, change style
10999         of a couple of block comments, and bracing style.
11000
11001         maint: fts.c: move __opendir2 #define "up" out of function body
11002         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11003
11004         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11005         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11006         out for a long time and besides was useful only on BSD systems.
11007
11008 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11009
11010         regex: port to Stratus OpenVOS
11011         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11012         define to empty, rather than attempting nonportable optimizations.
11013         Problem reported by Paul Green in:
11014         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11015         and fix suggested by Eric Blake in:
11016         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11017
11018 2011-08-17  Eric Blake  <eblake@redhat.com>
11019
11020         getcwd: fix test failures on mingw
11021         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11022         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11023         test if long directory cannot be created, and allow mingw errno.
11024
11025         getcwd-lgpl: fix m4 to match relaxed test for BSD
11026         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11027         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11028         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11029         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11030         signature problem.
11031
11032         getcwd: fix compilation on mingw64
11033         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11034         getcwd.
11035         Reported by Marc-André Lureau.
11036
11037         pipe2: silence compiler warning
11038         * lib/pipe2.c (pipe2): Hide label if it is not used.
11039
11040 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11041
11042         relocatable-prog: fix link error
11043         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11044         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11045         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11046         into modules/relocatable-lib without noticing that
11047         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11048         also needs to build relocatable.c.
11049
11050 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11051
11052         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11054         shell code: it contained a 'break' that was not in a loop.
11055         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11056         via a shell-language loop; this may have been true in old Autoconf
11057         versions, but it's not true in Autoconf 2.68.  I found this bug
11058         when testing coreutils git on Solaris 8, whose shell complains
11059         about the syntax error.
11060
11061 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11062
11063         * lib/base64.c: Fix comment to reference RFC 4648.
11064         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11065         <gvtulder@gmail.com>.
11066
11067 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11068
11069         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11070
11071         po/Makefile.in.in: fix make -q problem
11072         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11073         rule, since there's no file named 'check-macro-version' and its
11074         use as a file breaks make -q.
11075         (all): Don't depend on check-macro-version.
11076         (CHECK_MACRO_VERSION): New macro.
11077         (stamp-po): Use it.
11078
11079         configmake: fix make -q problem
11080         * modules/configmake (configmake.h): Update configmake.h's time stamp
11081         even if the file does not change.  Otherwise, 'make -q' fails.
11082         Problem reported by Simon Josefsson in
11083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11084
11085 2011-08-11  Jim Meyering  <meyering@redhat.com>
11086
11087         git-version-gen: correct the advice in a comment
11088         * build-aux/git-version-gen: Correct comment.
11089         Don't recommend to list .tarball-version in .gitignore.
11090
11091 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11092
11093         base64: fix off-by-one buffer size bug
11094         Problem and (trivial) fix reported by Gijs van Tulder in
11095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11096         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11097         * tests/test-base64.c (main): Catch the bug.
11098
11099 2011-08-10  Eric Blake  <eblake@redhat.com>
11100
11101         closein: correct comments
11102         * lib/closein.c (close_stdin): Improve comments.
11103
11104 2011-08-09  Bruno Haible  <bruno@clisp.org>
11105
11106         More tests for 'fseeko'.
11107         * tests/test-fseeko3.c: New file, from Eric Blake.
11108         * tests/test-fseeko3.sh: New file.
11109         * modules/fseeko-tests (Files): Add them.
11110         (TESTS): Add test-fseeko3.sh.
11111         (check_PROGRAMS): Add test-fseeko3.
11112
11113 2011-08-09  Eric Blake  <eblake@redhat.com>
11114
11115         fseeko: remove unneeded hack
11116         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11117
11118         fseeko: fix bug on glibc
11119         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11120         Reported by John W. Eaton.
11121
11122 2011-08-08  Bruno Haible  <bruno@clisp.org>
11123
11124         unictype/base: Fix interoperability with preinstalled libunistring.
11125         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11126         Reported by Simon Josefsson.
11127
11128 2011-08-08  Bruno Haible  <bruno@clisp.org>
11129
11130         iswblank: Detect declaration correctly.
11131         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11132         AC_CHECK_DECLS invocation.
11133
11134 2011-08-08  Bruno Haible  <bruno@clisp.org>
11135
11136         tcgetsid: Detect declaration correctly.
11137         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11138         AC_CHECK_DECLS invocation.
11139         Reported by Simon Josefsson.
11140
11141 2011-08-08  Eric Blake  <eblake@redhat.com>
11142
11143         largefile: fix typo that regressed large file support
11144         * modules/largefile (configure.ac-early): Fix section name.
11145
11146 2011-08-06  Karl Berry  <karl@gnu.org>
11147
11148         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11149         a separate module.
11150
11151 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11152
11153         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11154         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11155         get prototype for free.
11156
11157 2011-08-04  Bruno Haible  <bruno@clisp.org>
11158
11159         Tests for module 'pathmax'.
11160         * modules/pathmax-tests: New file.
11161         * tests/test-pathmax.c: New file.
11162
11163         canonicalize-lgpl: Support larger filenames on the Hurd.
11164         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11165         Reported by Paul Eggert.
11166
11167         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11168         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11169         * lib/chdir-long.h: Include pathmax.h.
11170         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11171         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11172         (PATH_MAX): Remove code that is done by pathmax.h.
11173         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11174         * lib/tmpfile.c: Add a comment.
11175         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11176         * modules/chdir-long (Depends-on): Add pathmax.
11177         * modules/getcwd (Depends-on): Add pathmax.
11178         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11179         is not defined.
11180         * doc/posix-headers/limits.texi: Mention the pathmax module.
11181         * NEWS: Mention the change.
11182
11183 2011-08-02  Bruno Haible  <bruno@clisp.org>
11184
11185         pthread_sigmask: Actually use results of gl_THREADLIB.
11186         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11187         gl_THREADLIB, not gl_[]THREADLIB.
11188         Reported by Eric Blake.
11189
11190 2011-08-02  Jim Meyering  <meyering@redhat.com>
11191
11192         maint.mk: relax the default _gl_TS_function_match regexp
11193         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11194         space between function name and "(" in an "extern" declaration.
11195         That would fail to match a decl with no space there: extern void foo();
11196
11197 2011-07-31  Iain Nicol  <iain@thenicols.net>
11198
11199         git-version-gen: document that EXTRA_DIST must include .version
11200         * build-aux/git-version-gen: In the how-to-use comment, document
11201         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11202         will fail when run from an unpacked distribution tarball.
11203
11204 2011-08-01  Bruno Haible  <bruno@clisp.org>
11205
11206         wctype-h: Fix last change.
11207         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11208         REPLACE_TOWLOWER to 0.
11209         Reported by Sam Steingold <sds@gnu.org>.
11210
11211 2011-07-31  Bruno Haible  <bruno@clisp.org>
11212
11213         frexpl: Update autoconf test.
11214         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11215         according to changes of 2011-06-20.
11216
11217 2011-07-31  Bruno Haible  <bruno@clisp.org>
11218
11219         sys_utsname: Add support for Minix.
11220         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11221         <sys/utsname.h>.
11222         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11223         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11224
11225 2011-07-31  Bruno Haible  <bruno@clisp.org>
11226
11227         strings: Add support for Minix.
11228         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11229         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11230         * doc/posix-headers/strings.texi: Document the Minix problem.
11231
11232 2011-07-31  Bruno Haible  <bruno@clisp.org>
11233
11234         wctype-h: Add support for Minix.
11235         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11236         REPLACE_TOWLOWER.
11237         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11238         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11239         REPLACE_ISWCNTRL.
11240
11241 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11242
11243         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11244         This is a performance improvement for 64-bit hosts: it causes the
11245         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11246
11247 2011-07-31  Bruno Haible  <bruno@clisp.org>
11248
11249         stdioext: Add support for Minix.
11250         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11251         * lib/fpurge.c (fpurge): Likewise.
11252         * lib/freadahead.c (freadahead): Likewise.
11253         * lib/freadable.c (freadable): Likewise.
11254         * lib/freading.c (freading): Likewise.
11255         * lib/freadptr.c (freadptr): Likewise.
11256         * lib/freadseek.c (freadptrinc): Likewise.
11257         * lib/fseeko.c (rpl_fseeko): Likewise.
11258         * lib/fseterr.c (fseterr): Likewise.
11259         * lib/fwritable.c (fwritable): Likewise.
11260         * lib/fwriting.c (fwriting): Likewise.
11261         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11262         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11263
11264 2011-07-31  Bruno Haible  <bruno@clisp.org>
11265
11266         errno: Port to Minix.
11267         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11268         ECONNABORTED are defined.
11269         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11270         GNULIB_defined_ECONNABORTED): New macros.
11271         * lib/strerror-override.h (strerror_override): Test also
11272         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11273         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11274         ECONNABORTED.
11275         * doc/posix-headers/errno.texi: Mention the Minix problem.
11276
11277 2011-07-31  Bruno Haible  <bruno@clisp.org>
11278
11279         Work around declaration collisions on Minix.
11280         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11281         defined, set REPLACE_MBSINIT.
11282         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11283         defined, set REPLACE_MBRTOWC.
11284         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11285         set REPLACE_MBRLEN.
11286         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11287         defined, set REPLACE_MBSRTOWCS.
11288         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11289         defined, set REPLACE_WCRTOMB.
11290         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11291         defined, set REPLACE_WCSRTOMBS.
11292
11293 2011-07-31  Bruno Haible  <bruno@clisp.org>
11294
11295         Add support for Minix with ACK compiler.
11296         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11297         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11298         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11299
11300 2011-07-31  Bruno Haible  <bruno@clisp.org>
11301
11302         Documentation about Minix.
11303         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11304         * doc/glibc-headers/*.texi: Likewise.
11305         * doc/posix-functions/*.texi: Likewise.
11306         * doc/glibc-functions/*.texi: Likewise.
11307
11308 2011-07-31  Bruno Haible  <bruno@clisp.org>
11309
11310         snippet/warn-on-use: Fix indentation.
11311         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11312
11313 2011-07-25  Jim Meyering  <meyering@redhat.com>
11314
11315         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11316         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11317         commands.
11318
11319 2011-07-27  Jim Meyering  <meyering@redhat.com>
11320
11321         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11322         * top/maint.mk (gl_extract_significant_defines_): Now that
11323         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11324         gnulib/lib/signal.in.h, and now that we recommend to
11325         define-if-undefined those two symbols in application code,
11326         we must filter them out of the "significant" list.
11327         This avoids a "make syntax-check" failure in coreutils.
11328
11329 2011-07-26  Eric Blake  <eblake@redhat.com>
11330
11331         warnings: add comments about previous patch
11332         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11333         * m4/include_next.m4: Likewise.
11334         * m4/warn-on-use.m4: Likewise.
11335         * m4/warnings.m4: Likewise, and simplify use.
11336         Suggested by Stefano Lattarini.
11337
11338         include-next, warnings: support older autoconf
11339         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11340         AS_VAR_PUSHDEF in a way that works with older autoconf.
11341         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11342         Reported by Daniel P. Berrange.
11343
11344 2011-07-25  Bruno Haible  <bruno@clisp.org>
11345
11346         fseek, ftell: Fix doc.
11347         * doc/posix-functions/fseek.texi: Reword statement about
11348         AC_SYS_LARGEFILE.
11349         * doc/posix-functions/ftell.texi: Likewise.
11350
11351 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11352             Bruno Haible  <bruno@clisp.org>
11353
11354         Add dependencies to the 'largefile' module.
11355         * modules/fopen (Depends-on): Add 'largefile'.
11356         * modules/freopen (Depends-on): Likewise.
11357         * modules/fseeko (Depends-on): Likewise.
11358         * modules/ftello (Depends-on): Likewise.
11359         * modules/glob (Depends-on): Likewise.
11360         * modules/lseek (Depends-on): Likewise.
11361         * modules/lstat (Depends-on): Likewise.
11362         * modules/mkostemp (Depends-on): Likewise.
11363         * modules/mkostemps (Depends-on): Likewise.
11364         * modules/mkstemp (Depends-on): Likewise.
11365         * modules/mkstemps (Depends-on): Likewise.
11366         * modules/open (Depends-on): Likewise.
11367         * modules/openat (Depends-on): Likewise.
11368         * modules/pread (Depends-on): Likewise.
11369         * modules/pwrite (Depends-on): Likewise.
11370         * modules/scandir (Depends-on): Likewise.
11371         * modules/stat (Depends-on): Likewise.
11372         * modules/tmpfile (Depends-on): Likewise.
11373         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11374         since the containing module now depends on the largefile module.
11375         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11376         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11377         off_t is fixed by gnulib.
11378         * doc/posix-functions/freopen.texi: Likewise.
11379         * doc/posix-functions/fseeko.texi: Likewise.
11380         * doc/posix-functions/fstatat.texi: Likewise.
11381         * doc/posix-functions/ftello.texi: Likewise.
11382         * doc/posix-functions/glob.texi: Likewise.
11383         * doc/posix-functions/lseek.texi: Likewise.
11384         * doc/posix-functions/lstat.texi: Likewise.
11385         * doc/posix-functions/mkstemp.texi: Likewise.
11386         * doc/posix-functions/open.texi: Likewise.
11387         * doc/posix-functions/openat.texi: Likewise.
11388         * doc/posix-functions/pread.texi: Likewise.
11389         * doc/posix-functions/pwrite.texi: Likewise.
11390         * doc/posix-functions/scandir.texi: Likewise.
11391         * doc/posix-functions/stat.texi: Likewise.
11392         * doc/posix-functions/tmpfile.texi: Likewise.
11393         * doc/glibc-functions/mkostemp.texi: Likewise.
11394         * doc/glibc-functions/mkostemps.texi: Likewise.
11395         * doc/glibc-functions/mkstemps.texi: Likewise.
11396
11397 2011-07-25  Bruno Haible  <bruno@clisp.org>
11398
11399         fcntl: Move AC_LIBOBJ invocation to module description.
11400         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11401         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11402
11403         fcntl: Remove call-in from fchdir.m4.
11404         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11406
11407         dup3: Remove potential call-in from fchdir.m4.
11408         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11410
11411         dup2: Move AC_LIBOBJ invocation to module description.
11412         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11413         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11414         Don't invoke AC_LIBOBJ.
11415         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11416
11417         dup2: Remove call-in from fchdir.m4.
11418         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11419         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11420
11421         fclose: Move AC_LIBOBJ invocation to module description.
11422         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11423         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11424         to 1.
11425         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11426
11427         fclose: Remove call-in from close.m4.
11428         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11429         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11430
11431         close: Move AC_LIBOBJ invocation to module description.
11432         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11433         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11434         1.
11435         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11436
11437         close: Remove call-in from fchdir.m4.
11438         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11440
11441         open: Move AC_LIBOBJ invocation to module description.
11442         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11443         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11444         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11445
11446         open: Remove call-in from fchdir.m4.
11447         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11448         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11449
11450         fchdir: Start to remove gl_REPLACE_* idiom.
11451         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11452         (gl_FUNC_FCHDIR): Invoke it.
11453
11454 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11455
11456         * lib/ftell.c (ftell): Comment out cast.
11457
11458         close: use gl_REPLACE_FCLOSE only if defined
11459         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11460         is defined.  The close module doesn't depend on the fclose module
11461         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11462         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11463         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11464
11465 2011-07-24  Jim Meyering  <meyering@redhat.com>
11466
11467         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11468         * tests/test-select.h (test_function): Declare as "static".
11469
11470 2011-07-24  Bruno Haible  <bruno@clisp.org>
11471
11472         doc: Mention the effects of AC_SYS_LARGEFILE.
11473         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11474         on this function.
11475         * doc/posix-functions/aio_error.texi: Likewise.
11476         * doc/posix-functions/aio_fsync.texi: Likewise.
11477         * doc/posix-functions/aio_read.texi: Likewise.
11478         * doc/posix-functions/aio_return.texi: Likewise.
11479         * doc/posix-functions/aio_suspend.texi: Likewise.
11480         * doc/posix-functions/aio_write.texi: Likewise.
11481         * doc/posix-functions/fgetpos.texi: Likewise.
11482         * doc/posix-functions/fopen.texi: Likewise.
11483         * doc/posix-functions/freopen.texi: Likewise.
11484         * doc/posix-functions/fsetpos.texi: Likewise.
11485         * doc/posix-functions/fstatvfs.texi: Likewise.
11486         * doc/posix-functions/ftruncate.texi: Likewise.
11487         * doc/posix-functions/ftw.texi: Likewise.
11488         * doc/posix-functions/getrlimit.texi: Likewise.
11489         * doc/posix-functions/glob.texi: Likewise.
11490         * doc/posix-functions/lio_listio.texi: Likewise.
11491         * doc/posix-functions/lockf.texi: Likewise.
11492         * doc/posix-functions/mkstemp.texi: Likewise.
11493         * doc/posix-functions/mmap.texi: Likewise.
11494         * doc/posix-functions/nftw.texi: Likewise.
11495         * doc/posix-functions/openat.texi: Likewise.
11496         * doc/posix-functions/opendir.texi: Likewise.
11497         * doc/posix-functions/posix_fadvise.texi: Likewise.
11498         * doc/posix-functions/posix_fallocate.texi: Likewise.
11499         * doc/posix-functions/pread.texi: Likewise.
11500         * doc/posix-functions/pwrite.texi: Likewise.
11501         * doc/posix-functions/readdir.texi: Likewise.
11502         * doc/posix-functions/readdir_r.texi: Likewise.
11503         * doc/posix-functions/rewinddir.texi: Likewise.
11504         * doc/posix-functions/scandir.texi: Likewise.
11505         * doc/posix-functions/seekdir.texi: Likewise.
11506         * doc/posix-functions/setrlimit.texi: Likewise.
11507         * doc/posix-functions/statvfs.texi: Likewise.
11508         * doc/posix-functions/telldir.texi: Likewise.
11509         * doc/posix-functions/tmpfile.texi: Likewise.
11510         * doc/posix-functions/truncate.texi: Likewise.
11511         * doc/glibc-functions/fallocate.texi: Likewise.
11512         * doc/glibc-functions/fstatfs.texi: Likewise.
11513         * doc/glibc-functions/fts_children.texi: Likewise.
11514         * doc/glibc-functions/fts_read.texi: Likewise.
11515         * doc/glibc-functions/getdirentries.texi: Likewise.
11516         * doc/glibc-functions/mkostemp.texi: Likewise.
11517         * doc/glibc-functions/mkostemps.texi: Likewise.
11518         * doc/glibc-functions/mkstemps.texi: Likewise.
11519         * doc/glibc-functions/preadv.texi: Likewise.
11520         * doc/glibc-functions/pwritev.texi: Likewise.
11521         * doc/glibc-functions/sendfile.texi: Likewise.
11522         * doc/glibc-functions/statfs.texi: Likewise.
11523
11524 2011-07-24  Bruno Haible  <bruno@clisp.org>
11525
11526         doc: Fix typo.
11527         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11528
11529 2011-07-24  Bruno Haible  <bruno@clisp.org>
11530
11531         doc: Mention fsusage.
11532         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11533
11534 2011-07-24  Bruno Haible  <bruno@clisp.org>
11535
11536         doc: Mention new glibc headers and functions.
11537         * doc/glibc-headers/gshadow.texi: New file.
11538         * doc/glibc-functions/endsgent.texi: New file.
11539         * doc/glibc-functions/fgetsgent.texi: New file.
11540         * doc/glibc-functions/fgetsgent_r.texi: New file.
11541         * doc/glibc-functions/getsgent.texi: New file.
11542         * doc/glibc-functions/getsgent_r.texi: New file.
11543         * doc/glibc-functions/getsgnam.texi: New file.
11544         * doc/glibc-functions/getsgnam_r.texi: New file.
11545         * doc/glibc-functions/putsgent.texi: New file.
11546         * doc/glibc-functions/setsgent.texi: New file.
11547         * doc/glibc-functions/sgetsgent.texi: New file.
11548         * doc/glibc-functions/sgetsgent_r.texi: New file.
11549         * doc/glibc-functions/malloc_info.texi: New file.
11550         * doc/glibc-functions/preadv.texi: New file.
11551         * doc/glibc-functions/pwritev.texi: New file.
11552         * doc/glibc-functions/register_printf_modifier.texi: New file.
11553         * doc/glibc-functions/register_printf_specifier.texi: New file.
11554         * doc/glibc-functions/register_printf_type.texi: New file.
11555         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11556         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11557         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11558         * doc/glibc-functions/pthread_getname_np.texi: New file.
11559         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11560         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11561         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11562         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11563         * doc/glibc-functions/pthread_setname_np.texi: New file.
11564         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11565         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11566         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11567         * doc/glibc-functions/qsort_r.texi: New file.
11568         * doc/glibc-functions/quick_exit.texi: New file.
11569         * doc/glibc-functions/syncfs.texi: New file.
11570         * doc/gnulib.texi: Include them.
11571         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11572         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11573         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11574         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11575         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11576         * doc/glibc-functions/execvpe.texi: Likewise.
11577
11578 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11579
11580         ftell: don't include <unistd.h>
11581         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11582         guaranteed to define off_t, and the ftell module depends on the
11583         stdio module.
11584
11585         ftell: do not assume wraparound signed arithmetic
11586         * lib/ftell.c: Include <limits.h>.
11587         (ftell): Don't assume wraparound signed arithmetic.
11588
11589 2011-07-24  Bruno Haible  <bruno@clisp.org>
11590
11591         close: No longer depend on module 'fclose'.
11592         * modules/close (Depends-on): Remove fclose.
11593         * NEWS: Mention the change.
11594         Suggested by Sam Steingold <sds@gnu.org>.
11595
11596 2011-07-24  Bruno Haible  <bruno@clisp.org>
11597
11598         fsusage: Enable large volume support on AIX >= 5.2.
11599         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11600         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11601         instead of STAT_STATVFS.
11602         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11603
11604         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11605         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11606         f_blocks field only on MacOS X.
11607
11608         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11609         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11610         * modules/fsusage (Depends-on): Add largefile.
11611
11612 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11613
11614         * README: Modernize discussion of signed integers.
11615         Assuming overflow wraparound is no longer safe.
11616         Mention ones' complement and signed magnitude.
11617
11618 2011-07-22  Bruno Haible  <bruno@clisp.org>
11619
11620         select tests, pselect tests: Refactor.
11621         * tests/test-select.h: New file, extracted from tests/test-select.c.
11622         (select_fn): New type.
11623         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11624         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11625         test_pipe): Add my_select argument.
11626         (test_function): Renamed from main. Add my_select argument.
11627         * tests/test-select.c: Move most code to tests/test-select.h. Include
11628         test-select.h.
11629         * modules/select-tests (Files): Add tests/test-select.h.
11630         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11631         (my_select, main): New functions.
11632         * modules/pselect-tests (Files): Add tests/test-select.h,
11633         tests/macros.h, tests/signature.h.
11634         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11635         (configure.ac): Check for <sys/wait.h>.
11636
11637 2011-07-22  Bruno Haible  <bruno@clisp.org>
11638
11639         sys_select tests: Check the signature of FD_*.
11640         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11641         signature tests from here...
11642         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11643         here.
11644         * modules/sys_select-tests (Files): Add tests/signature.h.
11645
11646 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11647
11648         largefile: new module, replacing large-inode
11649         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11650         * MODULES.html.sh: Add largefile, remove large-inode.
11651         * modules/largefile, m4/largefile.m4: New files.
11652         * modules/large-inode, m4/large-inode.m4: Remove.
11653
11654         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11655         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11656         implementations that use only 32 bits to count blocks.
11657         On typical hosts with 1024-byte blocks, this fails with file
11658         systems as small as 4 TiB.  Problem reported by Herb Wartens
11659         <http://debbugs.gnu.org/9140> and this should also fix a similar
11660         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11661
11662         large-inode: New module
11663         * MODULES.html.sh: Add it.
11664         * modules/large-inode, m4/large-inode.m4: New files.
11665
11666         extensions: Enable extensions on MacOS X 10.5 and later.
11667         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11668
11669 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11670
11671         file-has-acl: use acl_extended_file_nofollow if available
11672         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11673         (acl_extended_file): New macro.
11674         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11675         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11676
11677 2011-07-21  Bruno Haible  <bruno@clisp.org>
11678
11679         Declare system functions in a way that works with C++.
11680         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11681         declare fdopendir as extern "C".
11682         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11683         declare frexpl as extern "C".
11684         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11685         declare gai_strerror as extern "C".
11686         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11687         programs, declare gai_strerror as extern "C".
11688         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11689         declare getlogin_r as extern "C".
11690         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11691         as extern "C".
11692         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11693         declare ldexpl as extern "C".
11694         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11695         as extern "C".
11696         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11697         program, declare getmntinfo as extern "C".
11698         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11699         stpncpy as extern "C".
11700         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11701         program, declare __xpg_strerror_r as extern "C".
11702         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11703         strndup as extern "C".
11704         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11705         declare memset and bzero as extern "C".
11706         Reported by Sam Steingold <sds@gnu.org>.
11707
11708 2011-07-12  Jim Meyering  <meyering@redhat.com>
11709
11710         maint.mk: prohibit inclusion of "verify.h" without use
11711         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11712
11713 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11714
11715         timer-time: A new module to check for timer_settime()
11716         * m4/timer_time.m4: Check for the posix function.
11717         * modules/timer-time: Add the new module.
11718         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11719         Mention it.
11720
11721 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11722             Bruno Haible  <bruno@clisp.org>
11723
11724         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11725         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11726         not defined, assume POSIX threads and look for pthread_sigmask in
11727         $LIBS, without changing $CPPFLAGS.
11728
11729 2011-07-19  Bruno Haible  <bruno@clisp.org>
11730
11731         strstr: Update cross-compilation guess.
11732         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11733         CPUs, guess no, in view of glibc
11734         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11735         Suggested by Eric Blake. Reported by Reuben Thomas.
11736
11737 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11738
11739         getopt-gnu: suppress core dumps from detection code
11740         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11741         to suppress core dumps that may well occur on glibc systems.
11742         * modules/getopt-gnu: Depend on nocrash.
11743
11744 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11745
11746         pthread_sigmask: ensure usleep is declared
11747         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11748         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11749
11750 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11751
11752         doc: Document NonStop portability issues.
11753         * doc/posix-functions/sigaction.texi (sigaction):
11754         * doc/posix-headers/signal.texi (signal.h):
11755         Document NonStop.  See Joachim Schmitz in
11756         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11757
11758 2011-07-15  Bruno Haible  <bruno@clisp.org>
11759
11760         ffsl, ffsll: Avoid unportable behaviour.
11761         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11762
11763 2011-07-15  Bruno Haible  <bruno@clisp.org>
11764
11765         ffs: More tests.
11766         * tests/test-ffs.c (NBITS): New macro.
11767         (main): Add more tests.
11768         * tests/test-ffsl.c (NBITS): New macro.
11769         (main): Add more tests.
11770         * tests/test-ffsll.c (NBITS): New macro.
11771         (main): Add more tests.
11772
11773 2011-07-15  Eric Blake  <eblake@redhat.com>
11774
11775         ffsl, ffsll: new modules
11776         * modules/ffsl: New file.
11777         * modules/ffsll: Likewise.
11778         * m4/ffsl.m4: Likewise.
11779         * m4/ffsll.m4: Likewise.
11780         * lib/ffsl.c: Likewise.
11781         * lib/ffsl.h: Likewise.
11782         * lib/ffsll.c: Likewise.
11783         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11784         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11785         * modules/string (Makefile.am): Substitute witnesses.
11786         * lib/strings.in.h (ffsl, ffsll): Declare.
11787         * modules/ffsl-tests: New test file.
11788         * modules/ffsll-tests: Likewise.
11789         * tests/test-ffsl.c: Likewise.
11790         * tests/test-ffsll.c: Likewise.
11791         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11792         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11793         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11794
11795         ffs: fix m4 prerequisite
11796         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11797
11798         ffs: avoid undefined behavior
11799         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11800         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11801         Reported by Bruno Haible.
11802
11803 2011-07-12  Bruno Haible  <bruno@clisp.org>
11804
11805         pthread_sigmask: Rely on module 'threadlib'.
11806         * modules/pthread_sigmask (Depends-on): Add threadlib.
11807         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11808         is defined.
11809
11810 2011-07-12  Bruno Haible  <bruno@clisp.org>
11811
11812         regex: Depend on module 'strcase'.
11813         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11814
11815 2011-07-12  Jim Meyering  <meyering@redhat.com>
11816
11817         warn-on-use: fix typo in file name
11818         * modules/snippet/warn-on-use (Files): Correct file name:
11819         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11820
11821 2011-07-12  Bruno Haible  <bruno@clisp.org>
11822
11823         strings: Document module.
11824         * doc/posix-headers/strings.texi: Mention module 'strings'.
11825
11826 2011-07-12  Bruno Haible  <bruno@clisp.org>
11827
11828         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11829         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11830         (Files, Makefile.am): Update.
11831         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11832         * modules/stdlib (Depends-on): Update.
11833
11834 2011-07-12  Bruno Haible  <bruno@clisp.org>
11835
11836         * NEWS: Mention the changes.
11837
11838         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11839         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11840         (Files, Makefile.am): Update.
11841         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11842         * modules/arpa_inet (Depends-on): Update.
11843         * modules/ctype (Depends-on): Update.
11844         * modules/dirent (Depends-on): Update.
11845         * modules/fcntl-h (Depends-on): Update.
11846         * modules/glob (Depends-on): Update.
11847         * modules/iconv-h (Depends-on): Update.
11848         * modules/inttypes-incomplete (Depends-on): Update.
11849         * modules/langinfo (Depends-on): Update.
11850         * modules/locale (Depends-on): Update.
11851         * modules/math (Depends-on): Update.
11852         * modules/netdb (Depends-on): Update.
11853         * modules/poll-h (Depends-on): Update.
11854         * modules/pty (Depends-on): Update.
11855         * modules/search (Depends-on): Update.
11856         * modules/signal (Depends-on): Update.
11857         * modules/spawn (Depends-on): Update.
11858         * modules/stdio (Depends-on): Update.
11859         * modules/stdlib (Depends-on): Update.
11860         * modules/string (Depends-on): Update.
11861         * modules/strings (Depends-on): Update.
11862         * modules/sys_file (Depends-on): Update.
11863         * modules/sys_ioctl (Depends-on): Update.
11864         * modules/sys_select (Depends-on): Update.
11865         * modules/sys_socket (Depends-on): Update.
11866         * modules/sys_stat (Depends-on): Update.
11867         * modules/sys_time (Depends-on): Update.
11868         * modules/sys_times (Depends-on): Update.
11869         * modules/sys_utsname (Depends-on): Update.
11870         * modules/sys_wait (Depends-on): Update.
11871         * modules/termios (Depends-on): Update.
11872         * modules/time (Depends-on): Update.
11873         * modules/unistd (Depends-on): Update.
11874         * modules/wchar (Depends-on): Update.
11875         * modules/wctype-h (Depends-on): Update.
11876         * MODULES.html.sh (Support for building libraries and executables):
11877         Update.
11878
11879         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11880         * modules/snippet/unused-parameter: Renamed from
11881         modules/unused-parameter.
11882         (Files, Makefile.am): Update.
11883         * build-aux/snippet/unused-parameter.h: Renamed from
11884         build-aux/unused-parameter.h.
11885         * modules/selinux-h (Depends-on): Update.
11886         * modules/unistr/base (Depends-on): Update.
11887         * MODULES.html.sh (Core language properties): Update.
11888
11889         Rename module 'link-warning' to 'snippet/link-warning'.
11890         * modules/snippet/link-warning: Renamed from modules/link-warning.
11891         (Files, Makefile.am): Update.
11892         * build-aux/snippet/link-warning.h: Renamed from
11893         build-aux/link-warning.h.
11894         * MODULES.html.sh (Support for building libraries and executables):
11895         Update.
11896
11897         Rename module 'c++defs' to 'snippet/c++defs'.
11898         * modules/snippet/c++defs: Renamed from modules/c++defs.
11899         (Files, Makefile.am): Update.
11900         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11901         * modules/arpa_inet (Depends-on): Update.
11902         * modules/ctype (Depends-on): Update.
11903         * modules/dirent (Depends-on): Update.
11904         * modules/fcntl-h (Depends-on): Update.
11905         * modules/glob (Depends-on): Update.
11906         * modules/iconv-h (Depends-on): Update.
11907         * modules/langinfo (Depends-on): Update.
11908         * modules/locale (Depends-on): Update.
11909         * modules/math (Depends-on): Update.
11910         * modules/netdb (Depends-on): Update.
11911         * modules/poll-h (Depends-on): Update.
11912         * modules/pty (Depends-on): Update.
11913         * modules/search (Depends-on): Update.
11914         * modules/signal (Depends-on): Update.
11915         * modules/spawn (Depends-on): Update.
11916         * modules/stdio (Depends-on): Update.
11917         * modules/stdlib (Depends-on): Update.
11918         * modules/string (Depends-on): Update.
11919         * modules/strings (Depends-on): Update.
11920         * modules/sys_ioctl (Depends-on): Update.
11921         * modules/sys_select (Depends-on): Update.
11922         * modules/sys_socket (Depends-on): Update.
11923         * modules/sys_stat (Depends-on): Update.
11924         * modules/sys_time (Depends-on): Update.
11925         * modules/sys_wait (Depends-on): Update.
11926         * modules/termios (Depends-on): Update.
11927         * modules/time (Depends-on): Update.
11928         * modules/unistd (Depends-on): Update.
11929         * modules/wchar (Depends-on): Update.
11930         * modules/wctype-h (Depends-on): Update.
11931
11932         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11933         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11934         (Files, Makefile.am): Update.
11935         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11936         * modules/argv-iter (Depends-on): Update.
11937         * modules/arpa_inet (Depends-on): Update.
11938         * modules/dirent (Depends-on): Update.
11939         * modules/fcntl-h (Depends-on): Update.
11940         * modules/fnmatch (Depends-on): Update.
11941         * modules/getopt-posix (Depends-on): Update.
11942         * modules/glob (Depends-on): Update.
11943         * modules/iconv-h (Depends-on): Update.
11944         * modules/inttypes-incomplete (Depends-on): Update.
11945         * modules/locale (Depends-on): Update.
11946         * modules/math (Depends-on): Update.
11947         * modules/netdb (Depends-on): Update.
11948         * modules/search (Depends-on): Update.
11949         * modules/signal (Depends-on): Update.
11950         * modules/spawn (Depends-on): Update.
11951         * modules/stdio (Depends-on): Update.
11952         * modules/stdlib (Depends-on): Update.
11953         * modules/string (Depends-on): Update.
11954         * modules/strings (Depends-on): Update.
11955         * modules/sys_socket (Depends-on): Update.
11956         * modules/sys_stat (Depends-on): Update.
11957         * modules/sys_time (Depends-on): Update.
11958         * modules/sys_times (Depends-on): Update.
11959         * modules/sys_utsname (Depends-on): Update.
11960         * modules/time (Depends-on): Update.
11961         * modules/unistd (Depends-on): Update.
11962         * modules/wchar (Depends-on): Update.
11963         * MODULES.html.sh (Support for building libraries and executables):
11964         Update.
11965
11966 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11967
11968         Improvements on _Noreturn and related modules.
11969
11970         modules/_Exit-tests: test _Noreturn too
11971         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11972         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11973         (main): Use them.
11974
11975         stdnoreturn, stdnoreturn-tests: remove modules
11976         They're not needed here and a bit premature for use elsewhere.  See
11977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11978         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11979         * tests/test-stdnoreturn.c: Remove files.
11980         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11981         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11982         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11983         and using noreturn.
11984         * modules/openat, modules/sigpipe-die, modules/xalloc:
11985         * modules/xmemdup0, modules/xstrtol:
11986         Remove dependency on stdnoreturn.
11987
11988         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11989         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11990         Reparenthesize to avoid GCC warning.
11991         Support Microsoft's syntax.
11992         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11993
11994         _Noreturn-tests: remove module
11995         * modules/_Noreturn-tests: Remove.
11996         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11997         * tests/test-_Noreturn.c: Remove.
11998         * tests/test-stdnoreturn.c: Merge from the old
11999         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12000
12001 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12002
12003         _Noreturn, stdnoreturn, and related modules.
12004
12005         * top/maint.mk: Adjust to new noreturn support.
12006         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12007         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12008
12009         xalloc: use stdnoreturn.h
12010         * lib/xalloc.h: Include <stdnoreturn.h>.
12011         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12012         * modules/xalloc (Depends-on): Add stdnoreturn.
12013
12014         xstrtol: use stdnoreturn.h
12015         * lib/xstrtol.h: Include <stdnoreturn.h>.
12016         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12017         * modules/xstrtol (Depends-on): Add stdnoreturn.
12018
12019         xmemdup0: use stdnoreturn.h
12020         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12021         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12022         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12023
12024         sigpipe-die: use stdnoreturn.h
12025         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12026         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12027         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12028
12029         openat: use stdnoreturn.h
12030         * lib/openat.h: Include <stdnoreturn.h>.
12031         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12032         * modules/openat (Depends-on): Add stdnoreturn.
12033
12034         * lib/openat-die.c (openat_save_fail): Modernize comment.
12035
12036         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12037
12038         * lib/glthread/thread.h: Modernize comment.
12039
12040         obstack: use _Noreturn
12041         * lib/obstack.c (__attribute__): Remove macro.
12042         (print_and_abort): Use _Noreturn.
12043
12044         c-stack: use _Noreturn
12045         * lib/c-stack.c (die, overflow_handler, segv_handler):
12046         Use _Noreturn rather than __attribute__((noreturn)).
12047
12048         argmatch-tests, exclude_tests: use _Noreturn
12049         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12050         Remove.
12051         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12052
12053         stdlib: use _Noreturn
12054         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12055         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12056         * modules/stdlib (Depends-on): Add _Noreturn.
12057         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12058
12059         stdnoreturn-tests: new module
12060         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12061
12062         stdnoreturn: new module
12063         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12064         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12065
12066         _Noreturn-tests: new module
12067         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12068
12069         _Noreturn: new module
12070         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12071         New section, mentioning it.
12072         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12073
12074         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12075
12076 2011-07-11  Eric Blake  <eblake@redhat.com>
12077
12078         ffs: new module
12079         * modules/ffs: New file.
12080         * m4/ffs.m4: Likewise.
12081         * lib/ffs.c: Likewise.
12082         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12083         * modules/strings (Makefile.am): Substitute witness.
12084         (Depends-on): Add c++defs.
12085         * lib/strings.in.h (ffs): Declare.
12086         * modules/ffs-tests: New test file.
12087         * tests/test-ffs.c: Test new module.
12088         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12089         * doc/posix-functions/ffs.texi (ffs): Likewise.
12090
12091         regex: avoid compiler warning
12092         * lib/regex.c (includes): Include <strings.h>, for use of
12093         strcasecmp in regcomp.c.
12094         Reported by Joachim Schmitz.
12095
12096 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12097
12098         stdint: respect system's intmax_t if INTMAX_MAX
12099         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12100         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12101         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12102         long but int64_t is long long, and where we will clash with the
12103         system intmax_t if we override it.  See
12104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12105         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12106         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12107         similarly for UINTMAX_C.
12108
12109 2011-07-08  Bruno Haible  <bruno@clisp.org>
12110
12111         pthread_sigmask tests: Avoid a compiler warning.
12112         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12113         non-zero.
12114
12115         sigprocmask tests: A better way to avoid a compiler warning.
12116         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12117         (main): Complain if system() returns non-zero.
12118         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12119
12120 2011-07-08  Bruno Haible  <bruno@clisp.org>
12121
12122         pthread_sigmask: Work around IRIX bug.
12123         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12124         bug.
12125         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12126         there may be unblocked pending signals.
12127         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12128
12129 2011-07-08  Bruno Haible  <bruno@clisp.org>
12130
12131         pthread_sigmask: Work around Cygwin bug.
12132         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12133         bug.
12134         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12135         the system's pthread_sigmask function.
12136         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12137
12138 2011-07-08  Bruno Haible  <bruno@clisp.org>
12139
12140         pthread_sigmask: Work around bug in single-threaded implementation.
12141         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12142         FreeBSD, HP-UX, Solaris bug.
12143         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12144         * lib/pthread_sigmask.c: Include <stddef.h>.
12145         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12146         the system's pthread_sigmask function.
12147         * modules/pthread_sigmask (configure.ac): Invoke
12148         gl_PREREQ_PTHREAD_SIGMASK.
12149         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12150         HP-UX, Solaris.
12151
12152 2011-07-08  Eric Blake  <eblake@redhat.com>
12153
12154         test-sigprocmask: avoid compiler warning
12155         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12156         * tests/test-sigprocmask.c (main): Use it to silence warning.
12157         Reported by Jim Meyering.
12158
12159         test-snprintf: avoid compiler warning
12160         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12161         * tests/test-vsnprintf.c (main): Likewise.
12162         Reported by Jim Meyering.
12163
12164 2011-07-08  Bruno Haible  <bruno@clisp.org>
12165
12166         Tests for module 'pthread_sigmask'.
12167         * modules/pthread_sigmask-tests: New file.
12168         * tests/test-pthread_sigmask1.c: New file, based on
12169         tests/test-sigprocmask.c.
12170         * tests/test-pthread_sigmask2.c: New file.
12171
12172 2011-07-08  Jim Meyering  <meyering@redhat.com>
12173
12174         test-getopt.h: avoid warning about an unused variable
12175         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12176
12177 2011-07-07  Jim Meyering  <meyering@redhat.com>
12178
12179         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12180         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12181         now that it no longer contains leading TABs.
12182         Remove unused "url=FIXME" statement.
12183
12184 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12185
12186         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12187         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12188         When gl_THREADLIB is not in use, assume that the POSIX sematics
12189         are desired.  This is better for Emacs, which uses POSIX semantics
12190         on GNUish and/or POSIXish platforms, and does not use threads at
12191         all otherwise.
12192
12193         pthread_sigmask: fix typo when testing for libraries
12194         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12195         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12196
12197 2011-07-08  Eric Blake  <eblake@redhat.com>
12198
12199         fts: introduce FTS_NOATIME
12200         * lib/fts_.h (FTS_NOATIME): New bit flag.
12201         (FTS_OPTIONMASK): Adjust.
12202         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12203         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12204
12205 2011-07-08  Bruno Haible  <bruno@clisp.org>
12206
12207         Tests for module 'thread'.
12208         * modules/thread-tests: New file.
12209         * tests/test-thread_self.c: New file.
12210         * tests/test-thread_create.cc: New file.
12211
12212 2011-07-08  Bruno Haible  <bruno@clisp.org>
12213
12214         thread: Avoid gcc warnings when using gl_thread_self().
12215         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12216         'void *'.
12217         (gl_thread_self_pointer): Update.
12218
12219 2011-07-07  Bruno Haible  <bruno@clisp.org>
12220
12221         signal-c++-tests: Check declaration of pthread_sigmask.
12222         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12223         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12224         $(LIB_PTHREAD_SIGMASK).
12225
12226 2011-07-07  Bruno Haible  <bruno@clisp.org>
12227
12228         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12229         * lib/signal.in.h (pthread_sigmask): Override if
12230         REPLACE_PTHREAD_SIGMASK is 1.
12231         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12232         REPLACE_PTHREAD_SIGMASK.
12233         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12234         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12235         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12236         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12237         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12238
12239 2011-07-07  Bruno Haible  <bruno@clisp.org>
12240
12241         pthread_sigmask: Ensure declaration in <signal.h>.
12242         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12243         include <pthread.h>.
12244         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12245         problem.
12246
12247 2011-07-07  Bruno Haible  <bruno@clisp.org>
12248
12249         pthread_sigmask: Document the module.
12250         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12251
12252 2011-07-07  Bruno Haible  <bruno@clisp.org>
12253
12254         pthread_sigmask: Follow gnulib conventions.
12255         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12256         gl_PTHREAD_SIGMASK.
12257         * modules/pthread_sigmask (configure.ac): Update.
12258
12259 2011-07-07  Bruno Haible  <bruno@clisp.org>
12260
12261         pthread_sigmask: Make declaration C++ safe.
12262         * lib/signal.in.h: In two special conditions, just do an #include_next.
12263         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12264         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12265         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12266         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12267         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12268         not REPLACE_PTHREAD_MASK.
12269         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12270         not REPLACE_PTHREAD_MASK.
12271         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12272
12273 2011-07-07  Bruno Haible  <bruno@clisp.org>
12274
12275         pthread_sigmask: Fix return value.
12276         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12277         * lib/pthread_sigmask.c: New file.
12278         * modules/pthread_sigmask (Files): Add it.
12279         (configure.ac): Invoke AC_LIBOBJ.
12280
12281 2011-07-07  Eric Blake  <eblake@redhat.com>
12282
12283         getopt: more portable argv creation
12284         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12285         const, use char arrays rather than strings.
12286         Suggested by Paul Eggert.
12287
12288 2011-07-07  Bruno Haible  <bruno@clisp.org>
12289
12290         Tests for module 'sigprocmask'.
12291         * modules/sigprocmask-tests: New file.
12292         * tests/test-sigprocmask.c: New file.
12293
12294 2011-07-07  Bruno Haible  <bruno@clisp.org>
12295
12296         float tests: Tweak.
12297         * tests/test-float.c (main): Tweak skip message.
12298
12299 2011-07-07  Eric Blake  <eblake@redhat.com>
12300
12301         getopt: avoid compiler warning during configure
12302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12303         assigning string literals to non-const pointer.
12304
12305         getopt-gnu: avoid crash in glibc getopt
12306         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12307         * tests/test-getopt.h (test_getopt): Enhance test.
12308         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12309         * doc/posix-functions/getopt.texi (getopt): Document it.
12310         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12311         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12312         Likewise.
12313
12314 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12315
12316         getopt: handle W; without long options in getopt [BZ #12922]
12317         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12318         but no long options are defined, just return 'W'.
12319
12320 2011-07-07  Bruno Haible  <bruno@clisp.org>
12321
12322         Avoid literal tabs.
12323         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12324         variable containing a tab instead of a literal tab.
12325         Reported by Jim Meyering.
12326
12327 2011-07-07  Bruno Haible  <bruno@clisp.org>
12328
12329         Comments.
12330         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12331
12332 2011-07-06  Bruno Haible  <bruno@clisp.org>
12333
12334         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12335         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12336         <winsock2.h>.
12337         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12338         lib/sys_socket.in.h.
12339         (close, gethostname): Hide declarations from <winsock2.h>.
12340         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12341         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12342         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12343         (select): Don't override if gnulib's <sys/select.h> was already
12344         included.
12345         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12346         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12347         setsockopt, shutdown, select): Tweak indentation.
12348
12349 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12350
12351         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12352         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12353         in an application that does not use the sys_select module.
12354
12355 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12356
12357         poll: do not return 0 on timeout=-1
12358         * lib/poll.c: Loop with yield if no events occured
12359
12360 2011-07-06  Eric Blake  <eblake@redhat.com>
12361
12362         pthread_sigmask: always replace when not using pthread
12363         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12364         replacement when using some threading other than pthread.  Fix
12365         logic bug.
12366
12367 2011-07-06  Bruno Haible  <bruno@clisp.org>
12368
12369         Comments.
12370         * m4/printf.m4: Update comments about mingw.
12371
12372 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12373
12374         sys_select: define sigset_t more portably
12375         * lib/sys_select.in.h: Always include <sys/types.h>, since
12376         we now need sigset_t and mingw defines it there.
12377         Include <signal.h> before split inclusion guard, to avoid
12378         mishaps on Solaris, whose <signal.h> eventually includes us.
12379         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12380         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12381         which come from ...
12382         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12383         gl_CHECK_TYPE_SIGSET_T.
12384         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12385         does the real work.
12386         * modules/sys_select (Depends-on): Add 'signal'.
12387
12388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12389         Suggested by Bruno Haible.
12390
12391         pselect: Use pthread_sigmask, not sigprocmask.
12392         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12393         multithreaded apps better than sigprocmask does.
12394         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12395         sigprocmask directly.
12396
12397 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12398
12399         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12400         Don't #undef,  since we don't need any underlying pselect.
12401         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12402         (Depends-on): Add select.
12403         (Link): Add $(LIBSOCKET).
12404         These changes suggested by Bruno Haible.
12405
12406         pselect: document better
12407         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12408         * doc/posix-functions/pselect.texi (pselect): Document new module.
12409
12410         pthread_sigmask: new module
12411         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12412         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12413         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12414         This is done only as a macro; I don't know how well that'll
12415         work for C++.  Move <sys/types.h> include before the include_next,
12416         to avoid mishap on Solaris.
12417         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12418         * modules/signal (Makefile.am): Substitute the check's results.
12419         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12420
12421         test-pselect: new module
12422         * modules/pselect-tests, tests/test-pselect.c: New files.
12423         * tests/test-select.c, tests/test-sys_select-c++.cc:
12424         If TEST_PSELECT is defined, test pselect instead of testing select.
12425
12426         * tests/test-sys_select.c (sigset_t): Test for it, too.
12427         Suggested by Bruno Haible.
12428
12429 2011-07-05  Eric Blake  <eblake@redhat.com>
12430
12431         snprintf: guarantee %1$d, for libintl
12432         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12433         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12434         * doc/posix-functions/snprintf.texi (snprintf): Update.
12435         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12436         * tests/test-snprintf.c (main): Enhance test.
12437         * tests/test-vsnprintf.c (main): Likewise.
12438
12439 2011-07-05  Jim Meyering  <meyering@redhat.com>
12440
12441         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12442         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12443         per Bruno's request, to accommodate this idiom (no space after "#")
12444         even when the function is inside an #if block:
12445         char *
12446         gets (char *s)
12447         #undef gets
12448         {
12449           ...
12450         }
12451
12452 2011-07-04  Jim Meyering  <meyering@redhat.com>
12453
12454         maint: indent with spaces, not TABs, and add a rule to check this
12455         * tests/test-userspec.c: Indent with spaces, not TABs.
12456         * tests/test-argp.c: Likewise.
12457         * tests/test-c-stack2.sh: Likewise.
12458         * tests/test-parse-duration.sh: Likewise
12459         * m4/strtod.m4: Likewise.
12460         * m4/alloca.m4: Likewise.
12461         * m4/pselect.m4: Likewise.
12462         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12463
12464 2011-07-03  Jim Meyering  <meyering@redhat.com>
12465
12466         maint.mk: correct omissions in prohibit_argmatch_without_use check
12467         This rule would mistakenly report that argmatch.h is included without
12468         use even when both the argmatch and invalid_arg macro were used.
12469         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12470         of argmatch and invalid_arg.
12471
12472 2011-07-03  Bruno Haible  <bruno@clisp.org>
12473
12474         Comments about EINTR.
12475         * lib/safe-read.h: Explain the purpose of this module.
12476         * lib/safe-write.h: Likewise.
12477         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12478         module.
12479         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12480         module.
12481         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12482
12483 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12484
12485         xnanosleep: Rewrite to use new dtotimespec module.
12486         It has the conversion code that used to be in xnanosleep.
12487         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12488         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12489         (TIME_T_MAX): Remove.
12490         (xnanosleep): Rewrite in terms of dtotimespec.
12491         * modules/xnanosleep (Depends-on): Add dtotimespec.
12492         Remove intprops, stdbool.
12493
12494         timespec-add, timespec-sub: new modules
12495         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12496         * lib/timespec-add.c, lib/timespec-sub.c:
12497         * modules/timespec-add, modules/timespec-sub: New files.
12498
12499         dtotimespec: new module
12500         * lib/timespec.h (dtotimespec): New decl.
12501         * lib/dtotimespec.c, modules/dtotimespec: New files.
12502
12503         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12504
12505         pselect: new module
12506         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12507         (pselect): New decls.
12508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12509         since the standard pselect decl uses 'restrict'.
12510         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12511         HAVE_PSELECT, REPLACE_PSELECT.
12512         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12513         HAVE_PSELECT, REPLACE_PSELECT.
12514         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12515
12516         sys_select: don't depend on sys_socket
12517         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12519         This fix works on GNU and GNU-like platforms, but has not been tested
12520         on native Windows.
12521         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12522         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12523         gl_HEADER_SYS_SOCKET.
12524         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12525         gl_PREREQ_SYS_H_WINSOCK2.
12526
12527 2011-06-29  Eric Blake  <eblake@redhat.com>
12528
12529         pipe2: fix C89 compile problem
12530         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12531         Reported by Bruno Haible.
12532
12533         pipe, pipe2: don't corrupt fd on error
12534         * lib/pipe.c (pipe): Leave fd unchanged on error.
12535         * lib/pipe2.c (pipe2): Likewise.
12536         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12537         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12538
12539 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12540
12541         mmap-anon: do not use regular expressions inadvertently
12542         * m4/mmap-anon.m4: Remove trailing period from strings sought
12543         in the output.
12544
12545 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12546
12547         nanosleep: fix integer overflow problem
12548         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12549         arithmetic wraps around on overflow.
12550
12551         nanosleep: simplify carrying
12552         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12553         first call to the underyling nanosleep, not for the last one.
12554         This doesn't fix any bugs, but it simplifies the computation of
12555         the remaining delay.  Found while auditing integer overflow issues.
12556
12557         dup2: remove test for existence of fcntl
12558         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12559         "#if HAVE_FCNTL", in the configure-time test program.
12560         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12561         and therefore speeds up "configure" a bit.  Found while
12562         adding the dup2 module to Emacs.
12563
12564 2011-06-24  Eric Blake  <eblake@redhat.com>
12565
12566         maint.mk: enhance useless header checks
12567         * top/maint.mk (_sc_header_without_use): Check both include
12568         styles.
12569         (sc_prohibit_assert_without_use)
12570         (sc_prohibit_close_stream_without_use)
12571         (sc_prohibit_getopt_without_use)
12572         (sc_prohibit_quotearg_without_use)
12573         (sc_prohibit_quote_without_use)
12574         (sc_prohibit_long_options_without_use)
12575         (sc_prohibit_inttostr_without_use)
12576         (sc_prohibit_ignore_value_without_use)
12577         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12578         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12579         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12580         (sc_prohibit_hash_pjw_without_use)
12581         (sc_prohibit_safe_read_without_use)
12582         (sc_prohibit_argmatch_without_use)
12583         (sc_prohibit_canonicalize_without_use)
12584         (sc_prohibit_root_dev_ino_without_use)
12585         (sc_prohibit_openat_without_use)
12586         (sc_prohibit_c_ctype_without_use)
12587         (sc_prohibit_signal_without_use)
12588         (sc_prohibit_stdio--_without_use)
12589         (sc_prohibit_stdio-safer_without_use)
12590         (sc_prohibit_strings_without_use)
12591         (sc_prohibit_intprops_without_use)
12592         (sc_prohibit_stddef_without_use)
12593         (sc_prohibit_xfreopen_without_use): Update clients.
12594
12595 2011-06-24  Jim Meyering  <meyering@redhat.com>
12596
12597         syntax-check: keep one maint.mk rule in sync with its header
12598         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12599         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12600         I prefer to avoid temporary files here, so use <(...), but that
12601         is not supported by /bin/sh, so...
12602         (SHELL): Define to /bin/bash.
12603
12604 2011-06-24  Eric Blake  <eblake@redhat.com>
12605
12606         maint.mk: update sc_prohibit_intprops_without_use
12607         * top/maint.mk (_intprops_names): Match recent changes.
12608
12609 2011-06-24  Bruno Haible  <bruno@clisp.org>
12610
12611         strerror-override: No-op tweak.
12612         * lib/strerror-override.h (strerror_override): Reorder conditions,
12613         for consistency with lib/strerror-override.c.
12614
12615 2011-06-23  Eric Blake  <eblake@redhat.com>
12616
12617         maint.mk: test further PATH_MAX issues
12618         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12619         (sc_prohibit_path_max_allocation): ...and also test alloca.
12620         Suggested by Jim Meyering.
12621
12622 2011-06-22  Eric Blake  <eblake@redhat.com>
12623
12624         maint.mk: add syntax-check to avoid char[PATH_MAX]
12625         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12626
12627         stat: be robust to PATH_MAX definition
12628         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12629         * modules/stat (Depends-on): Add verify.
12630
12631         link: work around IRIX bug
12632         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12633         * lib/link.c (rpl_link): Work around it.
12634         * tests/test-link.h (test_link): Enhance test.
12635         * doc/posix-functions/link.texi (link): Document the bug.
12636
12637         getopt: silence clang warning
12638         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12639         dereference.
12640         Reported by Gustavo Martin Domato.
12641
12642 2011-06-22  Jim Meyering  <meyering@redhat.com>
12643
12644         bootstrap: do not insert a blank line into each .gitignore file
12645         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12646
12647 2011-06-21  Eric Blake  <eblake@redhat.com>
12648
12649         perror: test for output mismatch
12650         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12651         perror on IRIX.
12652
12653         strerror_r: fix OpenBSD behavior on out-of-range
12654         * lib/strerror_r.c (strerror_r): Always use maximal string.
12655         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12656
12657         strerror_r: fix OpenBSD behavior on 0
12658         * lib/strerror-override.c (strerror_override): Also override 0
12659         when needed.
12660         * lib/strerror-override.h (strerror_override): Likewise.
12661         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12662         earlier.
12663         * lib/strerror_r.c (strerror_r): Likewise.
12664         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12665         behavior...
12666         (gl_FUNC_STRERROR_0): ...into new macro.
12667         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12668         is overridden.
12669         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12670         * modules/strerror-override (Files): Add strerror.m4.
12671         (configure.ac): Also provide override for 0 when needed.
12672         * doc/posix-functions/strerror.texi (strerror): Document this.
12673         * doc/posix-functions/perror.texi (perror): Likewise.
12674
12675         perror: adjust array size
12676         * modules/perror (Depends-on): Add strerror-override.
12677         * lib/perror.c (perror): Use it to avoid magic number.
12678
12679         strerror-override: reduce size
12680         * lib/strerror-override.c (strerror_override): Use fewer lines.
12681
12682 2011-06-20  Bruno Haible  <bruno@clisp.org>
12683
12684         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12685         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12686
12687 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12688
12689         alloca: port to compilers that can optimize like GCC 4.6.0
12690         * lib/alloca.c (find_stack_direction): New signature, taken from
12691         Autoconf git.  This works with GCC 4.6.0.  This code should never
12692         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12693         be used with other compilers that optimize as well as GCC 4.6.0 does.
12694         (alloca): Adjust to new signature.
12695         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12696         New macro, which patches Autoconf in a similar way.
12697
12698         c-stack: stop worrying about stack direction
12699         * lib/c-stack.c (find_stack_direction): Remove.
12700         (segv_handler): Don't worry about stack direction growth, as it's
12701         too much of a pain to configure this correctly, given how compilers
12702         are optimizing-away our stack-growth detection code.  Instead, assume
12703         that any access to just before or just after the stack is OK.
12704         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12705         Don't require AC_FUNC_ALLOCA; no longer needed.
12706
12707 2011-06-20  Eric Blake  <eblake@redhat.com>
12708
12709         test-stat: don't allocate PATH_MAX bytes
12710         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12711         PATH_MAX-sized buffer.
12712         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12713         * modules/stat-tests (Depends-on): Likewise.
12714         * tests/test-fstatat.c (includes): Drop pathmax.h.
12715         * tests/test-stat.c (includes): Likewise.
12716         Reported by Bruno Haible.
12717
12718 2011-06-20  Bruno Haible  <bruno@clisp.org>
12719
12720         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12721         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12722         * lib/float.c: New file.
12723         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12724         REPLACE_FLOAT_LDBL.
12725         * modules/float (Files): Add lib/float.c.
12726         (configure.ac): Invoke AC_LIBOBJ.
12727         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12728
12729 2011-06-20  Bruno Haible  <bruno@clisp.org>
12730
12731         Tests for module 'float'.
12732         * modules/float-tests: New file.
12733         * tests/test-float.c: New file.
12734
12735 2011-06-19  Bruno Haible  <bruno@clisp.org>
12736
12737         isinf: Coding style.
12738         * lib/isinf.c: Use GNU coding style.
12739
12740 2011-06-19  Bruno Haible  <bruno@clisp.org>
12741
12742         linkat test: Avoid test failure on AIX 7.1.
12743         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12744         * tests/test-link.h (test_link): Likewise.
12745
12746 2011-06-19  Bruno Haible  <bruno@clisp.org>
12747
12748         pread test: Avoid test failure on OpenBSD 4.9.
12749         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12750
12751 2011-06-19  Bruno Haible  <bruno@clisp.org>
12752
12753         sprintf-posix: Fix test failure on AIX 7.1.
12754         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12755         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12756         on AIX.
12757         * doc/posix-functions/fprintf.texi: Likewise.
12758         * doc/posix-functions/printf.texi: Likewise.
12759         * doc/posix-functions/snprintf.texi: Likewise.
12760         * doc/posix-functions/sprintf.texi: Likewise.
12761         * doc/posix-functions/vdprintf.texi: Likewise.
12762         * doc/posix-functions/vfprintf.texi: Likewise.
12763         * doc/posix-functions/vprintf.texi: Likewise.
12764         * doc/posix-functions/vsnprintf.texi: Likewise.
12765         * doc/posix-functions/vsprintf.texi: Likewise.
12766
12767 2011-06-19  Bruno Haible  <bruno@clisp.org>
12768
12769         roundl-ieee: Fix test failure on AIX 7.1.
12770         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12771         * doc/posix-functions/roundl.texi: Mention problem with negative
12772         arguments.
12773
12774 2011-06-19  Bruno Haible  <bruno@clisp.org>
12775
12776         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12777         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12778         * doc/posix-functions/round.texi: Mention problem with negative
12779         arguments.
12780         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12781
12782 2011-06-19  Bruno Haible  <bruno@clisp.org>
12783
12784         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12785         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12786         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12787         * doc/posix-functions/roundf.texi: Mention problem with negative
12788         arguments.
12789         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12790
12791 2011-06-19  Bruno Haible  <bruno@clisp.org>
12792
12793         ceilf-ieee: Work around bug on MacOS X 10.5.
12794         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12795
12796         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12797         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12798         IEEE compliant, avoid compiler optimizations.
12799         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12800         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12801         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12802         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12803         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12804         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12805         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12806         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12807         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12808         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12809
12810 2011-06-19  Bruno Haible  <bruno@clisp.org>
12811
12812         ceilf-ieee: Work around bug on AIX 7.1.
12813         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12814         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12815
12816 2011-06-19  Bruno Haible  <bruno@clisp.org>
12817
12818         ceil-ieee: Work around bug on AIX 7.1.
12819         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12820         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12821
12822 2011-06-18  Bruno Haible  <bruno@clisp.org>
12823
12824         fsync test: Avoid test failure on MacOS X and AIX.
12825         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12826         EINVAL.
12827
12828 2011-06-18  Bruno Haible  <bruno@clisp.org>
12829
12830         openat, fdopendir tests: Fix link errors.
12831         * modules/openat-tests (Depends-on): Add progname.
12832         * modules/fdopendir-tests (Depends-on): Likewise.
12833         * tests/test-fchownat.c: Include progname.h.
12834         (main): Call set_program_name.
12835         * tests/test-fstatat.c: Include progname.h.
12836         (main): Call set_program_name.
12837         * tests/test-mkdirat.c: Include progname.h.
12838         (main): Call set_program_name.
12839         * tests/test-openat.c: Include progname.h.
12840         (main): Call set_program_name.
12841         * tests/test-unlinkat.c: Include progname.h.
12842         (main): Call set_program_name.
12843         * tests/test-fdopendir.c: Include progname.h.
12844         (main): Call set_program_name.
12845
12846 2011-06-18  Bruno Haible  <bruno@clisp.org>
12847
12848         Doc update.
12849         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12850         HP-UX.
12851         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12852
12853 2011-06-18  Bruno Haible  <bruno@clisp.org>
12854
12855         getcwd tests: Avoid compilation error on HP-UX 11.31.
12856         * modules/getcwd-tests (Depends-on): Add pathmax.
12857         * tests/test-getcwd.c: Include pathmax.h.
12858
12859 2011-06-18  Bruno Haible  <bruno@clisp.org>
12860
12861         isfinite, isinf: Fix link error on AIX 6 and 7.
12862         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12863         needed, also test the macro with a 'float' argument.
12864         * m4/isinf.m4 (gl_ISINF): Likewise.
12865
12866 2011-06-18  Bruno Haible  <bruno@clisp.org>
12867
12868         getloadavg: Don't clobber LIBS. Regression from previous commit.
12869         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12870         AC_CHECK_LIB from here...
12871         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12872         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12873         gl_func_getloadavg_done.
12874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12875
12876 2011-06-18  Bruno Haible  <bruno@clisp.org>
12877
12878         clean-temp: Improve documentation.
12879         * lib/clean-temp.h: Explain better how to use this module.
12880         Reported by John Darrington <john@darrington.wattle.id.au>.
12881
12882 2011-06-17  Bruno Haible  <bruno@clisp.org>
12883
12884         pread, pwrite: Avoid cc warning on AIX.
12885         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12886         (pwrite): Likewise.
12887
12888 2011-06-17  Bruno Haible  <bruno@clisp.org>
12889
12890         spawn-pipe tests: Fix link error.
12891         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12892         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12893
12894 2011-06-17  Bruno Haible  <bruno@clisp.org>
12895
12896         Tests: Remove unnecessary dependency.
12897         * modules/canonicalize-tests (Depends-on): Remove progname.
12898         * modules/chown-tests (Depends-on): Likewise.
12899         * modules/dirname-tests (Depends-on): Likewise.
12900         * modules/fdopendir-tests (Depends-on): Likewise.
12901         * modules/fdutimensat-tests (Depends-on): Likewise.
12902         * modules/hash-tests (Depends-on): Likewise.
12903         * modules/lchown-tests (Depends-on): Likewise.
12904         * modules/linkat-tests (Depends-on): Likewise.
12905         * modules/renameat-tests (Depends-on): Likewise.
12906         * modules/spawn-pipe-tests (Depends-on): Likewise.
12907         * modules/utimensat-tests (Depends-on): Likewise.
12908
12909 2011-06-17  Bruno Haible  <bruno@clisp.org>
12910
12911         spawn-pipe tests: Fix link error.
12912         * tests/test-spawn-pipe-child.c: Undefine fflush.
12913
12914 2011-06-17  Bruno Haible  <bruno@clisp.org>
12915
12916         Fix tests link errors.
12917         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12918         * modules/chown-tests (Makefile.am): Don't link test-chown with
12919         LIBINTL.
12920         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12921         LIBINTL.
12922         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12923         LIBINTL.
12924         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12925         LIBINTL.
12926
12927 2011-06-16  Bruno Haible  <bruno@clisp.org>
12928
12929         crypto/gc-sha1: Fix recent regression.
12930         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12931         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12932
12933         crypto/gc-md5: Fix recent regression.
12934         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12935
12936         crypto/gc-md4: Fix recent regression.
12937         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12938         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12939
12940         crypto/gc-arctwo: Fix recent regression.
12941         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12942         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12943
12944         crypto/gc-rijndael: Fix recent regression.
12945         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12946         (configure.ac): Invoke AC_LIBOBJ here.
12947         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12949
12950         crypto/gc-hmac-sha1: Fix recent regression.
12951         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12952         (configure.ac): Invoke AC_LIBOBJ here.
12953         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12954         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12955
12956         crypto/gc-hmac-md5: Fix recent regression.
12957         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12958         (configure.ac): Invoke AC_LIBOBJ here.
12959         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12961
12962         crypto/gc-des: Fix recent regression.
12963         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12964         (configure.ac): Invoke AC_LIBOBJ here.
12965         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12966         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12967
12968         crypto/gc-arcfour: Fix recent regression.
12969         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12970         (configure.ac): Invoke AC_LIBOBJ here.
12971         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12972         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12973
12974 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12975
12976         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12977         After the 2011-05-21 change, this macro requires
12978         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12979         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12980
12981 2011-06-16  Bruno Haible  <bruno@clisp.org>
12982
12983         fprintftime: Move AC_LIBOBJ invocations to module description.
12984         * m4/fprintftime.m4: Remove file.
12985         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12986         (configure.ac): Remove gl_FPRINTFTIME call.
12987         (Makefile.am): Augment lib_SOURCES.
12988         Reported by Jim Meyering.
12989
12990 2011-06-16  Bruno Haible  <bruno@clisp.org>
12991
12992         tmpfile-safer: Finish 2011-05-23 commit.
12993         * m4/stdio-safer.m4: Really remove file.
12994         Reported by Jim Meyering.
12995
12996 2011-06-16  Bruno Haible  <bruno@clisp.org>
12997
12998         syntax-check: Fix typo.
12999         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13000         printf-posix.m4.
13001         Reported by Jim Meyering.
13002
13003 2011-06-13  Jim Meyering  <meyering@redhat.com>
13004
13005         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13006         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13007
13008 2011-05-23  Bruno Haible  <bruno@clisp.org>
13009
13010         yesno: Move AC_LIBOBJ invocations to module description.
13011         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13012         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13013
13014 2011-05-23  Bruno Haible  <bruno@clisp.org>
13015
13016         xstrtol: Move AC_LIBOBJ invocations to module description.
13017         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13018         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13019
13020 2011-05-23  Bruno Haible  <bruno@clisp.org>
13021
13022         xstrtold: Move AC_LIBOBJ invocations to module description.
13023         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13024         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13025
13026 2011-05-23  Bruno Haible  <bruno@clisp.org>
13027
13028         xstrtod: Move AC_LIBOBJ invocations to module description.
13029         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13030         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13031
13032 2011-05-23  Bruno Haible  <bruno@clisp.org>
13033
13034         xnanosleep: Move AC_LIBOBJ invocations to module description.
13035         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13036         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13037
13038 2011-05-23  Bruno Haible  <bruno@clisp.org>
13039
13040         xgetcwd: Move AC_LIBOBJ invocations to module description.
13041         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13042         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13043
13044 2011-05-23  Bruno Haible  <bruno@clisp.org>
13045
13046         xalloc: Move AC_LIBOBJ invocations to module description.
13047         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13048         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13049
13050 2011-05-23  Bruno Haible  <bruno@clisp.org>
13051
13052         write-any-file: Move AC_LIBOBJ invocations to module description.
13053         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13054         invocation.
13055         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13056
13057 2011-05-23  Bruno Haible  <bruno@clisp.org>
13058
13059         utimens: Move AC_LIBOBJ invocations to module description.
13060         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13061         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13062
13063 2011-05-23  Bruno Haible  <bruno@clisp.org>
13064
13065         utimecmp: Move AC_LIBOBJ invocations to module description.
13066         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13067         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13068
13069 2011-05-23  Bruno Haible  <bruno@clisp.org>
13070
13071         userspec: Move AC_LIBOBJ invocations to module description.
13072         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13073         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13074
13075 2011-05-23  Bruno Haible  <bruno@clisp.org>
13076
13077         unlinkdir: Move AC_LIBOBJ invocations to module description.
13078         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13079         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13080
13081 2011-05-23  Bruno Haible  <bruno@clisp.org>
13082
13083         unistd-safer: Move AC_LIBOBJ invocations to module description.
13084         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13085         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13086
13087 2011-05-23  Bruno Haible  <bruno@clisp.org>
13088
13089         tempname: Move AC_LIBOBJ invocations to module description.
13090         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13091         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13092
13093 2011-05-23  Bruno Haible  <bruno@clisp.org>
13094
13095         strftime: Move AC_LIBOBJ invocations to module description.
13096         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13097         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13098
13099 2011-05-23  Bruno Haible  <bruno@clisp.org>
13100
13101         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13102         * m4/stdlib-safer.m4: Remove file.
13103         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13104         (configure.ac): Remove gl_STDLIB_SAFER call.
13105         (Makefile.am): Augment lib_SOURCES.
13106
13107 2011-05-23  Bruno Haible  <bruno@clisp.org>
13108
13109         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13110         * m4/stdio-safer.m4: Remove file.
13111         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13112         (configure.ac): Remove gl_TMPFILE_SAFER call.
13113         (Makefile.am): Augment lib_SOURCES.
13114
13115 2011-05-23  Bruno Haible  <bruno@clisp.org>
13116
13117         popen-safer: Move AC_LIBOBJ invocations to module description.
13118         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13119         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13120         (configure.ac): Remove gl_POPEN_SAFER call.
13121         (Makefile.am): Augment lib_SOURCES.
13122
13123 2011-05-23  Bruno Haible  <bruno@clisp.org>
13124
13125         freopen-safer: Move AC_LIBOBJ invocations to module description.
13126         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13127         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13128         (configure.ac): Remove gl_FREOPEN_SAFER call.
13129         (Makefile.am): Augment lib_SOURCES.
13130
13131 2011-05-23  Bruno Haible  <bruno@clisp.org>
13132
13133         fopen-safer: Move AC_LIBOBJ invocations to module description.
13134         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13135         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13136         (configure.ac): Remove gl_FOPEN_SAFER call.
13137         (Makefile.am): Augment lib_SOURCES.
13138
13139 2011-05-23  Bruno Haible  <bruno@clisp.org>
13140
13141         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13142         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13143         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13144
13145 2011-05-23  Bruno Haible  <bruno@clisp.org>
13146
13147         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13148         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13149         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13150
13151 2011-05-23  Bruno Haible  <bruno@clisp.org>
13152
13153         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13154         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13155         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13156
13157 2011-05-23  Bruno Haible  <bruno@clisp.org>
13158
13159         settime: Move AC_LIBOBJ invocations to module description.
13160         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13161         * modules/settime (Makefile.am): Augment lib_SOURCES.
13162
13163 2011-05-23  Bruno Haible  <bruno@clisp.org>
13164
13165         savedir: Move AC_LIBOBJ invocations to module description.
13166         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13167         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13168
13169 2011-05-23  Bruno Haible  <bruno@clisp.org>
13170
13171         save-cwd: Move AC_LIBOBJ invocations to module description.
13172         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13173         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13174
13175 2011-05-23  Bruno Haible  <bruno@clisp.org>
13176
13177         same: Move AC_LIBOBJ invocations to module description.
13178         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13179         * modules/same (Makefile.am): Augment lib_SOURCES.
13180
13181 2011-05-23  Bruno Haible  <bruno@clisp.org>
13182
13183         safe-write: Move AC_LIBOBJ invocations to module description.
13184         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13185         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13186         instead of gl_SAFE_WRITE.
13187         (Makefile.am): Augment lib_SOURCES.
13188
13189 2011-05-23  Bruno Haible  <bruno@clisp.org>
13190
13191         safe-read: Move AC_LIBOBJ invocations to module description.
13192         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13193         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13194         of gl_SAFE_READ.
13195         (Makefile.am): Augment lib_SOURCES.
13196
13197 2011-05-23  Bruno Haible  <bruno@clisp.org>
13198
13199         safe-alloc: Move AC_LIBOBJ invocations to module description.
13200         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13201         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13202
13203 2011-05-23  Bruno Haible  <bruno@clisp.org>
13204
13205         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13206         * m4/rijndael.m4: Remove file.
13207         * modules/crypto/rijndael (Files): Remove it.
13208         (configure.ac): Remove gl_RIJNDAEL call.
13209         (Makefile.am): Augment lib_SOURCES.
13210
13211 2011-05-23  Bruno Haible  <bruno@clisp.org>
13212
13213         readtokens: Move AC_LIBOBJ invocations to module description.
13214         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13215         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13216
13217 2011-05-23  Bruno Haible  <bruno@clisp.org>
13218
13219         read-file: Move AC_LIBOBJ invocations to module description.
13220         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13221         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13222         of gl_FUNC_READ_FILE.
13223         (Makefile.am): Augment lib_SOURCES.
13224
13225 2011-05-23  Bruno Haible  <bruno@clisp.org>
13226
13227         quotearg: Move AC_LIBOBJ invocations to module description.
13228         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13229         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13230
13231 2011-05-23  Bruno Haible  <bruno@clisp.org>
13232
13233         quote: Move AC_LIBOBJ invocations to module description.
13234         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13235         * modules/quote (Makefile.am): Augment lib_SOURCES.
13236
13237 2011-05-23  Bruno Haible  <bruno@clisp.org>
13238
13239         posixver: Move AC_LIBOBJ invocations to module description.
13240         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13241         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13242
13243 2011-05-23  Bruno Haible  <bruno@clisp.org>
13244
13245         posixtm: Move AC_LIBOBJ invocations to module description.
13246         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13247         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13248
13249 2011-05-23  Bruno Haible  <bruno@clisp.org>
13250
13251         physmem: Move AC_LIBOBJ invocations to module description.
13252         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13253         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13254
13255 2011-05-23  Bruno Haible  <bruno@clisp.org>
13256
13257         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13258         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13259         invocation.
13260         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13261
13262 2011-05-23  Bruno Haible  <bruno@clisp.org>
13263
13264         mpsort: Move AC_LIBOBJ invocations to module description.
13265         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13266         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13267
13268 2011-05-23  Bruno Haible  <bruno@clisp.org>
13269
13270         modechange: Move AC_LIBOBJ invocations to module description.
13271         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13272         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13273
13274 2011-05-23  Bruno Haible  <bruno@clisp.org>
13275
13276         mkdir-p: Move AC_LIBOBJ invocations to module description.
13277         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13278         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13279
13280 2011-05-23  Bruno Haible  <bruno@clisp.org>
13281
13282         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13283         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13284         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13285
13286 2011-05-23  Bruno Haible  <bruno@clisp.org>
13287
13288         mgetgroups: Move AC_LIBOBJ invocations to module description.
13289         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13290         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13291
13292 2011-05-23  Bruno Haible  <bruno@clisp.org>
13293
13294         memxor: Move AC_LIBOBJ invocations to module description.
13295         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13296         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13297
13298 2011-05-23  Bruno Haible  <bruno@clisp.org>
13299
13300         memcoll: Move AC_LIBOBJ invocations to module description.
13301         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13302         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13303
13304 2011-05-23  Bruno Haible  <bruno@clisp.org>
13305
13306         memcasecmp: Move AC_LIBOBJ invocations to module description.
13307         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13308         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13309
13310 2011-05-23  Bruno Haible  <bruno@clisp.org>
13311
13312         crypto/md5: Move AC_LIBOBJ invocations to module description.
13313         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13314         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13315
13316 2011-05-23  Bruno Haible  <bruno@clisp.org>
13317
13318         crypto/md4: Move AC_LIBOBJ invocations to module description.
13319         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13320         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13321
13322 2011-05-23  Bruno Haible  <bruno@clisp.org>
13323
13324         crypto/md2: Move AC_LIBOBJ invocations to module description.
13325         * m4/md2.m4: Remove file.
13326         * modules/crypto/md2 (Files): Remove it.
13327         (configure.ac): Remove gl_MD2 call.
13328         (Makefile.am): Augment lib_SOURCES.
13329
13330 2011-05-23  Bruno Haible  <bruno@clisp.org>
13331
13332         long-options: Move AC_LIBOBJ invocations to module description.
13333         * m4/long-options.m4: Remove file.
13334         * modules/long-options (Files): Remove it.
13335         (configure.ac): Remove gl_LONG_OPTIONS call.
13336         (Makefile.am): Augment lib_SOURCES.
13337
13338 2011-05-23  Bruno Haible  <bruno@clisp.org>
13339
13340         i-ring: Move AC_LIBOBJ invocations to module description.
13341         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13342         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13343
13344 2011-05-23  Bruno Haible  <bruno@clisp.org>
13345
13346         idcache: Move AC_LIBOBJ invocations to module description.
13347         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13348         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13349
13350 2011-05-23  Bruno Haible  <bruno@clisp.org>
13351
13352         human: Move AC_LIBOBJ invocations to module description.
13353         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13354         * modules/human (Makefile.am): Augment lib_SOURCES.
13355
13356 2011-05-23  Bruno Haible  <bruno@clisp.org>
13357
13358         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13359         * m4/hmac-sha1.m4: Remove file.
13360         * modules/crypto/hmac-sha1 (Files): Remove it.
13361         (configure.ac): Remove gl_HMAC_SHA1 call.
13362         (Makefile.am): Augment lib_SOURCES.
13363
13364 2011-05-23  Bruno Haible  <bruno@clisp.org>
13365
13366         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13367         * m4/hmac-md5.m4: Remove file.
13368         * modules/crypto/hmac-md5 (Files): Remove it.
13369         (configure.ac): Remove gl_HMAC_MD5 call.
13370         (Makefile.am): Augment lib_SOURCES.
13371
13372 2011-05-23  Bruno Haible  <bruno@clisp.org>
13373
13374         hash: Move AC_LIBOBJ invocations to module description.
13375         * m4/hash.m4: Remove file.
13376         * modules/hash (Files): Remove it.
13377         (configure.ac): Remove gl_HASH call.
13378         (Makefile.am): Augment lib_SOURCES.
13379
13380 2011-05-23  Bruno Haible  <bruno@clisp.org>
13381
13382         hard-locale: Move AC_LIBOBJ invocations to module description.
13383         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13384         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13385
13386 2011-05-23  Bruno Haible  <bruno@clisp.org>
13387
13388         getugroups: Move AC_LIBOBJ invocations to module description.
13389         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13390         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13391
13392 2011-05-23  Bruno Haible  <bruno@clisp.org>
13393
13394         gettime: Move AC_LIBOBJ invocations to module description.
13395         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13396         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13397
13398 2011-05-23  Bruno Haible  <bruno@clisp.org>
13399
13400         getndelim2: Move AC_LIBOBJ invocations to module description.
13401         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13402         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13403
13404 2011-05-23  Bruno Haible  <bruno@clisp.org>
13405
13406         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13407         * m4/gc-pbkdf2-sha1.m4: Remove file.
13408         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13409         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13410         (Makefile.am): Augment lib_SOURCES.
13411
13412 2011-05-23  Bruno Haible  <bruno@clisp.org>
13413
13414         fts: Move AC_LIBOBJ invocations to module description.
13415         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13416         * modules/fts (configure.ac): ... to here.
13417
13418 2011-05-23  Bruno Haible  <bruno@clisp.org>
13419
13420         file-type: Move AC_LIBOBJ invocations to module description.
13421         * m4/file-type.m4: Remove file.
13422         * modules/file-type (Files): Remove it.
13423         (configure.ac): Remove gl_FILE_TYPE call.
13424         (Makefile.am): Augment lib_SOURCES.
13425
13426 2011-05-23  Bruno Haible  <bruno@clisp.org>
13427
13428         filenamecat*: Respect rules for use of AC_LIBOBJ.
13429         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13430         Remove AC_LIBOBJ invocation.
13431         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13432         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13433
13434 2011-05-23  Bruno Haible  <bruno@clisp.org>
13435
13436         filemode: Move AC_LIBOBJ invocations to module description.
13437         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13438         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13439
13440 2011-05-23  Bruno Haible  <bruno@clisp.org>
13441
13442         openat-safer: Move AC_LIBOBJ invocations to module description.
13443         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13444         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13445
13446 2011-05-23  Bruno Haible  <bruno@clisp.org>
13447
13448         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13449         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13450         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13451
13452 2011-05-23  Bruno Haible  <bruno@clisp.org>
13453
13454         exclude: Move AC_LIBOBJ invocations to module description.
13455         * m4/exclude.m4: Remove file.
13456         * modules/exclude (Files): Remove it.
13457         (configure.ac): Remove gl_EXCLUDE call.
13458         (Makefile.am): Augment lib_SOURCES.
13459
13460 2011-05-23  Bruno Haible  <bruno@clisp.org>
13461
13462         dirname*: Respect rules for use of AC_LIBOBJ.
13463         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13464         invocations.
13465         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13466         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13467
13468 2011-05-23  Bruno Haible  <bruno@clisp.org>
13469
13470         dirent-safer: Move AC_LIBOBJ invocations to module description.
13471         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13472         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13473
13474 2011-05-23  Bruno Haible  <bruno@clisp.org>
13475
13476         crypto/des: Move AC_LIBOBJ invocations to module description.
13477         * m4/des.m4: Remove file.
13478         * modules/crypto/des (Files): Remove it.
13479         (configure.ac): Remove gl_DES call.
13480         (Makefile.am): Augment lib_SOURCES.
13481
13482 2011-05-23  Bruno Haible  <bruno@clisp.org>
13483
13484         cycle-check: Move AC_LIBOBJ invocations to module description.
13485         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13486         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13487
13488 2011-05-23  Bruno Haible  <bruno@clisp.org>
13489
13490         c-strtold: Move AC_LIBOBJ invocations to module description.
13491         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13492         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13493
13494 2011-05-23  Bruno Haible  <bruno@clisp.org>
13495
13496         c-strtod: Move AC_LIBOBJ invocations to module description.
13497         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13498         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13499
13500 2011-05-23  Bruno Haible  <bruno@clisp.org>
13501
13502         crc: Move AC_LIBOBJ invocations to module description.
13503         * m4/crc.m4: Remove file.
13504         * modules/crc (Files): Remove it.
13505         (configure.ac): Remove gl_CRC call.
13506         (Makefile.am): Augment lib_SOURCES.
13507
13508 2011-05-23  Bruno Haible  <bruno@clisp.org>
13509
13510         close-stream: Move AC_LIBOBJ invocations to module description.
13511         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13512         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13513
13514 2011-05-23  Bruno Haible  <bruno@clisp.org>
13515
13516         closeout: Move AC_LIBOBJ invocations to module description.
13517         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13518         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13519
13520 2011-05-23  Bruno Haible  <bruno@clisp.org>
13521
13522         closein: Move AC_LIBOBJ invocations to module description.
13523         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13524         * modules/closein (Makefile.am): Augment lib_SOURCES.
13525
13526 2011-05-23  Bruno Haible  <bruno@clisp.org>
13527
13528         cloexec: Move AC_LIBOBJ invocations to module description.
13529         * m4/cloexec.m4: Remove file.
13530         * modules/cloexec (Files): Remove it.
13531         (configure.ac): Remove gl_CLOEXEC call.
13532         (Makefile.am): Augment lib_SOURCES.
13533
13534 2011-05-23  Bruno Haible  <bruno@clisp.org>
13535
13536         check-version: Move AC_LIBOBJ invocations to module description.
13537         * m4/check-version.m4: Remove file.
13538         * modules/check-version (Files): Remove it.
13539         (configure.ac): Remove gl_CHECK_VERSION call.
13540         (Makefile.am): Augment lib_SOURCES.
13541
13542 2011-05-23  Bruno Haible  <bruno@clisp.org>
13543
13544         chdir-safer: Move AC_LIBOBJ invocations to module description.
13545         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13546         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13547
13548 2011-05-23  Bruno Haible  <bruno@clisp.org>
13549
13550         canonicalize: Move AC_LIBOBJ invocations to module description.
13551         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13552         AC_LIBOBJ invocation.
13553         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13554
13555 2011-05-23  Bruno Haible  <bruno@clisp.org>
13556
13557         canon-host: Move AC_LIBOBJ invocations to module description.
13558         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13559         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13560         instead of gl_CANON_HOST.
13561         (Makefile.am): Augment lib_SOURCES.
13562
13563 2011-05-23  Bruno Haible  <bruno@clisp.org>
13564
13565         backupfile: Move AC_LIBOBJ invocations to module description.
13566         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13567         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13568
13569 2011-05-23  Bruno Haible  <bruno@clisp.org>
13570
13571         argmatch: Move AC_LIBOBJ invocations to module description.
13572         * m4/argmatch.m4: Remove file.
13573         * modules/argmatch (Files): Remove it.
13574         (configure.ac): Remove gl_ARGMATCH call.
13575         (Makefile.am): Augment lib_SOURCES.
13576
13577 2011-05-23  Bruno Haible  <bruno@clisp.org>
13578
13579         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13580         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13581         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13582
13583 2011-05-23  Bruno Haible  <bruno@clisp.org>
13584
13585         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13586         * m4/arcfour.m4: Remove file.
13587         * modules/crypto/arcfour (Files): Remove it.
13588         (configure.ac): Remove gl_ARCFOUR call.
13589         (Makefile.am): Augment lib_SOURCES.
13590
13591 2011-05-22  Bruno Haible  <bruno@clisp.org>
13592
13593         write: Move AC_LIBOBJ invocations to module description.
13594         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13595         * modules/write (configure.ac): ... to here.
13596
13597 2011-05-22  Bruno Haible  <bruno@clisp.org>
13598
13599         wmemset: Move AC_LIBOBJ invocations to module description.
13600         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13601         here...
13602         * modules/wmemset (configure.ac): ... to here.
13603
13604 2011-05-22  Bruno Haible  <bruno@clisp.org>
13605
13606         wmemmove: Move AC_LIBOBJ invocations to module description.
13607         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13608         here...
13609         * modules/wmemmove (configure.ac): ... to here.
13610
13611 2011-05-22  Bruno Haible  <bruno@clisp.org>
13612
13613         wmemcpy: Move AC_LIBOBJ invocations to module description.
13614         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13615         here...
13616         * modules/wmemcpy (configure.ac): ... to here.
13617
13618 2011-05-22  Bruno Haible  <bruno@clisp.org>
13619
13620         wmemcmp: Move AC_LIBOBJ invocations to module description.
13621         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13622         here...
13623         * modules/wmemcmp (configure.ac): ... to here.
13624
13625 2011-05-22  Bruno Haible  <bruno@clisp.org>
13626
13627         wmemchr: Move AC_LIBOBJ invocations to module description.
13628         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13629         here...
13630         * modules/wmemchr (configure.ac): ... to here.
13631
13632 2011-05-22  Bruno Haible  <bruno@clisp.org>
13633
13634         wcswidth: Move AC_LIBOBJ invocations to module description.
13635         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13636         here...
13637         * modules/wcswidth (configure.ac): ... to here.
13638
13639 2011-05-22  Bruno Haible  <bruno@clisp.org>
13640
13641         wcwidth: Respect rules for use of AC_LIBOBJ.
13642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13643         invocation from here...
13644         * modules/wcwidth (configure.ac): ... to here.
13645         (Depends-on): Update conditions.
13646
13647 2011-05-22  Bruno Haible  <bruno@clisp.org>
13648
13649         wctype: Move AC_LIBOBJ invocations to module description.
13650         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13651         invocation from here...
13652         * modules/wctype (configure.ac): ... to here.
13653         (Depends-on): Update conditions.
13654
13655 2011-05-22  Bruno Haible  <bruno@clisp.org>
13656
13657         wctrans: Move AC_LIBOBJ invocations to module description.
13658         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13659         invocation from here...
13660         * modules/wctrans (configure.ac): ... to here.
13661
13662 2011-05-22  Bruno Haible  <bruno@clisp.org>
13663
13664         wctomb: Move AC_LIBOBJ invocations to module description.
13665         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13666         invocations from here...
13667         * modules/wctomb (configure.ac): ... to here.
13668
13669 2011-05-22  Bruno Haible  <bruno@clisp.org>
13670
13671         wctob: Move AC_LIBOBJ invocations to module description.
13672         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13673         gl_PREREQ_WCTOB invocations from here...
13674         * modules/wctob (configure.ac): ... to here.
13675         (Depends-on): Update conditions.
13676
13677 2011-05-22  Bruno Haible  <bruno@clisp.org>
13678
13679         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13680         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13681         here...
13682         * modules/wcsxfrm (configure.ac): ... to here.
13683
13684 2011-05-22  Bruno Haible  <bruno@clisp.org>
13685
13686         wcstok: Move AC_LIBOBJ invocations to module description.
13687         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13688         * modules/wcstok (configure.ac): ... to here.
13689
13690 2011-05-22  Bruno Haible  <bruno@clisp.org>
13691
13692         wcsstr: Move AC_LIBOBJ invocations to module description.
13693         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13694         * modules/wcsstr (configure.ac): ... to here.
13695
13696 2011-05-22  Bruno Haible  <bruno@clisp.org>
13697
13698         wcsspn: Move AC_LIBOBJ invocations to module description.
13699         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13700         * modules/wcsspn (configure.ac): ... to here.
13701
13702 2011-05-22  Bruno Haible  <bruno@clisp.org>
13703
13704         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13705         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13706         gl_PREREQ_WCSRTOMBS invocations from here...
13707         * modules/wcsrtombs (configure.ac): ... to here.
13708
13709 2011-05-22  Bruno Haible  <bruno@clisp.org>
13710
13711         wcsrchr: Move AC_LIBOBJ invocations to module description.
13712         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13713         here...
13714         * modules/wcsrchr (configure.ac): ... to here.
13715
13716 2011-05-22  Bruno Haible  <bruno@clisp.org>
13717
13718         wcspbrk: Move AC_LIBOBJ invocations to module description.
13719         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13720         here...
13721         * modules/wcspbrk (configure.ac): ... to here.
13722
13723 2011-05-22  Bruno Haible  <bruno@clisp.org>
13724
13725         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13726         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13727         gl_PREREQ_WCSNRTOMBS invocations from here...
13728         * modules/wcsnrtombs (configure.ac): ... to here.
13729
13730 2011-05-22  Bruno Haible  <bruno@clisp.org>
13731
13732         wcsnlen: Move AC_LIBOBJ invocations to module description.
13733         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13734         here...
13735         * modules/wcsnlen (configure.ac): ... to here.
13736
13737 2011-05-22  Bruno Haible  <bruno@clisp.org>
13738
13739         wcsncpy: Move AC_LIBOBJ invocations to module description.
13740         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13741         here...
13742         * modules/wcsncpy (configure.ac): ... to here.
13743
13744 2011-05-22  Bruno Haible  <bruno@clisp.org>
13745
13746         wcsncmp: Move AC_LIBOBJ invocations to module description.
13747         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13748         here...
13749         * modules/wcsncmp (configure.ac): ... to here.
13750
13751 2011-05-22  Bruno Haible  <bruno@clisp.org>
13752
13753         wcsncat: Move AC_LIBOBJ invocations to module description.
13754         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13755         here...
13756         * modules/wcsncat (configure.ac): ... to here.
13757
13758 2011-05-22  Bruno Haible  <bruno@clisp.org>
13759
13760         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13761         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13762         from here...
13763         * modules/wcsncasecmp (configure.ac): ... to here.
13764
13765 2011-05-22  Bruno Haible  <bruno@clisp.org>
13766
13767         wcslen: Move AC_LIBOBJ invocations to module description.
13768         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13769         * modules/wcslen (configure.ac): ... to here.
13770
13771 2011-05-22  Bruno Haible  <bruno@clisp.org>
13772
13773         wcsdup: Move AC_LIBOBJ invocations to module description.
13774         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13775         * modules/wcsdup (configure.ac): ... to here.
13776
13777 2011-05-22  Bruno Haible  <bruno@clisp.org>
13778
13779         wcscspn: Move AC_LIBOBJ invocations to module description.
13780         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13781         here...
13782         * modules/wcscspn (configure.ac): ... to here.
13783
13784 2011-05-22  Bruno Haible  <bruno@clisp.org>
13785
13786         wcscpy: Move AC_LIBOBJ invocations to module description.
13787         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13788         * modules/wcscpy (configure.ac): ... to here.
13789
13790 2011-05-22  Bruno Haible  <bruno@clisp.org>
13791
13792         wcscoll: Move AC_LIBOBJ invocations to module description.
13793         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13794         here...
13795         * modules/wcscoll (configure.ac): ... to here.
13796
13797 2011-05-22  Bruno Haible  <bruno@clisp.org>
13798
13799         wcscmp: Move AC_LIBOBJ invocations to module description.
13800         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13801         * modules/wcscmp (configure.ac): ... to here.
13802
13803 2011-05-22  Bruno Haible  <bruno@clisp.org>
13804
13805         wcschr: Move AC_LIBOBJ invocations to module description.
13806         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13807         * modules/wcschr (configure.ac): ... to here.
13808
13809 2011-05-22  Bruno Haible  <bruno@clisp.org>
13810
13811         wcscat: Move AC_LIBOBJ invocations to module description.
13812         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13813         * modules/wcscat (configure.ac): ... to here.
13814
13815 2011-05-22  Bruno Haible  <bruno@clisp.org>
13816
13817         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13818         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13819         here...
13820         * modules/wcscasecmp (configure.ac): ... to here.
13821
13822 2011-05-22  Bruno Haible  <bruno@clisp.org>
13823
13824         wcrtomb: Move AC_LIBOBJ invocations to module description.
13825         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13826         invocations from here...
13827         * modules/wcrtomb (configure.ac): ... to here.
13828
13829 2011-05-22  Bruno Haible  <bruno@clisp.org>
13830
13831         wcpncpy: Move AC_LIBOBJ invocations to module description.
13832         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13833         here...
13834         * modules/wcpncpy (configure.ac): ... to here.
13835
13836 2011-05-22  Bruno Haible  <bruno@clisp.org>
13837
13838         wcpcpy: Move AC_LIBOBJ invocations to module description.
13839         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13840         * modules/wcpcpy (configure.ac): ... to here.
13841
13842 2011-05-22  Bruno Haible  <bruno@clisp.org>
13843
13844         waitpid: Move AC_LIBOBJ invocations to module description.
13845         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13846         invocation from here...
13847         * modules/waitpid (configure.ac): ... to here.
13848
13849 2011-05-22  Bruno Haible  <bruno@clisp.org>
13850
13851         utimensat: Move AC_LIBOBJ invocations to module description.
13852         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13853         here...
13854         * modules/utimensat (configure.ac): ... to here.
13855
13856 2011-05-22  Bruno Haible  <bruno@clisp.org>
13857
13858         usleep: Move AC_LIBOBJ invocations to module description.
13859         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13860         here...
13861         * modules/usleep (configure.ac): ... to here.
13862
13863 2011-05-22  Bruno Haible  <bruno@clisp.org>
13864
13865         unlockpt: Move AC_LIBOBJ invocations to module description.
13866         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13867         gl_PREREQ_UNLOCKPT invocations from here...
13868         * modules/unlockpt (configure.ac): ... to here.
13869
13870 2011-05-22  Bruno Haible  <bruno@clisp.org>
13871
13872         unlink: Respect rules for use of AC_LIBOBJ.
13873         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13874         * modules/unlink (configure.ac): ... to here.
13875
13876 2011-05-22  Bruno Haible  <bruno@clisp.org>
13877
13878         uname: Move AC_LIBOBJ invocations to module description.
13879         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13880         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13881         here...
13882         * modules/uname (configure.ac): ... to here.
13883
13884 2011-05-22  Bruno Haible  <bruno@clisp.org>
13885
13886         ttyname_r: Move AC_LIBOBJ invocations to module description.
13887         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13888         gl_PREREQ_TTYNAME_R invocations from here...
13889         * modules/ttyname_r (configure.ac): ... to here.
13890
13891 2011-05-22  Bruno Haible  <bruno@clisp.org>
13892
13893         tsearch: Move AC_LIBOBJ invocations to module description.
13894         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13895         invocations from here...
13896         * modules/tsearch (configure.ac): ... to here.
13897
13898 2011-05-22  Bruno Haible  <bruno@clisp.org>
13899
13900         towctrans: Move AC_LIBOBJ invocations to module description.
13901         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13902         AC_LIBOBJ invocation from here...
13903         * modules/towctrans (configure.ac): ... to here.
13904
13905 2011-05-22  Bruno Haible  <bruno@clisp.org>
13906
13907         tmpfile: Move AC_LIBOBJ invocations to module description.
13908         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13909         invocations from here...
13910         * modules/tmpfile (configure.ac): ... to here.
13911
13912 2011-05-22  Bruno Haible  <bruno@clisp.org>
13913
13914         times: Move AC_LIBOBJ invocations to module description.
13915         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13916         * modules/times (configure.ac): ... to here.
13917
13918 2011-05-22  Bruno Haible  <bruno@clisp.org>
13919
13920         time_r: Move AC_LIBOBJ invocations to module description.
13921         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13922         invocations from here...
13923         * modules/time_r (configure.ac): ... to here.
13924
13925 2011-05-22  Bruno Haible  <bruno@clisp.org>
13926
13927         timegm: Move AC_LIBOBJ invocations to module description.
13928         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13929         invocations from here...
13930         * modules/timegm (configure.ac): ... to here.
13931
13932 2011-05-22  Bruno Haible  <bruno@clisp.org>
13933
13934         tcgetsid: Move AC_LIBOBJ invocations to module description.
13935         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13936         and gl_PREREQ_TCGETSID invocations from here...
13937         * modules/tcgetsid (configure.ac): ... to here.
13938         (Depends-on): Update conditions.
13939
13940 2011-05-22  Bruno Haible  <bruno@clisp.org>
13941
13942         symlinkat: Move AC_LIBOBJ invocations to module description.
13943         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13944         here...
13945         * modules/symlinkat (configure.ac): ... to here.
13946
13947 2011-05-22  Bruno Haible  <bruno@clisp.org>
13948
13949         symlink: Move AC_LIBOBJ invocations to module description.
13950         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13951         here...
13952         * modules/symlink (configure.ac): ... to here.
13953
13954 2011-05-22  Bruno Haible  <bruno@clisp.org>
13955
13956         strverscmp: Move AC_LIBOBJ invocations to module description.
13957         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13958         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13959         from here...
13960         * modules/strverscmp (configure.ac): ... to here.
13961
13962 2011-05-22  Bruno Haible  <bruno@clisp.org>
13963
13964         strtok_r: Move AC_LIBOBJ invocations to module description.
13965         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13966         and gl_PREREQ_STRTOK_R invocations from here...
13967         * modules/strtok_r (configure.ac): ... to here.
13968         (Depends-on): Update conditions.
13969
13970 2011-05-22  Bruno Haible  <bruno@clisp.org>
13971
13972         strtoumax: Move AC_LIBOBJ invocations to module description.
13973         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13975         from here...
13976         * modules/strtoumax (configure.ac): ... to here.
13977
13978 2011-05-22  Bruno Haible  <bruno@clisp.org>
13979
13980         strtoimax: Move AC_LIBOBJ invocations to module description.
13981         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13982         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13983         from here...
13984         * modules/strtoimax (configure.ac): ... to here.
13985
13986 2011-05-22  Bruno Haible  <bruno@clisp.org>
13987
13988         strtoull: Move AC_LIBOBJ invocations to module description.
13989         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13990         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13991         from here...
13992         * modules/strtoull (configure.ac): ... to here.
13993
13994 2011-05-22  Bruno Haible  <bruno@clisp.org>
13995
13996         strtoll: Move AC_LIBOBJ invocations to module description.
13997         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13998         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13999         here...
14000         * modules/strtoll (configure.ac): ... to here.
14001
14002 2011-05-22  Bruno Haible  <bruno@clisp.org>
14003
14004         strtoul: Move AC_LIBOBJ invocations to module description.
14005         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14006         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14007         * modules/strtoul (configure.ac): ... to here.
14008
14009 2011-05-22  Bruno Haible  <bruno@clisp.org>
14010
14011         strtol: Move AC_LIBOBJ invocations to module description.
14012         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14013         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14014         * modules/strtol (configure.ac): ... to here.
14015
14016 2011-05-22  Bruno Haible  <bruno@clisp.org>
14017
14018         strtod: Move AC_LIBOBJ invocations to module description.
14019         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14020         invocations from here...
14021         * modules/strtod (configure.ac): ... to here.
14022
14023 2011-05-22  Bruno Haible  <bruno@clisp.org>
14024
14025         strstr*: Move AC_LIBOBJ invocations to module description.
14026         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14027         invocations from here...
14028         * modules/strstr-simple (configure.ac): ... to here.
14029         * modules/strstr (configure.ac): ... and here.
14030
14031 2011-05-22  Bruno Haible  <bruno@clisp.org>
14032
14033         strsignal: Move AC_LIBOBJ invocations to module description.
14034         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14035         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14036         * modules/strsignal (configure.ac): ... to here.
14037         (Depends-on): Update conditions.
14038
14039 2011-05-22  Bruno Haible  <bruno@clisp.org>
14040
14041         strsep: Move AC_LIBOBJ invocations to module description.
14042         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14043         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14044         here...
14045         * modules/strsep (configure.ac): ... to here.
14046
14047 2011-05-22  Bruno Haible  <bruno@clisp.org>
14048
14049         strptime: Move AC_LIBOBJ invocations to module description.
14050         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14051         gl_PREREQ_STRPTIME invocations from here...
14052         * modules/strptime (configure.ac): ... to here.
14053
14054 2011-05-22  Bruno Haible  <bruno@clisp.org>
14055
14056         strpbrk: Move AC_LIBOBJ invocations to module description.
14057         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14058         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14059         here...
14060         * modules/strpbrk (configure.ac): ... to here.
14061
14062 2011-05-22  Bruno Haible  <bruno@clisp.org>
14063
14064         strnlen: Move AC_LIBOBJ invocations to module description.
14065         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14066         invocations from here...
14067         * modules/strnlen (configure.ac): ... to here.
14068
14069 2011-05-22  Bruno Haible  <bruno@clisp.org>
14070
14071         strndup: Move AC_LIBOBJ invocations to module description.
14072         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14073         invocations from here...
14074         * modules/strndup (configure.ac): ... to here.
14075         (Depends-on): Update conditions.
14076
14077 2011-05-22  Bruno Haible  <bruno@clisp.org>
14078
14079         strncat: Move AC_LIBOBJ invocations to module description.
14080         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14081         invocations from here...
14082         * modules/strncat (configure.ac): ... to here.
14083
14084 2011-05-22  Bruno Haible  <bruno@clisp.org>
14085
14086         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14087         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14088         invocations from here...
14089         * modules/strdup (configure.ac): ... to here.
14090         * modules/strdup-posix (configure.ac): ... and here.
14091
14092 2011-05-22  Bruno Haible  <bruno@clisp.org>
14093
14094         strcspn: Move AC_LIBOBJ invocations to module description.
14095         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14096         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14097         here...
14098         * modules/strcspn (configure.ac): ... to here.
14099
14100 2011-05-22  Bruno Haible  <bruno@clisp.org>
14101
14102         strchrnul: Move AC_LIBOBJ invocations to module description.
14103         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14104         gl_PREREQ_STRCHRNUL invocations from here...
14105         * modules/strchrnul (configure.ac): ... to here.
14106
14107 2011-05-22  Bruno Haible  <bruno@clisp.org>
14108
14109         strcasestr*: Move AC_LIBOBJ invocations to module description.
14110         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14111         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14112         * modules/strcasestr-simple (configure.ac): ... to here.
14113         * modules/strcasestr (configure.ac): ... and here.
14114
14115 2011-05-22  Bruno Haible  <bruno@clisp.org>
14116
14117         strcase: Move AC_LIBOBJ invocations to module description.
14118         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14119         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14120         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14121         gl_PREREQ_STRNCASECMP invocations from here...
14122         * modules/strcase (configure.ac): ... to here.
14123
14124 2011-05-22  Bruno Haible  <bruno@clisp.org>
14125
14126         stpncpy: Move AC_LIBOBJ invocations to module description.
14127         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14128         here...
14129         * modules/stpncpy (configure.ac): ... to here.
14130
14131 2011-05-22  Bruno Haible  <bruno@clisp.org>
14132
14133         stpcpy: Move AC_LIBOBJ invocations to module description.
14134         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14136         here...
14137         * modules/stpcpy (configure.ac): ... to here.
14138
14139 2011-05-21  Bruno Haible  <bruno@clisp.org>
14140
14141         stat: Move AC_LIBOBJ invocations to module description.
14142         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14143         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14144         here...
14145         * modules/stat (configure.ac): ... to here.
14146
14147 2011-05-21  Bruno Haible  <bruno@clisp.org>
14148
14149         sleep: Move AC_LIBOBJ invocations to module description.
14150         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14151         * modules/sleep (configure.ac): ... to here.
14152
14153 2011-05-21  Bruno Haible  <bruno@clisp.org>
14154
14155         signbit: Move AC_LIBOBJ invocations to module description.
14156         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14157         * modules/signbit (configure.ac): ... to here.
14158
14159 2011-05-21  Bruno Haible  <bruno@clisp.org>
14160
14161         sigprocmask: Move AC_LIBOBJ invocations to module description.
14162         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14163         gl_PREREQ_SIGPROMASK invocations from here...
14164         * modules/sigprocmask (configure.ac): ... to here.
14165
14166 2011-05-21  Bruno Haible  <bruno@clisp.org>
14167
14168         sigaction: Move AC_LIBOBJ invocations to module description.
14169         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14170         gl_PREREQ_SIGACTION invocations from here...
14171         * modules/sigaction (configure.ac): ... to here.
14172
14173 2011-05-21  Bruno Haible  <bruno@clisp.org>
14174
14175         sig2str: Move AC_LIBOBJ invocations to module description.
14176         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14177         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14178         here...
14179         * modules/sig2str (configure.ac): ... to here.
14180
14181 2011-05-21  Bruno Haible  <bruno@clisp.org>
14182
14183         setlocale: Move AC_LIBOBJ invocations to module description.
14184         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14185         gl_PREREQ_SETLOCALE invocations from here...
14186         * modules/setlocale (configure.ac): ... to here.
14187
14188 2011-05-21  Bruno Haible  <bruno@clisp.org>
14189
14190         unsetenv: Move AC_LIBOBJ invocations to module description.
14191         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14192         and gl_PREREQ_UNSETENV invocations from here...
14193         * modules/unsetenv (configure.ac): ... to here.
14194         (Depends-on): Update.
14195
14196 2011-05-21  Bruno Haible  <bruno@clisp.org>
14197
14198         setenv: Move AC_LIBOBJ invocations to module description.
14199         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14200         here...
14201         * modules/setenv (configure.ac): ... to here.
14202
14203 2011-05-21  Bruno Haible  <bruno@clisp.org>
14204
14205         selinux-h: Move AC_LIBOBJ invocations to module description.
14206         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14207         AC_LIBOBJ invocation from here...
14208         * modules/selinux-h (configure.ac): ... to here.
14209
14210 2011-05-21  Bruno Haible  <bruno@clisp.org>
14211
14212         select: Respect rules for use of AC_LIBOBJ.
14213         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14214         here...
14215         * modules/select (configure.ac): ... to here.
14216
14217 2011-05-21  Bruno Haible  <bruno@clisp.org>
14218
14219         scandir: Move AC_LIBOBJ invocations to module description.
14220         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14221         invocations from here...
14222         * modules/scandir (configure.ac): ... to here.
14223
14224 2011-05-21  Bruno Haible  <bruno@clisp.org>
14225
14226         rpmatch: Move AC_LIBOBJ invocations to module description.
14227         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14228         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14229         here...
14230         * modules/rpmatch (configure.ac): ... to here.
14231
14232 2011-05-21  Bruno Haible  <bruno@clisp.org>
14233
14234         rmdir: Respect rules for use of AC_LIBOBJ.
14235         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14236         * modules/rmdir (configure.ac): ... to here.
14237
14238 2011-05-21  Bruno Haible  <bruno@clisp.org>
14239
14240         renameat: Move AC_LIBOBJ invocations to module description.
14241         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14242         here...
14243         * modules/renameat (configure.ac): ... to here.
14244
14245 2011-05-21  Bruno Haible  <bruno@clisp.org>
14246
14247         rename: Respect rules for use of AC_LIBOBJ.
14248         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14249         here...
14250         * modules/rename (configure.ac): ... to here.
14251
14252 2011-05-21  Bruno Haible  <bruno@clisp.org>
14253
14254         remove: Move AC_LIBOBJ invocations to module description.
14255         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14256         here...
14257         * modules/remove (configure.ac): ... to here.
14258
14259 2011-05-21  Bruno Haible  <bruno@clisp.org>
14260
14261         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14262         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14263         macro.
14264         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14265         * modules/relocatable-lib (configure.ac): ... to here.
14266         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14267         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14268
14269 2011-05-21  Bruno Haible  <bruno@clisp.org>
14270
14271         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14272         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14273         here...
14274         * modules/relocatable-prog (configure.ac): ... to here.
14275
14276 2011-05-21  Bruno Haible  <bruno@clisp.org>
14277
14278         regex: Move AC_LIBOBJ invocations to module description.
14279         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14280         invocations from here...
14281         * modules/regex (configure.ac): ... to here.
14282
14283 2011-05-21  Bruno Haible  <bruno@clisp.org>
14284
14285         realloc-*: Move AC_LIBOBJ invocations to module description.
14286         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14287         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14288         AC_LIBOBJ invocations from here...
14289         * modules/realloc-gnu (configure.ac): ... to here.
14290         * modules/realloc-posix (configure.ac): ... and here.
14291
14292 2011-05-21  Bruno Haible  <bruno@clisp.org>
14293
14294         readutmp: Move AC_LIBOBJ invocations to module description.
14295         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14296         * modules/readutmp (configure.ac): ... to here.
14297
14298 2011-05-21  Bruno Haible  <bruno@clisp.org>
14299
14300         readlinkat: Move AC_LIBOBJ invocations to module description.
14301         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14302         here...
14303         * modules/readlinkat (configure.ac): ... to here.
14304
14305 2011-05-21  Bruno Haible  <bruno@clisp.org>
14306
14307         readlink: Move AC_LIBOBJ invocations to module description.
14308         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14309         gl_PREREQ_READLINK invocations from here...
14310         * modules/readlink (configure.ac): ... to here.
14311
14312 2011-05-21  Bruno Haible  <bruno@clisp.org>
14313
14314         readline: Move AC_LIBOBJ invocations to module description.
14315         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14316         gl_PREREQ_READLINE invocations from here...
14317         * modules/readline (configure.ac): ... to here.
14318
14319 2011-05-21  Bruno Haible  <bruno@clisp.org>
14320
14321         read: Move AC_LIBOBJ invocations to module description.
14322         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14323         * modules/read (configure.ac): ... to here.
14324
14325 2011-05-21  Bruno Haible  <bruno@clisp.org>
14326
14327         rawmemchr: Move AC_LIBOBJ invocations to module description.
14328         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14330         from here...
14331         * modules/rawmemchr (configure.ac): ... to here.
14332
14333 2011-05-21  Bruno Haible  <bruno@clisp.org>
14334
14335         random_r: Move AC_LIBOBJ invocations to module description.
14336         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14337         gl_PREREQ_RANDOM_R invocations from here...
14338         * modules/random_r (configure.ac): ... to here.
14339
14340 2011-05-21  Bruno Haible  <bruno@clisp.org>
14341
14342         pwrite: Move AC_LIBOBJ invocations to module description.
14343         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14344         * modules/pwrite (configure.ac): ... to here.
14345
14346 2011-05-21  Bruno Haible  <bruno@clisp.org>
14347
14348         putenv: Move AC_LIBOBJ invocations to module description.
14349         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14350         * modules/putenv (configure.ac): ... to here.
14351
14352 2011-05-21  Bruno Haible  <bruno@clisp.org>
14353
14354         login_tty: Move AC_LIBOBJ invocations to module description.
14355         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14356         * modules/login_tty (configure.ac): ... to here.
14357
14358 2011-05-21  Bruno Haible  <bruno@clisp.org>
14359
14360         openpty: Move AC_LIBOBJ invocations to module description.
14361         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14362         * modules/openpty (configure.ac): ... to here.
14363
14364 2011-05-21  Bruno Haible  <bruno@clisp.org>
14365
14366         forkpty: Move AC_LIBOBJ invocations to module description.
14367         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14368         * modules/forkpty (configure.ac): ... to here.
14369
14370 2011-05-21  Bruno Haible  <bruno@clisp.org>
14371
14372         ptsname: Move AC_LIBOBJ invocations to module description.
14373         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14374         invocations from here...
14375         * modules/ptsname (configure.ac): ... to here.
14376
14377 2011-05-21  Bruno Haible  <bruno@clisp.org>
14378
14379         pread: Move AC_LIBOBJ invocations to module description.
14380         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14381         * modules/pread (configure.ac): ... to here.
14382
14383 2011-05-21  Bruno Haible  <bruno@clisp.org>
14384
14385         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14386         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14387         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14388         * modules/posix_spawn (configure.ac): ... to here.
14389         * modules/posix_spawnp (configure.ac): ... and here.
14390
14391 2011-05-21  Bruno Haible  <bruno@clisp.org>
14392
14393         popen: Move AC_LIBOBJ invocations to module description.
14394         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14395         invocations from here...
14396         * modules/popen (configure.ac): ... to here.
14397
14398 2011-05-21  Bruno Haible  <bruno@clisp.org>
14399
14400         poll: Move AC_LIBOBJ invocations to module description.
14401         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14402         invocations from here...
14403         * modules/poll (configure.ac): ... to here.
14404
14405 2011-05-21  Bruno Haible  <bruno@clisp.org>
14406
14407         pipe-posix: Move AC_LIBOBJ invocations to module description.
14408         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14409         * modules/pipe-posix (configure.ac): ... to here.
14410
14411 2011-05-21  Bruno Haible  <bruno@clisp.org>
14412
14413         openat: Respect rules for use of AC_LIBOBJ.
14414         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14415         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14416         * modules/openat (configure.ac): ... to here.
14417
14418 2011-05-21  Bruno Haible  <bruno@clisp.org>
14419
14420         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14421         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14422         invocation from here...
14423         * modules/obstack-printf (configure.ac): ... to here.
14424         * modules/obstack-printf-posix (configure.ac): ... and here.
14425
14426 2011-05-21  Bruno Haible  <bruno@clisp.org>
14427
14428         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14429         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14430         from here...
14431         * modules/nl_langinfo (configure.ac): ... to here.
14432
14433 2011-05-21  Bruno Haible  <bruno@clisp.org>
14434
14435         nanosleep: Move AC_LIBOBJ invocations to module description.
14436         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14437         gl_PREREQ_NANOSLEEP invocations from here...
14438         * modules/nanosleep (configure.ac): ... to here.
14439
14440 2011-05-21  Bruno Haible  <bruno@clisp.org>
14441
14442         mountlist: Move AC_LIBOBJ invocations to module description.
14443         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14444         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14445         * modules/mountlist (configure.ac): ... to here.
14446
14447 2011-05-21  Bruno Haible  <bruno@clisp.org>
14448
14449         mktime: Respect rules for use of AC_LIBOBJ.
14450         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14451         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14452         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14453         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14454         * modules/mktime (configure.ac): ... to here.
14455         * modules/mktime-internal (configure.ac): ... and here.
14456         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14457
14458 2011-05-21  Bruno Haible  <bruno@clisp.org>
14459
14460         mkstemps: Move AC_LIBOBJ invocations to module description.
14461         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14462         here...
14463         * modules/mkstemps (configure.ac): ... to here.
14464
14465 2011-05-21  Bruno Haible  <bruno@clisp.org>
14466
14467         mkstemp: Move AC_LIBOBJ invocations to module description.
14468         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14469         gl_PREREQ_MKSTEMP invocations from here...
14470         * modules/mkstemp (configure.ac): ... to here.
14471
14472 2011-05-21  Bruno Haible  <bruno@clisp.org>
14473
14474         mkostemps: Move AC_LIBOBJ invocations to module description.
14475         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14476         here...
14477         * modules/mkostemps (configure.ac): ... to here.
14478
14479 2011-05-21  Bruno Haible  <bruno@clisp.org>
14480
14481         mkostemp: Move AC_LIBOBJ invocations to module description.
14482         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14483         gl_PREREQ_MKOSTEMP invocations from here...
14484         * modules/mkostemp (configure.ac): ... to here.
14485
14486 2011-05-21  Bruno Haible  <bruno@clisp.org>
14487
14488         mknod: Move AC_LIBOBJ invocations to module description.
14489         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14490         * modules/mknod (configure.ac): ... to here.
14491
14492 2011-05-21  Bruno Haible  <bruno@clisp.org>
14493
14494         mkfifoat: Move AC_LIBOBJ invocations to module description.
14495         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14496         here...
14497         * modules/mkfifoat (configure.ac): ... to here.
14498
14499 2011-05-21  Bruno Haible  <bruno@clisp.org>
14500
14501         mkfifo: Respect rules for use of AC_LIBOBJ.
14502         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14503         here...
14504         * modules/mkfifo (configure.ac): ... to here.
14505
14506 2011-05-21  Bruno Haible  <bruno@clisp.org>
14507
14508         mkdtemp: Move AC_LIBOBJ invocations to module description.
14509         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14510         invocations from here...
14511         * modules/mkdtemp (configure.ac): ... to here.
14512
14513 2011-05-21  Bruno Haible  <bruno@clisp.org>
14514
14515         mkdir: Move AC_LIBOBJ invocations to module description.
14516         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14517         * modules/mkdir (configure.ac): ... to here.
14518
14519 2011-05-21  Bruno Haible  <bruno@clisp.org>
14520
14521         memset: Move AC_LIBOBJ invocations to module description.
14522         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14524         here...
14525         * modules/memset (configure.ac): ... to here.
14526
14527 2011-05-21  Bruno Haible  <bruno@clisp.org>
14528
14529         memrchr: Move AC_LIBOBJ invocations to module description.
14530         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14531         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14532         here...
14533         * modules/memrchr (configure.ac): ... to here.
14534
14535 2011-05-21  Bruno Haible  <bruno@clisp.org>
14536
14537         mempcpy: Move AC_LIBOBJ invocations to module description.
14538         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14539         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14540         here...
14541         * modules/mempcpy (configure.ac): ... to here.
14542
14543 2011-05-21  Bruno Haible  <bruno@clisp.org>
14544
14545         memmove: Move AC_LIBOBJ invocations to module description.
14546         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14547         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14548         here...
14549         * modules/memmove (configure.ac): ... to here.
14550
14551 2011-05-21  Bruno Haible  <bruno@clisp.org>
14552
14553         memmem*: Move AC_LIBOBJ invocations to module description.
14554         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14555         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14556         here...
14557         (gl_FUNC_MEMMEM): ... and here...
14558         * modules/memmem-simple (configure.ac): ... to here.
14559         * modules/memmem (configure.ac): ... and here.
14560
14561 2011-05-21  Bruno Haible  <bruno@clisp.org>
14562
14563         memcpy: Move AC_LIBOBJ invocations to module description.
14564         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14565         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14566         here...
14567         * modules/memcpy (configure.ac): ... to here.
14568
14569 2011-05-21  Bruno Haible  <bruno@clisp.org>
14570
14571         memcmp: Simplify autoconf macro.
14572         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14573         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14574         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14575
14576 2011-05-21  Bruno Haible  <bruno@clisp.org>
14577
14578         memcmp: Move AC_LIBOBJ invocations to module description.
14579         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14580         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14581         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14582         * modules/memcmp (configure.ac): ... to here.
14583         (Depends-on): Update conditions.
14584
14585 2011-05-21  Bruno Haible  <bruno@clisp.org>
14586
14587         memchr: Respect rules for use of AC_LIBOBJ.
14588         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14589         invocations from here...
14590         * modules/memchr (configure.ac): ... to here.
14591
14592 2011-05-21  Bruno Haible  <bruno@clisp.org>
14593
14594         mbtowc: Move AC_LIBOBJ invocations to module description.
14595         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14596         invocations from here...
14597         * modules/mbtowc (configure.ac): ... to here.
14598
14599 2011-05-21  Bruno Haible  <bruno@clisp.org>
14600
14601         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14602         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14603         gl_PREREQ_MBSRTOWCS invocations from here...
14604         * modules/mbsrtowcs (configure.ac): ... to here.
14605
14606 2011-05-21  Bruno Haible  <bruno@clisp.org>
14607
14608         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14609         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14610         gl_PREREQ_MBSNRTOWCS invocations from here...
14611         * modules/mbsnrtowcs (configure.ac): ... to here.
14612
14613 2011-05-21  Bruno Haible  <bruno@clisp.org>
14614
14615         mbsinit: Move AC_LIBOBJ invocations to module description.
14616         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14617         invocations from here...
14618         * modules/mbsinit (configure.ac): ... to here.
14619
14620 2011-05-21  Bruno Haible  <bruno@clisp.org>
14621
14622         mbrlen: Move AC_LIBOBJ invocations to module description.
14623         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14624         invocations from here...
14625         * modules/mbrlen (configure.ac): ... to here.
14626
14627 2011-05-21  Bruno Haible  <bruno@clisp.org>
14628
14629         mbrtowc: Respect rules for use of AC_LIBOBJ.
14630         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14631         invocations from here...
14632         * modules/mbrtowc (configure.ac): ... to here.
14633
14634 2011-05-21  Bruno Haible  <bruno@clisp.org>
14635
14636         malloc-*: Move AC_LIBOBJ invocations to module description.
14637         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14638         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14639         AC_LIBOBJ invocations from here...
14640         * modules/malloc-gnu (configure.ac): ... to here.
14641         * modules/malloc-posix (configure.ac): ... and here.
14642
14643 2011-05-21  Bruno Haible  <bruno@clisp.org>
14644
14645         lstat, openat: Respect rules for use of AC_LIBOBJ.
14646         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14647         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14648         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14649         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14650         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14651         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14652         here.
14653         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14654
14655 2011-05-21  Bruno Haible  <bruno@clisp.org>
14656
14657         lseek: Move AC_LIBOBJ invocations to module description.
14658         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14659         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14660         * modules/lseek (configure.ac): ... to here.
14661
14662 2011-05-21  Bruno Haible  <bruno@clisp.org>
14663
14664         linkat: Move AC_LIBOBJ invocations to module description.
14665         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14666         here...
14667         * modules/linkat (configure.ac): ... to here.
14668
14669 2011-05-21  Bruno Haible  <bruno@clisp.org>
14670
14671         link: Respect rules for use of AC_LIBOBJ.
14672         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14673         * modules/link (configure.ac): ... to here.
14674
14675 2011-05-21  Bruno Haible  <bruno@clisp.org>
14676
14677         lchown: Move AC_LIBOBJ invocations to module description.
14678         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14679         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14680         * modules/lchown (configure.ac): ... to here.
14681
14682 2011-05-21  Bruno Haible  <bruno@clisp.org>
14683
14684         iswctype: Move AC_LIBOBJ invocations to module description.
14685         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14686         here...
14687         * modules/iswctype (configure.ac): ... to here.
14688
14689 2011-05-21  Bruno Haible  <bruno@clisp.org>
14690
14691         iswblank: Move AC_LIBOBJ invocations to module description.
14692         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14693         here...
14694         * modules/iswblank (configure.ac): ... to here.
14695
14696 2011-05-21  Bruno Haible  <bruno@clisp.org>
14697
14698         atanl: Move AC_LIBOBJ invocations to module description.
14699         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14700         * modules/atanl (configure.ac): ... to here.
14701
14702 2011-05-21  Bruno Haible  <bruno@clisp.org>
14703
14704         acosl: Move AC_LIBOBJ invocations to module description.
14705         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14706         * modules/acosl (configure.ac): ... to here.
14707
14708 2011-05-21  Bruno Haible  <bruno@clisp.org>
14709
14710         asinl: Respect rules for use of AC_LIBOBJ.
14711         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14712         * modules/asinl (configure.ac): ... to here.
14713
14714 2011-05-21  Bruno Haible  <bruno@clisp.org>
14715
14716         tanl: Move AC_LIBOBJ invocations to module description.
14717         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14718         * modules/tanl (configure.ac): ... to here.
14719
14720 2011-05-21  Bruno Haible  <bruno@clisp.org>
14721
14722         cosl: Move AC_LIBOBJ invocations to module description.
14723         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14724         * modules/cosl (configure.ac): ... to here.
14725
14726 2011-05-21  Bruno Haible  <bruno@clisp.org>
14727
14728         sinl: Move AC_LIBOBJ invocations to module description.
14729         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14730         * modules/sinl (configure.ac): ... to here.
14731
14732 2011-05-21  Bruno Haible  <bruno@clisp.org>
14733
14734         logl: Move AC_LIBOBJ invocations to module description.
14735         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14736         * modules/logl (configure.ac): ... to here.
14737
14738 2011-05-21  Bruno Haible  <bruno@clisp.org>
14739
14740         expl: Move AC_LIBOBJ invocations to module description.
14741         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14742         * modules/expl (configure.ac): ... to here.
14743
14744 2011-05-21  Bruno Haible  <bruno@clisp.org>
14745
14746         roundl: Move AC_LIBOBJ invocations to module description.
14747         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14748         * modules/roundl (configure.ac): ... to here.
14749
14750 2011-05-21  Bruno Haible  <bruno@clisp.org>
14751
14752         round: Move AC_LIBOBJ invocations to module description.
14753         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14754         * modules/round (configure.ac): ... to here.
14755
14756 2011-05-21  Bruno Haible  <bruno@clisp.org>
14757
14758         roundf: Move AC_LIBOBJ invocations to module description.
14759         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14760         * modules/roundf (configure.ac): ... to here.
14761
14762 2011-05-21  Bruno Haible  <bruno@clisp.org>
14763
14764         truncl: Move AC_LIBOBJ invocations to module description.
14765         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14766         * modules/truncl (configure.ac): ... to here.
14767
14768 2011-05-21  Bruno Haible  <bruno@clisp.org>
14769
14770         trunc: Move AC_LIBOBJ invocations to module description.
14771         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14772         * modules/trunc (configure.ac): ... to here.
14773
14774 2011-05-21  Bruno Haible  <bruno@clisp.org>
14775
14776         truncf: Move AC_LIBOBJ invocations to module description.
14777         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14778         * modules/truncf (configure.ac): ... to here.
14779
14780 2011-05-21  Bruno Haible  <bruno@clisp.org>
14781
14782         ceill: Move AC_LIBOBJ invocations to module description.
14783         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14784         * modules/ceill (configure.ac): ... to here.
14785
14786 2011-05-21  Bruno Haible  <bruno@clisp.org>
14787
14788         ceil: Move AC_LIBOBJ invocations to module description.
14789         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14790         * modules/ceil (configure.ac): ... to here.
14791
14792 2011-05-21  Bruno Haible  <bruno@clisp.org>
14793
14794         ceilf: Move AC_LIBOBJ invocations to module description.
14795         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14796         * modules/ceilf (configure.ac): ... to here.
14797
14798 2011-05-21  Bruno Haible  <bruno@clisp.org>
14799
14800         floorl: Respect rules for use of AC_LIBOBJ.
14801         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14802         * modules/floorl (configure.ac): ... to here.
14803
14804 2011-05-21  Bruno Haible  <bruno@clisp.org>
14805
14806         floor: Respect rules for use of AC_LIBOBJ.
14807         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14808         * modules/floor (configure.ac): ... to here.
14809
14810 2011-05-21  Bruno Haible  <bruno@clisp.org>
14811
14812         floorf: Move AC_LIBOBJ invocations to module description.
14813         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14814         * modules/floorf (configure.ac): ... to here.
14815
14816 2011-05-20  Bruno Haible  <bruno@clisp.org>
14817
14818         sqrtl: Respect rules for use of AC_LIBOBJ.
14819         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14820         * modules/sqrtl (configure.ac): ... to here.
14821
14822 2011-05-20  Bruno Haible  <bruno@clisp.org>
14823
14824         ldexpl: Respect rules for use of AC_LIBOBJ.
14825         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14826         * modules/ldexpl (configure.ac): ... to here.
14827
14828 2011-05-20  Bruno Haible  <bruno@clisp.org>
14829
14830         frexpl*: Respect rules for use of AC_LIBOBJ.
14831         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14832         invocation from here...
14833         * modules/frexpl (configure.ac): ... to here.
14834         * modules/frexpl-nolibm (configure.ac): ... and here.
14835
14836 2011-05-20  Bruno Haible  <bruno@clisp.org>
14837
14838         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14839         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14840         invocation from here...
14841         * modules/frexp (configure.ac): ... to here.
14842         * modules/frexp-nolibm (configure.ac): ... and here.
14843
14844 2011-05-20  Bruno Haible  <bruno@clisp.org>
14845
14846         isnan: Respect rules for use of AC_LIBOBJ.
14847         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14848         invocations here.
14849         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14850         REPLACE_ISNAN.
14851         * modules/isnand (configure.ac): Likewise.
14852         * modules/isnanl (configure.ac): Likewise.
14853
14854 2011-05-20  Bruno Haible  <bruno@clisp.org>
14855
14856         isnanl*: Respect rules for use of AC_LIBOBJ.
14857         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14858         invocation from here...
14859         * modules/isnanl (configure.ac): ... to here.
14860         * modules/isnanl-nolibm (configure.ac): ... and here.
14861
14862 2011-05-20  Bruno Haible  <bruno@clisp.org>
14863
14864         isnand*: Move AC_LIBOBJ invocations to module description.
14865         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14866         invocation from here...
14867         * modules/isnand (configure.ac): ... to here.
14868         * modules/isnand-nolibm (configure.ac): ... and here.
14869
14870 2011-05-20  Bruno Haible  <bruno@clisp.org>
14871
14872         isnanf*: Move AC_LIBOBJ invocations to module description.
14873         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14874         invocation from here...
14875         * modules/isnanf (configure.ac): ... to here.
14876         * modules/isnanf-nolibm (configure.ac): ... and here.
14877
14878 2011-05-20  Bruno Haible  <bruno@clisp.org>
14879
14880         isnan*: Separate the AC_LIBOBJ invocations.
14881         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14882         AC_LIBOBJ invocation.
14883         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14884         here.
14885         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14886         AC_LIBOBJ invocation.
14887         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14888         here.
14889         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14890         AC_LIBOBJ invocation.
14891         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14892         here.
14893         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14894
14895 2011-05-08  Bruno Haible  <bruno@clisp.org>
14896
14897         isinf: Move AC_LIBOBJ invocations to module description.
14898         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14899         * modules/isinf (configure.ac): ... to here.
14900
14901 2011-05-08  Bruno Haible  <bruno@clisp.org>
14902
14903         isfinite: Move AC_LIBOBJ invocations to module description.
14904         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14905         * modules/isfinite (configure.ac): ... to here.
14906
14907 2011-05-08  Bruno Haible  <bruno@clisp.org>
14908
14909         isblank: Move AC_LIBOBJ invocations to module description.
14910         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14911         here...
14912         * modules/isblank (configure.ac): ... to here.
14913
14914 2011-05-08  Bruno Haible  <bruno@clisp.org>
14915
14916         isapipe: Move AC_LIBOBJ invocations to module description.
14917         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14918         gl_PREREQ_ISAPIPE invocations from here...
14919         * modules/isapipe (configure.ac): ... to here.
14920         (Depends-on): Update condition.
14921
14922 2011-05-08  Bruno Haible  <bruno@clisp.org>
14923
14924         ioctl: Move AC_LIBOBJ invocations to module description.
14925         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14926         invocations from here...
14927         * modules/ioctl (configure.ac): ... to here.
14928         (Depends-on): Update condition.
14929
14930 2011-05-08  Bruno Haible  <bruno@clisp.org>
14931
14932         imaxdiv: Move AC_LIBOBJ invocations to module description.
14933         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14934         invocations from here...
14935         * modules/imaxdiv (configure.ac): ... to here.
14936
14937 2011-05-08  Bruno Haible  <bruno@clisp.org>
14938
14939         imaxabs: Move AC_LIBOBJ invocations to module description.
14940         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14941         invocations from here...
14942         * modules/imaxabs (configure.ac): ... to here.
14943
14944 2011-05-08  Bruno Haible  <bruno@clisp.org>
14945
14946         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14947         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14948         AC_LIBOBJ invocations from here...
14949         * modules/getaddrinfo (configure.ac): ... to here.
14950         (Depends-on): Add conditions.
14951
14952 2011-05-08  Bruno Haible  <bruno@clisp.org>
14953
14954         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14955         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14956         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14957         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14958         (gl_PREREQ_INET_PTON): ... from here.
14959         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14960         gl_PREREQ_INET_PTON here.
14961         (Depends-on): Update condition.
14962
14963 2011-05-08  Bruno Haible  <bruno@clisp.org>
14964
14965         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14966         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14967         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14968         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14969         (gl_PREREQ_INET_NTOP): ... from here.
14970         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14971         gl_PREREQ_INET_NTOP here.
14972         (Depends-on): Update condition.
14973
14974 2011-05-08  Bruno Haible  <bruno@clisp.org>
14975
14976         iconv_open: Move AC_LIBOBJ invocations to module description.
14977         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14978         AC_LIBOBJ invocations from here...
14979         * modules/iconv_open (configure.ac): ... to here.
14980
14981 2011-05-08  Bruno Haible  <bruno@clisp.org>
14982
14983         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14984         If module 'iconv_open' is among the main modules and module
14985         'iconv_open-utf' is among the tests dependencies, then
14986         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14987         return the special iconv_t values. Therefore iconv() and iconv_close()
14988         must support these special iconv_t values, already in lib, not only in
14989         tests.
14990         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14991         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14992         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14993         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14994         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14995         (Depends-on): Add the dependencies of iconv_open-utf.
14996         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14997         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14998         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14999
15000 2011-05-08  Bruno Haible  <bruno@clisp.org>
15001
15002         group-member: Move AC_LIBOBJ invocations to module description.
15003         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15004         gl_PREREQ_GROUP_MEMBER invocations from here...
15005         * modules/group-member (configure.ac): ... to here.
15006
15007 2011-05-08  Bruno Haible  <bruno@clisp.org>
15008
15009         grantpt: Move AC_LIBOBJ invocations to module description.
15010         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15011         invocations from here...
15012         * modules/grantpt (configure.ac): ... to here.
15013
15014 2011-05-08  Bruno Haible  <bruno@clisp.org>
15015
15016         glob: Move AC_LIBOBJ invocations to module description.
15017         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15018         from here...
15019         * modules/glob (configure.ac): ... to here.
15020
15021 2011-05-08  Bruno Haible  <bruno@clisp.org>
15022
15023         getusershell: Move AC_LIBOBJ invocations to module description.
15024         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15025         Move AC_LIBOBJ invocation from here...
15026         * modules/getusershell (configure.ac): ... to here.
15027         (Depends-on): Update condition.
15028
15029 2011-05-08  Bruno Haible  <bruno@clisp.org>
15030
15031         gettimeofday: Move AC_LIBOBJ invocations to module description.
15032         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15033         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15034         gl_PREREQ_GETTIMEOFDAY invocations from here...
15035         * modules/gettimeofday (configure.ac): ... to here.
15036
15037 2011-05-08  Bruno Haible  <bruno@clisp.org>
15038
15039         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15040         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15041         just gl_FUNC_TZSET.
15042         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15043         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15044         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15045         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15046
15047 2011-05-08  Bruno Haible  <bruno@clisp.org>
15048
15049         getsubopt: Move AC_LIBOBJ invocations to module description.
15050         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15051         gl_PREREQ_GETSUBOPT invocations from here...
15052         * modules/getsubopt (configure.ac): ... to here.
15053
15054 2011-05-08  Bruno Haible  <bruno@clisp.org>
15055
15056         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15057         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15058         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15059         * modules/getpass-gnu (configure.ac): ... to here.
15060
15061 2011-05-08  Bruno Haible  <bruno@clisp.org>
15062
15063         getpass: Move AC_LIBOBJ invocations to module description.
15064         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15065         gl_PREREQ_GETPASS invocations from here...
15066         * modules/getpass (configure.ac): ... to here.
15067
15068 2011-05-08  Bruno Haible  <bruno@clisp.org>
15069
15070         getpagesize: Move AC_LIBOBJ invocations to module description.
15071         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15072         from here...
15073         * modules/getpagesize (configure.ac): ... to here.
15074
15075 2011-05-08  Bruno Haible  <bruno@clisp.org>
15076
15077         getopt: Move AC_LIBOBJ invocations to module description.
15078         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15079         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15080         invocations from here...
15081         * modules/getopt-gnu (configure.ac): ... to here.
15082         * modules/getopt-posix (configure.ac): ... and here.
15083         (Depends-on): Update condition.
15084
15085 2011-05-08  Bruno Haible  <bruno@clisp.org>
15086
15087         getopt, argp: Respect rules for use of AC_LIBOBJ.
15088         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15089         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15090         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15091         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15092
15093 2011-05-08  Bruno Haible  <bruno@clisp.org>
15094
15095         getlogin_r: Move AC_LIBOBJ invocations to module description.
15096         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15097         gl_PREREQ_GETLOGIN_R invocations from here...
15098         * modules/getlogin_r (configure.ac): ... to here.
15099
15100 2011-05-08  Bruno Haible  <bruno@clisp.org>
15101
15102         getlogin: Move AC_LIBOBJ invocations to module description.
15103         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15104         here...
15105         * modules/getlogin (configure.ac): ... to here.
15106
15107 2011-05-08  Bruno Haible  <bruno@clisp.org>
15108
15109         getloadavg: Move AC_LIBOBJ invocations to module description.
15110         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15111         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15112         * modules/getloadavg (configure.ac): ... to here.
15113
15114 2011-05-08  Bruno Haible  <bruno@clisp.org>
15115
15116         gethrxtime: Move AC_LIBOBJ invocations to module description.
15117         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15118         LIB_GETHRXTIME from here...
15119         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15120         invocations from here...
15121         * modules/gethrxtime (configure.ac): ... to here.
15122
15123 2011-05-08  Bruno Haible  <bruno@clisp.org>
15124
15125         gethostname: Move AC_LIBOBJ invocations to module description.
15126         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15127         gl_PREREQ_GETHOSTNAME invocations from here...
15128         * modules/gethostname (configure.ac): ... to here.
15129
15130 2011-05-08  Bruno Haible  <bruno@clisp.org>
15131
15132         getgroups: Move AC_LIBOBJ invocations to module description.
15133         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15134         here...
15135         * modules/getgroups (configure.ac): ... to here.
15136
15137 2011-05-08  Bruno Haible  <bruno@clisp.org>
15138
15139         getdtablesize: Move AC_LIBOBJ invocations to module description.
15140         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15141         invocation from here...
15142         * modules/getdtablesize (configure.ac): ... to here.
15143
15144 2011-05-08  Bruno Haible  <bruno@clisp.org>
15145
15146         getdomainname: Move AC_LIBOBJ invocations to module description.
15147         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15148         gl_PREREQ_GETDOMAINNAME invocations from here...
15149         * modules/getdomainname (configure.ac): ... to here.
15150
15151 2011-05-08  Bruno Haible  <bruno@clisp.org>
15152
15153         getline: Move AC_LIBOBJ invocations to module description.
15154         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15155         invocations from here...
15156         * modules/getline (configure.ac): ... to here.
15157
15158 2011-05-08  Bruno Haible  <bruno@clisp.org>
15159
15160         getline: Simplify.
15161         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15162         It's already handled through the module dependency.
15163
15164 2011-05-08  Bruno Haible  <bruno@clisp.org>
15165
15166         getdelim: Move AC_LIBOBJ invocations to module description.
15167         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15168         and gl_PREREQ_GETDELIM invocations from here...
15169         * modules/getdelim (configure.ac): ... to here.
15170         (Depends-on): Fix condition.
15171
15172 2011-05-08  Bruno Haible  <bruno@clisp.org>
15173
15174         getcwd: Move AC_LIBOBJ invocations to module description.
15175         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15176         invocations from here...
15177         * modules/getcwd (configure.ac): ... to here.
15178
15179 2011-05-08  Bruno Haible  <bruno@clisp.org>
15180
15181         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15182         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15183         here...
15184         * modules/getcwd-lgpl (configure.ac): ... to here.
15185
15186 2011-05-07  Bruno Haible  <bruno@clisp.org>
15187
15188         crypto/gc: Move AC_LIBOBJ invocations to module description.
15189         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15190         * modules/crypto/gc (configure.ac): ... to here.
15191
15192 2011-05-07  Bruno Haible  <bruno@clisp.org>
15193
15194         fwriting: Move AC_LIBOBJ invocations to module description.
15195         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15196         here...
15197         * modules/fwriting (configure.ac): ... to here.
15198
15199 2011-05-07  Bruno Haible  <bruno@clisp.org>
15200
15201         fwritable: Move AC_LIBOBJ invocations to module description.
15202         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15203         here...
15204         * modules/fwritable (configure.ac): ... to here.
15205
15206 2011-05-07  Bruno Haible  <bruno@clisp.org>
15207
15208         futimens: Move AC_LIBOBJ invocations to module description.
15209         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15210         here...
15211         * modules/futimens (configure.ac): ... to here.
15212
15213 2011-05-07  Bruno Haible  <bruno@clisp.org>
15214
15215         ftruncate: Move AC_LIBOBJ invocations to module description.
15216         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15217         gl_PREREQ_FTRUNCATE invocations from here...
15218         * modules/ftruncate (configure.ac): ... to here.
15219
15220 2011-05-07  Bruno Haible  <bruno@clisp.org>
15221
15222         fsync: Move AC_LIBOBJ invocations to module description.
15223         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15224         invocations from here...
15225         * modules/fsync (configure.ac): ... to here.
15226
15227 2011-05-07  Bruno Haible  <bruno@clisp.org>
15228
15229         fsusage: Move AC_LIBOBJ invocations to module description.
15230         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15231         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15232         * modules/fsusage (configure.ac): ... to here.
15233
15234 2011-05-07  Bruno Haible  <bruno@clisp.org>
15235
15236         freopen: Move AC_LIBOBJ invocations to module description.
15237         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15238         invocations from here...
15239         * modules/freopen (configure.ac): ... to here.
15240
15241 2011-05-07  Bruno Haible  <bruno@clisp.org>
15242
15243         free: Move AC_LIBOBJ invocations to module description.
15244         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15245         invocations from here...
15246         * modules/free (configure.ac): ... to here.
15247
15248 2011-05-07  Bruno Haible  <bruno@clisp.org>
15249
15250         freadable: Move AC_LIBOBJ invocations to module description.
15251         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15252         here...
15253         * modules/freadable (configure.ac): ... to here.
15254
15255 2011-05-07  Bruno Haible  <bruno@clisp.org>
15256
15257         fpurge: Move AC_LIBOBJ invocations to module description.
15258         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15259         invocations from here...
15260         * modules/fpurge (configure.ac): ... to here.
15261
15262 2011-05-07  Bruno Haible  <bruno@clisp.org>
15263
15264         fpending: Move AC_LIBOBJ invocations to module description.
15265         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15266         gl_FUNC_FPENDING.
15267         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15268         invocations from here...
15269         * modules/fpending (configure.ac): ... to here.
15270
15271 2011-05-07  Bruno Haible  <bruno@clisp.org>
15272
15273         fopen: Move AC_LIBOBJ invocations to module description.
15274         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15275         invocations from here...
15276         * modules/fopen (configure.ac): ... to here.
15277
15278 2011-05-07  Bruno Haible  <bruno@clisp.org>
15279
15280         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15281         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15282         gl_FUNC_FNMATCH_POSIX.
15283         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15284         invocations from here...
15285         * modules/fnmatch (configure.ac): ... to here.
15286         * modules/fnmatch-gnu (configure.ac): ... and here.
15287
15288 2011-05-07  Bruno Haible  <bruno@clisp.org>
15289
15290         flock: Move AC_LIBOBJ invocations to module description.
15291         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15292         invocations from here...
15293         * modules/flock (configure.ac): ... to here.
15294
15295 2011-05-07  Bruno Haible  <bruno@clisp.org>
15296
15297         fileblocks: Move AC_LIBOBJ invocations to module description.
15298         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15299         gl_PREREQ_FILEBLOCKS invocations from here...
15300         * modules/fileblocks (configure.ac): ... to here.
15301
15302 2011-05-06  Bruno Haible  <bruno@clisp.org>
15303
15304         fflush: Move AC_LIBOBJ invocations to module description.
15305         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15306         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15307         invocations from here...
15308         * modules/fflush (configure.ac): ... to here.
15309
15310 2011-05-06  Bruno Haible  <bruno@clisp.org>
15311
15312         fdopendir: Move AC_LIBOBJ invocations to module description.
15313         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15314         here...
15315         * modules/fdopendir (configure.ac): ... to here.
15316         (Depends-on): Improve conditions.
15317
15318 2011-05-06  Bruno Haible  <bruno@clisp.org>
15319
15320         _Exit: Move AC_LIBOBJ invocations to module description.
15321         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15322         invocations from here...
15323         * modules/_Exit (configure.ac): ... to here.
15324
15325 2011-05-21  Bruno Haible  <bruno@clisp.org>
15326
15327         euidaccess: Respect rules for use of AC_LIBOBJ.
15328         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15330         from here...
15331         * modules/euidaccess (configure.ac): ... to here.
15332
15333 2011-05-06  Bruno Haible  <bruno@clisp.org>
15334
15335         error: Move AC_LIBOBJ invocations to module description.
15336         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15337         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15338         invocations from here...
15339         * modules/error (configure.ac): ... to here.
15340
15341 2011-05-06  Bruno Haible  <bruno@clisp.org>
15342
15343         duplocale: Move AC_LIBOBJ invocations to module description.
15344         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15345         gl_PREREQ_DUPLOCALE invocations from here...
15346         * modules/duplocale (configure.ac): ... to here.
15347
15348 2011-05-05  Bruno Haible  <bruno@clisp.org>
15349
15350         dirfd: Move AC_LIBOBJ invocations to module description.
15351         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15352         gl_FUNC_DIRFD.
15353         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15354         here...
15355         * modules/dirfd (configure.ac): ... to here.
15356         (Depends-on): Fix condition.
15357
15358 2011-05-05  Bruno Haible  <bruno@clisp.org>
15359
15360         chown: Respect rules for use of AC_LIBOBJ.
15361         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15362         * modules/chown (configure.ac): ... to here.
15363
15364 2011-05-05  Bruno Haible  <bruno@clisp.org>
15365
15366         chdir-long: Move AC_LIBOBJ invocations to module description.
15367         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15368         gl_PREREQ_CHDIR_LONG invocations from here...
15369         * modules/chdir-long (configure.ac): ... to here.
15370
15371 2011-05-05  Bruno Haible  <bruno@clisp.org>
15372
15373         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15374         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15375         from here...
15376         * modules/canonicalize-lgpl (configure.ac): ... to here.
15377
15378 2011-05-05  Bruno Haible  <bruno@clisp.org>
15379
15380         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15381         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15382         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15383         REPLACE_CALLOC.
15384         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15385         * modules/calloc-gnu (configure.ac): Likewise.
15386
15387 2011-05-05  Bruno Haible  <bruno@clisp.org>
15388
15389         btowc: Move AC_LIBOBJ invocations to module description.
15390         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15391         invocations from here...
15392         * modules/btowc (configure.ac): ... to here.
15393
15394 2011-05-21  Bruno Haible  <bruno@clisp.org>
15395
15396         atexit: Move AC_LIBOBJ invocations to module description.
15397         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15398         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15399         here...
15400         * modules/atexit (configure.ac): ... to here.
15401
15402 2011-05-05  Bruno Haible  <bruno@clisp.org>
15403
15404         atoll: Move AC_LIBOBJ invocations to module description.
15405         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15406         invocations from here...
15407         * modules/atoll (configure.ac): ... to here.
15408
15409 2011-05-05  Bruno Haible  <bruno@clisp.org>
15410
15411         argz: Move AC_LIBOBJ invocations to module description.
15412         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15413         * modules/argz (configure.ac): ... to here.
15414
15415 2011-05-05  Bruno Haible  <bruno@clisp.org>
15416
15417         alphasort: Move AC_LIBOBJ invocations to module description.
15418         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15419         gl_PREREQ_ALPHASORT invocations from here...
15420         * modules/alphasort (configure.ac): ... to here.
15421
15422 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15423
15424         verify: new macro verify_expr; verify_true deprecated
15425         * NEWS: Mention this.
15426         * doc/verify.texi (Compile-time Assertions): Document this.
15427         * lib/verify.h (verify_true): Deprecate.
15428         (verify_expr): New macro.
15429         * tests/test-verify.c (function): Test verify_expr.
15430
15431 2011-06-14  Jim Meyering  <meyering@redhat.com>
15432
15433         init.sh: give more portable redirection-related advice in a comment
15434         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15435         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15436         for lots of discussion.  Stefano Lattarini suggested the solution
15437         of putting "9>&2" after the command.  Reported by Bruno Haible.
15438
15439 2011-06-13  Bruno Haible  <bruno@clisp.org>
15440
15441         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15442         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15443         'none'.
15444
15445 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15446
15447         ftoastr: use strtof only if HAVE_STRTOF
15448         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15450         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15451         * modules/ftoastr (configure.ac): Check for strtof.
15452
15453 2011-06-13  Bruno Haible  <bruno@clisp.org>
15454
15455         gnulib-tool: Addendum to 2011-06-08 commit.
15456         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15457         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15458
15459 2011-06-13  Bruno Haible  <bruno@clisp.org>
15460
15461         fseeko: Provide a non-inline replacement of fseek().
15462         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15463         * modules/fseeko (Depends-on): Add fseek.
15464         * modules/fseek (License): Change to LGPLv2+.
15465
15466 2011-06-13  Bruno Haible  <bruno@clisp.org>
15467
15468         ftello: Provide a non-inline replacement of ftell().
15469         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15470         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15471         not have ftello() (such as on mingw).
15472         * modules/ftello (Depends-on): Add ftell.
15473         * modules/ftell (License): Change to LGPLv2+.
15474
15475 2011-05-07  Bruno Haible  <bruno@clisp.org>
15476
15477         ftell: Move AC_LIBOBJ invocations to module description.
15478         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15479         * modules/ftell (configure.ac): ... to here.
15480
15481 2011-05-07  Bruno Haible  <bruno@clisp.org>
15482
15483         ftello: Respect rules for use of AC_LIBOBJ.
15484         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15485         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15486         here...
15487         * modules/ftello (configure.ac): ... to here.
15488
15489 2011-05-07  Bruno Haible  <bruno@clisp.org>
15490
15491         fseeko: Simplify.
15492         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15493         (gl_FUNC_FSEEKO): Inline it here.
15494
15495 2011-05-07  Bruno Haible  <bruno@clisp.org>
15496
15497         fseek: Move AC_LIBOBJ invocations to module description.
15498         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15499         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15500         * modules/fseek (configure.ac): ... to here.
15501
15502 2011-05-07  Bruno Haible  <bruno@clisp.org>
15503
15504         fseek: Respect rules for use of AC_LIBOBJ.
15505         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15506         here...
15507         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15508
15509 2011-05-07  Bruno Haible  <bruno@clisp.org>
15510
15511         fseeko: Respect rules for use of AC_LIBOBJ.
15512         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15513         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15514         here...
15515         * modules/fseeko (configure.ac): ... to here.
15516
15517 2011-06-13  Bruno Haible  <bruno@clisp.org>
15518
15519         gnulib-tool: Allow comments in the 'Depends-on' section.
15520         * doc/gnulib.texi (Module description): Mention comment syntax in the
15521         Depends-on section.
15522         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15523
15524 2011-06-13  Bruno Haible  <bruno@clisp.org>
15525
15526         file-set.h: guard __attibute__ use, now that it's not always defined
15527         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15528         versions that support it.  This fixes a coreutils build failure with
15529         the vendor cc on HP-UX 11.31.
15530
15531 2011-06-12  Bruno Haible  <bruno@clisp.org>
15532
15533         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15534         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15535         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15536         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15537         (acl, aclsort): New declarations.
15538         (aclv_nontrivial): New declaration.
15539         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15540         (file_has_acl): Read also the second kind of HP-UX ACLs.
15541         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15542         kind of HP-UX ACLs if the first kind fails.
15543         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15544         second kind of HP-UX ACLs.
15545         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15546         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15547         agree.
15548         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15549         hpuxjfs.
15550         Handle hpuxjfs.
15551         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15552         hpuxjfs.
15553         Handle hpuxjfs.
15554         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15555         (func_test_same_acls): Use both lsacl and getacl.
15556         Handle hpuxjfs.
15557         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15558         (func_test_same_acls): Use both lsacl and getacl.
15559         Handle hpuxjfs.
15560
15561 2011-06-12  Bruno Haible  <bruno@clisp.org>
15562
15563         acl: Complete the 2010-08-10 fix.
15564         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15565         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15566         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15567         explicitly.
15568         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15569         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15570
15571 2011-06-12  Bruno Haible  <bruno@clisp.org>
15572
15573         spawn-pipe tests: Comments.
15574         * tests/test-spawn-pipe-child.c (main): Update comment.
15575         Reported by James Youngman <jay@gnu.org>.
15576
15577 2011-06-11  James Youngman  <jay@gnu.org>
15578
15579         New module 'stat-size'.
15580         * modules/stat-size: New module.  Provides macros for accessing
15581         file size information in instances of struct stat.  Depends on the
15582         fileblocks module because it calls st_blocks.
15583         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15584         * doc/gnulib.texi: Include stat-size.texi.
15585         * doc/stat-size.texi: Documentation for this module.
15586         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15587         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15588         AC_STRUCT_ST_BLOCKS.
15589
15590 2011-06-09  Bruno Haible  <bruno@clisp.org>
15591
15592         thread: Support pthreads-win32.
15593         * lib/glthread/thread.h (gl_thread_self): Define differently on
15594         pthreads-win32.
15595         (gl_null_thread): New declaration.
15596         (gl_thread_self_pointer): New macro.
15597         * lib/glthread/thread.c (gl_null_thread): New constant.
15598         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15599         gl_thread_self.
15600         * tests/test-tls.c: Likewise.
15601         Suggested by Paul Eggert. Reported by Eric Blake.
15602
15603 2011-06-09  Bruno Haible  <bruno@clisp.org>
15604
15605         thread: Fix confusion between NULL and 0.
15606         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15607         Reported by Paul Eggert.
15608
15609 2011-06-09  Bruno Haible  <bruno@clisp.org>
15610
15611         spawn-pipe tests: Avoid test failure on HP-UX 11.
15612         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15613         is closed.
15614
15615 2011-06-09  Bruno Haible  <bruno@clisp.org>
15616
15617         acl tests: Fix compilation error on HP-UX 11.
15618         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15619
15620 2011-06-09  Bruno Haible  <bruno@clisp.org>
15621
15622         rmdir: Avoid test failure on HP-UX 10.20.
15623         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15624         EEXIST.
15625
15626 2011-06-08  Eric Blake  <eblake@redhat.com>
15627
15628         perror: fix test on mingw
15629         * modules/perror-tests (Depends-on): Add dup2.
15630
15631         strerror_r-posix: fix on MacOS
15632         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15633         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15634         logic bug.
15635         * lib/strerror_r.c (strerror_r): Fix the bug.
15636         * lib/strerror.c (strerror): Likewise.
15637         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15638         problem.
15639         * doc/posix-functions/strerror.texi (strerror): Likewise.
15640         * doc/posix-functions/perror.texi (perror): Likewise.
15641         * tests/test-strerror.c (main): Enhance test.
15642         * tests/test-strerror_r.c (main): Likewise.
15643
15644 2011-06-08  Bruno Haible  <bruno@clisp.org>
15645
15646         gnulib-tool: Better isolation between different gnulib-tool invocations.
15647         * gnulib-tool: New option --witness-c-macro.
15648         (witness_c_macro): New variable.
15649         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15650         AM_CPPFLAGS define it as a C macro.
15651         (func_emit_tests_Makefile_am): Likewise.
15652         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15653         read it from there.
15654         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15655         m4_define, not AC_DEFUN.
15656         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15657         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15658         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15659         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15660         s|...|...|, to substitute the values of the GNULIB_* module indicator
15661         variables.
15662         * modules/dirent (Makefile.am): Likewise.
15663         * modules/fcntl-h (Makefile.am): Likewise.
15664         * modules/iconv-h (Makefile.am): Likewise.
15665         * modules/langinfo (Makefile.am): Likewise.
15666         * modules/locale (Makefile.am): Likewise.
15667         * modules/math (Makefile.am): Likewise.
15668         * modules/netdb (Makefile.am): Likewise.
15669         * modules/poll-h (Makefile.am): Likewise.
15670         * modules/pty (Makefile.am): Likewise.
15671         * modules/search (Makefile.am): Likewise.
15672         * modules/signal (Makefile.am): Likewise.
15673         * modules/spawn (Makefile.am): Likewise.
15674         * modules/stdio (Makefile.am): Likewise.
15675         * modules/stdlib (Makefile.am): Likewise.
15676         * modules/string (Makefile.am): Likewise.
15677         * modules/sys_ioctl (Makefile.am): Likewise.
15678         * modules/sys_select (Makefile.am): Likewise.
15679         * modules/sys_socket (Makefile.am): Likewise.
15680         * modules/sys_stat (Makefile.am): Likewise.
15681         * modules/sys_times (Makefile.am): Likewise.
15682         * modules/sys_utsname (Makefile.am): Likewise.
15683         * modules/sys_wait (Makefile.am): Likewise.
15684         * modules/termios (Makefile.am): Likewise.
15685         * modules/time (Makefile.am): Likewise.
15686         * modules/unistd (Makefile.am): Likewise.
15687         * modules/wchar (Makefile.am): Likewise.
15688
15689 2011-06-08  Eric Blake  <eblake@redhat.com>
15690
15691         strerror: simplify replacement
15692         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15693         * modules/strerror (configure.ac): No prereqs needed here...
15694         * modules/strerror-override (configure.ac): ...but this needs it.
15695         (Files): Add file for needed prereq macro.
15696
15697 2011-06-08  Bruno Haible  <bruno@clisp.org>
15698
15699         strerror_r-posix: Tweaks.
15700         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15701         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15702         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15703         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15704         (gl_FUNC_STRERROR_R): ... to here.
15705         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15706
15707 2011-06-07  Eric Blake  <eblake@redhat.com>
15708
15709         perror: document fixed bugs
15710         * doc/posix-functions/perror.texi (perror): Document recent
15711         patches.
15712
15713 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15714
15715         stat-time: get_stat_birthtime failure is better-defined
15716         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15717         return a timestamp whose tv_sec and tv_nsec values are both -1.
15718         Previously, the spec said only that the tv_nsec value was negative.
15719         This upward-compatible change simplifies GNU tar a bit.
15720
15721 2011-06-07  Eric Blake  <eblake@redhat.com>
15722
15723         strerror_r-posix: work around cygwin 1.7.9
15724         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15725         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15726         bug without replacing strerror_r.
15727         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15728         strerror_r is buggy, but without requiring strerror_r compilation.
15729         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15730
15731         test-perror: relax test to ignore cygwin bug
15732         * tests/test-perror2.c (main): Relax test on requiring detection
15733         of stream errors, and use unbuffered stream.
15734         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15735         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15736         * doc/posix-functions/fputc.texi (fputc): Likewise.
15737         * doc/posix-functions/fputs.texi (fputs): Likewise.
15738         * doc/posix-functions/fputws.texi (fputws): Likewise.
15739         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15740         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15741         * doc/posix-functions/getopt.texi (getopt): Likewise.
15742         * doc/posix-functions/perror.texi (perror): Likewise.
15743         * doc/posix-functions/printf.texi (printf): Likewise.
15744         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15745         * doc/posix-functions/psignal.texi (psignal): Likewise.
15746         * doc/posix-functions/putc.texi (putc): Likewise.
15747         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15748         Likewise.
15749         * doc/posix-functions/putchar.texi (putchar): Likewise.
15750         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15751         Likewise.
15752         * doc/posix-functions/puts.texi (puts): Likewise.
15753         * doc/posix-functions/putwc.texi (putwc): Likewise.
15754         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15755         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15756         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15757         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15758         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15759         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15760         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15761         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15762
15763 2011-05-22  Bruno Haible  <bruno@clisp.org>
15764
15765         strerror: Move AC_LIBOBJ invocations to module description.
15766         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15767         gl_PREREQ_STRERROR invocations from here...
15768         * modules/strerror (configure.ac): ... to here.
15769
15770 2011-05-21  Bruno Haible  <bruno@clisp.org>
15771
15772         perror: Use common idiom.
15773         * modules/perror (configure.ac): Reorder statements.
15774
15775 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15776
15777         tests: fix usage message in 'mktempd_'
15778         * tests/init.sh (mktempd_): In the usage message, use literal
15779         'mktempd_', not '$ME' (which is even undefined), as the name of
15780         the subroutine.
15781
15782 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15783
15784         tests init: new function 'fatal_', for hard errors
15785         Before this patch, the only way offered by tests/init.sh to
15786         properly signal a hard error was the `framework_failure_'
15787         function.  But the error message issued by that function,
15788         as its name would suggest, refers to a set-up failure in the
15789         testsuite, while hard errors can obviously also be due to
15790         other reasons.  The best way to fix this inconsistency is to
15791         introduce a new function with a more general error message.
15792         * tests/init.sh (fatal_): New function.
15793
15794 2011-06-06  Eric Blake  <eblake@redhat.com>
15795
15796         canonicalize-lgpl: use common idiom
15797         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15798         over newer POSIX -Rf.
15799         Reported by Bruno Haible.
15800
15801         canonicalize-lgpl: work around AIX realpath bug
15802         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15803         * doc/posix-functions/realpath.texi (realpath): Document it.
15804         Reported by Bruno Haible.
15805
15806         strerror: work around FreeBSD bug
15807         * lib/strerror.c (strerror): Special case 0.
15808         Reported by Bruno Haible.
15809
15810         strerror-override: avoid bloating errno module
15811         * modules/errno (Files, configure.ac): Move replacement strings...
15812         * modules/strerror-override: ...to new module.
15813         * modules/strerror (Depends-on): Add strerror-override.
15814         * modules/strerror_r-posix (Depends-on): Likewise.
15815         * MODULES.html.sh: Document new module.
15816         Reported by Bruno Haible.
15817
15818 2011-06-06  Bruno Haible  <bruno@clisp.org>
15819
15820         spawn-pipe tests: Rename program.
15821         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15822         * tests/test-spawn-pipe-child.c: Update comment.
15823         * tests/test-spawn-pipe.sh: Update.
15824         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15825
15826         spawn-pipe tests: Link the child program only against libc.
15827         * tests/test-spawn-pipe-child.c: New file, extracted from
15828         tests/test-spawn-pipe.c.
15829         (main): Expect only one argument.
15830         (is_open): New function, copied from tests/test-pipe.c.
15831         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15832         (child_main): Remove function.
15833         (test_pipe): Pass only one argument to the child program.
15834         (main): Remove child process code. Expect the child program's name as
15835         first argument.
15836         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15837         argument.
15838         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15839         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15840         test-spawn-pipe-child against no libraries.
15841
15842 2011-06-06  Bruno Haible  <bruno@clisp.org>
15843
15844         careadlinkat: Avoid mismatch between ssize_t and int.
15845         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15846         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15847
15848 2011-06-06  Jim Meyering  <meyering@redhat.com>
15849
15850         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15851         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15852         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15853
15854 2011-06-05  Bruno Haible  <bruno@clisp.org>
15855
15856         ansi-c++-opt: Interoperability with libtool.
15857         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15858         set the variable to "no", not to ":".
15859         * NEWS: Mention the change.
15860
15861 2011-06-05  Bruno Haible  <bruno@clisp.org>
15862
15863         acl: Fix test failure on AIX 7.
15864         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15865         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15866
15867 2011-06-05  Bruno Haible  <bruno@clisp.org>
15868
15869         pipe-filter-ii: Fix test failure on AIX and IRIX.
15870         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15871         with EAGAIN, retry with a smaller buffer size.
15872
15873 2011-06-05  Bruno Haible  <bruno@clisp.org>
15874
15875         localename: Fix link dependencies.
15876         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15877         * modules/localename-tests (Makefile.am): Link test-localename with
15878         $(LIBTHREAD).
15879
15880 2011-06-05  Bruno Haible  <bruno@clisp.org>
15881
15882         error: Avoid gcc warning.
15883         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15884
15885 2011-06-05  Bruno Haible  <bruno@clisp.org>
15886
15887         unsetenv: Avoid gcc warning.
15888         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15889
15890 2011-06-05  Bruno Haible  <bruno@clisp.org>
15891
15892         setenv: Avoid gcc warning.
15893         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15894
15895 2011-06-05  Bruno Haible  <bruno@clisp.org>
15896
15897         sys_select: Ensure memset is declared also on AIX 7.
15898         * lib/sys_select.in.h: Include <string.h> also on AIX.
15899         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15900         self-contained also on AIX 7.1.
15901
15902 2011-06-04  Jim Meyering  <meyering@redhat.com>
15903
15904         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15905         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15906         function name, "error".
15907         (_gl_translatable_diag_func_re): New configurable variable.
15908
15909 2011-06-04  Bruno Haible  <bruno@clisp.org>
15910
15911         getopt: Avoid gcc warning.
15912         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15913
15914 2011-06-04  Bruno Haible  <bruno@clisp.org>
15915
15916         strerror_r: Fix comments.
15917         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15918         commit.
15919
15920 2011-06-04  Bruno Haible  <bruno@clisp.org>
15921
15922         perror: Fix compilation error.
15923         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15924         Undefine fprintf, not sprintf.
15925         * modules/perror (Depends-on): Remove intprops, verify.
15926
15927 2011-06-04  Bruno Haible  <bruno@clisp.org>
15928
15929         setlocale: Enable replacement on Cygwin 1.5.
15930         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15931         Cygwin 1.5.x.
15932         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15933         LC_CTYPE category also exists on Cygwin 1.5.x.
15934
15935 2011-06-04  Bruno Haible  <bruno@clisp.org>
15936
15937         strerror-override: Don't disable symbol renamings.
15938         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15939         * lib/strerror-override.c: Include config.h.
15940         (strerror_override): Don't undefine.
15941
15942 2011-06-03  Bruno Haible  <bruno@clisp.org>
15943
15944         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15945         * lib/localename.h: Update copyright header.
15946         * lib/localename.c: Likewise.
15947         * lib/relocatable.h: Likewise.
15948         * lib/relocatable.c: Likewise.
15949
15950 2011-06-02  Bruno Haible  <bruno@clisp.org>
15951
15952         doc: Fix a module name.
15953         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15954
15955 2011-06-02  Bruno Haible  <bruno@clisp.org>
15956
15957         pipe2: Remove dependency on 'nonblocking' module.
15958         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15959         O_NONBLOCK is defined by gnulib.
15960         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15961         is zero.
15962         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15963         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15964         defined by gnulib.
15965         (get_nonblocking_flag): New function.
15966         (main): Test O_NONBLOCK flag only if it is nonzero.
15967         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15968
15969 2011-06-03  Jim Meyering  <meyering@redhat.com>
15970
15971         maint: three new prohibit-header-without-use rules
15972         Prohibit use of cloexec.h, posixver.h, same.h without use.
15973         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15974         (sc_prohibit_posixver_without_use): Likewise.
15975         (sc_prohibit_same_without_use): Likewise.
15976
15977 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15978
15979         allocator: 'die' routine is now given requested size
15980         * lib/allocator.h (struct allocator.die): New size arg.
15981         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15982         If the actual problem is an ssize_t limitation, not a size_t or
15983         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15984
15985 2011-06-01  Eric Blake  <eblake@redhat.com>
15986
15987         strerror: drop strerror_r dependency
15988         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15989         * lib/strerror-override.c (strerror_override): ...to new file.
15990         * lib/strerror-override.h: Add prototype.
15991         * lib/strerror-impl.h: Delete.
15992         * lib/strerror.c (strerror): New implementation.
15993         * modules/errno (Files): Add new files.
15994         (configure.ac): Compile new file as appropriate.
15995         * modules/strerror (Files): Drop unused file.
15996         (Depends-on): Drop strerror_r-posix.
15997         * MODULES.html.sh: Document strerror_r-posix.
15998         Requested by Sam Steingold.
15999
16000         perror: call strerror_r directly
16001         * modules/perror (Files): Drop strerror-impl.h.
16002         * lib/perror.c (perror): Use our own stack buffer, rather than
16003         calling a wrapper that uses static storage.
16004         * doc/posix-functions/perror.texi (perror): Document a limitation
16005         of our replacement.
16006
16007         strerror_r: fix includes for FreeBSD
16008         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16009         since we use abort on some platforms.
16010         Reported by Matthias Bolte.
16011
16012 2011-05-31  Bruno Haible  <bruno@clisp.org>
16013
16014         Fix link errors in tests: openat-die uses gettext-h.
16015         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16016         against $(LIBINTL).
16017         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16018         against $(LIBINTL).
16019         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16020         $(LIBINTL).
16021         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16022         against $(LIBINTL).
16023         * modules/linkat-tests (Makefile.am): Link test-linkat against
16024         $(LIBINTL).
16025         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16026         $(LIBINTL).
16027         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16028         against $(LIBINTL).
16029         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16030         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16031         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16032         $(LIBINTL).
16033         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16034         $(LIBINTL).
16035         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16036         $(LIBINTL).
16037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16038
16039 2011-05-31  Bruno Haible  <bruno@clisp.org>
16040
16041         Fix link errors in tests: wait-process uses gettext-h.
16042         * modules/nonblocking-pipe-tests (Makefile.am): Set
16043         test_nonblocking_pipe_main_LDADD.
16044         * modules/nonblocking-socket-tests (Makefile.am): Link
16045         test-nonblocking-socket-main against $(LIBINTL).
16046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16047
16048 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16049
16050         assert-h: work around 'verify' incompatibility
16051         * lib/verify.h: Use @...@ directives, not ifdef.
16052         * modules/assert-h (assert.h): Implement the directives.
16053         (assert.h): Substitute the symbol-prefix more consistently.
16054
16055 2011-05-29  Jim Meyering  <meyering@redhat.com>
16056
16057         trim: remove three superfluous assignments
16058         * lib/trim.c (trim2): Remove three superfluous assignments
16059         and correct brace positioning.
16060
16061 2011-05-29  Bruno Haible  <bruno@clisp.org>
16062
16063         wctype-h: Avoid namespace pollution on Solaris 2.6.
16064         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16065         identifiers.
16066         * doc/posix-headers/wctype.texi: Mention the problem.
16067         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16068
16069 2011-05-28  Jim Meyering  <meyering@redhat.com>
16070
16071         parse-datetime.y: accommodate -Wstrict-overflow
16072         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16073         placate -Wstrict-overflow.
16074
16075         trim: avoid a warning from -O2 -Wstrict-overflow
16076         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16077
16078 2011-05-29  Bruno Haible  <bruno@clisp.org>
16079
16080         gnulib-tool: Fix bug in yesterday's commit.
16081         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16082         twice.
16083
16084 2011-05-29  Bruno Haible  <bruno@clisp.org>
16085
16086         Allow multiple gnulib generated include files to be combined.
16087         * gnulib-tool (func_compute_include_guard_prefix): New function.
16088         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16089         ${gl_include_guard_prefix} references.
16090         (func_import, func_create_testdir): Invoke
16091         func_compute_include_guard_prefix.
16092         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16093         * lib/ctype.in.h: Likewise.
16094         * lib/dirent.in.h: Likewise.
16095         * lib/errno.in.h: Likewise.
16096         * lib/fcntl.in.h: Likewise.
16097         * lib/float.in.h: Likewise.
16098         * lib/getopt.in.h: Likewise.
16099         * lib/iconv.in.h: Likewise.
16100         * lib/langinfo.in.h: Likewise.
16101         * lib/locale.in.h: Likewise.
16102         * lib/math.in.h: Likewise.
16103         * lib/netdb.in.h: Likewise.
16104         * lib/netinet_in.in.h: Likewise.
16105         * lib/poll.in.h: Likewise.
16106         * lib/pthread.in.h: Likewise.
16107         * lib/pty.in.h: Likewise.
16108         * lib/sched.in.h: Likewise.
16109         * lib/se-selinux.in.h: Likewise.
16110         * lib/search.in.h: Likewise.
16111         * lib/signal.in.h: Likewise.
16112         * lib/spawn.in.h: Likewise.
16113         * lib/stdarg.in.h: Likewise.
16114         * lib/stddef.in.h: Likewise.
16115         * lib/stdint.in.h: Likewise.
16116         * lib/stdio.in.h: Likewise.
16117         * lib/stdlib.in.h: Likewise.
16118         * lib/string.in.h: Likewise.
16119         * lib/strings.in.h: Likewise.
16120         * lib/sys_file.in.h: Likewise.
16121         * lib/sys_ioctl.in.h: Likewise.
16122         * lib/sys_select.in.h: Likewise.
16123         * lib/sys_socket.in.h: Likewise.
16124         * lib/sys_stat.in.h: Likewise.
16125         * lib/sys_time.in.h: Likewise.
16126         * lib/sys_times.in.h: Likewise.
16127         * lib/sys_uio.in.h: Likewise.
16128         * lib/sys_utsname.in.h: Likewise.
16129         * lib/sys_wait.in.h: Likewise.
16130         * lib/sysexits.in.h: Likewise.
16131         * lib/termios.in.h: Likewise.
16132         * lib/time.in.h: Likewise.
16133         * lib/unistd.in.h: Likewise.
16134         * lib/wchar.in.h: Likewise.
16135         * lib/wctype.in.h: Likewise.
16136         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16137         * modules/ctype (Makefile.am): Likewise.
16138         * modules/dirent (Makefile.am): Likewise.
16139         * modules/errno (Makefile.am): Likewise.
16140         * modules/fcntl-h (Makefile.am): Likewise.
16141         * modules/float (Makefile.am): Likewise.
16142         * modules/getopt-posix (Makefile.am): Likewise.
16143         * modules/iconv-h (Makefile.am): Likewise.
16144         * modules/langinfo (Makefile.am): Likewise.
16145         * modules/locale (Makefile.am): Likewise.
16146         * modules/math (Makefile.am): Likewise.
16147         * modules/netdb (Makefile.am): Likewise.
16148         * modules/netinet_in (Makefile.am): Likewise.
16149         * modules/poll-h (Makefile.am): Likewise.
16150         * modules/pthread (Makefile.am): Likewise.
16151         * modules/pty (Makefile.am): Likewise.
16152         * modules/sched (Makefile.am): Likewise.
16153         * modules/search (Makefile.am): Likewise.
16154         * modules/selinux-h (Makefile.am): Likewise.
16155         * modules/signal (Makefile.am): Likewise.
16156         * modules/spawn (Makefile.am): Likewise.
16157         * modules/stdarg (Makefile.am): Likewise.
16158         * modules/stddef (Makefile.am): Likewise.
16159         * modules/stdint (Makefile.am): Likewise.
16160         * modules/stdio (Makefile.am): Likewise.
16161         * modules/stdlib (Makefile.am): Likewise.
16162         * modules/string (Makefile.am): Likewise.
16163         * modules/strings (Makefile.am): Likewise.
16164         * modules/sys_file (Makefile.am): Likewise.
16165         * modules/sys_ioctl (Makefile.am): Likewise.
16166         * modules/sys_select (Makefile.am): Likewise.
16167         * modules/sys_socket (Makefile.am): Likewise.
16168         * modules/sys_stat (Makefile.am): Likewise.
16169         * modules/sys_time (Makefile.am): Likewise.
16170         * modules/sys_times (Makefile.am): Likewise.
16171         * modules/sys_uio (Makefile.am): Likewise.
16172         * modules/sys_utsname (Makefile.am): Likewise.
16173         * modules/sys_wait (Makefile.am): Likewise.
16174         * modules/sysexits (Makefile.am): Likewise.
16175         * modules/termios (Makefile.am): Likewise.
16176         * modules/time (Makefile.am): Likewise.
16177         * modules/unistd (Makefile.am): Likewise.
16178         * modules/wchar (Makefile.am): Likewise.
16179         * modules/wctype-h (Makefile.am): Likewise.
16180         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16181
16182 2011-05-29  Bruno Haible  <bruno@clisp.org>
16183
16184         assert-h: Allow multiple gnulib generated replacements to coexist.
16185         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16186
16187 2011-05-29  Bruno Haible  <bruno@clisp.org>
16188
16189         argp: Allow coexistence with strerror_r-posix module.
16190         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16191         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16192         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16193         not the glibc signature.
16194
16195 2011-05-28  Bruno Haible  <bruno@clisp.org>
16196
16197         gnulib-tool: Alternative structure of testdirs, similar to --import.
16198         * gnulib-tool: New option --single-configure.
16199         (func_usage): Document it.
16200         (single_configure): New variable.
16201         (func_modules_transitive_closure_separately,
16202         func_modules_transitive_closure_separately,
16203         func_determine_use_libtests, func_modules_add_dummy_separately,
16204         func_modules_to_filelist_separately): New functions, extracted from
16205         func_import.
16206         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16207         (func_import): Use the new functions.
16208         (func_create_testdir): Set final_modules. Handle $single_configure =
16209         true case.
16210
16211 2011-05-28  Bruno Haible  <bruno@clisp.org>
16212
16213         getloadavg: Remove an unreliable safety check.
16214         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16215         getloadavg.c is in place.
16216         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16217         Reported by Sam Steingold <sds@gnu.org>.
16218
16219 2011-05-28  Bruno Haible  <bruno@clisp.org>
16220
16221         doc: Cleanup yet another file produced by texinfo.tex.
16222         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16223
16224 2011-05-28  Bruno Haible  <bruno@clisp.org>
16225
16226         Finish the conditional dependencies mechanism.
16227         * gnulib-tool: New option --no-conditional-dependencies.
16228         (func_usage): Document it. Don't mark --conditional-dependencies as
16229         experimental.
16230         (cond_dependencies): The possible values can now be true, false, empty.
16231         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16232         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16233         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16234
16235 2011-05-28  Bruno Haible  <bruno@clisp.org>
16236
16237         doc: Use a recent texinfo.tex.
16238         * doc/Makefile (tex_opts): New variable.
16239         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16240
16241 2011-05-28  Jim Meyering  <meyering@redhat.com>
16242
16243         intprops.h: adjust comment to match code change
16244         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16245         only once, it *may* have side effects.  Also fix an unrelated typo.
16246         (_GL_INT_SIGNED): Likewise.
16247
16248 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16249
16250         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16251
16252 2011-05-26  Bruno Haible  <bruno@clisp.org>
16253
16254         mbsrchr: Avoid collision with system function on Interix.
16255         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16256         Reported by Markus Duft <mduft@gentoo.org>.
16257
16258 2011-05-15  James Youngman  <jay@gnu.org>
16259
16260         getopt: for ambiguous options, enumerate the possibilities.
16261         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16262         the ambiguous options when an ambiguous prefix is given. This was
16263         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16264         glibc change was
16265         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16266
16267 2011-05-25  Eric Blake  <eblake@redhat.com>
16268
16269         getcwd: work around mingw bug
16270         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16271         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16272         Reported by Matthias Bolte.
16273
16274 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16275
16276         test-intprops: disable -Wtype-limits diagnostics
16277         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16278         diagnostics.  Otherwise, the integer overflow macros generate many
16279         diagnostics.  Reported by Jim Meyering in
16280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16281
16282         intprops: shorten, to pacify gcc -Woverlength-strings
16283         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16284         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16285         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16286         likely to run afoul of C compiler limits for string constant lengths.
16287         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16288
16289 2011-05-24  Eric Blake  <eblake@redhat.com>
16290
16291         docs: document recently fixed glibc printf bug
16292         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16293         * doc/posix-functions/printf.texi (printf): Likewise.
16294         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16295         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16296
16297         closein-tests: convert to init.sh
16298         * modules/closein-tests (Files): Add init.sh
16299         * tests/test-closein.sh Use it.
16300
16301         yesno-tests: convert to init.sh
16302         * modules/yesno-tests (Files): Add init.sh.
16303         * tests/test-yesno.sh: Use it.
16304
16305         atexit-tests: ensure reliable exit status
16306         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16307         Reported by Bruno Haible.
16308
16309 2011-05-24  Bruno Haible  <bruno@clisp.org>
16310
16311         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16312         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16313         gl_PREREQ_STRERROR_R invocations from here...
16314         * modules/strerror_r-posix (configure.ac): ... to here.
16315
16316 2011-05-24  Eric Blake  <eblake@redhat.com>
16317
16318         strerror_r: fix missing header
16319         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16320
16321         strerror_r: fix AIX test failures
16322         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16323         ERANGE failure.
16324
16325         strerror_r: fix Solaris test failures
16326         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16327         failures.
16328         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16329
16330         strerror_r: enforce POSIX recommendations
16331         * lib/strerror_r.c (safe_copy): New helper method.
16332         (strerror_r): Guarantee a non-empty string.
16333         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16334         recent POSIX rulings and to match our strerror guarantees.
16335         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16336
16337 2011-05-24  Jim Meyering  <meyering@redhat.com>
16338
16339         test-perror2.c: avoid warning about unused variable
16340         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16341
16342 2011-05-24  Eric Blake  <eblake@redhat.com>
16343
16344         perror: avoid spurious test failure on HP-UX
16345         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16346
16347         tests: fix logic bug in init.sh
16348         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16349         shell.
16350
16351 2011-05-24  Jim Meyering  <meyering@redhat.com>
16352
16353         utimensat: do not reference an out-of-scope buffer
16354         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16355         declared in an inner scope, yet "times" would be dereferenced outside
16356         the scope in which "ts" was valid.
16357         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16358         of ts[2] "out/up", so that the use of aliased "times" (via
16359         "times = ts;") does not end up referencing an out-of-scope "ts"
16360
16361         opendir-safer.c: don't clobber errno; don't close negative FD
16362         * lib/opendir-safer.c (opendir_safer):
16363         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16364         file descriptor, and more importantly, don't clobber the
16365         offending errno value with EINVAL.  Before, upon failure
16366         of dup_safer, we would pass the negative file descriptor to
16367         fdopendir, which would clobber errno.
16368
16369 2011-05-23  Bruno Haible  <bruno@clisp.org>
16370
16371         idcache: Fix module description.
16372         * modules/idcache (Include): Set to "idcache.h".
16373
16374 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16375
16376         gnulib-tool: fix portability problem with MacOS sed
16377         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16378         before the "}".  Problem reported by Leo in
16379         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16380         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16381         sed_extract_condition1, sed_extract_condition2.
16382
16383 2011-05-23  Bruno Haible  <bruno@clisp.org>
16384
16385         hash: Simplify autoconf macro.
16386         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16387
16388 2011-05-23  Bruno Haible  <bruno@clisp.org>
16389
16390         getugroups: Fix module description.
16391         * modules/getugroups (Include): Set to "getugroups.h".
16392
16393 2011-05-23  Bruno Haible  <bruno@clisp.org>
16394
16395         linkat: Simplify autoconf macro.
16396         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16397
16398 2011-05-23  Bruno Haible  <bruno@clisp.org>
16399             Eric Blake  <eblake@redhat.com>
16400
16401         linkat, renameat: Update dependencies.
16402         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16403         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16404         symlinkat.
16405
16406 2011-05-23  Jim Meyering  <meyering@redhat.com>
16407
16408         maint.mk: more tight_scope improvements
16409         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16410         (_gl_TS_headers): Define only in if-0'd block.
16411         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16412         sometimes we must *not* use it.  Adjust uses accordingly.
16413         (sc_tight_scope): Use much simpler grep-based test to determine
16414         whether we skip this rule.
16415
16416         maint.mk: generalize/improve the tight-scope rule
16417         * top/maint.mk: Emit a warning when the test is skipped.
16418         (_gl_TS_dir): Add $(srcdir)/ prefix.
16419         (_gl_TS_function_match): Simplify, rather than trying
16420         to enumerate common types.  Otherwise, it would fail to match an
16421         "extern unsigned char const *" declaration in idutils.
16422         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16423         a way to support use of that type of macro.
16424         (_gl_TS_var_match): Simplify regexp.
16425         (_gl_TS_obj_files): New configurable variable.
16426         (_gl_TS_headers): Likewise.
16427
16428 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16429
16430         verify: fix bug when gnulib <assert.h> is also included
16431         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16432         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16433         Perhaps there's a better way, but this fixes the immediate problem.
16434         Problem reported by Bruno Haible in
16435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16436
16437 2011-05-22  Bruno Haible  <bruno@clisp.org>
16438
16439         xgetcwd: Simplify autoconf macro.
16440         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16441
16442 2011-05-22  Bruno Haible  <bruno@clisp.org>
16443
16444         New module 'mktime-internal'.
16445         * modules/mktime-internal: New file.
16446         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16447         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16448         mktime_internal as a C macro if libc has __mktime_internal.
16449         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16450         conditions.
16451         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16452
16453 2011-05-22  Bruno Haible  <bruno@clisp.org>
16454
16455         timegm: Correct mktime replacement statements.
16456         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16457         defining mktime as a C macro. This completes a 2009-07-28 commit.
16458
16459 2011-05-22  Bruno Haible  <bruno@clisp.org>
16460
16461         timegm: Simplify autoconf macro.
16462         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16463
16464 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16465
16466         clock-time: change to LGPLv2+.
16467         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16468         BSD-like but we have no mark for that; this is good enough for now.
16469
16470 2011-05-21  Bruno Haible  <bruno@clisp.org>
16471
16472         strerror_r: Fix comments.
16473         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16474
16475 2011-05-21  Bruno Haible  <bruno@clisp.org>
16476
16477         relocatable-prog-wrapper: Fix possible link error.
16478         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16479         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16480         (gl_FUNC_SETENV): ... to here.
16481         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16482         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16483
16484 2011-05-21  Bruno Haible  <bruno@clisp.org>
16485
16486         relocatable-prog-wrapper: Assume strerror() exists.
16487         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16488         m4/strerror.m4.
16489         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16490         * lib/relocwrapper.c: Remove mention of strerror module.
16491         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16492         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16493         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16494         C macro.
16495
16496 2011-05-21  Bruno Haible  <bruno@clisp.org>
16497
16498         select: Simplify replacement idiom.
16499         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16500         Win32 platforms.
16501         * lib/sys_select.in.h (select): Simplify accordingly.
16502         * modules/select (Depends-on): Likewise.
16503
16504 2011-05-21  Bruno Haible  <bruno@clisp.org>
16505
16506         mkdir-p: Simplify autoconf macro.
16507         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16508         gl_FUNC_LCHOWN.
16509
16510 2011-05-21  Eric Blake  <eblake@redhat.com>
16511
16512         strerror_r: avoid clobbering strerror on cygwin
16513         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16514         fall back instead to sys_errlist.
16515         * modules/strerror (configure.ac): Add witness.
16516         * tests/test-strerror_r.c (main): Enhance test.
16517         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16518         * tests/test-perror2.c (main): Free memory before exit.
16519
16520 2011-05-21  Bruno Haible  <bruno@clisp.org>
16521
16522         mkdtemp: Use gnulib naming conventions.
16523         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16524         * modules/mkdtemp (configure.ac): Update.
16525
16526 2011-05-20  Eric Blake  <eblake@redhat.com>
16527
16528         strerror_r: avoid corrupting errno on Solaris
16529         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16530         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16531
16532         strerror_r: avoid compiler warning
16533         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16534
16535         strerror_r: simplify AIX code
16536         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16537
16538         test-perror: avoid spurious failure on FreeBSD
16539         * modules/perror-tests (Depends-on): Add strerror, now that
16540         strerror_r no longer pulls it in.
16541
16542 2011-05-20  Bruno Haible  <bruno@clisp.org>
16543
16544         strerror_r-posix: Remove unused dependencies.
16545         * modules/strerror_r-posix (Depends-on): Remove strerror.
16546         Reported by Eric Blake.
16547
16548 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16549
16550         intprops: remove assumption about A|B representation
16551         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16552         is a valid integer if both A and B are.  Although this is true for
16553         all known practical hosts, the C standard doesn't guarantee it,
16554         and the code need not assume it.  Also, this change may work around
16555         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16557
16558 2011-05-20  Eric Blake  <eblake@redhat.com>
16559
16560         perror: work around FreeBSD bug
16561         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16562         is broken.  Move AC_LIBOBJ...
16563         * modules/perror (configure.ac): Here.
16564         * doc/posix-functions/perror.texi (perror): Document this.
16565         * tests/test-perror2.c (main): Enhance test.
16566
16567         test-perror: check for strerror interactions
16568         * tests/macros.h (STREQ): Add macro.
16569         * modules/perror-tests (Files): Add second test.
16570         * tests/test-perror2.c (main): New file.
16571         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16572
16573         test-perror: rewrite to use init script
16574         * modules/perror-tests (Files): Add init.sh.
16575         * tests/test-perror.sh: Use temporary directory.
16576
16577 2011-05-20  Jim Meyering  <meyering@redhat.com>
16578
16579         maint: replace misused "a" with "an"
16580         * doc/intprops.texi: "a integer"
16581         * doc/regex.texi: "a explanation"
16582         * lib/alignof.h: "a object"
16583         * lib/argmatch.h: "a explanation"
16584         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16585         * lib/stdint.in.h: "a integer"
16586         * lib/userspec.c: "a owner"
16587         * doc/gnulib.texi: Fix "a idea", and reword.
16588
16589 2011-05-19  Jim Meyering  <meyering@redhat.com>
16590
16591         maint: correct misuse of "a" and "an"
16592         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16593         * lib/argp-help.c: "an docum...": s/an/a/
16594         * lib/argp-parse.c: "An vector": s/An/A/
16595         * lib/execute.c: "an native": s/an/a/
16596         * lib/spawn-pipe.c: Likewise.
16597         * lib/gc.h: "an Gc_rc": s/an/a/
16598         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16599         * lib/fts.c: "an stat.st_dev": s/an/a/
16600
16601 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16602
16603         intprops-tests: work around HP-UX 11.23 cc bug with constants
16604         * tests/test-intprops.c (VERIFY): New macro.
16605         (main): Use it, instead of verify, to work around the compiler bug; see
16606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16607
16608         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16609         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16610         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16611         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16612         (_GL_REMAINDER_OVERFLOW): Use it.
16613
16614         intprops-tests: revert unsigned part of previous change
16615         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16616         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16617         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16618         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16619
16620 2011-05-19  Bruno Haible  <bruno@clisp.org>
16621
16622         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16623         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16624         strerror_r() returned without filling the buffer.
16625         Reported by Eric Blake.
16626
16627 2011-05-19  Eric Blake  <eblake@redhat.com>
16628
16629         strerror_r: guarantee unchanged errno
16630         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16631         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16632         failure.
16633         * tests/test-strerror_r.c (main): Enhance test.
16634
16635 2011-05-19  Bruno Haible  <bruno@clisp.org>
16636
16637         strerror_r: Reorder #if blocks.
16638         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16639         for consistency with the previous commit.
16640
16641 2011-05-19  Bruno Haible  <bruno@clisp.org>
16642
16643         perror: Avoid clobbering the strerror buffer when possible.
16644         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16645         * lib/strerror.c: Include it.
16646         * modules/strerror (Files): Add lib/strerror-impl.h.
16647         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16648         (my_strerror): New function, defined through lib/strerror-impl.h.
16649         (perror): Use it instead of strerror.
16650         * modules/perror (Files): Add lib/strerror-impl.h.
16651         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16652
16653 2011-05-19  Eric Blake  <eblake@redhat.com>
16654
16655         strerror_r: fix on newer cygwin
16656         * lib/strerror_r.c (strerror_r): Cygwin now has
16657         __xpg_strerror_r, use it.
16658
16659 2011-05-19  Bruno Haible  <bruno@clisp.org>
16660
16661         strerror_r: Avoid clobbering the strerror buffer when possible.
16662         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16663         (sys_nerr, sys_errlist): New declarations.
16664         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16665         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16666         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16667
16668 2011-05-19  Bruno Haible  <bruno@clisp.org>
16669
16670         strerror_r: Fix test failure on mingw.
16671         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16672         EXTEND_STRERROR_R.
16673         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16674         macros from errno.in.h instead.
16675
16676 2011-05-19  Eric Blake  <eblake@redhat.com>
16677
16678         strerror: relax test for Solaris
16679         * tests/test-strerror.c (main): Permit Solaris behavior.
16680         * tests/test-strerror_r.c (main): Likewise.
16681
16682         strerror: enforce POSIX ruling on strerror(0)
16683         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16684         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16685         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16686         * doc/posix-functions/strerror.texi (strerror): Document it.
16687         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16688         * tests/test-strerror.c (main): Strengthen test.
16689         * tests/test-strerror_r.c (main): Likewise.
16690
16691 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16692
16693         intprop-tests: port to older and more-pedantic compilers
16694         * modules/intprops-tests (Files): Add tests/macros.h.
16695         * tests/test-intprops.c: Include macros.h.
16696         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16697         it's no longer documented to expand to an integer constant expression.
16698         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16699         argument is floating point, as it's no longer documented to expand
16700         to an integer constant expression in that case.
16701         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16702         compiler bugs reported by Bruno Haible.  See
16703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16704         (U0, U1): New constants, to work around the same bugs.  Also,
16705         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16706
16707         intprops: work around C compiler bugs
16708         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16709         bug in Sun C 5.11 2010/08/13 and other compilers; see
16710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16711
16712         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16713         * doc/intprops.texi (Integer Type Determination): Fix
16714         documentation for TYPE_IS_INTEGER: it returns an constant
16715         expression, not an integer constant expression.  Fix doc for
16716         TYPE_SIGNED: it returns an integer constant expression only if its
16717         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16718         hardly worth documented that way....)
16719
16720 2011-05-18  Bruno Haible  <bruno@clisp.org>
16721
16722         strerror_r: Avoid clobbering the strerror buffer when possible.
16723         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16724         Handle gnulib defined errno values here. When strerror() returns NULL
16725         or an empty string, return EINVAL.
16726         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16727         gnulib defined errno values here.
16728         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16729
16730 2011-05-18  Eric Blake  <eblake@redhat.com>
16731
16732         fnmatch: avoid compiler warning
16733         * lib/fnmatch_loop.c (FCT): Use correct type.
16734         Reported by Matthias Bolte.
16735
16736 2011-05-13  Jim Meyering  <meyering@redhat.com>
16737
16738         maint.mk: three new prohibit_<HDR>_without_use rules
16739         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16740         (sc_prohibit_stdio-safer_without_use): Likewise.
16741         (sc_prohibit_xfreopen_without_use): Likewise.
16742
16743 2011-05-17  Jim Meyering  <meyering@redhat.com>
16744
16745         announce-gen: fail if the NEWS delta is empty
16746         If there's nothing noteworthy in NEWS, then either you forgot
16747         or you shouldn't be releasing.
16748         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16749
16750 2011-05-17  Pádraig Brady <P@draigBrady.com>
16751
16752         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16753         reserved symbols starting with double underscore from the check.
16754
16755 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16756
16757         intprops: add doc
16758         * doc/intprops.texi: New file, documenting intprops.
16759         * doc/gnulib.texi (Particular Modules): Include it.
16760
16761         verify: add doc to gnulib manual and fix example
16762         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16763         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16764         (Compile-time Assertions): Fix example so it can't overflow.
16765
16766 2011-05-17  Jim Meyering  <meyering@redhat.com>
16767
16768         warnings.m4: don't usurp save_CPPFLAGS variable name
16769         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16770
16771         doc: fix typo
16772         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16773
16774 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16775             Bruno Haible  <bruno@clisp.org>
16776
16777         doc: Tweak recent change.
16778         * README (Portability guidelines): Tweak new text.
16779         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16780         Interix 6.1.
16781
16782 2011-05-16  Eric Blake  <eblake@redhat.com>
16783
16784         inttypes: avoid autoconf warning
16785         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16786         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16787
16788 2011-05-16  Sam Steingold <sds@gnu.org>
16789         and Eric Blake  <eblake@redhat.com>
16790
16791         vc-list-files: accept multiple directory operands
16792         * build-aux/vc-list-files: Iterate over all remaining operands.
16793
16794 2011-05-16  Bruno Haible  <bruno@clisp.org>
16795
16796         Fix confusion regarding deprecated modules.
16797         * modules/calloc (Status, Notice): Mark module as deprecated, not
16798         obsolete.
16799         * modules/fnmatch-posix (Status, Notice): Likewise.
16800         * modules/getdate (Status, Notice): Likewise.
16801         * modules/getopt (Status, Notice): Likewise.
16802         * modules/malloc (Status, Notice): Likewise.
16803         * modules/pipe (Status, Notice): Likewise.
16804         * modules/realloc (Status, Notice): Likewise.
16805         * modules/rename-dest-slash (Status, Notice): Likewise.
16806         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16807         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16808         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16809         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16810         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16811
16812 2011-05-16  Bruno Haible  <bruno@clisp.org>
16813
16814         doc: List the target platforms.
16815         * doc/gnulib-intro.texi (Target Platforms): New section.
16816         * doc/gnulib.texi (Introduction): Update menu.
16817         * README (Portability guidelines): Refer to the new section. Update
16818         statement about oldest supported environment. Remove rationale why
16819         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16820         unportable C89 function.
16821         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16822         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16823
16824 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16825
16826         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16827
16828 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16829
16830         intprops-tests: new module
16831         * modules/intprops-tests, tests/test-intprops.c: New files.
16832
16833         intprops: add safe, portable integer overflow checking
16834         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16835         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16836         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16837         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16838         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16839         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16840         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16841         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16842         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16843         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16844         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16845
16846 2011-05-12  James Youngman  <jay@gnu.org>
16847
16848         Add a test for glibc's Bugzilla bug #12378.
16849         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16850         doesn't allow the literal matching of a lone "[" (which is
16851         required by POSIX).
16852         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16853
16854 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16855
16856         Sync glibc change fixing Bugzilla bug #12378.
16857         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16858         beginning and fall back to matching as normal character if the
16859         string ends before the matching ']' is found.  This is what POSIX
16860         requires.
16861
16862 2011-05-13  Eric Blake  <eblake@redhat.com>
16863
16864         getcwd-lgpl: relax test for FreeBSD
16865         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16866         issue.
16867         * tests/test-getcwd-lgpl.c (main): Relax test.
16868         Reported by Matthias Bolte.
16869
16870 2011-05-11  Eric Blake  <eblake@redhat.com>
16871
16872         test-fflush: silence compiler warning
16873         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16874
16875 2011-05-11  Bruno Haible  <bruno@clisp.org>
16876
16877         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16878         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16879         * modules/canonicalize (Depends-on): Add 'nocrash'.
16880         * modules/canonicalize-lgpl (Depends-on): Likewise.
16881         * doc/posix-functions/realpath.texi: Update platforms list.
16882         Reported by Ryan Schmidt <ryandesign@macports.org>.
16883
16884 2011-05-11  Bruno Haible  <bruno@clisp.org>
16885
16886         group-member: Declare function in <unistd.h>.
16887         * lib/unistd.in.h (group_member): New declaration.
16888         * lib/group-member.h: Remove file.
16889         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16890         * tests/test-unistd-c++.cc: Check signature of group_member.
16891         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16892         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16893         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16894         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16895         HAVE_GROUP_MEMBER.
16896         * modules/group-member (Files): Remove lib/group-member.h.
16897         (Depends-on): Add unistd. Specify conditions.
16898         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16899         (Include): Change to <unistd.h>.
16900         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16901         HAVE_GROUP_MEMBER.
16902         * NEWS: Mention the change.
16903         * lib/euidaccess.c: Don't include group-member.h.
16904
16905 2011-05-11  Bruno Haible  <bruno@clisp.org>
16906
16907         group-member: Document module.
16908         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16909         module.
16910
16911 2011-05-11  Bruno Haible  <bruno@clisp.org>
16912
16913         fclose: Fix mistake earlier today.
16914         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16915
16916 2011-05-11  Eric Blake  <eblake@redhat.com>
16917
16918         fclose: preserve fflush errors
16919         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16920         Reported by Jim Meyering.
16921
16922         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16923         * build-aux/bootstrap (check_versions): When no specific version
16924         is required, merely check that the app produces an exit status
16925         that indicates its existence.
16926
16927         maint.mk: drop redundant check
16928         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16929         the same but better.
16930
16931 2011-05-11  Bruno Haible  <bruno@clisp.org>
16932
16933         fclose: Fix possible link error.
16934         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16935         unregister_shadow_fd. Improve comments.
16936         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16937         Eric Blake.
16938
16939 2011-05-11  Jim Meyering  <meyering@redhat.com>
16940
16941         maint.mk: improve "can not" detection and generalize rule name
16942         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16943         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16944         Use the same technique as in sc_prohibit_doubled_word, so that
16945         we recognize "can not" also when the words are separated by a newline.
16946         Suggested by Eric Blake.
16947         (perl_filename_lineno_text_): Define.  Factored out of...
16948         (prohibit_doubled_word_): ...here.  Use the new definition.
16949         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16950         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16951         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16952
16953 2011-05-10  Eric Blake  <eblake@redhat.com>
16954
16955         fclose: avoid double close race when possible
16956         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16957         all but WINDOWS_SOCKETS.
16958
16959 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16960
16961         openat: correct new comment
16962         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16963
16964 2011-05-10  Jim Meyering  <meyering@redhat.com>
16965
16966         openat: add comments
16967         * lib/openat-proc.c (openat_proc_name): Add comments,
16968         mostly from Eric Blake.
16969
16970 2011-05-09  Eric Blake  <eblake@redhat.com>
16971
16972         openat: reduce syscalls in first probe of /proc
16973         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16974         be a directory.  Simplify the probe for .. bugs.
16975         * modules/openat (Depends-on): Drop same-inode.
16976         Reported by Bastien ROUCARIES.
16977
16978 2011-05-09  Jim Meyering  <meyering@redhat.com>
16979
16980         maint.mk: change semantics/name of tight_scope variables
16981         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16982         Rename variables to align with semantics that make them more useful.
16983
16984         maint.mk: tweak new rule's name not to impinge
16985         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16986         (sc_tight_scope): Use new rule name rather than $@-0.
16987
16988         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16989         * top/maint.mk (sc_tight_scope): New rule.
16990         (sc_tight_scope-0): New rule, ifdef'd out.
16991         (_gl_TS_dir): Default.
16992         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16993         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16994
16995 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16996
16997         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16998         Haible <bruno@clisp.org>.
16999
17000 2011-05-08  Bruno Haible  <bruno@clisp.org>
17001
17002         Comments.
17003         * m4/isnanf.m4: Add comment.
17004         * m4/isnanl.m4: Likewise.
17005
17006 2011-05-08  Bruno Haible  <bruno@clisp.org>
17007
17008         glob: Remove obsolete macro.
17009         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17010
17011 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17012
17013         intprops: Sun C 5.11 supports __typeof__
17014         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17015         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17016         which is new.
17017         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17018
17019         intprops: switch to usual gnulib indenting and naming
17020         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17021         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17022
17023         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17024
17025 2011-05-08  Jim Meyering  <meyering@redhat.com>
17026
17027         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17028         * top/maint.mk (release-prep): Use make's --no-print-directory
17029         option when generating the announcement.  This eliminates the
17030         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17031         generated announcement template.
17032
17033 2011-05-08  Bruno Haible  <bruno@clisp.org>
17034
17035         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17036         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17037         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17038
17039 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17040
17041         ignore-value, verify: Omit include files from lib_SOURCES.
17042         * modules/ignore-value, modules/verify (Makefile.am):
17043         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17044         that leads Automake to duplicate use of am__objects_... variables
17045         in Makefile.in.  See
17046         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17047
17048 2011-05-07  Bruno Haible  <bruno@clisp.org>
17049
17050         fclose: Simplify autoconf macro.
17051         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17052         defined.
17053
17054 2011-05-07  Bruno Haible  <bruno@clisp.org>
17055
17056         canonicalize-lgpl: Fix autoconf macro ordering bug.
17057         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17058         gl_STDLIB_H_DEFAULTS.
17059
17060 2011-05-06  Eric Blake  <eblake@redhat.com>
17061
17062         maintainer-makefile: make sc_po_check easier to tune
17063         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17064         to probe for strings, such as an alternate location for gnulib.
17065
17066         fclose: guarantee behavior on seekable stdin
17067         * modules/fclose (Depends-on): Add fflush.
17068         * doc/posix-functions/fclose.texi (fclose): Document this.
17069         * tests/test-fclose.c (main): Make test for this unconditional.
17070
17071 2011-05-06  Bruno Haible  <bruno@clisp.org>
17072
17073         fflush, fpurge: Relicense under LGPLv2+.
17074         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17075         * modules/fpurge (License): Likewise.
17076         With permission from Eric Blake and Jim Meyering.
17077         Suggested by Eric Blake.
17078
17079 2011-05-06  Karl Berry  <karl@gnu.org>
17080
17081         * MODULES.html.sh (func_all_modules): remove exit.
17082
17083 2011-05-06  Jim Meyering  <meyering@redhat.com>
17084
17085         maint.mk: use info-gnu@ as the default only for a stable release
17086         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17087         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17088         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17089         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17090
17091 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17092
17093         assert-h: new module, which supports C1X-style static_assert
17094         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17095         * lib/verify.h: Revamp so that this can be copied into assert.h,
17096         while retaining the ability to use it standalone as before.
17097         Rename private identifiers so as not to encroach on the
17098         standard C namespace, since this is now used by assert.h.
17099         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17100         the old verify_true.
17101         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17102         the old verify_true.  Use _GL_VERIFY_TYPE.
17103         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17104         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17105         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17106         defined when this file is copied into the replacement assert.h.
17107         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17108         and _Static_assert is not built in.
17109         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17110         defined, and use the new macros mentioned above.
17111         * doc/posix-headers/assert.texi: Document this.
17112
17113 2011-05-05  Bruno Haible  <bruno@clisp.org>
17114
17115         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17116         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17117         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17118         gl_REPLACE_FCLOSE here.
17119         * modules/fflush (Depends-on): Remove fclose.
17120         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17121         combination with module 'fclose'.
17122
17123 2011-05-05  Bruno Haible  <bruno@clisp.org>
17124
17125         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17126         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17127         gl_FUNC_FFLUSH.
17128         (gl_FUNC_FFLUSH): Use it.
17129         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17130         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17131         gl_REPLACE_FSEEKO here.
17132
17133 2011-05-05  Bruno Haible  <bruno@clisp.org>
17134
17135         tzset: Relicense under LGPL.
17136         * modules/tzset (License): Change to LGPL.
17137         No agreement needed; it's a no-op.
17138
17139         strtoimax, strtoumax: Relicense under LGPL.
17140         * modules/strtoimax (License): Change to LGPL.
17141         * modules/strtoumax (License): Likewise.
17142         With permission from Jim Meyering, Paul Eggert:
17143         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17145
17146         getgroups: Relicense under LGPL.
17147         * modules/getgroups (License): Change to LGPL.
17148         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17152
17153         nanosleep: Relicense under LGPL.
17154         * modules/nanosleep (License): Change to LGPL.
17155         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17156         Haible:
17157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17161
17162         futimens: Relicense under LGPL.
17163         * modules/futimens (License): Change to LGPL.
17164         With permission from Eric Blake:
17165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17166
17167         fflush: Relicense under LGPL.
17168         * modules/fflush (License): Change to LGPL.
17169         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17173
17174         tmpfile: Relicense under LGPL.
17175         * modules/tmpfile (License): Change to LGPL.
17176         With permission from Ben Pfaff:
17177         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17178
17179         isfinite: Relicense under LGPL.
17180         * modules/isfinite (License): Change to LGPL.
17181         With permission from Ben Pfaff, Bruno Haible:
17182         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17184
17185         acosl..tanl: Relicense under LGPL.
17186         * modules/acosl (License): Change to LGPL.
17187         * modules/asinl (License): Likewise.
17188         * modules/atanl (License): Likewise.
17189         * modules/cosl (License): Likewise.
17190         * modules/expl (License): Likewise.
17191         * modules/logl (License): Likewise.
17192         * modules/sinl (License): Likewise.
17193         * modules/sqrtl (License): Likewise.
17194         * modules/tanl (License): Likewise.
17195         Source code originally from glibc and Paolo Bonzini. Agreements:
17196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17198
17199 2011-05-05  Bruno Haible  <bruno@clisp.org>
17200
17201         signal: Define sighandler_t.
17202         * lib/signal.in.h (sighandler_t): New type.
17203         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17204         whether sighandler_t is defined.
17205         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17206         * modules/signal (Depends-on): Add extensions.
17207         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17208         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17209         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17210
17211 2011-05-05  Eric Blake  <eblake@redhat.com>
17212
17213         maint: remove useless REPLACE_*_H macros
17214         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17215         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17216         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17217         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17218         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17219         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17220         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17221         * m4/btowc.m4: Update callers.
17222         * m4/dirfd.m4: Likewise.
17223         * m4/duplocale.m4: Likewise.
17224         * m4/fchdir.m4: Likewise.
17225         * m4/fdopendir.m4: Likewise.
17226         * m4/inet_ntop.m4: Likewise.
17227         * m4/inet_pton.m4: Likewise.
17228         * m4/ioctl.m4: Likewise.
17229         * m4/mbrlen.m4: Likewise.
17230         * m4/mbrtowc.m4: Likewise.
17231         * m4/mbsinit.m4: Likewise.
17232         * m4/mbsnrtowcs.m4: Likewise.
17233         * m4/mbsrtowcs.m4: Likewise.
17234         * m4/poll.m4: Likewise.
17235         * m4/setlocale.m4: Likewise.
17236         * m4/wcrtomb.m4: Likewise.
17237         * m4/wcsnrtombs.m4: Likewise.
17238         * m4/wcsrtombs.m4: Likewise.
17239         * m4/wctob.m4: Likewise.
17240         * m4/wcwidth.m4: Likewise.
17241         * modules/posix_spawn: Likewise.
17242         * modules/posix_spawn_file_actions_addclose: Likewise.
17243         * modules/posix_spawn_file_actions_adddup2: Likewise.
17244         * modules/posix_spawn_file_actions_addopen: Likewise.
17245         * modules/posix_spawn_file_actions_destroy: Likewise.
17246         * modules/posix_spawn_file_actions_init: Likewise.
17247         * modules/posix_spawnattr_destroy: Likewise.
17248         * modules/posix_spawnattr_getflags: Likewise.
17249         * modules/posix_spawnattr_getpgroup: Likewise.
17250         * modules/posix_spawnattr_getschedparam: Likewise.
17251         * modules/posix_spawnattr_getschedpolicy: Likewise.
17252         * modules/posix_spawnattr_getsigdefault: Likewise.
17253         * modules/posix_spawnattr_getsigmask: Likewise.
17254         * modules/posix_spawnattr_init: Likewise.
17255         * modules/posix_spawnattr_setflags: Likewise.
17256         * modules/posix_spawnattr_setpgroup: Likewise.
17257         * modules/posix_spawnattr_setschedparam: Likewise.
17258         * modules/posix_spawnattr_setschedpolicy: Likewise.
17259         * modules/posix_spawnattr_setsigdefault: Likewise.
17260         * modules/posix_spawnattr_setsigmask: Likewise.
17261         * modules/posix_spawnp: Likewise.
17262
17263 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17264
17265         Add option to do-release-commit-and-tag to specify branch.
17266         * build-aux/do-release-commit-and-tag: Add --branch.
17267
17268 2011-05-03  Bruno Haible  <bruno@clisp.org>
17269
17270         Avoid unnecessary compilation units, through conditional dependencies.
17271         * modules/accept (Depends-on): Add conditions to the dependencies.
17272         * modules/acosl (Depends-on): Likewise.
17273         * modules/argz (Depends-on): Likewise.
17274         * modules/asinl (Depends-on): Likewise.
17275         * modules/atanl (Depends-on): Likewise.
17276         * modules/atoll (Depends-on): Likewise.
17277         * modules/bind (Depends-on): Likewise.
17278         * modules/btowc (Depends-on): Likewise.
17279         * modules/canonicalize-lgpl (Depends-on): Likewise.
17280         * modules/ceil (Depends-on): Likewise.
17281         * modules/ceilf (Depends-on): Likewise.
17282         * modules/ceill (Depends-on): Likewise.
17283         * modules/chdir-long (Depends-on): Likewise.
17284         * modules/chown (Depends-on): Likewise.
17285         * modules/close (Depends-on): Likewise.
17286         * modules/connect (Depends-on): Likewise.
17287         * modules/cosl (Depends-on): Likewise.
17288         * modules/dirfd (Depends-on): Likewise.
17289         * modules/dprintf (Depends-on): Likewise.
17290         * modules/dprintf-posix (Depends-on): Likewise.
17291         * modules/error (Depends-on): Likewise.
17292         * modules/euidaccess (Depends-on): Likewise.
17293         * modules/expl (Depends-on): Likewise.
17294         * modules/faccessat (Depends-on): Likewise.
17295         * modules/fchdir (Depends-on): Likewise.
17296         * modules/fclose (Depends-on): Likewise.
17297         * modules/fcntl (Depends-on): Likewise.
17298         * modules/fdopendir (Depends-on): Likewise.
17299         * modules/fflush (Depends-on): Likewise.
17300         * modules/floor (Depends-on): Likewise.
17301         * modules/floorf (Depends-on): Likewise.
17302         * modules/floorl (Depends-on): Likewise.
17303         * modules/fnmatch (Depends-on): Likewise.
17304         * modules/fopen (Depends-on): Likewise.
17305         * modules/fprintf-posix (Depends-on): Likewise.
17306         * modules/frexp (Depends-on): Likewise.
17307         * modules/frexp-nolibm (Depends-on): Likewise.
17308         * modules/frexpl (Depends-on): Likewise.
17309         * modules/frexpl-nolibm (Depends-on): Likewise.
17310         * modules/fseek (Depends-on): Likewise.
17311         * modules/fsusage (Depends-on): Likewise.
17312         * modules/ftell (Depends-on): Likewise.
17313         * modules/ftello (Depends-on): Likewise.
17314         * modules/futimens (Depends-on): Likewise.
17315         * modules/getcwd (Depends-on): Likewise.
17316         * modules/getcwd-lgpl (Depends-on): Likewise.
17317         * modules/getdelim (Depends-on): Likewise.
17318         * modules/getdomainname (Depends-on): Likewise.
17319         * modules/getgroups (Depends-on): Likewise.
17320         * modules/gethostname (Depends-on): Likewise.
17321         * modules/getline (Depends-on): Likewise.
17322         * modules/getlogin_r (Depends-on): Likewise.
17323         * modules/getopt-posix (Depends-on): Likewise.
17324         * modules/getpeername (Depends-on): Likewise.
17325         * modules/getsockname (Depends-on): Likewise.
17326         * modules/getsockopt (Depends-on): Likewise.
17327         * modules/getsubopt (Depends-on): Likewise.
17328         * modules/getusershell (Depends-on): Likewise.
17329         * modules/glob (Depends-on): Likewise.
17330         * modules/grantpt (Depends-on): Likewise.
17331         * modules/iconv_open (Depends-on): Likewise.
17332         * modules/iconv_open-utf (Depends-on): Likewise.
17333         * modules/inet_ntop (Depends-on): Likewise.
17334         * modules/inet_pton (Depends-on): Likewise.
17335         * modules/ioctl (Depends-on): Likewise.
17336         * modules/isapipe (Depends-on): Likewise.
17337         * modules/isfinite (Depends-on): Likewise.
17338         * modules/isinf (Depends-on): Likewise.
17339         * modules/lchown (Depends-on): Likewise.
17340         * modules/ldexpl (Depends-on): Likewise.
17341         * modules/link (Depends-on): Likewise.
17342         * modules/linkat (Depends-on): Likewise.
17343         * modules/listen (Depends-on): Likewise.
17344         * modules/logl (Depends-on): Likewise.
17345         * modules/lstat (Depends-on): Likewise.
17346         * modules/mbrlen (Depends-on): Likewise.
17347         * modules/mbrtowc (Depends-on): Likewise.
17348         * modules/mbsinit (Depends-on): Likewise.
17349         * modules/mbsnrtowcs (Depends-on): Likewise.
17350         * modules/mbsrtowcs (Depends-on): Likewise.
17351         * modules/mbtowc (Depends-on): Likewise.
17352         * modules/memcmp (Depends-on): Likewise.
17353         * modules/mkdir (Depends-on): Likewise.
17354         * modules/mkdtemp (Depends-on): Likewise.
17355         * modules/mkfifo (Depends-on): Likewise.
17356         * modules/mkfifoat (Depends-on): Likewise.
17357         * modules/mknod (Depends-on): Likewise.
17358         * modules/mkostemp (Depends-on): Likewise.
17359         * modules/mkostemps (Depends-on): Likewise.
17360         * modules/mkstemp (Depends-on): Likewise.
17361         * modules/mkstemps (Depends-on): Likewise.
17362         * modules/mktime (Depends-on): Likewise.
17363         * modules/nanosleep (Depends-on): Likewise.
17364         * modules/open (Depends-on): Likewise.
17365         * modules/openat (Depends-on): Likewise.
17366         * modules/perror (Depends-on): Likewise.
17367         * modules/poll (Depends-on): Likewise.
17368         * modules/popen (Depends-on): Likewise.
17369         * modules/posix_spawn (Depends-on): Likewise.
17370         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17371         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17372         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17373         * modules/posix_spawnp (Depends-on): Likewise.
17374         * modules/pread (Depends-on): Likewise.
17375         * modules/printf-posix (Depends-on): Likewise.
17376         * modules/ptsname (Depends-on): Likewise.
17377         * modules/putenv (Depends-on): Likewise.
17378         * modules/pwrite (Depends-on): Likewise.
17379         * modules/readline (Depends-on): Likewise.
17380         * modules/readlink (Depends-on): Likewise.
17381         * modules/readlinkat (Depends-on): Likewise.
17382         * modules/recv (Depends-on): Likewise.
17383         * modules/recvfrom (Depends-on): Likewise.
17384         * modules/regex (Depends-on): Likewise.
17385         * modules/remove (Depends-on): Likewise.
17386         * modules/rename (Depends-on): Likewise.
17387         * modules/renameat (Depends-on): Likewise.
17388         * modules/rmdir (Depends-on): Likewise.
17389         * modules/round (Depends-on): Likewise.
17390         * modules/roundf (Depends-on): Likewise.
17391         * modules/roundl (Depends-on): Likewise.
17392         * modules/rpmatch (Depends-on): Likewise.
17393         * modules/select (Depends-on): Likewise.
17394         * modules/send (Depends-on): Likewise.
17395         * modules/sendto (Depends-on): Likewise.
17396         * modules/setenv (Depends-on): Likewise.
17397         * modules/setlocale (Depends-on): Likewise.
17398         * modules/setsockopt (Depends-on): Likewise.
17399         * modules/shutdown (Depends-on): Likewise.
17400         * modules/sigaction (Depends-on): Likewise.
17401         * modules/signbit (Depends-on): Likewise.
17402         * modules/sigprocmask (Depends-on): Likewise.
17403         * modules/sinl (Depends-on): Likewise.
17404         * modules/sleep (Depends-on): Likewise.
17405         * modules/snprintf (Depends-on): Likewise.
17406         * modules/snprintf-posix (Depends-on): Likewise.
17407         * modules/socket (Depends-on): Likewise.
17408         * modules/sprintf-posix (Depends-on): Likewise.
17409         * modules/sqrtl (Depends-on): Likewise.
17410         * modules/stat (Depends-on): Likewise.
17411         * modules/strchrnul (Depends-on): Likewise.
17412         * modules/strdup-posix (Depends-on): Likewise.
17413         * modules/strerror (Depends-on): Likewise.
17414         * modules/strerror_r-posix (Depends-on): Likewise.
17415         * modules/strndup (Depends-on): Likewise.
17416         * modules/strnlen (Depends-on): Likewise.
17417         * modules/strptime (Depends-on): Likewise.
17418         * modules/strsep (Depends-on): Likewise.
17419         * modules/strsignal (Depends-on): Likewise.
17420         * modules/strstr-simple (Depends-on): Likewise.
17421         * modules/strtod (Depends-on): Likewise.
17422         * modules/strtoimax (Depends-on): Likewise.
17423         * modules/strtok_r (Depends-on): Likewise.
17424         * modules/strtoumax (Depends-on): Likewise.
17425         * modules/symlink (Depends-on): Likewise.
17426         * modules/symlinkat (Depends-on): Likewise.
17427         * modules/tanl (Depends-on): Likewise.
17428         * modules/tcgetsid (Depends-on): Likewise.
17429         * modules/tmpfile (Depends-on): Likewise.
17430         * modules/trunc (Depends-on): Likewise.
17431         * modules/truncf (Depends-on): Likewise.
17432         * modules/truncl (Depends-on): Likewise.
17433         * modules/uname (Depends-on): Likewise.
17434         * modules/unlink (Depends-on): Likewise.
17435         * modules/unlockpt (Depends-on): Likewise.
17436         * modules/unsetenv (Depends-on): Likewise.
17437         * modules/usleep (Depends-on): Likewise.
17438         * modules/utimensat (Depends-on): Likewise.
17439         * modules/vasprintf (Depends-on): Likewise.
17440         * modules/vdprintf (Depends-on): Likewise.
17441         * modules/vdprintf-posix (Depends-on): Likewise.
17442         * modules/vfprintf-posix (Depends-on): Likewise.
17443         * modules/vprintf-posix (Depends-on): Likewise.
17444         * modules/vsnprintf (Depends-on): Likewise.
17445         * modules/vsnprintf-posix (Depends-on): Likewise.
17446         * modules/vsprintf-posix (Depends-on): Likewise.
17447         * modules/wcrtomb (Depends-on): Likewise.
17448         * modules/wcscasecmp (Depends-on): Likewise.
17449         * modules/wcscspn (Depends-on): Likewise.
17450         * modules/wcsdup (Depends-on): Likewise.
17451         * modules/wcsncasecmp (Depends-on): Likewise.
17452         * modules/wcsnrtombs (Depends-on): Likewise.
17453         * modules/wcspbrk (Depends-on): Likewise.
17454         * modules/wcsrtombs (Depends-on): Likewise.
17455         * modules/wcsspn (Depends-on): Likewise.
17456         * modules/wcsstr (Depends-on): Likewise.
17457         * modules/wcstok (Depends-on): Likewise.
17458         * modules/wcswidth (Depends-on): Likewise.
17459         * modules/wctob (Depends-on): Likewise.
17460         * modules/wctomb (Depends-on): Likewise.
17461         * modules/wctype (Depends-on): Likewise.
17462         * modules/wcwidth (Depends-on): Likewise.
17463         * modules/write (Depends-on): Likewise.
17464
17465 2011-05-03  Bruno Haible  <bruno@clisp.org>
17466
17467         Support for conditional dependencies.
17468         * doc/gnulib.texi (Module description): Document the syntax of
17469         conditional dependencies.
17470         * gnulib-tool: New option --conditional-dependencies.
17471         (func_usage): Document it.
17472         (cond_dependencies): New variable.
17473         (func_get_automake_snippet_conditional,
17474         func_get_automake_snippet_unconditional): New functions, extracted from
17475         func_get_automake_snippet.
17476         (func_get_automake_snippet): Use them.
17477         (sed_first_32_chars): New variable.
17478         (func_module_shellfunc_name): New function.
17479         (func_module_shellvar_name): New function.
17480         (func_module_conditional_name): New function.
17481         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17482         func_cond_module_condition): New functions.
17483         (func_modules_transitive_closure): Add support for conditional
17484         dependencies.
17485         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17486         conditional automake snippet in an automake conditional.
17487         (func_emit_autoconf_snippets): Emit shell functions that contain the
17488         code for conditional modules.
17489         (func_import, func_create_testdir): Update specification.
17490
17491 2011-05-03  Eric Blake  <eblake@redhat.com>
17492
17493         test-getaddrinfo: report error information
17494         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17495
17496 2011-05-03  Jim Meyering  <meyering@redhat.com>
17497
17498         bootstrap: avoid build failure when $GZIP is set
17499         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17500         program name.  If defined at all, it is supposed to list gzip options.
17501         Reported by Alan Curry in http://debbugs.gnu.org/8609
17502
17503 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17504
17505         readme-release: new module with release instructions
17506         * modules/readme-release: New module.
17507         * top/README-release: New file, from coreutils, grep, diffutils.
17508         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17509
17510 2011-05-02  Eric Blake  <eblake@redhat.com>
17511
17512         fflush: also replace fclose when fixing fflush
17513         * modules/fflush (Depends-on): Add fclose.
17514         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17515         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17516         memstreams with no backing fd.
17517         * doc/posix-functions/fclose.texi (fclose): Document the use of
17518         fflush module to fix the bug.
17519         * tests/test-fclose.c (main): Relax test when fclose is used in
17520         isolation.
17521
17522         fclose: add some tests
17523         * modules/fclose-tests: New test module.
17524         * tests/test-fclose.c: New file.
17525         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17526
17527         fclose: reduced dependencies
17528         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17529         simpler lseek.
17530         * lib/fclose.c (rpl_fclose): Likewise.
17531         Reported by Simon Josefsson.
17532
17533         exit: drop remaining clients
17534         * modules/argmatch (Depends-on): Replace exit with stdlib.
17535         * modules/copy-file (Depends-on): Likewise.
17536         * modules/execute (Depends-on): Likewise.
17537         * modules/exitfail (Depends-on): Likewise.
17538         * modules/obstack (Depends-on): Likewise.
17539         * modules/pagealign_alloc (Depends-on): Likewise.
17540         * modules/pipe-filter-gi (Depends-on): Likewise.
17541         * modules/pipe-filter-ii (Depends-on): Likewise.
17542         * modules/savewd (Depends-on): Likewise.
17543         * modules/spawn-pipe (Depends-on): Likewise.
17544         * modules/wait-process (Depends-on): Likewise.
17545         * modules/xsetenv (Depends-on): Likewise.
17546         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17547         * modules/git-merge-changelog (Depends-on): Likewise.
17548         * modules/long-options (Depends-on): Likewise.
17549         * modules/pt_chown (Depends-on): Likewise.
17550         * modules/sysexits (Depends-on): Likewise.
17551
17552         freading: relax license from LGPLv3+ to LGPLv2+
17553         * modules/freading (License): Relax LGPL version.
17554
17555 2011-05-02  Bruno Haible  <bruno@clisp.org>
17556
17557         fchdir: Remove unused dependencies.
17558         * modules/fchdir (Depends-on): Remove include_next.
17559
17560 2011-05-02  Bruno Haible  <bruno@clisp.org>
17561
17562         gnulib-tool: Refactor.
17563         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17564         from func_emit_autoconf_snippets.
17565         (func_emit_autoconf_snippets): Use it.
17566
17567 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17568
17569         * NEWS: Document removal of 'exit'.
17570         * modules/exit: Remove file.
17571
17572 2011-05-01  Bruno Haible  <bruno@clisp.org>
17573
17574         Update DEPENDENCIES.
17575         * DEPENDENCIES (gettext): Recommend the newest release.
17576         Reported by Simon Josefsson.
17577
17578 2011-05-01  Bruno Haible  <bruno@clisp.org>
17579
17580         gnulib-tool: Reduce code duplication.
17581         * gnulib-tool (func_emit_autoconf_snippets): New function.
17582         (func_import, func_create_testdir): Use it.
17583
17584 2011-04-30  Eric Blake  <eblake@redhat.com>
17585
17586         fclose: don't fail on non-seekable input stream
17587         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17588         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17589         since fflush is allowed to fail in that case.
17590
17591 2011-04-30  Bruno Haible  <bruno@clisp.org>
17592
17593         dup3: cleanup
17594         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17595
17596 2011-04-30  Bruno Haible  <bruno@clisp.org>
17597
17598         netdb: Make it work in C++ mode.
17599         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17600         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17601         module.
17602         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17603         gl_MODULE_INDICATOR_FOR_TESTS.
17604         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17605         * modules/netdb-c++-tests: New file.
17606         * tests/test-netdb-c++.cc: New file.
17607
17608 2011-04-30  Bruno Haible  <bruno@clisp.org>
17609
17610         New modules 'vfscanf', 'vscanf'.
17611         * modules/vfscanf: New file.
17612         * modules/vscanf: New file.
17613         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17614         here.
17615         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17616         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17617
17618 2011-04-30  Bruno Haible  <bruno@clisp.org>
17619
17620         passfd: Add comments.
17621         * lib/passfd.c: Add comments about platforms.
17622
17623 2011-04-30  Bruno Haible  <bruno@clisp.org>
17624
17625         sys_uio: Make <sys/uio.h> self-contained.
17626         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17627         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17628
17629 2011-04-30  Bruno Haible  <bruno@clisp.org>
17630
17631         sys_socket: Ensure 'struct iovec' definition.
17632         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17633         <sys/socket.h>.
17634         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17635
17636 2011-04-30  Bruno Haible  <bruno@clisp.org>
17637
17638         sys_uio: Protect definition of 'struct iovec'.
17639         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17640         it as a C struct.
17641
17642 2011-04-30  Bruno Haible  <bruno@clisp.org>
17643
17644         manywarnings: fix indentation
17645         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17646
17647 2011-04-30  Pádraig Brady <P@draigBrady.com>
17648
17649         manywarnings: add -Wno-missing-field-initializers if needed.
17650         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17651         option if it's needed to allow initialization with { 0, }
17652
17653 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17654
17655         announce-gen: cosmetic improvement
17656         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17657
17658 2011-04-29  Jim Meyering  <meyering@redhat.com>
17659
17660         vc-list-files: indent with spaces, not TABs
17661         * build-aux/vc-list-files: Convert leading TABs to spaces,
17662         to match the style of most other files in gnulib.
17663
17664         announce-gen: indent with spaces, not TABs
17665         * build-aux/announce-gen: Convert all TABs to spaces, to match
17666         the style of most other files in gnulib.
17667
17668 2011-04-29  Eric Blake  <eblake@redhat.com>
17669
17670         quotearg: avoid uninitialized variable use
17671         * lib/quotearg.c (quoting_options_from_style): Initialize
17672         remaining fields, and ensure that custom styles are only used via
17673         quoting_options rather than quoting_style.
17674
17675 2011-04-29  Jim Meyering  <meyering@redhat.com>
17676
17677         maint.mk: remove unused VC-tag variable
17678         * top/maint.mk (VC-tag): Remove unused variable.
17679
17680 2011-04-29  Bruno Haible  <bruno@clisp.org>
17681
17682         netdb: fix gai_strerror replacements
17683         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17684         * modules/netdb: Substitute it.
17685
17686 2011-04-29  Jim Meyering  <meyering@redhat.com>
17687
17688         test-getcwd.c: avoid new set-but-not-used warning
17689         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17690         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17691         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17692         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17693
17694         test-hash.c: avoid a new shadowing warning
17695         * tests/test-hash.c (main): Don't shadow "dup".
17696
17697 2011-04-28  Eric Blake  <eblake@redhat.com>
17698
17699         getaddrinfo: fix gai_strerror signature
17700         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17701         and work around mingw with UNICODE defined.
17702         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17703         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17704         * modules/netdb (Makefile.am): Substitute it.
17705         * lib/netdb.in.h (gai_strerror): Declare replacement.
17706         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17707         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17708         the fix.
17709
17710         getsockopt: avoid compiler warning
17711         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17712         Reported by Matthias Bolte.
17713
17714         tests: drop unused link dependency
17715         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17716         * modules/dirent-safer-tests (Makefile.am): Likewise.
17717         * modules/fdopendir-tests (Makefile.am): Likewise.
17718         * modules/mkfifoat-tests (Makefile.am): Likewise.
17719         * modules/openat-safer-tests (Makefile.am): Likewise.
17720         * modules/openat-tests (Makefile.am): Likewise.
17721         * modules/readlinkat-tests (Makefile.am): Likewise.
17722         * modules/symlinkat-tests (Makefile.am): Likewise.
17723         * modules/linkat-tests (Makefile.am): Likewise.
17724         (Depends-on): Switch to filenamecat-lgpl.
17725         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17726         LIBINTL.
17727         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17728         * tests/test-linkat.c (main): Don't require xalloc.
17729
17730         hash, mgetgroups: drop xalloc dependency
17731         * lib/hash.c (includes): Adjust includes.
17732         * lib/mgetgroups.c (includes): Likewise.
17733         (xgetgroups): Move...
17734         * lib/xgetgroups.c: ...to new file.
17735         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17736         * modules/xgetgroups: New file, split from...
17737         * modules/mgetgroups: ...here.
17738         (Depends-on): Add xalloc-oversized.
17739         * modules/hash (Depends-on): Likewise.
17740         * modules/hash-tests (Depends-on): Drop xalloc.
17741         (test_hash_LDADD): Drop unused library.
17742         * tests/test-hash.c (main): Break xalloc dependency.
17743         (includes): Drop unused include.
17744
17745         xalloc-oversized: new module
17746         * modules/xalloc-oversized: New module.
17747         * modules/xalloc (Depends-on): Add it.
17748         * lib/xalloc.h (xalloc_oversized): Move...
17749         * lib/xalloc-oversized.h: ...into new file.
17750
17751         utimecmp: drop dependency on xmalloc
17752         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17753         due to memory pressure.
17754         * modules/utimecmp (Depends-on): Drop xalloc.
17755
17756 2011-04-27  Eric Blake  <eblake@redhat.com>
17757
17758         getcwd: fix mingw bugs
17759         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17760         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17761         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17762
17763 2011-04-27  Bruno Haible  <bruno@clisp.org>
17764
17765         mkstemps: Ensure declaration on MacOS X 10.5.
17766         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17767         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17768         MacOS X.
17769
17770 2011-04-27  Bruno Haible  <bruno@clisp.org>
17771
17772         mkstemp: More documentation.
17773         * doc/posix-functions/mkstemp.texi: Document header file problem on
17774         MacOS X.
17775
17776 2011-04-27  Bruno Haible  <bruno@clisp.org>
17777
17778         mkstemp: Tweak configure message when cross-compiling.
17779         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17780         result as a guess.
17781
17782 2011-04-27  Bruno Haible  <bruno@clisp.org>
17783
17784         clean-temp: Clarify what it does.
17785         * lib/clean-temp.h: Add more comments.
17786         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17787         module.
17788         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17789         * doc/glibc-functions/mkstemps.texi: Likewise.
17790         * doc/glibc-functions/mkostemps.texi: Likewise.
17791
17792 2011-04-27  Eric Blake  <eblake@redhat.com>
17793
17794         fchdir: avoid extra chdir and fix test
17795         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17796         getcwd-lgpl.
17797         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17798         have to be canonical.
17799         (canonicalize_file_name): Drop unused macro.
17800         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17801
17802         filenamecat-lgpl: fix licence
17803         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17804         when it was first created.
17805
17806         linkat, renameat: add missing dependency
17807         * modules/linkat (Depends-on): Require getcwd-lgpl.
17808         * modules/renameat (Depends-on): Likewise.
17809
17810         tests: reduce dependencies
17811         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17812         * tests/test-renameat.c (main): Likewise.
17813         * modules/linkat-tests (Depends-on): Relax dependency.
17814         * modules/renameat-tests (Depends-on): Likewise.
17815         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17816         dependency explicit.
17817
17818         save-cwd: reduce default dependency
17819         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17820         * lib/save-cwd.c: Update comments.
17821         * NEWS: Document the semantic change.
17822
17823         getcwd: enhance tests
17824         * tests/test-getcwd-lgpl.c: New file, taken from...
17825         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17826         repeat long path stress tests from m4 probe.
17827         * modules/getcwd-lgpl-tests: New module.
17828         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17829         * m4/getcwd-abort-bug.m4: Update comment.
17830         * m4/getcwd-path-max.m4: Likewise.
17831
17832         getcwd-lgpl: new module
17833         * modules/getcwd-lgpl: New module.
17834         * lib/getcwd-lgpl.c: New file.
17835         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17836         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17837         * modules/getcwd (configure.ac): Set C witness.
17838         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17839
17840         getcwd: tweak comments
17841         * m4/getcwd-abort-bug.m4: Fix comments.
17842         * m4/getcwd-path-max.m4: Likewise.
17843         * m4/getcwd.m4: Likewise.
17844
17845 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17846         and Eric Blake  <eblake@redhat.com>
17847
17848         mkstemp: replace if system version uses wrong permissions
17849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17850         read/write mode bits set in file created by mkstemp.
17851         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17852
17853 2011-04-27  Eric Blake  <eblake@redhat.com>
17854
17855         passfd: avoid compiler warning
17856         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17857         Reported by Laine Stump.
17858
17859 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17860
17861         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17862         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17863
17864 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17865         and Eric Blake  <eblake@redhat.com>
17866
17867         mkstemp: mention clean-temp module
17868         * lib/mkstemp.c: Add comment.
17869         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17870
17871 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17872
17873         inttypes: also provide default values for 32-bit tests
17874         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17875         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17876
17877 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17878
17879         strtoumax: remove dependency on strtoimax
17880         This is like the strtoull change of yesterday.
17881         * modules/strtoumax (Files): Add lib/strtoimax.c.
17882         (Depends-on): Remove strtoimax and add verify.
17883
17884         inttypes-incomplete: new module
17885         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17886         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17887         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17888         of gl_INTTYPES_H.
17889         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17890         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17891         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17892         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17893         * modules/strtoumax, modules/xstrtol (Depends-on):
17894         Depend on inttypes-incomplete, not inttypes.
17895         * modules/inttypes-incomplete: New module, containing the contents
17896         of the old modules/inttypes module, except that the Files: section
17897         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17898         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17899         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17900         (Depends-on): Depend only on inttypes-incomplete.
17901         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17902
17903         inttypes: omit now-redundant strtoimax and strtoumax work
17904         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17905         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17906
17907         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17908         This supports apps that need pointers to strtoimax and strtoumax,
17909         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17910         nonexistent functions.  See
17911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17912         et seq.
17913         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17914         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17915         a macro.
17916         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17917
17918 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17919
17920         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17921
17922 2011-04-25  Bruno Haible  <bruno@clisp.org>
17923
17924         strtol, strtoul: Mark modules as obsolete.
17925         * modules/strtol (Status, Notice): New sections.
17926         * modules/strtoul (Status, Notice): New sections.
17927
17928 2011-04-25  Bruno Haible  <bruno@clisp.org>
17929
17930         strtod: Remove check for strtod, unless supporting old platforms.
17931         * modules/strtod-obsolete: New file.
17932         * m4/strtod-obsolete.m4: New file.
17933         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17934         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17935         * modules/strtod (Depends-on): Add strtod-obsolete.
17936         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17937
17938 2011-04-25  Bruno Haible  <bruno@clisp.org>
17939
17940         strcase: Make module obsolete.
17941         * modules/strcase (Status, Notice): New sections.
17942
17943 2011-04-25  Bruno Haible  <bruno@clisp.org>
17944
17945         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17946         * modules/dup2-obsolete: New file.
17947         * m4/dup2-obsolete.m4: New file.
17948         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17949         gl_FUNC_DUP2_OBSOLETE is not also defined.
17950         * modules/dup2 (Depends-on): Add dup2-obsolete.
17951         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17952
17953 2011-04-25  Bruno Haible  <bruno@clisp.org>
17954
17955         strnlen: Avoid memchr related link error on old obsolete platforms.
17956         * modules/memchr-obsolete: New file.
17957         * m4/memchr-obsolete.m4: New file.
17958         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17959         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17960         * modules/memchr (Depends-on): Add memchr-obsolete.
17961         * modules/strnlen (Depends-on): Likewise.
17962         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17963
17964 2011-04-25  Jim Meyering  <meyering@redhat.com>
17965
17966         maint.mk: makefile_at_at_check extend and clean up
17967         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17968         in addition to */Makefile.am.
17969         Exempt legitimate uses of @VAR@ notation, e.g.,
17970         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17971         Remove obsolete coreutils-specific comment.
17972         Prompted by discussion here:
17973         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17974
17975 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17976
17977         strtoul: remove dependency on strtol
17978         This is so that 'configure' need not check for strtol merely because
17979         the application needs strtoul.
17980         * modules/strtoul (Files): Add lib/strtol.c.
17981         (Depends-on): Remove strtol.
17982
17983         strtoull: remove dependency on strtoul
17984         This is like the strtoll change.
17985         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17986         (Depends-on): Remove strtoul.
17987
17988         strtoll: remove dependency on strtol
17989         This is so that 'configure' need not check for strtol merely because
17990         the application needs strtoll.
17991         * modules/strtoll (Files): Add lib/strtol.c.
17992         (Depends-on): Remove strtol.
17993
17994 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17995
17996         inttypes: Move some configure check to module 'imaxdiv'.
17997         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17998         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17999         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18000
18001 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18002
18003         inttypes: Move some configure check to module 'imaxabs'.
18004         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18005         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18006         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18007
18008 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18009
18010         inttypes: Remove configure tests that are not needed since 2009-12-31.
18011         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18012         gl_cv_header_working_inttypes_h.
18013
18014 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18015
18016         * modules/strnlen (Depends-on): Remove memchr.
18017         The strnlen implementation doesn't need the memchr module's fixes; see
18018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18019
18020         strtol: remove dependency on wchar
18021         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18022         * modules/strtol (Depends-on): Remove wchar.
18023
18024 2011-04-21  Eric Blake  <eblake@redhat.com>
18025
18026         passfd: fix test regression on Linux
18027         * modules/passfd-tests (configure.ac): Correct socketpair check.
18028
18029         passfd: speed up configure and drop unused code
18030         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18031         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18032         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18033         Instead of probing at configure for unix_scm_rights_bsd44_way,
18034         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18035         check to a struct member probe.
18036         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18037         (sendfd, recvfd): Update preprocessor checks.
18038         * modules/passfd (Files): Reflect rename, and drop unused file.
18039         (Depends-on): Drop unused dependency.
18040
18041         passfd: allow compilation on mingw
18042         * modules/sys_socket (Depends-on): Add sys_uio.
18043         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18044         iovec and a minimal struct msghdr.
18045         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18046         * tests/test-sys_socket.c (main): Enhance test.
18047         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18048         guaranteed to provide what we need.
18049         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18050         * modules/passfd-tests (Depends-on): Add sys_wait.
18051         * tests/test-passfd.c (main): Skip test on mingw, for now.
18052         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18053         partial 'struct msghdr' implementation.
18054
18055         sys_uio: new module
18056         * modules/sys_uio: New module.
18057         * modules/sys_uio-tests: Likewise.
18058         * lib/sys_uio.in.h: New file.
18059         * m4/sys_uio_h.m4: Likewise.
18060         * tests/test-sys_uio.c: Likewise.
18061         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18062         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18063
18064 2011-04-20  Jim Meyering  <meyering@redhat.com>
18065
18066         useless-if-before-free: avoid false-positive
18067         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18068         disjunct so that it too requires a terminating ";".  Without that,
18069         this script would identify as useless one statement from gcc that
18070         was not:
18071           if (aligned_ptr)
18072             free (((void **) aligned_ptr) [-1]);
18073
18074 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18075
18076         doc: update users.txt.
18077         * users.txt: Add barcode.
18078
18079 2011-04-19  Bruno Haible  <bruno@clisp.org>
18080
18081         ioctl: Remove link dependency on native Windows.
18082         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18083         (gl_close_fn, gl_ioctl_fn): New types.
18084         (struct fd_hook): Renamed from struct close_hook. Change type of
18085         private_close_fn field. Add private_ioctl_fn field.
18086         (close_hook_fn): Add parameter for primary close method.
18087         (execute_close_hooks, execute_all_close_hooks): Likewise.
18088         (ioctl_hook_fn): New type.
18089         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18090         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18091         argument.
18092         (unregister_fd_hook): Renamed from unregister_close_hook.
18093         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18094         Don't include <unistd.h>.
18095         (close): Remove undef.
18096         (anchor): Update.
18097         (execute_close_hooks): Add argument for primary close method.
18098         (execute_all_close_hooks): Likewise.
18099         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18100         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18101         argument. Allow each argument to be NULL.
18102         (unregister_fd_hook): Renamed from unregister_close_hook.
18103         * lib/close.c (rpl_close): Pass 'close' function pointer to
18104         execute_all_close_hooks.
18105         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18106         (primary_ioctl): New function.
18107         (ioctl): Don't call ioctlsocket here. Instead, call
18108         execute_all_ioctl_hooks.
18109         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18110         close method.
18111         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18112         (fd_sockets_hook): Renamed from close_sockets_hook.
18113         (gl_sockets_startup, gl_sockets_cleanup): Update.
18114         * modules/fd-hook: Renamed from modules/close-hook. Update.
18115         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18116         * modules/sockets (Depends-on): Likewise.
18117         * modules/ioctl (Depends-on): Add fd-hook.
18118         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18119         GNULIB_SOCKET.
18120
18121 2011-04-19  Bruno Haible  <bruno@clisp.org>
18122
18123         Move the support of O_NONBLOCK in open() to the 'open' module.
18124         * modules/nonblocking (Depends-on): Remove 'open'.
18125         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18126         gl_cv_have_open_O_NONBLOCK.
18127         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18128         O_NONBLOCK support.
18129         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18130
18131 2011-04-17  Bruno Haible  <bruno@clisp.org>
18132
18133         pipe2: Simplify code.
18134         * lib/pipe2.c (pipe2): Reduce code duplication.
18135
18136 2011-04-17  Bruno Haible  <bruno@clisp.org>
18137
18138         nonblocking: Add comment.
18139         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18140
18141 2011-04-17  Bruno Haible  <bruno@clisp.org>
18142
18143         nonblocking: Add tests for sockets.
18144         * tests/test-nonblocking-socket.sh: New file.
18145         * tests/test-nonblocking-socket-main.c: New file.
18146         * tests/test-nonblocking-socket-child.c: New file.
18147         * tests/test-nonblocking-socket.h: New file.
18148         * tests/socket-server.h: New file.
18149         * tests/socket-client.h: New file.
18150         * modules/nonblocking-socket-tests: New file.
18151         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18152
18153 2011-04-17  Bruno Haible  <bruno@clisp.org>
18154
18155         nonblocking: Add tests for pipes.
18156         * tests/test-nonblocking-pipe.sh: New file.
18157         * tests/test-nonblocking-pipe-main.c: New file.
18158         * tests/test-nonblocking-pipe-child.c: New file.
18159         * tests/test-nonblocking-pipe.h: New file.
18160         * tests/test-nonblocking-writer.h: New file.
18161         * tests/test-nonblocking-reader.h: New file.
18162         * tests/test-nonblocking-misc.h: New file.
18163         * modules/nonblocking-pipe-tests: New file.
18164         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18165
18166 2011-04-16  Bruno Haible  <bruno@clisp.org>
18167
18168         gettext: Clarify the needed programmer actions.
18169         * modules/gettext (Notice): New field.
18170         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18171
18172 2011-04-16  Bruno Haible  <bruno@clisp.org>
18173
18174         strchrnul: Tweak last commit.
18175         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18176         bug.
18177         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18178         as in _GL_FUNCDECL_SYS.
18179         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18180         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18181
18182 2011-04-15  Eric Blake  <eblake@redhat.com>
18183
18184         strchrnul: work around cygwin bug
18185         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18186         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18187         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18188         * modules/string (Makefile.am): Substitute it.
18189         * lib/string.in.h (strchrnul): Use it.
18190
18191 2011-04-15  Bruno Haible  <bruno@clisp.org>
18192
18193         Don't require lib/stdio-write.c when only module 'stdio' is used.
18194         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18195         invocation.
18196         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18197
18198 2011-04-14  Bruno Haible  <bruno@clisp.org>
18199
18200         Support non-blocking pipe I/O in read() on native Windows.
18201         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18202         (read): New declaration.
18203         * lib/read.c: New file.
18204         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18205         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18206         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18207         vscanf): New declarations.
18208         * lib/stdio-read.c: New file.
18209         * m4/read.m4: New file.
18210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18211         REPLACE_READ.
18212         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18213         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18214         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18215         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18216         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18217         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18218         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18219         * modules/read: New file.
18220         * modules/nonblocking (Files): Add lib/stdio-read.c.
18221         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18222         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18223         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18224         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18225         * modules/pread (Depends-on): Add read.
18226         * modules/safe-read (Depends-on): Likewise.
18227         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18228         gets, scanf, vfscanf, vscanf): Verify signatures.
18229         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18230         problem with non-blocking pipes.
18231         * doc/posix-functions/fgetc.texi: Likewise.
18232         * doc/posix-functions/fgets.texi: Likewise.
18233         * doc/posix-functions/fread.texi: Likewise.
18234         * doc/posix-functions/fscanf.texi: Likewise.
18235         * doc/posix-functions/getc.texi: Likewise.
18236         * doc/posix-functions/getchar.texi: Likewise.
18237         * doc/posix-functions/gets.texi: Likewise.
18238         * doc/posix-functions/scanf.texi: Likewise.
18239         * doc/posix-functions/vfscanf.texi: Likewise.
18240         * doc/posix-functions/vscanf.texi: Likewise.
18241
18242 2011-04-14  Bruno Haible  <bruno@clisp.org>
18243
18244         Support non-blocking pipe I/O in write() on native Windows.
18245         * lib/write.c (rpl_write): Split a write request that failed merely
18246         because the byte count was larger than the pipe buffer's size.
18247         * doc/posix-functions/write.texi: Mention the problem with large byte
18248         counts.
18249
18250 2011-04-14  Bruno Haible  <bruno@clisp.org>
18251
18252         wchar: Ensure that wchar_t gets defined on uClibc.
18253         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18254         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18255
18256 2011-04-13  Bruno Haible  <bruno@clisp.org>
18257
18258         safe-write, full-read: Avoid unnecessary compilation units.
18259         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18260         (Depends-on): Remove safe-read. Add ssize_t.
18261         * modules/full-read (Files): Add lib/full-write.c.
18262         (Depends-on): Add full-write.
18263
18264 2011-04-13  Bruno Haible  <bruno@clisp.org>
18265
18266         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18267         * modules/pwrite (Depends-on): Add 'write'.
18268
18269 2011-04-13  Bruno Haible  <bruno@clisp.org>
18270
18271         Support non-blocking pipe I/O in write() on native Windows.
18272         * lib/unistd.in.h (write): Enable replacement also if
18273         GNULIB_UNISTD_H_NONBLOCKING is 1.
18274         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18275         (rpl_write): When failing to write on a non-blocking pipe, change
18276         errno from ENOSPC to EAGAIN.
18277         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18278         putchar, puts, vfprintf, vprintf): Enable replacement also if
18279         GNULIB_STDIO_H_NONBLOCKING is 1.
18280         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18281         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18282         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18283         CALL_WITH_SIGPIPE_EMULATION.
18284         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18285         * m4/nonblocking.m4: New file.
18286         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18287         for non-blocking I/O support.
18288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18289         GNULIB_UNISTD_H_NONBLOCKING.
18290         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18291         required for non-blocking I/O support.
18292         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18293         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18294         lib/stdio-write.c, m4/asm-underscore.m4.
18295         (Depends-on): Add stdio, unistd.
18296         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18297         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18298         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18299         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18300         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18301         problem with non-blocking pipes.
18302         * doc/posix-functions/fputc.texi: Likewise.
18303         * doc/posix-functions/fputs.texi: Likewise.
18304         * doc/posix-functions/fwrite.texi: Likewise.
18305         * doc/posix-functions/printf.texi: Likewise.
18306         * doc/posix-functions/putc.texi: Likewise.
18307         * doc/posix-functions/putchar.texi: Likewise.
18308         * doc/posix-functions/puts.texi: Likewise.
18309         * doc/posix-functions/vfprintf.texi: Likewise.
18310         * doc/posix-functions/vprintf.texi: Likewise.
18311         * doc/posix-functions/write.texi: Likewise.
18312
18313 2011-04-10  Jim Meyering  <meyering@redhat.com>
18314
18315         maint.mk: prohibit doubled words
18316         Detect them also when they're separated by a newline.
18317         There are 3 ways to customize it:
18318           - disable the test on a per file basis, as usual with rules using
18319             $(VC_LIST_EXCEPT)
18320           - replace the default doubled-word-selecting regexp (affects all files)
18321           - ignore a particular file-vs-doubled-word match
18322         I nearly used that last one to ignore the "is is" match in
18323         coreutils' NEWS file, since the text was "ls -is is ..."
18324         To do that, I would have added this line to cfg.mk:
18325           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18326         but it would have ignored any "is is" match in NEWS.
18327         Low probability, but still...
18328         Instead, I changed the text, slightly:
18329           -  ls -is is now consistent with ls -lis in ignoring values returned
18330           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18331         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18332         (prohibit_doubled_word_): Define.
18333         (sc_prohibit_doubled_word): New rule.
18334         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18335
18336 2011-04-10  Jim Meyering  <meyering@redhat.com>
18337
18338         maint: fix doubled-word typo in comment
18339         * m4/gethostname.m4: s/is is/it is/
18340         * m4/getdomainname.m4: Likewise.
18341
18342 2011-04-10  Jim Meyering  <meyering@redhat.com>
18343
18344         maint: remove doubled word: s/it it/it/
18345         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18346
18347 2011-04-10  Jim Meyering  <meyering@redhat.com>
18348
18349         maint.mk: remove useless semicolon and backslash
18350         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18351         semicolon and backslash.
18352
18353 2011-04-10  Bruno Haible  <bruno@clisp.org>
18354
18355         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18356         * modules/stdint-tests (Depends-on): Add wchar.
18357
18358 2011-04-10  Jim Meyering  <meyering@redhat.com>
18359
18360         maint: remove doubled words in comments, e.g., s/a a/a/
18361         * lib/strptime.c (day_of_the_week): s/the the/the/
18362         * tests/test-chown.h (test_chown): s/a a/a/
18363
18364         test-chown.h: correct a cast
18365         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18366         when the destination is a stat.st_gid.
18367
18368 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18369
18370         getaddrinfo: Fix test for sa_len member.
18371         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18372         include <sys/types.h> before <sys/socket.h>.
18373
18374 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18375
18376         maint: change "can not" to "cannot"
18377         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18378         boundaries.
18379
18380 2011-04-09  Jim Meyering  <meyering@redhat.com>
18381
18382         maint: change "a a" to "a"
18383         * tests/test-lchown.h (test_lchown): s/a a/a/
18384
18385         maint.mk: prohibit \<the the\>
18386         * top/maint.mk (sc_prohibit_the_the): New rule.
18387
18388         maint: fix "the the" in comment
18389         * lib/count-one-bits.h: s/the the/the/
18390
18391         maint: change "can not" to "cannot"
18392         But do not change the occurrences in maintain.texi or in
18393         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18394         * doc/gnulib-tool.texi: s/can not/cannot/
18395         * doc/posix-functions/accept.texi (accept): Likewise.
18396         * doc/posix-functions/socket.texi (socket): Likewise.
18397         * lib/mbrtowc.c: Likewise.
18398
18399         maint.mk: prohibit use of "can not"
18400         * top/maint.mk (sc_prohibit_can_not): New rule.
18401         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18402
18403 2011-04-09  Bruno Haible  <bruno@clisp.org>
18404
18405         careadlinkat: Guard against misuse of careadlinkatcwd.
18406         * lib/careadlinkat.c: Include <stdlib.h>.
18407         (careadlinkatcwd): Check that the fd argument is as expected.
18408
18409 2011-04-09  Bruno Haible  <bruno@clisp.org>
18410
18411         careadlinkat: Use common coding style.
18412         * lib/careadlinkat.c: Move gnulib includes after system includes.
18413
18414 2011-04-09  Bruno Haible  <bruno@clisp.org>
18415
18416         careadlinkat: Clarify specification.
18417         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18418         (careadlinkatcwd): Add comment.
18419         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18420
18421 2011-04-09  Bruno Haible  <bruno@clisp.org>
18422
18423         areadlinkat: Avoid link error on many platforms.
18424         * modules/areadlinkat (Depends-on): Add areadlink.
18425
18426 2011-04-09  Bruno Haible  <bruno@clisp.org>
18427
18428         allocator, careadlinkat: Fix double-inclusion guard.
18429         * lib/allocator.h: Fix double-inclusion guard.
18430         * lib/careadlinkat.h: Likewise.
18431
18432 2011-04-09  Bruno Haible  <bruno@clisp.org>
18433
18434         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18435         * lib/relocwrapper.c: Update dependencies hierarchy.
18436         * build-aux/install-reloc: Update list of files to be compiled.
18437         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18438         lib/allocator.[hc].
18439
18440 2011-04-08  Eric Blake  <eblake@redhat.com>
18441
18442         strftime: silence gnulib-tool warning
18443         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18444
18445 2011-04-08  Bruno Haible  <bruno@clisp.org>
18446
18447         verify: Fix syntax error with GCC 4.6 in C++ mode.
18448         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18449         (HAVE_STATIC_ASSERT): New macro.
18450         (verify_true, verify): Use 'static_assert' if it is supported and
18451         '_Static_assert' is not supported.
18452
18453 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18454
18455         allocator: New module.
18456         * modules/allocator, lib/allocator.c: New files.
18457         * lib/allocator.h (stdlib_allocator): New decl.
18458         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18459         Remove.  Do not include <stdlib.h>.
18460         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18461         * modules/careadlinkat (Files): Remove lib/allocator.h.
18462         (Depends-on): Add allocator.
18463
18464         stdlib: let modules use system malloc, realloc
18465         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18466         if !_GL_USE_STDLIB_ALLOC.
18467         (malloc, realloc): Limit this change to a smaller scope.
18468
18469         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18470         (malloc, realloc): Don't #undef; no longer needed.
18471         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18472         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18473         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18474         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18475         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18476         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18477         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18478         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18479
18480         careadlinkat: rename members to avoid problem
18481         * lib/allocator.h (struct allocator): Rename members from
18482         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18483         and realloc are #define'd.  Reported by Eric Blake in
18484         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18485         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18486
18487 2011-04-08  Eric Blake  <eblake@redhat.com>
18488
18489         nonblocking: reduce dependency
18490         * tests/test-nonblocking.c: Only test sockets when in use.
18491         * modules/nonblocking-tests (Depends-on): Drop socket.
18492         (Makefile.am): Link even if sockets are not present.
18493         * modules/pipe2-tests (Makefile.am): Likewise.
18494         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18495
18496         pipe2: fix O_NONBLOCK support on mingw
18497         * modules/pipe2 (Depends-on): Add nonblocking.
18498         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18499         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18500         * tests/test-nonblocking.c (main): Likewise.
18501         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18502
18503         fcntl-h: fix O_ACCMODE on cygwin
18504         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18505         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18506
18507         pipe-filter: drop O_NONBLOCK workarounds
18508         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18509         * modules/pipe-filter-ii (Depends-on): Likewise.
18510         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18511
18512         nonblocking: provide O_NONBLOCK for mingw
18513         * modules/nonblocking (Depends-on): Add open.
18514         (configure.ac): Set new witness macro.
18515         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18516         * modules/fcntl-h (Makefile.am): Substitute it.
18517         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18518         nonblocking module is in use.
18519         * lib/nonblocking.c: Adjust portability test.
18520         * lib/open.c (open): Don't let native open see gnulib flag.
18521         * tests/test-fcntl-h.c (main): Enhance test.
18522         * tests/test-open.h (test_open): Likewise.
18523         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18524
18525         careadlinkat: fix compilation error on mingw
18526         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18527         within struct allocator.
18528
18529 2011-04-06  Eric Blake  <eblake@redhat.com>
18530
18531         binary-io: relicense under LGPLv2+
18532         * modules/binary-io (License): Relax to LGPLv2+.
18533         Requested for libvirt, and required by pipe2.
18534
18535 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18536
18537         verify: use _Static_assert if available
18538         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18539         (verify_true, verify): Use it if available.  This generates better
18540         diagnostics with GCC 4.6.0 and later.
18541
18542 2011-04-05  Bruno Haible  <bruno@clisp.org>
18543
18544         Remove leftover generated .h files after config.status changed.
18545
18546         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18547         GL_GENERATE_ALLOCA_H.
18548         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18549         GL_GENERATE_ALLOCA_H evaluates to false.
18550
18551         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18552         GL_GENERATE_ARGZ_H.
18553         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18554         evaluates to false.
18555
18556         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18557         GL_GENERATE_BYTESWAP_H.
18558         * modules/byteswap (Makefile.am): Remove byteswap.h if
18559         GL_GENERATE_BYTESWAP_H evaluates to false.
18560
18561         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18562         GL_GENERATE_ERRNO_H.
18563         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18564         evaluates to false.
18565
18566         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18567         GL_GENERATE_FLOAT_H.
18568         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18569         evaluates to false.
18570
18571         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18572         GL_GENERATE_FNMATCH_H.
18573         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18574         GL_GENERATE_FNMATCH_H evaluates to false.
18575
18576         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18577         GL_GENERATE_GLOB_H.
18578         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18579         evaluates to false.
18580
18581         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18582         automake conditional GL_GENERATE_ICONV_H.
18583         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18584         evaluates to false.
18585
18586         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18587         GL_GENERATE_NETINET_IN_H.
18588         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18589         GL_GENERATE_NETINET_IN_H evaluates to false.
18590
18591         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18592         conditional GL_GENERATE_PTHREAD_H.
18593         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18594         * modules/pthread (Makefile.am): Remove pthread.h if
18595         GL_GENERATE_PTHREAD_H evaluates to false.
18596
18597         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18598         GL_GENERATE_SCHED_H.
18599         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18600         evaluates to false.
18601
18602         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18603         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18604         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18605         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18606
18607         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18608         GL_GENERATE_STDARG_H.
18609         * modules/stdarg (Makefile.am): Remove stdarg.h if
18610         GL_GENERATE_STDARG_H evaluates to false.
18611
18612         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18613         GL_GENERATE_STDBOOL_H.
18614         * modules/stdbool (Makefile.am): Remove stdbool.h if
18615         GL_GENERATE_STDBOOL_H evaluates to false.
18616
18617         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18618         conditional GL_GENERATE_STDDEF_H.
18619         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18620         * modules/stddef (Makefile.am): Remove stddef.h if
18621         GL_GENERATE_STDDEF_H evaluates to false.
18622
18623         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18624         GL_GENERATE_STDINT_H.
18625         * modules/stdint (Makefile.am): Remove stdint.h if
18626         GL_GENERATE_STDINT_H evaluates to false.
18627
18628         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18629         GL_GENERATE_SYSEXITS_H.
18630         * modules/sysexits (Makefile.am): Remove sysexits.h if
18631         GL_GENERATE_SYSEXITS_H evaluates to false.
18632
18633         Reported by Karl Berry and Ralf Wildenhues.
18634
18635 2011-04-05  Bruno Haible  <bruno@clisp.org>
18636
18637         Ensure to rebuild generated .h files when config.status has changed.
18638         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18639         config.status.
18640         * modules/ctype (Makefile.am): Likewise.
18641         * modules/dirent (Makefile.am): Likewise.
18642         * modules/errno (Makefile.am): Likewise.
18643         * modules/fcntl-h (Makefile.am): Likewise.
18644         * modules/float (Makefile.am): Likewise.
18645         * modules/getopt-posix (Makefile.am): Likewise.
18646         * modules/glob (Makefile.am): Likewise.
18647         * modules/iconv-h (Makefile.am): Likewise.
18648         * modules/inttypes (Makefile.am): Likewise.
18649         * modules/langinfo (Makefile.am): Likewise.
18650         * modules/locale (Makefile.am): Likewise.
18651         * modules/math (Makefile.am): Likewise.
18652         * modules/netdb (Makefile.am): Likewise.
18653         * modules/netinet_in (Makefile.am): Likewise.
18654         * modules/poll-h (Makefile.am): Likewise.
18655         * modules/pthread (Makefile.am): Likewise.
18656         * modules/pty (Makefile.am): Likewise.
18657         * modules/sched (Makefile.am): Likewise.
18658         * modules/search (Makefile.am): Likewise.
18659         * modules/selinux-h (Makefile.am): Likewise.
18660         * modules/signal (Makefile.am): Likewise.
18661         * modules/spawn (Makefile.am): Likewise.
18662         * modules/stdarg (Makefile.am): Likewise.
18663         * modules/stdbool (Makefile.am): Likewise.
18664         * modules/stddef (Makefile.am): Likewise.
18665         * modules/stdint (Makefile.am): Likewise.
18666         * modules/stdio (Makefile.am): Likewise.
18667         * modules/stdlib (Makefile.am): Likewise.
18668         * modules/string (Makefile.am): Likewise.
18669         * modules/strings (Makefile.am): Likewise.
18670         * modules/sys_file (Makefile.am): Likewise.
18671         * modules/sys_ioctl (Makefile.am): Likewise.
18672         * modules/sys_select (Makefile.am): Likewise.
18673         * modules/sys_socket (Makefile.am): Likewise.
18674         * modules/sys_stat (Makefile.am): Likewise.
18675         * modules/sys_time (Makefile.am): Likewise.
18676         * modules/sys_times (Makefile.am): Likewise.
18677         * modules/sys_utsname (Makefile.am): Likewise.
18678         * modules/sys_wait (Makefile.am): Likewise.
18679         * modules/sysexits (Makefile.am): Likewise.
18680         * modules/termios (Makefile.am): Likewise.
18681         * modules/time (Makefile.am): Likewise.
18682         * modules/unistd (Makefile.am): Likewise.
18683         * modules/wchar (Makefile.am): Likewise.
18684         * modules/wctype-h (Makefile.am): Likewise.
18685         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18686
18687 2011-04-05  Bruno Haible  <bruno@clisp.org>
18688
18689         pipe2: Relicense under LGPLv2+.
18690         * modules/pipe2 (License): Change to LGPLv2+.
18691         Requested by Eric Blake, for libvirt.
18692
18693 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18694
18695         bootstrap: compute gnulib_extra_files after updating build_aux
18696         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18697         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18698
18699 2011-04-05  Eric Blake  <eblake@redhat.com>
18700
18701         bootstrap: preserve git whitelist item sorting
18702         * build-aux/bootstrap (sort_patterns): New function.
18703         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18704
18705 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18706
18707         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18708         sc_space_tab check.
18709
18710 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18711
18712         areadlink, areadlinkat: rewrite in terms of careadlinkat
18713         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18714         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18715         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18716         (malloc, realloc): Remove #undefs.
18717         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18718         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18719         readlink, ssize_t, stdint, unistd.
18720         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18721         areadlink, stdint.
18722
18723         careadlinkat: new module
18724         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18725         * modules/careadlinkat: New files, written by me with
18726         a review and feedback from Ben Pfaff in
18727         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18728
18729 2011-04-01  Bruno Haible  <bruno@clisp.org>
18730
18731         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18732         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18733         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18734         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18735         Reported by Bruce Korb <bruce.korb@gmail.com>.
18736
18737 2011-04-01  Bruno Haible  <bruno@clisp.org>
18738
18739         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18740         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18741         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18742         * modules/wcpcpy (Depends-on): Add extensions.
18743         * modules/wcpncpy (Depends-on): Likewise.
18744         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18745         systems.
18746         * doc/posix-functions/wcpncpy.texi: Likewise.
18747         * doc/posix-functions/wcwidth.texi: Likewise.
18748
18749 2011-03-31  Eric Blake  <eblake@redhat.com>
18750
18751         nonblocking: fix mingw test failures
18752         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18753         non-blocking flag on regular file.
18754         (get_nonblocking_flag): Set errno on invalid fd.
18755         * tests/test-nonblocking.c (main): Avoid test failure on
18756         directories if fchdir is not active.
18757         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18758
18759 2011-03-31  Bruno Haible  <bruno@clisp.org>
18760
18761         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18762         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18763         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18764         Reported by Simon Josefsson <simon@josefsson.org>.
18765
18766 2011-03-31  Bruno Haible  <bruno@clisp.org>
18767         and Eric Blake  <eblake@redhat.com>
18768
18769         nonblocking: new module
18770         * modules/nonblocking: New module.
18771         * modules/nonblocking-tests: Likewise.
18772         * lib/nonblocking.h: New file.
18773         * lib/nonblocking.c: Likewise.
18774         * tests/test-nonblocking.c: New test.
18775         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18776
18777 2011-03-30  Bruno Haible  <bruno@clisp.org>
18778
18779         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18780         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18781         instead of 'printf' format for GCC >= 4.4.
18782         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18783         (fprintf, printf, vfprintf, vprintf): Declare with
18784         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18785         the system's vfprintf() function.
18786         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18787
18788 2011-03-30  Eric Blake  <eblake@redhat.com>
18789
18790         passfd: fix scoping bug
18791         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18792         before sendmsg/recvmsg.
18793
18794         passfd: standardize coding conventions
18795         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18796         can be learned at compile time.
18797         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18798         ifdefs.
18799         (sendfd, recvfd): Follow gnulib code conventions.
18800
18801         passfd: fix incorrect sendmsg arguments
18802         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18803         incorrect msg_controllen value.
18804         * modules/passfd-tests (Depends-on): Check for alarm.
18805         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18806         Reported by Bastien ROUCARIES.
18807
18808 2011-03-30  Bruno Haible  <bruno@clisp.org>
18809
18810         c-strcasestr: Relicense under LGPLv2+.
18811         * modules/c-strcasestr (License): Change to LGPLv2+.
18812         Requested by Eric Blake, for libvirt.
18813
18814 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18815
18816         * users.txt: Add libidn2.  Fix libtasn1 link.
18817
18818 2011-03-30  Jim Meyering  <meyering@redhat.com>
18819
18820         tests: readlink* ("",... fails with EINVAL on newer kernels
18821         readlink and readlinkat have typically failed with ENOENT for
18822         the invalid, empty file name,  "".  However, with the advent
18823         of linux-2.6.39, they fail with EINVAL.
18824         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18825         when operating on the empty file name.
18826         * tests/test-readlink.h (test_readlink): Likewise.
18827
18828 2011-03-29  Bruno Haible  <bruno@clisp.org>
18829
18830         Relicense some modules under LGPLv2+, for libidn2.
18831         * modules/array-mergesort (License): Change to LGPLv2+.
18832         * modules/c-strcaseeq (License): Likewise.
18833         * modules/striconveh (License): Likewise.
18834         * modules/striconveha (License): Likewise.
18835         * modules/uniconv/base (License): Likewise.
18836         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18837         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18838         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18839         * modules/unictype/base (License): Likewise.
18840         * modules/unictype/bidiclass-of (License): Likewise.
18841         * modules/unictype/category-M (License): Likewise.
18842         * modules/unictype/category-none (License): Likewise.
18843         * modules/unictype/category-of (License): Likewise.
18844         * modules/unictype/category-test (License): Likewise.
18845         * modules/unictype/category-test-withtable (License): Likewise.
18846         * modules/unictype/combining-class (License): Likewise.
18847         * modules/unictype/joiningtype-of (License): Likewise.
18848         * modules/unictype/scripts (License): Likewise.
18849         * modules/uninorm/base (License): Likewise.
18850         * modules/uninorm/canonical-decomposition (License): Likewise.
18851         * modules/uninorm/composition (License): Likewise.
18852         * modules/uninorm/decompose-internal (License): Likewise.
18853         * modules/uninorm/decomposition-table (License): Likewise.
18854         * modules/uninorm/nfc (License): Likewise.
18855         * modules/uninorm/nfd (License): Likewise.
18856         * modules/uninorm/u32-normalize (License): Likewise.
18857         * modules/unistr/base (License): Likewise.
18858         * modules/unistr/u32-cpy (License): Likewise.
18859         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18860         * modules/unistr/u32-to-u8 (License): Likewise.
18861         * modules/unistr/u32-uctomb (License): Likewise.
18862         * modules/unistr/u8-check (License): Likewise.
18863         * modules/unistr/u8-mblen (License): Likewise.
18864         * modules/unistr/u8-mbtouc (License): Likewise.
18865         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18866         * modules/unistr/u8-mbtoucr (License): Likewise.
18867         * modules/unistr/u8-prev (License): Likewise.
18868         * modules/unistr/u8-strlen (License): Likewise.
18869         * modules/unistr/u8-to-u32 (License): Likewise.
18870         * modules/unistr/u8-uctomb (License): Likewise.
18871         * modules/unitypes (License): Likewise.
18872         Requested by Simon Josefsson.
18873
18874 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18875
18876         lib-symbol-visibility: Add a notice.
18877         * modules/lib-symbol-visibility (Notice): New field.
18878
18879 2011-03-29  Bruno Haible  <bruno@clisp.org>
18880
18881         getaddrinfo: Doc fix.
18882         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18883         section "fixed in Gnulib".
18884
18885 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18886
18887         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18888         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18889
18890 2011-03-26  Bruno Haible  <bruno@clisp.org>
18891
18892         unictype/property-byname: Reduce the number of load-time relocations.
18893         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18894         (UC_PROPERTY_INDEX_*): New enumeration values.
18895         (uc_property_byname): Convert an index from the lookup table to an
18896         uc_property_t.
18897         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18898         values.
18899
18900 2011-03-26  Bruno Haible  <bruno@clisp.org>
18901
18902         unictype/property-byname: Allow omitted word separators and aliases.
18903         * lib/unictype/pr_byname.gperf: Add property names without word
18904         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18905         for 'space'.
18906
18907 2011-03-26  Bruno Haible  <bruno@clisp.org>
18908
18909         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18910         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18911         also hyphens to space.
18912         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18913         without spaces.
18914         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18915
18916 2011-03-26  Bruno Haible  <bruno@clisp.org>
18917
18918         unictype/joiningtype-byname: Recognize long names as well.
18919         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18920         a long name.
18921         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18922         unictype/joiningtype_byname.h.
18923         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18924         * lib/unictype/joiningtype_byname.gperf: New file.
18925         * modules/unictype/joiningtype-byname (Files): Add
18926         lib/unictype/joiningtype_byname.gperf.
18927         (Depends-on): Add gperf.
18928         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18929         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18930         long names.
18931
18932         Tests for module 'unictype/joiningtype-longname'.
18933         * modules/unictype/joiningtype-longname-tests: New file.
18934         * tests/unictype/test-joiningtype_longname.c: New file.
18935
18936         New module 'unictype/joiningtype-longname'.
18937         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18938         * lib/unictype/joiningtype_longname.c: New file.
18939         * modules/unictype/joiningtype-longname: New file.
18940         * modules/unictype/joiningtype-all (Depends-on): Add
18941         unictype/joiningtype-longname.
18942
18943 2011-03-26  Bruno Haible  <bruno@clisp.org>
18944
18945         unictype/bidiclass-byname: Recognize long names as well.
18946         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18947         name.
18948         * lib/unictype/bidi_byname.c: Include <string.h>,
18949         unictype/bidi_byname.h.
18950         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18951         * lib/unictype/bidi_byname.gperf: New file.
18952         * modules/unictype/bidiclass-byname (Files): Add
18953         lib/unictype/bidi_byname.gperf.
18954         (Depends-on): Add gperf.
18955         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18956         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18957         long names.
18958
18959         Tests for module 'unictype/bidiclass-longname'.
18960         * modules/unictype/bidiclass-longname-tests: New file.
18961         * tests/unictype/test-bidi_longname.c: New file.
18962
18963         New module 'unictype/bidiclass-longname'.
18964         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18965         * lib/unictype/bidi_longname.c: New file.
18966         * modules/unictype/bidiclass-longname: New file.
18967         * modules/unictype/bidiclass-all (Depends-on): Add
18968         unictype/bidiclass-longname.
18969
18970 2011-03-26  Bruno Haible  <bruno@clisp.org>
18971
18972         unictype/bidi*: Rename modules.
18973         * modules/unictype/bidiclass-all: Renamed from
18974         modules/unictype/bidicategory-all.
18975         * modules/unictype/bidiclass-name: Renamed from
18976         modules/unictype/bidiclass-name.
18977         (Description): Update.
18978         * modules/unictype/bidiclass-name-tests: Renamed from
18979         modules/unictype/bidicategory-name-tests.
18980         * modules/unictype/bidiclass-byname: Renamed from
18981         modules/unictype/bidicategory-byname.
18982         (Description): Update.
18983         * modules/unictype/bidiclass-byname-tests: Renamed from
18984         modules/unictype/bidicategory-byname-tests.
18985         * modules/unictype/bidiclass-of: Renamed from
18986         modules/unictype/bidicategory-of.
18987         (Description): Update.
18988         * modules/unictype/bidiclass-of-tests: Renamed from
18989         modules/unictype/bidicategory-of-tests.
18990         * modules/unictype/bidiclass-test: Renamed from
18991         modules/unictype/bidicategory-test.
18992         (Description): Update.
18993         * modules/unictype/bidiclass-test-tests: Renamed from
18994         modules/unictype/bidicategory-test-tests.
18995         * modules/unictype/bidicategory-all: New file, a simple redirection.
18996         * modules/unictype/bidicategory-name: Likewise.
18997         * modules/unictype/bidicategory-byname: Likewise.
18998         * modules/unictype/bidicategory-of: Likewise.
18999         * modules/unictype/bidicategory-test: Likewise.
19000         * modules/unictype/property-bidi-* (Dependencies): Update.
19001         * lib/unictype/bidi_*.c: Update comment.
19002
19003 2011-03-26  Bruno Haible  <bruno@clisp.org>
19004
19005         unictype/bidi*: Rename functions, part 2.
19006         * modules/unictype/bidicategory-name (configure.ac): Update required
19007         libunistring version.
19008         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19009
19010 2011-03-25  Bruno Haible  <bruno@clisp.org>
19011
19012         New module 'unictype/combining-class-all'.
19013         * modules/unictype/combining-class-all: New file.
19014
19015         Tests for module 'unictype/combining-class-byname'.
19016         * modules/unictype/combining-class-byname-tests: New file.
19017         * tests/unictype/test-combiningclass_byname.c: New file.
19018
19019         New module 'unictype/combining-class-byname'.
19020         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19021         * lib/unictype/combiningclass_byname.c: New file.
19022         * lib/unictype/combiningclass_byname.gperf: New file.
19023         * modules/unictype/combining-class-byname: New file.
19024
19025         Tests for module 'unictype/combining-class-longname'.
19026         * modules/unictype/combining-class-longname-tests: New file.
19027         * tests/unictype/test-combiningclass_longname.c: New file.
19028
19029         New module 'unictype/combining-class-longname'.
19030         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19031         * lib/unictype/combiningclass_longname.c: New file.
19032         * modules/unictype/combining-class-longname: New file.
19033
19034         Tests for module 'unictype/combining-class-name'.
19035         * modules/unictype/combining-class-name-tests: New file.
19036         * tests/unictype/test-combiningclass_name.c: New file.
19037
19038         New module 'unictype/combining-class-name'.
19039         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19040         * lib/unictype/combiningclass_name.c: New file.
19041         * modules/unictype/combining-class-name: New file.
19042
19043 2011-03-25  Bruno Haible  <bruno@clisp.org>
19044
19045         unictype/combining-class: Rename source files.
19046         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19047         of unictype/combining.h.
19048         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19049         Update.
19050         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19051         * modules/unictype/combining-class (Description): Fix.
19052         (Files, Makefile.am): Update.
19053         * tests/unictype/test-combiningclass.c: Renamed from
19054         tests/unictype/test-combining.c.
19055         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19056
19057 2011-03-25  Bruno Haible  <bruno@clisp.org>
19058
19059         unictype: Update list of canonical combining classes.
19060         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19061
19062 2011-03-25  Bruno Haible  <bruno@clisp.org>
19063
19064         unictype/category-byname: Recognize long names as well.
19065         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19066         a long name.
19067         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19068         unictype/categ_byname.h.
19069         (UC_CATEGORY_INDEX_*): New enumeration values.
19070         (uc_general_category_byname): Use uc_general_category_lookup and
19071         convert from index to value.
19072         * lib/unictype/categ_byname.gperf: New file.
19073         * modules/unictype/category-byname (Files): Add
19074         lib/unictype/categ_byname.gperf.
19075         (Depends-on): Add gperf.
19076         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19077         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19078         long names.
19079
19080         Tests for module 'unictype/category-longname'.
19081         * modules/unictype/category-longname-tests: New file.
19082         * tests/unictype/test-categ_longname.c: New file.
19083
19084         New module 'unictype/category-longname'.
19085         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19086         * lib/unictype/categ_longname.c: New file.
19087         * modules/unictype/category-longname: New file.
19088         * modules/unictype/category-all (Depends-on): Add it.
19089
19090 2011-03-25  Bruno Haible  <bruno@clisp.org>
19091
19092         Tests for module 'unictype/category-LC'.
19093         * modules/unictype/category-LC-tests: New file.
19094         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19095
19096         New module 'unictype/category-LC'.
19097         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19098         (UC_CATEGORY_LC): New declaration.
19099         (UC_CASED_LETTER): New macro.
19100         * lib/gen-uni-tables.c (is_category_LC): New function.
19101         (output_categories): Also handle category LC.
19102         (UC_CATEGORY_MASK_LC): New enumeration value.
19103         (general_category_byname): Also handle category LC.
19104         * lib/unictype/categ_LC.c: New file.
19105         * lib/unictype/categ_LC.h: New file, automatically generated.
19106         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19107         category LC.
19108         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19109         * modules/unictype/category-LC: New file.
19110         * modules/unictype/category-byname (Depends-on): Add
19111         unictype/category-LC.
19112         * modules/unictype/category-all (Depends-on): Likewise.
19113
19114 2011-03-25  Eric Blake  <eblake@redhat.com>
19115
19116         xmalloc: revert yesterday's regression
19117         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19118         realloc's underlying behavior (allowing allocation of zero-size
19119         objects, especially if malloc-gnu is also in use).
19120
19121 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19122
19123         maint.mk: add missing version to VC-tag
19124         * top/maint.mk: git tag was missing actual tag name; add it.
19125
19126         valgrind: do leak checking, and exit with code 1 on error (not 0)
19127         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19128         to VALGRIND.
19129
19130 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19131
19132         posix-modules: say what it does.
19133         * posix-modules: Add a line to the --help output saying what it does.
19134
19135 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19136
19137         xmalloc: Do not leak if underlying realloc is C99 compatible.
19138         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19139         This avoids a leak on C99-based systems.  See
19140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19141
19142 2011-03-24  Eric Blake  <eblake@redhat.com>
19143
19144         realloc: document portability problem
19145         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19146         passing 0 size to realloc.
19147
19148 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19149
19150         doc: update users.txt
19151         * users.txt: Add cvsps, tmpwatch
19152
19153 2011-03-23  Matt Rice  <ratmice@gmail.com>
19154
19155         doc: update users.txt
19156         * users.txt: Add gdb.
19157
19158 2011-03-23  Jim Meyering  <meyering@redhat.com>
19159
19160         doc: update users.txt
19161         Looking through matches up to the following URL (there are still
19162         several more pages), I found several projects that use gnulib:
19163         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19164         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19165         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19166
19167 2011-03-22  Bruno Haible  <bruno@clisp.org>
19168
19169         unictype/bidi*: Rename functions.
19170         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19171         uc_bidi_class, uc_is_bidi_class): New declarations.
19172         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19173         uc_bidi_category_byname.
19174         (uc_bidi_category_byname): New function.
19175         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19176         u_bidi_category_name.
19177         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19178         (uc_bidi_category_name): New function.
19179         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19180         uc_bidi_category.
19181         (uc_bidi_category): New function.
19182         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19183         uc_is_bidi_category. Invoke uc_bidi_class.
19184         (uc_is_bidi_category): New function.
19185         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19186         instead of uc_bidi_category_byname.
19187         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19188         instead of uc_bidi_category_name.
19189         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19190         uc_bidi_category.
19191         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19192         instead of uc_is_bidi_category.
19193
19194 2011-03-21  Bruno Haible  <bruno@clisp.org>
19195
19196         New module 'unictype/joininggroup-all'.
19197         * modules/unictype/joininggroup-all: New file.
19198
19199         Tests for module 'unictype/joininggroup-of'.
19200         * modules/unictype/joininggroup-of-tests: New file.
19201         * tests/unictype/test-joininggroup_of.c: New file.
19202         * tests/unictype/test-joininggroup_of.h: New file, automatically
19203         generated by gen-uni-tables.
19204
19205         New module 'unictype/joininggroup-of'.
19206         * modules/unictype/joininggroup-of: New file.
19207         * lib/unictype/joininggroup_of.c: New file.
19208         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19209         gen-uni-tables.
19210
19211         Tests for module 'unictype/joininggroup-byname'.
19212         * modules/unictype/joininggroup-byname-tests: New file.
19213         * tests/unictype/test-joininggroup_byname.c: New file.
19214
19215         New module 'unictype/joininggroup-byname'.
19216         * modules/unictype/joininggroup-byname: New file.
19217         * lib/unictype/joininggroup_byname.c: New file.
19218         * lib/unictype/joininggroup_byname.gperf: New file.
19219
19220         Tests for module 'unictype/joininggroup-name'.
19221         * modules/unictype/joininggroup-name-tests: New file.
19222         * tests/unictype/test-joininggroup_name.c: New file.
19223
19224         New module 'unictype/joininggroup-name'.
19225         * modules/unictype/joininggroup-name: New file.
19226         * lib/unictype/joininggroup_name.c: New file.
19227         * lib/unictype/joininggroup_name.h: New file.
19228
19229         New module 'unictype/joiningtype-all'.
19230         * modules/unictype/joiningtype-all: New file.
19231
19232         Tests for module 'unictype/joiningtype-of'.
19233         * modules/unictype/joiningtype-of-tests: New file.
19234         * tests/unictype/test-joiningtype_of.c: New file.
19235         * tests/unictype/test-joiningtype_of.h: New file, automatically
19236         generated by gen-uni-tables.
19237
19238         New module 'unictype/joiningtype-of'.
19239         * modules/unictype/joiningtype-of: New file.
19240         * lib/unictype/joiningtype_of.c: New file.
19241         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19242         gen-uni-tables.
19243
19244         Tests for module 'unictype/joiningtype-byname'.
19245         * modules/unictype/joiningtype-byname-tests: New file.
19246         * tests/unictype/test-joiningtype_byname.c: New file.
19247
19248         New module 'unictype/joiningtype-byname'.
19249         * modules/unictype/joiningtype-byname: New file.
19250         * lib/unictype/joiningtype_byname.c: New file.
19251
19252         Tests for module 'unictype/joiningtype-name'.
19253         * modules/unictype/joiningtype-name-tests: New file.
19254         * tests/unictype/test-joiningtype_name.c: New file.
19255
19256         New module 'unictype/joiningtype-name'.
19257         * modules/unictype/joiningtype-name: New file.
19258         * lib/unictype/joiningtype_name.c: New file.
19259
19260         unictype: Add support for Arabic shaping properties.
19261         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19262         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19263         declarations.
19264         (UC_JOINING_GROUP_*): New enumeration values.
19265         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19266         declarations.
19267         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19268         (unicode_joining_type): New variable.
19269         (UC_JOINING_GROUP_*): New enumeration values.
19270         (unicode_joining_group): New variable.
19271         (fill_arabicshaping, joining_type_as_c_identifier,
19272         output_joining_type_test, output_joining_type,
19273         joining_group_as_c_identifier, output_joining_group_test,
19274         output_joining_group): New functions.
19275         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19276         fill_arabicshaping and output_joining_type_test, output_joining_type,
19277         output_joining_group_test, output_joining_group.
19278         Reported by Simon Josefsson.
19279
19280 2011-03-21  Jim Meyering  <meyering@redhat.com>
19281
19282         strftime: fix a bug in yesterday's change
19283         * lib/strftime.c (add): Accommodate width's initial value of -1.
19284         Otherwise, nstrftime would copy uninitialized data into
19285         the result buffer.
19286
19287 2011-03-21  Jim Meyering  <meyering@redhat.com>
19288
19289         tests: add strftime-tests module
19290         * tests/test-strftime.c: New file.
19291         * modules/strftime-tests: New module.
19292
19293 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19294
19295         strftime: don't assume a byte count fits in 'int'
19296         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19297         found this problem by static analysis, using gcc -Wstrict-overflow
19298         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19299         on an integer overflow having undefined behavior, but it turns out
19300         that the argument is a size, which might not fit in 'int' anyway,
19301
19302 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19303
19304         stdio: don't require ignore_value around fwrite
19305
19306         This patch works around libc bug 11959
19307         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19308         Without this patch, applications must often write
19309         ignore_value (fwrite (...)) even though the ignore_value is
19310         not helpful here.  It's common to write many objects, using
19311         fwrite/printf/etc., and then use ferror to detect output error.
19312
19313         I considered making this patch optional, but decided against it,
19314         because libc is obviously being inconsistent here: there is no
19315         reason libc should insist that user code must inspect fwrite
19316         return's value without also insisting that it inspect printf's,
19317         putchar's, etc.  If user code wants to have a strict style where
19318         all these functions' values are checked (so that ferror need not
19319         be checked), we could add support for that style in a new gnulib
19320         module, but in the meantime it's better to be consistent and to
19321         support common usage.
19322
19323         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19324         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19325         that we are compiling in checking mode, and if not C++, and
19326         if not already wrapping fwrite for some other reason.
19327         (fwrite): #define to rpl_fwrite if the latter is defined.
19328
19329 2011-03-20  Bruno Haible  <bruno@clisp.org>
19330
19331         verror: Fix compilation error introduced on 2011-02-13.
19332         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19333         instead of __attribute__.
19334         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19335
19336 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19337             Bruno Haible  <bruno@clisp.org>
19338
19339         socklen: do not depend on sys_socket
19340         While trying to modify Emacs to use gnulib's socklen module,
19341         I discovered a circular dependency: socklen depends on sys_socket
19342         and vice versa.  Emacs can use socklen, but it does not need
19343         sys_socket because it has its own substitute for sys/socket.h.
19344         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19345         gl_TYPE_SOCKLEN_T.
19346         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19347         gl_PREREQ_SYS_H_SOCKET.
19348         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19349         gl_PREREQ_SYS_H_SOCKET.
19350         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19351         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19352         * modules/socklen (Depends-on): Do not depend on sys_socket.
19353         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19354
19355 2011-03-20  Jim Meyering  <meyering@redhat.com>
19356
19357         maint.mk: sort file names *after* new transformation
19358         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19359         prefix would have led to an unwarranted failure in GNU parted.
19360         Sort after that transformation.
19361
19362 2011-03-19  Jim Meyering  <meyering@redhat.com>
19363
19364         maint.mk: fix po-file syntax-check rule
19365         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19366         Patch by Bruno Haible.
19367
19368 2011-03-19  Bruno Haible  <bruno@clisp.org>
19369
19370         socklen: Update comment.
19371         * m4/socklen.m4: Update comment about platforms.
19372
19373 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19374             Bruno Haible  <bruno@clisp.org>
19375
19376         inet_ntop, inet_pton: Simplify.
19377         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19378         documented to provide socklen_t and we already depend on sys_socket.
19379         * modules/inet_pton (Depends-on): Likewise.
19380         * lib/arpa_inet.in.h: Adjust comment.
19381
19382 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19383             Bruno Haible  <bruno@clisp.org>
19384
19385         netdb: Simplify.
19386         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19387         documented to provide socklen_t and we already depend on sys_socket.
19388         * lib/netdb.in.h: Adjust comment.
19389
19390 2011-03-19  Bruno Haible  <bruno@clisp.org>
19391
19392         sys_socket, netdb: Document problem with socklen_t.
19393         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19394         platforms.
19395         * doc/posix-headers/netdb.texi: Likewise.
19396
19397 2011-03-18  Eric Blake  <eblake@redhat.com>
19398
19399         maint.mk: let po check work in VPATH build
19400         * top/maint.mk (po_file): Allow cfg.mk override.
19401         (sc_po_check): Allow VPATH use.
19402         Reported by Jiri Denemark.
19403
19404 2011-03-16  Jim Meyering  <meyering@redhat.com>
19405
19406         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19407         Before, you would have had to create one .x-sc_ file per rule in order
19408         to exempt offending files.  Now, you may instead use a Make variable --
19409         usually defined in cfg.mk -- whose name identifies the affected rule.
19410         * top/maint.mk (_sc_excl): Define.
19411         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19412         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19413
19414 2011-03-13  Bruno Haible  <bruno@clisp.org>
19415
19416         ignore-value tests: Avoid warnings.
19417         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19418         empty for gcc < 3.4.
19419
19420 2011-03-13  Bruno Haible  <bruno@clisp.org>
19421
19422         passfd: Fix link error on Solaris.
19423         * modules/passfd (Description): Correct.
19424         (Depends-on): Add socketlib.
19425         (Link): New section.
19426         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19427
19428 2011-03-13  Bruno Haible  <bruno@clisp.org>
19429
19430         passfd: Fix link error on AIX 5.2.
19431         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19432
19433 2011-03-13  Bruno Haible  <bruno@clisp.org>
19434
19435         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19436         * lib/sys_socket.in.h: Include <stddef.h>.
19437         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19438         CMSG_FIRSTHDR. Remove unused variable.
19439
19440 2011-03-13  Bruno Haible  <bruno@clisp.org>
19441
19442         passfd: Fix compilation error on OpenBSD.
19443         * lib/passfd.c: Include <sys/uio.h>.
19444
19445 2011-03-13  Bruno Haible  <bruno@clisp.org>
19446
19447         passfd test: Fix warnings.
19448         * tests/test-passfd.c: Include <sys/wait.h>.
19449         (main): Fix typo.
19450
19451 2011-03-13  Bruno Haible  <bruno@clisp.org>
19452
19453         passfd module, part 4, tweaks.
19454         * tests/test-passfd.c: Reorder includes.
19455         (main): Fix perror and printf calls.
19456
19457 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19458
19459         passfd module, part 4.
19460         * modules/passfd-tests: New file.
19461         * tests/test-passfd.c: New file.
19462
19463 2011-03-13  Jim Meyering  <meyering@redhat.com>
19464
19465         Makefile: rely on GNU make; derive syntax-check rule names
19466         Rather than requiring that each sc_ rule be listed as a dependent
19467         of "check", use features of GNU make to derive the list.
19468         * Makefile (syntax-check-rules): Define.
19469         (check): Depend on the new variable, not the hard-coded list.
19470
19471 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19472             Bruno Haible  <bruno@clisp.org>
19473
19474         passfd module, part 3.
19475         * lib/passfd.h (recvfd): Add a flags argument.
19476         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19477         (recvfd): Add a flags argument.
19478         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19479         exists.
19480         * modules/passfd (Depends-on): Add cloexec.
19481         Suggested by Eric Blake.
19482
19483 2011-03-13  Bruno Haible  <bruno@clisp.org>
19484
19485         passfd module, part 2, tweaks.
19486         * modules/passfd (Files): Reorder.
19487         (Depends-on): Remove errno.
19488         (Include): Remove <sys/socket.h>, <sys/un.h>.
19489         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19490         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19491         specification header. Include <sys/socket.h> always. Don't include
19492         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19493         (sendfd): Clarify that it sets errno when it fails.
19494         (recvfd): Fix specification.
19495
19496 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19497
19498         passfd module, part 2.
19499         * modules/passfd: New file.
19500         * lib/passfd.h: New file.
19501         * lib/passfd.c: New file.
19502
19503 2011-03-12  Bruno Haible  <bruno@clisp.org>
19504
19505         wcswidth, mbswidth: Avoid integer overflow.
19506         * lib/wcswidth.c: Include <limits.h>.
19507         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19508         * lib/mbswidth.c: Include <limits.h>.
19509         (mbsnwidth): Avoid 'int' overflow.
19510         Reported by Jim Meyering.
19511
19512 2011-03-12  Bruno Haible  <bruno@clisp.org>
19513
19514         futimens, utimensat: Avoid endless recursion on Solaris 10.
19515         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19516         Solaris.
19517         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19518         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19519
19520 2011-03-11  Jim Meyering  <meyering@redhat.com>
19521
19522         maint.mk: relax a regexp to accommodate other formatting styles
19523         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19524         between "ngettext" and the following "(".
19525
19526 2011-03-11  Pádraig Brady <P@draigBrady.com>
19527
19528         maint.mk: suppress a false positive warning
19529         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19530         diagnostics are marked with ngettext.
19531
19532 2011-03-10  Eric Blake  <eblake@redhat.com>
19533
19534         wchar: add explicit dependencies, for Tru64
19535         * modules/mbmemcasecoll (Depends-on): Add wchar.
19536         * modules/mbtowc (Depends-on): Likewise.
19537         * modules/vasnprintf (Depends-on): Likewise.
19538         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19539         * modules/wctomb (Depends-on): Likewise.
19540         Reported by Peter O'Gorman.
19541
19542 2011-03-08  Bruno Haible  <bruno@clisp.org>
19543
19544         passfd module, part 1, tweaks.
19545         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19546         Improve indentation. Improve AC_MSG_CHECKING messages.
19547         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19548         gl_SOCKET_FAMILIES.
19549
19550 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19551
19552         passfd module, part 1.
19553         * m4/afunix.m4: New file.
19554         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19555         sockets.
19556
19557 2011-03-08  Bruno Haible  <bruno@clisp.org>
19558
19559         regex-quote: New API.
19560         * lib/regex-quote.h: Include <stdbool.h>.
19561         (struct regex_quote_spec): New type.
19562         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19563         New declarations.
19564         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19565         'const struct regex_quote_spec *' argument.
19566         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19567         (pcre_special): New constant.
19568         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19569         New functions.
19570         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19571         'const struct regex_quote_spec *' argument.
19572         * modules/regex-quote (Depends-on): Add stdbool.
19573         * tests/test-regex-quote.c (check): Update for new API. Add test for
19574         anchored results.
19575         * NEWS: Mention the API change.
19576         Reported by Reuben Thomas and Eric Blake.
19577
19578 2011-03-06  Bruno Haible  <bruno@clisp.org>
19579
19580         regex-quote: Fix creation of POSIX extended regular expressions.
19581         * lib/regex-quote.c (ere_special): Add grouping and alternation
19582         operators.
19583
19584 2011-03-05  Bruno Haible  <bruno@clisp.org>
19585
19586         doc: Improve doc regarding autopoint vs. gnulib.
19587         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19588         disable autopoint while running autoreconf.
19589         Suggested by Ralf Wildenhues.
19590
19591 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19592
19593         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19594         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19595
19596 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19597
19598         parse-duration: remove xalloc.h dependency
19599         * lib/parse-duration.c (parse_period): handle NULL return from
19600         strdup instead of calling xstrdup().
19601         * modules/parse-duration: remove "xalloc" dependency
19602
19603 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19604
19605         bootstrap: honor m4_base when running aclocal
19606         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19607
19608 2011-03-02  Jim Meyering  <meyering@redhat.com>
19609
19610         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19611         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19612         on request from Matt Booth.
19613
19614 2011-03-01  Eric Blake  <eblake@redhat.com>
19615
19616         test-link: work on Hurd
19617         * tests/test-link.h (test_link): Hurd rejects linking directories
19618         with EISDIR instead of the POSIX-mandated EPERM.
19619
19620 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19621
19622         stdio: simplify by moving files to printf-posix, sigpipe
19623         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19624         since this symbol is needed only if printf is replaced.
19625         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19626         Require gl_ASM_SYMBOL_PREFIX.
19627         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19628         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19629         (Depends-on): Add 'raise'.
19630         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19631         * modules/stdio (Files): Remove lib/stdio-write.c,
19632         m4/asm-underscore.m4.
19633         (Depends-on): Remove 'raise'.
19634
19635         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19636         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19637         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19638         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19639
19640 2011-02-28  Bruno Haible  <bruno@clisp.org>
19641
19642         localcharset: Assume ANSI C behaviour of free().
19643         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19644         calling free().
19645         Suggested by Simon Josefsson <simon@josefsson.org>.
19646
19647 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19648             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19649             Bruno Haible  <bruno@clisp.org>  (tiny change)
19650
19651         On Cygwin, use /proc file system instead of win32 API.
19652         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19653         Win32 file names.
19654         (DllMain): Simplify by removing Cygwin specific code.
19655         (find_shared_library_fullname): Use Linux specific implementation also
19656         for Cygwin.
19657         (get_shared_library_fullname): Update accordingly.
19658         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19659         Win32 file names.
19660         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19661         Cygwin specific code.
19662
19663 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19664             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19665
19666         Fix OpenMP flag detection for various Fortran compilers.
19667         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19668         OpenMP-conditional compilation construct, to force compile
19669         failure with missing OpenMP flag.
19670         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19671
19672 2011-02-25  Eric Blake  <eblake@redhat.com>
19673
19674         strstr: expand test coverage
19675         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19676         compilation.
19677         * tests/test-memmem.c (main): Duplicate tests.
19678         * tests/test-strcasestr.c (main): Likewise.
19679         * tests/test-c-strcasestr.c (main): Likewise.
19680
19681 2011-02-25  Jim Meyering  <meyering@redhat.com>
19682
19683         maint.mk: detect missing-NL-at-EOF, too
19684         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19685         it also detects when a file lacks a newline at EOF.
19686         (require_exactly_one_NL_at_EOF_): Renamed from
19687         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19688         since people may well have .x-sc_... file names tied to the
19689         existing name.  Suggested by Eric Blake.
19690
19691 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19692
19693         dirname: move m4/dos.m4 functionality into lib/dosname.h
19694
19695         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19696         extracts symbols from it, puts them into config.h; but it's much
19697         easier to use the symbols directly.  filename.h already does this,
19698         but it disagrees with dos.m4 in some respects.  This patch
19699         introduces a different include file dosname.h that packages up
19700         dos.m4, and then later we can work on merging filename.h and
19701         dosname.h.  Applications that need only the easy-to-configure
19702         symbols should consider including dosname.h rather than dirname.h.
19703         * NEWS: Mention incompatible changes.
19704         * m4/dos.m4: Remove.
19705         * lib/dosname.h, modules/dosname: New files.
19706         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19707         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19708         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19709         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19710         Include dosname.h, not dirname.h.
19711         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19712         Include dosname.h, for definitions of symbols like ISSLASH
19713         that used to be in config.h.
19714         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19715         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19716         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19717         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19718         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19719         * modules/rmdir (Files): Likewise.
19720         * modules/stat (Files): Likewise.
19721         * modules/unlink (Files): Likewise.
19722         * modules/dirname-lgpl (Depends-on): Add dosname.
19723         * modules/lstat (Depends-on): Likewise.
19724         * modules/openat (Depends-on): Likewise.
19725         * modules/rmdir (Depends-on): Likewise.
19726         * modules/savewd (Depends-on): Likewise.
19727         * modules/stat (Depends-on): Likewise.
19728         * modules/unlink (Depends-on): Likewise.
19729         * modules/openat (Depends-on): Remove dirname-lgpl.
19730         * modules/savewd (Depends-on): Likewise.
19731         * tests/test-dirname.c: Do not use removed symbols like
19732         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19733         the remaining symbols, e.g., ISSLASH ('\\').
19734
19735 2011-02-25  Eric Blake  <eblake@redhat.com>
19736
19737         strstr: revert patches that introduced bug and pessimization
19738         * lib/str-two-way.h: Add another reference.
19739         (two_way_short_needle, two_way_long_needle): Revert changes from
19740         2011-02-24; they pessimize search speed.
19741         (critical_factorization): Partially revert changes from
19742         2010-06-22; they violate the requirement that the left half of the
19743         needle be smaller than the period of the needle.
19744
19745 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19746
19747         filenamecat: remove unnecessary dependency on dirname-lgpl
19748         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19749         is no direct dependency, just an indirect one via filenamecat-lgpl.
19750
19751         remove: remove unnecessary use of m4/dos.m4
19752         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19753         * modules/remove (FILES): Remove m4/dos.m4.
19754
19755         * lib/openat-proc.c: Don't include dirname.h; not needed.
19756
19757         backupfile: remove unnecessary use of m4/dos.m4
19758         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19759         of its symbols are used by the backupfile code.  backupfile.c does
19760         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19761         for the rare case of programs that want all their backup file
19762         names to live within 8+3 limits, and dos.m4 doesn't address that.
19763         * modules/backupfile (Files): Remove m4/dos.m4.
19764
19765 2011-02-24  Jim Meyering  <meyering@redhat.com>
19766
19767         strstr: fix a bug whereby strstr would mistakenly return NULL
19768         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19769         in period calculation.
19770         (two_way_long_needle): Likewise.
19771         The original problem was reported by Mike Stump in
19772         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19773         Ralf Wildenhues provided the short needle and haystack.
19774         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19775         Add a more involved test to trigger the bug in two_way_long_needle.
19776
19777 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19778
19779         gnulib-tool: remove use of bold display in help screen
19780         * gnulib-tool (func_usage): Do not use bold display anymore in the
19781         help screen.  That was just meant to be a temporary emphasis for a
19782         backward-incompatible change.
19783
19784 2011-02-23  Bruno Haible  <bruno@clisp.org>
19785
19786         Fix misindentation of preprocessor directives.
19787         * lib/argp-namefrob.h: Reindent preprocessor directives.
19788         * lib/getopt_int.h (struct _getopt_data): Likewise.
19789         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19790         * lib/vasnprintf.c (decode_long_double): Likewise.
19791         * tests/test-argmatch.c: Insert blank lines, for clarity.
19792         * tests/test-exclude.c: Likewise.
19793
19794 2011-02-22  Bruno Haible  <bruno@clisp.org>
19795
19796         ioctl: Fix for MacOS X in 64-bit mode.
19797         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19798         value.
19799         Suggested by Eric Blake.
19800         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19801
19802 2011-02-22  Jim Meyering  <meyering@redhat.com>
19803
19804         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19805         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19806         in lib/.
19807
19808 2011-02-22  Eric Blake  <eblake@redhat.com>
19809
19810         maint: avoid any CDPATH issue
19811         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19812
19813         maint: adjust cpp indentation for my modules, as well
19814         * Makefile (sc_cpp_indent_check): Add my name.
19815         * lib/fbufmode.c: Filter through cppi.
19816         * lib/fpurge.c: Likewise.
19817         * lib/freadable.c: Likewise.
19818         * lib/freading.c: Likewise.
19819         * lib/fwritable.c: Likewise.
19820         * lib/fwriting.c: Likewise.
19821         * lib/sigaction.c: Likewise.
19822
19823 2011-02-22  Jim Meyering  <meyering@redhat.com>
19824
19825         maint: adjust cpp indentation to reflect nesting depth
19826         I.e., in a block of code that begins with an unnested "#if",
19827         put one space between the "#" in column 1 and following token.
19828         For example,
19829         -#include <sys/vfs.h>
19830         +# include <sys/vfs.h>
19831         Do this only in .c files that are part of a module I maintain.
19832         * lib/linkat.c: Filter through cppi.
19833         * lib/nanosleep.c: Likewise.
19834         * lib/openat.c: Likewise.
19835         * lib/openat-die.c: Likewise.
19836         * lib/dup3.c: Likewise.
19837         * lib/fchownat.c: Likewise.
19838         * lib/flock.c: Likewise.
19839         * lib/fsync.c: Likewise.
19840         * lib/fts.c: Likewise.
19841         * lib/getpass.c: Likewise.
19842         * lib/gettimeofday.c: Likewise.
19843         * lib/userspec.c: Likewise.
19844         * Makefile (sc_cpp_indent_check): New rule, to check this.
19845
19846 2011-02-22  Bruno Haible  <bruno@clisp.org>
19847
19848         New module 'wctomb'.
19849         * lib/stdlib.in.h (wctomb): New declaration.
19850         * lib/wctomb.c: New file.
19851         * lib/wctomb-impl.h: New file.
19852         * m4/wctomb.m4: New file.
19853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19854         REPLACE_WCTOMB.
19855         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19856         REPLACE_WCTOMB.
19857         * modules/wctomb: New file.
19858         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19859         * doc/posix-functions/wctomb.texi: Mention the new module.
19860         * modules/wctob (Depends-on): Add wctomb.
19861
19862 2011-02-22  Bruno Haible  <bruno@clisp.org>
19863
19864         New module 'mbtowc'.
19865         * lib/stdlib.in.h (mbtowc): New declaration.
19866         * lib/mbtowc.c: New file.
19867         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19868         * m4/mbtowc.m4: New file.
19869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19870         REPLACE_MBTOWC.
19871         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19872         REPLACE_MBTOWC.
19873         * modules/mbtowc: New file.
19874         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19875         * doc/posix-functions/mbtowc.texi: Mention the new module.
19876         * modules/btowc (Depends-on): Add mbtowc.
19877
19878 2011-02-22  Bruno Haible  <bruno@clisp.org>
19879
19880         wcrtomb: Add more tests for native Windows platforms.
19881         * tests/test-wcrtomb-w32-1.sh: New file.
19882         * tests/test-wcrtomb-w32-2.sh: New file.
19883         * tests/test-wcrtomb-w32-3.sh: New file.
19884         * tests/test-wcrtomb-w32-4.sh: New file.
19885         * tests/test-wcrtomb-w32-5.sh: New file.
19886         * tests/test-wcrtomb-w32.c: New file.
19887         * modules/wcrtomb-tests (Files): Add them.
19888         (Makefile.am): Arrange to run these tests.
19889         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19890         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19891
19892 2011-02-20  Bruno Haible  <bruno@clisp.org>
19893
19894         wcrtomb: Enhance test.
19895         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19896
19897 2011-02-20  Bruno Haible  <bruno@clisp.org>
19898
19899         mbrtowc: Tiny optimization.
19900         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19901
19902 2011-02-20  Jim Meyering  <meyering@redhat.com>
19903
19904         test-exclude.c: remove unmatched #endif
19905         * tests/test-exclude.c: Remove stray #endif, left over from
19906         the change of a week ago.
19907
19908 2011-02-19  Jim Meyering  <meyering@redhat.com>
19909
19910         git-version-gen: skip "-dirty" check when appropriate
19911         * build-aux/git-version-gen: Don't run any git commands when the
19912         version string comes from .tarball-version.  Prior to this, we
19913         would run git update-index --refresh even from a just-unpacked
19914         tarball directory, and that could affect a .git/ directory in a
19915         parent of the build directory.  Reported by Mike Frysinger.
19916
19917 2011-02-19  Bruno Haible  <bruno@clisp.org>
19918
19919         unictype/property-byname: Reduce the size of the 'data' segment.
19920         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19921
19922 2011-02-19  Bruno Haible  <bruno@clisp.org>
19923
19924         unictype/scripts: Reduce the size of the 'data' segment.
19925         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19926         '%pic'.
19927         * lib/unictype/scripts_byname.gperf: Regenerated.
19928
19929 2011-02-19  Bruno Haible  <bruno@clisp.org>
19930
19931         stdint: Update documentation.
19932         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19933
19934 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19935
19936         stdint: omit redundant check for wchar.h
19937         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19938         always tests whether wchar.h exists, so remove the now-redundant test.
19939
19940 2011-02-18  Bruno Haible  <bruno@clisp.org>
19941
19942         stdint: Cut dependency to module 'wchar'.
19943         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19944         include the necessary prerequisites.
19945         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19946         * modules/stdint (Depends-on): Remove wchar.
19947         (Makefile.am): Substitute HAVE_WCHAR_H.
19948         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19949
19950 2011-02-18  Eric Blake  <eblake@redhat.com>
19951
19952         longlong: skip, rather than fail, on cross-compilation
19953         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19954         when cross-compiling; regression from 2011-02-16.
19955
19956 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19957
19958         * NEWS: Mention 2011-02-08 change to stdlib.
19959
19960 2011-02-17  Bruno Haible  <bruno@clisp.org>
19961
19962         getloadavg: Add comments about platforms.
19963         * m4/getloadavg.m4: Add comment.
19964         * lib/getloadavg.c: Likewise.
19965
19966 2011-02-17  Bruno Haible  <bruno@clisp.org>
19967
19968         getloadavg: Fix link error on Solaris 2.6.
19969         * modules/getloadavg (Link): New section.
19970         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19971         linking test-getloadavg.
19972         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19973         getloadavg.
19974
19975 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19976
19977         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19978         It was 'int', but this doesn't match the IRIX 6.5 manual.
19979         Suggested by Bruno Haible in
19980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19981
19982 2011-02-17  Bruno Haible  <bruno@clisp.org>
19983
19984         havelib: Fix comments.
19985         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19986         change.
19987
19988 2011-02-17  Bruno Haible  <bruno@clisp.org>
19989
19990         havelib: Update config.rpath.
19991         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19992
19993 2011-02-17  Bruno Haible  <bruno@clisp.org>
19994
19995         getloadavg test: Add some plausibility checks.
19996         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19997         is improbable.
19998
19999 2011-02-16  Eric Blake  <eblake@redhat.com>
20000
20001         maintainer-makefile: make syntax-check a no-op from tarballs
20002         * top/maint.mk (no-vc-detected): New rule.
20003         (local-checks-available): Use it to avoid hanging if someone tries
20004         'make syntax-check' from a tarball.  Also append to any non-syntax
20005         checks already defined in cfg.mk.
20006
20007 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20008
20009         longlong: tune, particularly for common case of c99
20010
20011         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20012         or running anything if c99, or if unsigned long long int does not
20013         work.  In either case, we know the answer without further tests.
20014         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20015         it at most once, and use its results for both long long int and
20016         unsigned long long int.  This is more likely to be efficient in
20017         the common case where the program wants to check for both long
20018         long int and unsigned long long int.
20019         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20020         since the answer is already known.
20021
20022 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20023
20024         getloadavg: set errno
20025         * lib/getloadavg.c: Set errno when returning -1.  If no other
20026         error number looks appropriate, set it to ENOSYS if the getloadavg
20027         looks like it can't possibly ever work, ENOTSUP otherwise.
20028         Suggested by Bruno Haible in
20029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20030
20031         getloadavg: trim unused parts and speed up 'configure'
20032         * NEWS: Document this.
20033         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20034         always compiled if getloadavg is absent.
20035         Move test code to ...
20036         * tests/test-getloadavg.c: New file, containing previous
20037         contents of test from lib/getloadavg.c.  It also contains
20038         suggestions by Bruno Haible in
20039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20040         * modules/getloadavg-tests: New file.
20041         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20042         Do tests in the same order as they're needed for getloadavg.c.
20043         Omit setgid-related tests that generate symbols KMEM_GROUP,
20044         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20045         Do only the tests that are needed to see whether the system has
20046         getloadavg, moving the other tests into ...
20047         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20048         NLIST_NAME_UNION; nobody should be using it.  Do not define
20049         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20050         relevant, as the user of this module shouldn't care how getloadavg
20051         is implemented.
20052
20053         getloadavg: omit unused var
20054         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20055
20056 2011-02-15  Jim Meyering  <meyering@redhat.com>
20057
20058         doc: update users.txt
20059         * users.txt: Update iwhd's URL.
20060
20061 2011-02-13  Bruno Haible  <bruno@clisp.org>
20062
20063         Consistent macro naming for macros that use GCC __attribute__.
20064         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20065         _ATTRIBUTE_NONNULL_.
20066         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20067         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20068         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20069         ATTRIBUTE_DEPRECATED.
20070         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20071         ATTRIBUTE_NORETURN.
20072         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20073         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20074         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20075         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20076         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20077         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20078         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20079         ATTRIBUTE_SENTINEL.
20080         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20081         ATTRIBUTE_RETURN_CHECK.
20082         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20083         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20084         ATTRIBUTE_NORETURN.
20085         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20086         Reported by Paul Eggert.
20087
20088 2011-02-13  Bruno Haible  <bruno@clisp.org>
20089
20090         Don't interfere with a program's definition of __attribute__.
20091         * lib/argp.h (__attribute__): Remove definition.
20092         (_GL_ATTRIBUTE_FORMAT): New macro.
20093         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20094         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20095         (_GL_ATTRIBUTE_FORMAT): New macro.
20096         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20097         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20098         GCC 3 or newer.
20099         * lib/error.h (__attribute__): Remove definition.
20100         (_GL_ATTRIBUTE_FORMAT): New macro.
20101         (error, error_at_line): Use it.
20102         * lib/hash.h (__attribute__): Remove definition.
20103         (ATTRIBUTE_WUR): Update definition. Define always.
20104         * lib/openat.h (__attribute__): Remove definition.
20105         (ATTRIBUTE_NORETURN): Update definition. Define always.
20106         * lib/sigpipe-die.h (__attribute__): Remove definition.
20107         (ATTRIBUTE_NORETURN): Update definition. Define always.
20108         * lib/vasnprintf.h (__attribute__): Remove definition.
20109         (_GL_ATTRIBUTE_FORMAT): New macro.
20110         (asnprintf, vasnprintf): Use it.
20111         * lib/xalloc.h (__attribute__): Remove definition.
20112         (ATTRIBUTE_NORETURN): Update definition. Define always.
20113         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20114         * lib/xmemdup0.h (__attribute__): Remove definition.
20115         (ATTRIBUTE_NORETURN): Update definition. Define always.
20116         * lib/xprintf.h (__attribute__): Remove definition.
20117         (_GL_ATTRIBUTE_FORMAT): New macro.
20118         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20119         * lib/xstrtol.h (__attribute__): Remove definition.
20120         (ATTRIBUTE_NORETURN): Update definition. Define always.
20121         * lib/xvasprintf.h (__attribute__): Remove definition.
20122         (_GL_ATTRIBUTE_FORMAT): New macro.
20123         (xasprintf, xvasprintf): Use it.
20124         * tests/test-argmatch.c (__attribute__): Remove definition.
20125         (ATTRIBUTE_NORETURN): Update definition. Define always.
20126         * tests/test-exclude.c (__attribute__): Remove definition.
20127         (ATTRIBUTE_NORETURN): Update definition. Define always.
20128         Reported by Paul Eggert.
20129
20130 2011-02-13  Bruno Haible  <bruno@clisp.org>
20131
20132         mbrtowc: Add more tests for native Windows platforms.
20133         * tests/test-mbrtowc-w32-1.sh: New file.
20134         * tests/test-mbrtowc-w32-2.sh: New file.
20135         * tests/test-mbrtowc-w32-3.sh: New file.
20136         * tests/test-mbrtowc-w32-4.sh: New file.
20137         * tests/test-mbrtowc-w32-5.sh: New file.
20138         * tests/test-mbrtowc-w32.c: New file.
20139         * modules/mbrtowc-tests (Files): Add them.
20140         (Makefile.am): Arrange to run these tests.
20141         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20142         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20143
20144 2011-02-13  Bruno Haible  <bruno@clisp.org>
20145
20146         mbrtowc: Work around native Windows bug.
20147         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20148         guess when no suitable locale for testing was found.
20149         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20150
20151 2011-02-13  Bruno Haible  <bruno@clisp.org>
20152
20153         mbsinit: Work around mingw bug.
20154         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20155         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20156         Windows.
20157         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20158
20159 2011-02-13  Bruno Haible  <bruno@clisp.org>
20160
20161         mbsinit: Don't crash for a NULL argument.
20162         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20163         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20164
20165 2011-02-13  Bruno Haible  <bruno@clisp.org>
20166
20167         Don't interfere with a program's definition of __attribute__.
20168         * lib/stdio.in.h (__attribute__): Remove definition.
20169         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20170         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20171         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20172         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20173         * lib/string.in.h (__attribute__): Remove definition.
20174         Reported by Paul Eggert.
20175
20176 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20177
20178         stdlib: don't get in the way of non-GCC __attribute__
20179         See thread starting at
20180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20181         Revert previous stdlib change, installing the following instead:
20182         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20183         to get in the way of a non-GCC compiler that supports __attribute__.
20184         (_GL_ATTRIBUTE_RETURN): New macro.
20185         (_Exit): Use it instead of __attribute__.
20186
20187 2011-02-12  Bruno Haible  <bruno@clisp.org>
20188
20189         quotearg test: Avoid test failure on mingw.
20190         * tests/test-quotearg.sh: Convert the locale identifier from native
20191         Windows syntax to Unix syntax.
20192
20193 2011-02-12  Bruno Haible  <bruno@clisp.org>
20194
20195         setlocale: Prefer gnulib's override over libintl's override.
20196         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20197         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20198         GNULIB_defined_setlocale is set.
20199
20200 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20201
20202         stdlib: support non-GCC __attribute__
20203
20204         Fix a serious and tricky problem encountered when attempting to
20205         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20206         5.5, but it crashed due to memory corruption on Solaris 10 with
20207         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20208         bits that are otherwise zero.  This tagging is optional inside
20209         Emacs but is preferred and is used when __attribute__ ((__aligned
20210         (8))) works, as it does with both recent-enough GCC and with Sun C
20211         5.11.  However, Sun C 5.11 is not GCC and does not #define
20212         __GNUC__ and __GNUC_MINOR__.
20213
20214         When I added the getloadavg module to Emacs, it brought in
20215         stdlib.in.h, which contained this fragment:
20216
20217            #ifndef __attribute__
20218            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20219            #  define __attribute__(Spec)   /* empty */
20220            # endif
20221            #endif
20222
20223         When files that include <stdlib.h> were compiled with Sun C 5.11,
20224         the above code disabled __attribute__ ((__aligned (8))), which
20225         caused variables to not be properly aligned, which eventually led
20226         to the pointer corruption mentioned above.  (This was a bit hard
20227         to diagnose, unfortunately.)
20228
20229         Several "#define __attribute__(X) /* empty */" code snippets need
20230         to be eradicated from Gnulib to work with non-GCC compilers that
20231         support __attribute__.  The Autoconf way to do this is to test for
20232         each kind of attribute that we want support for, and selectively
20233         enable that in source code.
20234
20235         Fix this problem just for stdlib.h, by adding a test for the
20236         __noreturn__ attribute, and change stdlib.in.h to use that test
20237         when needed.  This technique can be easily generalized to the
20238         other *.in.h files and attributes, and a similar technique can be
20239         used for *.h and *.c files.  This patch is enough to solve the
20240         problem for Emacs + getloadavg, and I thought I'd publish it for
20241         feedback before undertaking further, similar fixes in other
20242         modules.
20243
20244         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20245         because it's not needed for stdlib.h.  It merely substitutes the
20246         value directly into stdlib.h.  We may well need to #define it, or
20247         similar symbols, for other modules, but it's nice to also have an
20248         option to not #define it for applications like Emacs that do not
20249         need it.
20250
20251         * lib/stdlib.in.h (__attribute__): Do not #define.
20252         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20253         be defined only if the _Exit module is also used.
20254         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20256         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20257         platforms.
20258         * modules/_Exit (Files): Add m4/attribute.m4.
20259         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20260         * m4/attribute.m4: New file.
20261
20262 2011-02-12  Bruno Haible  <bruno@clisp.org>
20263
20264         wcsrtombs: Work around bug on native Windows.
20265         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20266         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20267         instead of len.
20268         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20269
20270 2011-02-12  Bruno Haible  <bruno@clisp.org>
20271
20272         mbsrtowcs: Work around bug on native Windows.
20273         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20274         against mingw bug.
20275         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20276
20277 2011-02-12  Bruno Haible  <bruno@clisp.org>
20278
20279         Avoid setlocale bugs in tests.
20280         * modules/btowc (Dependencies): Add setlocale.
20281         * modules/c-strcase (Dependencies): Likewise.
20282         * modules/mbmemcasecmp (Dependencies): Likewise.
20283         * modules/mbmemcasecoll (Dependencies): Likewise.
20284         * modules/mbrtowc (Dependencies): Likewise.
20285         * modules/mbscasecmp (Dependencies): Likewise.
20286         * modules/mbscasestr (Dependencies): Likewise.
20287         * modules/mbschr (Dependencies): Likewise.
20288         * modules/mbscspn (Dependencies): Likewise.
20289         * modules/mbsinit (Dependencies): Likewise.
20290         * modules/mbsncasecmp (Dependencies): Likewise.
20291         * modules/mbsnrtowcs (Dependencies): Likewise.
20292         * modules/mbspbrk (Dependencies): Likewise.
20293         * modules/mbspcasecmp (Dependencies): Likewise.
20294         * modules/mbsrchr (Dependencies): Likewise.
20295         * modules/mbsrtowcs (Dependencies): Likewise.
20296         * modules/mbsspn (Dependencies): Likewise.
20297         * modules/mbsstr (Dependencies): Likewise.
20298         * modules/nl_langinfo (Dependencies): Likewise.
20299         * modules/quotearg (Dependencies): Likewise.
20300         * modules/unicase/locale-language (Dependencies): Likewise.
20301         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20302         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20303         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20304         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20305         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20306         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20307         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20308         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20309         * modules/vasnprintf-posix (Dependencies): Likewise.
20310         * modules/wcrtomb (Dependencies): Likewise.
20311         * modules/wcsnrtombs (Dependencies): Likewise.
20312         * modules/wcsrtombs (Dependencies): Likewise.
20313
20314 2011-02-12  Bruno Haible  <bruno@clisp.org>
20315
20316         setlocale: Workaround native Windows bug.
20317         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20318         succeeds but sets LC_CTYPE to "C", report a failure.
20319         * tests/test-setlocale2.sh: New file.
20320         * tests/test-setlocale2.c: New file.
20321         * modules/setlocale-tests (Files): Add the new files.
20322         (Makefile.am): Enable test-setlocale2.sh test.
20323         * doc/posix-functions/setlocale.texi: Mention workaround.
20324
20325 2011-02-11  Bruno Haible  <bruno@clisp.org>
20326
20327         Tests for module 'setlocale'.
20328         * modules/setlocale-tests: New file.
20329         * tests/test-setlocale1.sh: New file.
20330         * tests/test-setlocale1.c: New file.
20331
20332         New module 'setlocale'.
20333         * lib/locale.in.h (setlocale): New declaration.
20334         * lib/setlocale.c: New file, based on
20335         gettext/gettext-runtime/intl/setlocale.c.
20336         * m4/setlocale.m4: New file.
20337         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20338         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20339         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20340         REPLACE_SETLOCALE.
20341         * modules/setlocale: New file.
20342         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20343         * doc/posix-functions/setlocale.texi: Mention the new module.
20344
20345 2011-02-11  Bruno Haible  <bruno@clisp.org>
20346
20347         Prepare for locale dependent tests on mingw.
20348         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20349         because it has the wrong locale encoding.
20350         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20351         French_France.1252 instead of "fr".
20352         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20353         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20354         because it has the wrong locale encoding.
20355         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20356         native Windows, try Turkish_Turkey.65001.
20357         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20358         Chinese_China.54936.
20359
20360         Prepare for locale dependent tests on mingw.
20361         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20362         differently.
20363         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20364         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20365         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20366         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20367
20368 2011-02-11  Eric Blake  <eblake@redhat.com>
20369
20370         strptime: avoid compiler warnings
20371         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20372         compiler warnings about dead code.
20373         Reported by Daniel P. Berrange.
20374
20375 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20376
20377         doc: update users.txt
20378         * users.txt: Add rcs.
20379
20380 2011-02-10  John W. Eaton  <jwe@gnu.org>
20381
20382         doc: update users.txt
20383         * users.txt: Add octave.
20384
20385 2011-02-10  Jim Meyering  <meyering@redhat.com>
20386
20387         doc: update users.txt
20388         * users.txt: Add iwhd.
20389
20390 2011-02-09  Bruno Haible  <bruno@clisp.org>
20391
20392         gnulib-tool: Make copyright notice adjustment more robust.
20393         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20394         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20395         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20396         License".
20397         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20398
20399 2011-02-06  Bruno Haible  <bruno@clisp.org>
20400
20401         New module 'towctrans'.
20402         * modules/towctrans: New file.
20403         * lib/wctype.in.h (towctrans): New declaration.
20404         * lib/towctrans.c: New file.
20405         * lib/towctrans-impl.h: New file.
20406         * m4/towctrans.m4: New file.
20407         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20408         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20409         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20410         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20411         * doc/posix-functions/towctrans.texi: Mention the new module.
20412
20413 2011-02-06  Bruno Haible  <bruno@clisp.org>
20414
20415         New module 'wctrans'.
20416         * modules/wctrans: New file.
20417         * lib/wctype.in.h (wctrans): New declaration.
20418         * lib/wctrans.c: New file.
20419         * lib/wctrans-impl.h: New file.
20420         * m4/wctrans.m4: New file.
20421         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20422         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20423         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20424         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20425         * doc/posix-functions/wctrans.texi: Mention the new module.
20426
20427 2011-02-06  Bruno Haible  <bruno@clisp.org>
20428
20429         New module 'iswctype'.
20430         * modules/iswctype: New file.
20431         * lib/wctype.in.h (iswctype): New declaration.
20432         * lib/iswctype.c: New file.
20433         * lib/iswctype-impl.h: New file.
20434         * m4/iswctype.m4: New file.
20435         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20436         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20437         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20438         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20439         * doc/posix-functions/iswctype.texi: Mention the new module and the
20440         HP-UX 11.00 problem.
20441
20442 2011-02-06  Bruno Haible  <bruno@clisp.org>
20443
20444         New module 'wctype'.
20445         * modules/wctype: Change to represent the wctype() substitute.
20446         * lib/wctype.in.h (wctype): New declaration.
20447         * lib/wctype.c: New file.
20448         * lib/wctype-impl.h: New file.
20449         * m4/wctype.m4: New file.
20450         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20451         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20452         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20453         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20454         * doc/posix-functions/wctype.texi: Mention the new module and the
20455         HP-UX 11.00 problem.
20456
20457 2011-02-06  Bruno Haible  <bruno@clisp.org>
20458
20459         wctype-h: Ensure wctype_t and wctrans_t are defined.
20460         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20461         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20462         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20463         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20464         HAVE_WCTRANS_T.
20465         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20466
20467 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20468
20469         flock: fix license typo
20470
20471         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20472         omitted.
20473
20474 2011-02-08  Bruno Haible  <bruno@clisp.org>
20475
20476         Split large sed scripts, for HP-UX sed.
20477         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20478         to avoid HP-UX limit of 99 commands, in the near future.
20479         * modules/stdlib (Makefile.am): Likewise.
20480         * modules/unistd (Makefile.am): Likewise.
20481         * modules/wchar (Makefile.am): Likewise.
20482         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20483         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20484         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20485
20486 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20487             Bruno Haible  <bruno@clisp.org>
20488
20489         stdlib: improve random_r modularization
20490         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20491         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20492         you also need the random_r module to get this material right.
20493         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20494         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20495         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20496
20497 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20498
20499         stdlib: don't depend on stdint
20500         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20501         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20502         be independent of whether stdint.h is needed.
20503         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20504         here, instead of ...
20505         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20506         struct random_data should be using the random_r module, not just
20507         the stdlib module (which wouldn't make sense: what package needs
20508         just struct random_data without also needing random_r?).
20509         * modules/stdlib (Depends-on): Remove stdint.
20510
20511         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20512         See the thread rooted at
20513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20514         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20515         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20516         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20517         __VMS)); previously it was always included (via fcntl--.h).
20518         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20519         hand; this is good enough for load averages.  Also, do not use
20520         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20521         flags directly if available and don't bother otherwise.  (Packages
20522         that need the extra reliability should use the modules that define
20523         these flags on older platforms that lack them.)
20524         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20525         fcntl-safer.
20526
20527 2011-02-08  Jim Meyering  <meyering@redhat.com>
20528
20529         di-set.h, ino-map.h: add multiple-inclusion guard
20530         Technically, the guard is required only for ino-map.h, due to its
20531         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20532         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20533         * lib/ino-map.h: Likewise.
20534
20535 2011-02-06  Bruno Haible  <bruno@clisp.org>
20536
20537         iswblank: Ensure declaration on glibc systems.
20538         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20539         * modules/iswblank (Dependencies): Add 'extensions'.
20540         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20541
20542 2011-02-06  Bruno Haible  <bruno@clisp.org>
20543
20544         New module 'iswblank'.
20545         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20546         * modules/iswblank: New file.
20547         * modules/wctype-h (Files): Remove lib/iswblank.c.
20548         (Makefile.am): Substitute GNULIB_ISWBLANK.
20549         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20550         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20551         (gl_WCTYPE_H_DEFAULTS): New macro.
20552         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20553         * modules/iswblank-tests: New file.
20554         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20555         * tests/test-wctype-h.c (main): Remove iswblank tests.
20556         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20557         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20558         of 'wctype-h'.
20559         * NEWS: Mention the change.
20560         * modules/mbchar (Depends-on): Add iswblank.
20561
20562 2011-02-08  Bruno Haible  <bruno@clisp.org>
20563
20564         di-set tests: Refactor.
20565         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20566         unnecessary includes.
20567         (ASSERT): Remove macro.
20568         (main): Make C90 compliant by avoiding variable declaration after
20569         statement.
20570         * modules/di-set-tests (Files): Add tests/macros.h.
20571
20572 2011-02-08  Bruno Haible  <bruno@clisp.org>
20573
20574         ino-map tests: Refactor.
20575         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20576         unnecessary includes.
20577         (ASSERT): Remove macro.
20578         (main): Make C90 compliant by avoiding variable declaration after
20579         statement.
20580         * modules/ino-map-tests (Files): Add tests/macros.h.
20581
20582 2011-02-08  Jim Meyering  <meyering@redhat.com>
20583
20584         di-set: add "const" to a cast
20585         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20586         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20587
20588 2011-02-06  Bruno Haible  <bruno@clisp.org>
20589
20590         Rename module 'wctype' to 'wctype-h'.
20591         * modules/wctype-h: Renamed from modules/wctype.
20592         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20593         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20594         (Files, Depends-on, Makefile.am): Update.
20595         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20596         (Files, Makefile.am): Update.
20597         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20598         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20599         * doc/posix-headers/wctype.texi: Update.
20600         * doc/posix-functions/iswalnum.texi: Update.
20601         * doc/posix-functions/iswalpha.texi: Update.
20602         * doc/posix-functions/iswblank.texi: Update.
20603         * doc/posix-functions/iswcntrl.texi: Update.
20604         * doc/posix-functions/iswdigit.texi: Update.
20605         * doc/posix-functions/iswgraph.texi: Update.
20606         * doc/posix-functions/iswlower.texi: Update.
20607         * doc/posix-functions/iswprint.texi: Update.
20608         * doc/posix-functions/iswpunct.texi: Update.
20609         * doc/posix-functions/iswspace.texi: Update.
20610         * doc/posix-functions/iswupper.texi: Update.
20611         * doc/posix-functions/iswxdigit.texi: Update.
20612         * doc/posix-functions/towlower.texi: Update.
20613         * doc/posix-functions/towupper.texi: Update.
20614         * NEWS: Mention the change.
20615         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20616         * modules/mbchar (Dependencies): Likewise.
20617         * modules/mbswidth (Dependencies): Likewise.
20618         * modules/quotearg (Dependencies): Likewise.
20619         * modules/regex (Dependencies): Likewise.
20620         * modules/wcscasecmp (Dependencies): Likewise.
20621         * modules/wcsncasecmp (Dependencies): Likewise.
20622         * modules/wcwidth (Dependencies): Likewise.
20623
20624 2011-02-06  Bruno Haible  <bruno@clisp.org>
20625
20626         New module 'wcswidth'.
20627         * modules/wcswidth: New file.
20628         * lib/wchar.in.h (wcswidth): New declaration.
20629         * lib/wcswidth.c: New file.
20630         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20631         * m4/wcswidth.m4: New file.
20632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20634         REPLACE_WCSWIDTH.
20635         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20636         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20637         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20638         * doc/posix-functions/wcswidth.texi: Mention the new module.
20639
20640 2011-02-06  Bruno Haible  <bruno@clisp.org>
20641
20642         New module 'wcstok'.
20643         * modules/wcstok: New file.
20644         * lib/wchar.in.h (wcstok): New declaration.
20645         * lib/wcstok.c: New file.
20646         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20647         * m4/wcstok.m4: New file.
20648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20651         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20652         * doc/posix-functions/wcstok.texi: Mention the new module.
20653
20654 2011-02-06  Bruno Haible  <bruno@clisp.org>
20655
20656         New module 'wcsstr'.
20657         * modules/wcsstr: New file.
20658         * lib/wchar.in.h (wcsstr): New declaration.
20659         * lib/wcsstr.c: New file.
20660         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20661         * m4/wcsstr.m4: New file.
20662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20665         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20666         * doc/posix-functions/wcsstr.texi: Mention the new module.
20667
20668 2011-02-06  Bruno Haible  <bruno@clisp.org>
20669
20670         New module 'wcspbrk'.
20671         * modules/wcspbrk: New file.
20672         * lib/wchar.in.h (wcspbrk): New declaration.
20673         * lib/wcspbrk.c: New file.
20674         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20675         * m4/wcspbrk.m4: New file.
20676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20678         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20679         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20680         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20681
20682 2011-02-06  Bruno Haible  <bruno@clisp.org>
20683
20684         New module 'wcsspn'.
20685         * modules/wcsspn: New file.
20686         * lib/wchar.in.h (wcsspn): New declaration.
20687         * lib/wcsspn.c: New file.
20688         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20689         * m4/wcsspn.m4: New file.
20690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20693         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20694         * doc/posix-functions/wcsspn.texi: Mention the new module.
20695
20696 2011-02-06  Bruno Haible  <bruno@clisp.org>
20697
20698         New module 'wcscspn'.
20699         * modules/wcscspn: New file.
20700         * lib/wchar.in.h (wcscspn): New declaration.
20701         * lib/wcscspn.c: New file.
20702         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20703         * m4/wcscspn.m4: New file.
20704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20707         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20708         * doc/posix-functions/wcscspn.texi: Mention the new module.
20709
20710 2011-02-06  Bruno Haible  <bruno@clisp.org>
20711
20712         New module 'wcsrchr'.
20713         * modules/wcsrchr: New file.
20714         * lib/wchar.in.h (wcsrchr): New declaration.
20715         * lib/wcsrchr.c: New file.
20716         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20717         * m4/wcsrchr.m4: New file.
20718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20721         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20722         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20723
20724 2011-02-06  Bruno Haible  <bruno@clisp.org>
20725
20726         New module 'wcschr'.
20727         * modules/wcschr: New file.
20728         * lib/wchar.in.h (wcschr): New declaration.
20729         * lib/wcschr.c: New file.
20730         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20731         * m4/wcschr.m4: New file.
20732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20735         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20736         * doc/posix-functions/wcschr.texi: Mention the new module.
20737
20738 2011-02-06  Bruno Haible  <bruno@clisp.org>
20739
20740         New module 'wcsdup'.
20741         * modules/wcsdup: New file.
20742         * lib/wchar.in.h (wcsdup): New declaration.
20743         * lib/wcsdup.c: New file.
20744         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20745         * m4/wcsdup.m4: New file.
20746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20749         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20750         * doc/posix-functions/wcsdup.texi: Mention the new module.
20751
20752 2011-02-06  Bruno Haible  <bruno@clisp.org>
20753
20754         New module 'wcsxfrm'.
20755         * modules/wcsxfrm: New file.
20756         * lib/wchar.in.h (wcsxfrm): New declaration.
20757         * lib/wcsxfrm.c: New file.
20758         * lib/wcsxfrm-impl.h: New file.
20759         * m4/wcsxfrm.m4: New file.
20760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20762         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20763         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20764         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20765
20766 2011-02-06  Bruno Haible  <bruno@clisp.org>
20767
20768         New module 'wcscoll'.
20769         * modules/wcscoll: New file.
20770         * lib/wchar.in.h (wcscoll): New declaration.
20771         * lib/wcscoll.c: New file.
20772         * lib/wcscoll-impl.h: New file.
20773         * m4/wcscoll.m4: New file.
20774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20777         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20778         * doc/posix-functions/wcscoll.texi: Mention the new module.
20779
20780 2011-02-06  Bruno Haible  <bruno@clisp.org>
20781
20782         New module 'wcsncasecmp'.
20783         * modules/wcsncasecmp: New file.
20784         * lib/wchar.in.h (wcsncasecmp): New declaration.
20785         * lib/wcsncasecmp.c: New file.
20786         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20787         * m4/wcsncasecmp.m4: New file.
20788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20791         HAVE_WCSNCASECMP.
20792         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20793         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20794
20795 2011-02-06  Bruno Haible  <bruno@clisp.org>
20796
20797         New module 'wcscasecmp'.
20798         * modules/wcscasecmp: New file.
20799         * lib/wchar.in.h (wcscasecmp): New declaration.
20800         * lib/wcscasecmp.c: New file.
20801         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20802         * m4/wcscasecmp.m4: New file.
20803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20805         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20806         HAVE_WCSCASECMP.
20807         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20808         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20809
20810 2011-02-05  Bruno Haible  <bruno@clisp.org>
20811
20812         New module 'wcsncmp'.
20813         * modules/wcsncmp: New file.
20814         * lib/wchar.in.h (wcsncmp): New declaration.
20815         * lib/wcsncmp.c: New file.
20816         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20817         * m4/wcsncmp.m4: New file.
20818         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20819         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20820         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20821         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20822         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20823
20824 2011-02-05  Bruno Haible  <bruno@clisp.org>
20825
20826         New module 'wcscmp'.
20827         * modules/wcscmp: New file.
20828         * lib/wchar.in.h (wcscmp): New declaration.
20829         * lib/wcscmp.c: New file.
20830         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20831         * m4/wcscmp.m4: New file.
20832         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20833         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20834         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20835         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20836         * doc/posix-functions/wcscmp.texi: Mention the new module.
20837
20838 2011-02-05  Bruno Haible  <bruno@clisp.org>
20839
20840         New module 'wcsncat'.
20841         * modules/wcsncat: New file.
20842         * lib/wchar.in.h (wcsncat): New declaration.
20843         * lib/wcsncat.c: New file.
20844         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20845         * m4/wcsncat.m4: New file.
20846         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20847         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20848         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20849         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20850         * doc/posix-functions/wcsncat.texi: Mention the new module.
20851
20852 2011-02-05  Bruno Haible  <bruno@clisp.org>
20853
20854         New module 'wcscat'.
20855         * modules/wcscat: New file.
20856         * lib/wchar.in.h (wcscat): New declaration.
20857         * lib/wcscat.c: New file.
20858         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20859         * m4/wcscat.m4: New file.
20860         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20861         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20862         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20863         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20864         * doc/posix-functions/wcscat.texi: Mention the new module.
20865
20866 2011-02-05  Bruno Haible  <bruno@clisp.org>
20867
20868         New module 'wcpncpy'.
20869         * modules/wcpncpy: New file.
20870         * lib/wchar.in.h (wcpncpy): New declaration.
20871         * lib/wcpncpy.c: New file.
20872         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20873         * m4/wcpncpy.m4: New file.
20874         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20875         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20876         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20877         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20878         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20879
20880 2011-02-05  Bruno Haible  <bruno@clisp.org>
20881
20882         New module 'wcsncpy'.
20883         * modules/wcsncpy: New file.
20884         * lib/wchar.in.h (wcsncpy): New declaration.
20885         * lib/wcsncpy.c: New file.
20886         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20887         * m4/wcsncpy.m4: New file.
20888         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20889         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20890         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20891         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20892         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20893
20894 2011-02-05  Bruno Haible  <bruno@clisp.org>
20895
20896         New module 'wcpcpy'.
20897         * modules/wcpcpy: New file.
20898         * lib/wchar.in.h (wcpcpy): New declaration.
20899         * lib/wcpcpy.c: New file.
20900         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20901         * m4/wcpcpy.m4: New file.
20902         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20903         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20904         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20905         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20906         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20907
20908 2011-02-05  Bruno Haible  <bruno@clisp.org>
20909
20910         New module 'wcscpy'.
20911         * modules/wcscpy: New file.
20912         * lib/wchar.in.h (wcscpy): New declaration.
20913         * lib/wcscpy.c: New file.
20914         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20915         * m4/wcscpy.m4: New file.
20916         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20917         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20918         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20919         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20920         * doc/posix-functions/wcscpy.texi: Mention the new module.
20921
20922 2011-02-05  Bruno Haible  <bruno@clisp.org>
20923
20924         New module 'wcsnlen'.
20925         * modules/wcsnlen: New file.
20926         * lib/wchar.in.h (wcsnlen): New declaration.
20927         * lib/wcsnlen.c: New file.
20928         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20929         * m4/wcsnlen.m4: New file.
20930         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20931         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20932         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20933         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20934         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20935
20936 2011-02-05  Bruno Haible  <bruno@clisp.org>
20937
20938         New module 'wcslen'.
20939         * modules/wcslen: New file.
20940         * lib/wchar.in.h (wcslen): New declaration.
20941         * lib/wcslen.c: New file.
20942         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20943         * m4/wcslen.m4: New file.
20944         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20945         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20946         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20947         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20948         * doc/posix-functions/wcslen.texi: Mention the new module.
20949
20950 2011-02-05  Bruno Haible  <bruno@clisp.org>
20951
20952         New module 'wmemset'.
20953         * modules/wmemset: New file.
20954         * lib/wchar.in.h (wmemset): New declaration.
20955         * lib/wmemset.c: New file.
20956         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20957         * m4/wmemset.m4: New file.
20958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20960         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20961         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20962         * doc/posix-functions/wmemset.texi: Mention the new module.
20963
20964 2011-02-05  Bruno Haible  <bruno@clisp.org>
20965
20966         New module 'wmemmove'.
20967         * modules/wmemmove: New file.
20968         * lib/wchar.in.h (wmemmove): New declaration.
20969         * lib/wmemmove.c: New file.
20970         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20971         * m4/wmemmove.m4: New file.
20972         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20973         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20974         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20975         HAVE_WMEMMOVE.
20976         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20977         * doc/posix-functions/wmemmove.texi: Mention the new module.
20978
20979 2011-02-05  Bruno Haible  <bruno@clisp.org>
20980
20981         New module 'wmemcpy'.
20982         * modules/wmemcpy: New file.
20983         * lib/wchar.in.h (wmemcpy): New declaration.
20984         * lib/wmemcpy.c: New file.
20985         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20986         * m4/wmemcpy.m4: New file.
20987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20989         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20990         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20991         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20992
20993 2011-02-05  Bruno Haible  <bruno@clisp.org>
20994
20995         New module 'wmemcmp'.
20996         * modules/wmemcmp: New file.
20997         * lib/wchar.in.h (wmemcmp): New declaration.
20998         * lib/wmemcmp.c: New file.
20999         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21000         * m4/wmemcmp.m4: New file.
21001         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21002         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21003         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21004         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21005         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21006
21007 2011-02-07  Jim Meyering  <meyering@redhat.com>
21008
21009         di-set, ino-map: new modules, from coreutils
21010         * lib/di-set.c: New file.
21011         * lib/di-set.h: Likewise.
21012         * lib/ino-map.c: Likewise.
21013         * lib/ino-map.h: Likewise.
21014         * modules/di-set: Likewise.
21015         * modules/di-set-tests: Likewise.
21016         * modules/ino-map: Likewise.
21017         * modules/ino-map-tests: Likewise.
21018         * tests/test-di-set.c: Likewise.
21019         * tests/test-ino-map.c: Likewise.
21020
21021 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21022
21023         getloadavg: merge minor changes from Emacs
21024
21025         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21026         (getloadavg): Use memset, not bzero.
21027
21028         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21029         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21030         clash (bug#86).
21031
21032 2010-11-14  Bruno Haible  <bruno@clisp.org>
21033
21034         Allow multiple gnulib generated replacements to coexist.
21035         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21036         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21037         * lib/langinfo.in.h (nl_item): Likewise.
21038         * lib/math.in.h (_NaN, NAN): Likewise.
21039         * lib/netdb.in.h (struct addrinfo): Likewise.
21040         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21041         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21042         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21043         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21044         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21045         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21046         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21047         pthread_mutexattr_init, pthread_mutexattr_settype,
21048         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21049         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21050         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21051         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21052         * lib/sched.in.h (struct sched_param): Likewise.
21053         * lib/se-selinux.in.h (security_class_t, security_context_t,
21054         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21055         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21056         lsetfilecon, fsetfilecon, security_check_context,
21057         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21058         Likewise.
21059         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21060         Likewise.
21061         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21062         _gl_function_taking_int_returning_void_t, union sigval,
21063         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21064         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21065         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21066         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21067         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21068         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21069         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21070         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21071         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21072         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21073         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21074         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21075         socklen_t, rpl_fd_isset): Likewise.
21076         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21077         * lib/sys_time.in.h (struct timeval): Likewise.
21078         * lib/sys_times.in.h (struct tms): Likewise.
21079         * lib/sys_utsname.in.h (struct utsname):
21080         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21081         * lib/unistd.in.h (getpagesize): Likewise.
21082         * lib/wchar.in.h (mbstate_t): Likewise.
21083         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21084         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21085         towlower, towupper): Likewise.
21086         Reported by Sam Steingold <sds@gnu.org>.
21087
21088 2011-02-05  Eric Blake  <eblake@redhat.com>
21089
21090         unsetenv: work around Haiku issues
21091         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21092         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21093
21094 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21095
21096         libposix: avoid calling error() within libposix
21097         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21098         is defined.
21099
21100 2011-02-05  Eric Blake  <eblake@redhat.com>
21101
21102         strerror_r-posix: port to cygwin
21103         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21104         implementation.
21105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21106         * tests/test-strerror_r.c (main): Fix test.
21107         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21108         issue.
21109
21110 2011-02-05  Bruno Haible  <bruno@clisp.org>
21111
21112         New module 'wmemchr'.
21113         * modules/wmemchr: New file.
21114         * lib/wchar.in.h (wmemchr): New declaration.
21115         * lib/wmemchr.c: New file.
21116         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21117         * m4/wmemchr.m4: New file.
21118         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21119         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21120         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21121         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21122         * doc/posix-functions/wmemchr.texi: Mention the new module.
21123
21124 2011-02-04  Eric Blake  <eblake@redhat.com>
21125
21126         fdopendir: detect FreeBSD bug
21127         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21128         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21129
21130 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21131
21132         stdbool: do not define HAVE_STDBOOL_H
21133         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21134         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21135         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21136         imported from the latest Autoconf git.  It was motivated by Emacs,
21137         which uses gnulib but does not need HAVE_STDBOOL_H.
21138
21139 2011-02-04  Bruno Haible  <bruno@clisp.org>
21140
21141         wcsnrtombs: Prepare for new module wwcsnrtombs.
21142         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21143         * lib/wcsnrtombs.c: Include it.
21144         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21145
21146         wcsrtombs: Prepare for new module wwcsrtombs.
21147         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21148         * lib/wcsrtombs.c: Include it.
21149         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21150
21151         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21152         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21153         * lib/mbsnrtowcs.c: Include it.
21154         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21155
21156         mbsrtowcs: Prepare for new module mbsrtowwcs.
21157         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21158         * lib/mbsrtowcs.c: Include it.
21159         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21160
21161 2011-02-04  Bruno Haible  <bruno@clisp.org>
21162
21163         vasnprintf: Reduce use of malloc for small format strings.
21164         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21165         (arguments): Add room for the first 7 arguments.
21166         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21167         (char_directives, u8_directives, u16_directives, u32_directives): Add
21168         room for the first 7 directives.
21169         * lib/printf-parse.c: Include <string.h>.
21170         (PRINTF_PARSE): Change memory handling code so that it uses the first
21171         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21172         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21173         Reported by Pádraig Brady <P@draigbrady.com>.
21174
21175 2011-01-31  Eric Blake  <eblake@redhat.com>
21176
21177         dup2: work around Haiku bug
21178         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21179         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21180         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21181         * tests/test-dup2.c (main): Enhance test.
21182
21183 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21184
21185         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21186         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21187         declared by eglibc 2.11.2.
21188         * lib/stdio.in.h: Likewise.
21189
21190 2011-01-31  Eric Blake  <eblake@redhat.com>
21191
21192         ignore-value: add missing test dependency
21193         * tests/test-ignore-value.c: Revert previous change; stdio.h
21194         provides off_t.
21195         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21196
21197 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21198
21199         mktime: clarify long_int width checking
21200         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21201         the top level, to make it clearer that the assumption about
21202         long_int width is being checked.  See
21203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21204
21205 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21206
21207         ignore-value: Fix self-test.
21208         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21209
21210 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21211
21212         TYPE_MAXIMUM: avoid theoretically undefined behavior
21213         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21214         negative number, which the C Standard says has undefined behavior.
21215         In practice this is not a problem, but might as well do it by the book.
21216         Reported by Rich Felker and Eric Blake; see
21217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21218         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21219         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21220         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21221         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21222         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21223         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21224
21225         mktime: #undef mktime before #defining it
21226         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21227
21228         mktime: systematically normalize tm_isdst comparisons
21229         * lib/mktime.c (isdst_differ): New function.
21230         (__mktime_internal): Use it systematically for all isdst comparisons.
21231         This completes the fix for libc BZ #6723, and removes the need for
21232         normalizing tm_isdst.  See
21233         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21234         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21235
21236         mktime: fix some integer overflow issues and sidestep the rest
21237
21238         This was prompted by a bug report by Benjamin Lindner for MinGW
21239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21240         His bug is due to signed integer overflow (0 - INT_MIN), and I
21241         I scanned through mktime.c looking for other integer overflow
21242         problems, fixing all the bugs I found.
21243
21244         Although the C Standard says the resulting code is still not safe
21245         in the presence of integer overflow, in practice it should be good
21246         enough for all real-world two's-complement implementations, except
21247         for debugging environments that deliberately trap on integer
21248         overflow (e.g., gcc -ftrapv).
21249
21250         * lib/mktime.c (WRAPV): New macro.
21251         (SHR): Also check that long_int and time_t shift right in the
21252         usual way, before using the fast-but-unportable method.
21253         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21254         used.  The code already assumed two's complement, so there's
21255         no need to test for alternatives.  All uses removed.
21256         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21257         the C standard.  Problem reported by Rich Felker in
21258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21259         (twos_complement_arithmetic): Also check long_int and time_t.
21260         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21261         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21262         (__mktime_internal): Avoid integer overflow with unary subtraction
21263         in two instances where -1 - X is an adequate replacement for -X,
21264         since the calculations are approximate.
21265
21266 2011-01-29  Eric Blake  <eblake@redhat.com>
21267
21268         mktime: avoid infinite loop
21269         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21270         type; behavior is still undefined but portable to all known targets.
21271         Reported by Rich Felker.
21272
21273 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21274
21275         rename, unlink, same-inode: Relicense.
21276         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21277         * modules/unlink (License): Likewise.
21278         * modules/same-inode (License): Likewise.
21279
21280 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21281
21282         mktime: avoid problems on NetBSD 5 / i386
21283         * lib/mktime.c (long_int): New type.  This works around a problem
21284         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21285         but time_t is 64 bits, and where I expect the existing code is
21286         wrong in some cases.
21287         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21288         (ydhms_diff): Bring back the compile-time check for wide-enough
21289         year and yday.
21290
21291         mktime: fix misspelling in comment
21292         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21293         This merges all recent glibc changes of importance.
21294
21295 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21296
21297         move-if-change: cope with concurrent mv of identical file.
21298         * build-aux/move-if-change (CMPPROG): Accept environment
21299         variable as an override for `cmp'.
21300         (usage): Document CMPPROG.
21301         Adjust comparison to drop stdout.  Cope with failure of mv if
21302         the target file exists and is identical to the source, for
21303         parallel builds.
21304         Report from H.J. Lu against binutils in PR binutils/12283.
21305
21306 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21307
21308         * users.txt: Mention sharutils.
21309
21310 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21311
21312         * users.txt: Mention OATH Toolkit.
21313
21314 2011-01-27  Bruno Haible  <bruno@clisp.org>
21315
21316         Prepare for supporting FreeBSD 10.
21317         * build-aux/config.libpath: Remove handling of freebsd1*.
21318
21319 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21320
21321         Prepare for supporting FreeBSD 10.
21322         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21323         match FreeBSD 10.0.
21324
21325 2011-01-27  Bruno Haible  <bruno@clisp.org>
21326
21327         vma-iter, get-rusage-as: Add OpenBSD support.
21328         * modules/vma-iter (configure.ac): Test for mquery.
21329         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21330         * lib/vma-iter.c: Include <sys/mman.h>.
21331         (vma_iterate): Add an implementation based on mquery().
21332         * lib/resource-ext.h (get_rusage_as): Update comments.
21333         * lib/get-rusage-as.c: Likewise.
21334         * lib/get-rusage-data.c: Likewise.
21335
21336 2011-01-26  Karl Berry  <karl@gnu.org>
21337
21338         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21339         variables to make it easier to override the makeinfo program used.
21340
21341 2011-01-26  Eric Blake  <eblake@redhat.com>
21342
21343         fcntl: work around Haiku F_DUPFD bugs
21344         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21345         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21346         cloexec bit on duplication.
21347         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21348
21349 2011-01-26  Bruno Haible  <bruno@clisp.org>
21350
21351         Enable memory leak tests on AIX.
21352         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21353         * tests/test-fprintf-posix3.c (main): Likewise.
21354
21355 2011-01-26  Bruno Haible  <bruno@clisp.org>
21356
21357         Tests for module 'get-rusage-data'.
21358         * modules/get-rusage-data-tests: New file.
21359         * tests/test-get-rusage-data.c: New file.
21360
21361         New module 'get-rusage-data'.
21362         * lib/resource-ext.h (get_rusage_data): New declaration.
21363         * lib/get-rusage-data.c: New file.
21364         * modules/get-rusage-data: New file.
21365
21366 2011-01-25  Bruno Haible  <bruno@clisp.org>
21367
21368         get-rusage-as: Allow for easier testing.
21369         * lib/resource-ext.h (get_rusage_as): Add comment.
21370         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21371         (main): New function for interactive testing.
21372
21373 2011-01-25  Bruno Haible  <bruno@clisp.org>
21374
21375         vma-iter: Treat Haiku like BeOS.
21376         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21377         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21378
21379 2011-01-25  Eric Blake  <eblake@redhat.com>
21380
21381         c-stack: fix regression on cygwin when libsigsegv is present
21382         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21383
21384 2011-01-24  Bruno Haible  <bruno@clisp.org>
21385
21386         vma-iter: Avoid empty intervals.
21387         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21388         on an empty interval.
21389
21390 2011-01-24  Jim Meyering  <meyering@redhat.com>
21391
21392         u64: remove unnecessary #include
21393         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21394
21395 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21396
21397         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21398         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21399
21400 2011-01-23  Bruno Haible  <bruno@clisp.org>
21401
21402         New module 'vma-iter'.
21403         * lib/vma-iter.h: New file.
21404         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21405         * modules/vma-iter: New file.
21406         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21407         for get_rusage_as_via_iterator.
21408         (vma_iterate_callback): New function.
21409         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21410         * modules/get-rusage-as (Depends-on): Add vma-iter.
21411
21412 2011-01-23  Bruno Haible  <bruno@clisp.org>
21413
21414         uninorm: Tweak includes.
21415         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21416         Reported by Jim Meyering.
21417
21418 2011-01-23  Bruno Haible  <bruno@clisp.org>
21419
21420         get-rusage-as: Improve on NetBSD.
21421         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21422         /proc, like on FreeBSD.
21423
21424 2011-01-23  Jim Meyering  <meyering@redhat.com>
21425
21426         xreadlink.h: remove unnecessary #include
21427         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21428
21429         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21430         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21431
21432 2011-01-23  Bruno Haible  <bruno@clisp.org>
21433
21434         get-rusage-as: Fix bug.
21435         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21436         original limit when aborting the first loop.
21437
21438 2011-01-23  Bruno Haible  <bruno@clisp.org>
21439
21440         wctype: Ensure valid C syntax.
21441         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21442         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21443
21444 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21445
21446         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21448         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21449         as they are needed only for configure's test case.
21450         This removes two unnecessary symbols from config.h.
21451
21452         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21453         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21454         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21455         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21456         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21457         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21458         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21459         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21460         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21461         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21462         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21463         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21464         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21465         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21466         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21467         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21468         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21469         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21470
21471 2011-01-21  Eric Blake  <eblake@redhat.com>
21472
21473         maintainer-makefile: work with older git for submodule check
21474         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21475         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21476         Reported by Matthias Bolte.
21477
21478         bootstrap: minor portability fixes
21479         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21480         (usage): Omit leading capital and trailing . on help phrases, per
21481         GNU Coding Standards.
21482         (check_versions, top level): Prefix messages with script name.
21483
21484 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21485
21486         bootstrap: support --no-git option
21487         * build-aux/bootstrap: Add --no-git option, to be used when
21488         --gnulib-srcdir points to the exact desired checkout.
21489
21490 2011-01-21  Eric Blake  <eblake@redhat.com>
21491
21492         strerror_r-posix: work with glibc 2.13
21493         * lib/strerror_r.c (strerror_r): Fix return type.
21494
21495 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21496             Bruno Haible  <bruno@clisp.org>
21497
21498         uN_strstr: New unit tests.
21499         * modules/unistr/u8-strstr-tests: New file.
21500         * modules/unistr/u16-strstr-tests: New file.
21501         * modules/unistr/u32-strstr-tests: New file.
21502         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21503         * tests/unistr/test-u8-strstr.c: New file.
21504         * tests/unistr/test-u16-strstr.c: New file.
21505         * tests/unistr/test-u32-strstr.c: New file.
21506
21507 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21508             Bruno Haible  <bruno@clisp.org>
21509
21510         Make uN_strstr functions O(n) worst-case.
21511         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21512         16-bit and 32-bit unit cases, use the unibyte algorithm from
21513         lib/mbsstr.c.
21514         * lib/unistr/u8-strstr.c: Include <string.h>.
21515         (UNIT_IS_UINT8_T): New macro.
21516         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21517         (U_STRLEN, U_STRNLEN): New macros.
21518         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21519         (U_STRLEN, U_STRNLEN): New macros.
21520         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21521         (configure.ac): Update required libunistring version.
21522         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21523         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21524         malloca.
21525         (configure.ac): Update required libunistring version.
21526         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21527         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21528         malloca.
21529         (configure.ac): Update required libunistring version.
21530
21531 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21532             Bruno Haible  <bruno@clisp.org>
21533
21534         Prepare for faster uN_strstr functions.
21535         * lib/str-kmp.h: Support definable UNITs.
21536         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21537         needle_len argument.
21538         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21539         * lib/mbscasestr.c (mbscasestr): Likewise.
21540
21541 2011-01-21  Pádraig Brady <P@draigBrady.com>
21542
21543         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21544         * tests/test-malloca.c (main): Unset the environment variable
21545         to greatly speed up the test.
21546         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21547         * modules/malloca-tests: Depend on unsetenv.
21548
21549 2011-01-21  Pádraig Brady <P@draigBrady.com>
21550
21551         ignore-value: remove stdint dependency
21552         * lib/ignore-value.h: Remove <stdint.h>
21553         * modules/ignore-value: Remove stdint dependency.
21554
21555 2011-01-21  Jim Meyering  <meyering@redhat.com>
21556
21557         maint.mk: adjust variable name to be consistent with other gl_ vars
21558         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21559         to be lower case.
21560
21561 2011-01-20  Jim Meyering  <meyering@redhat.com>
21562
21563         maint.mk: make "check" depend on public-submodule-commit by default
21564         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21565
21566 2011-01-20  Bruno Haible  <bruno@clisp.org>
21567
21568         mbfile, mbiter: Complete change from 2008-12-21.
21569         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21570         * m4/mbiter.m4 (gl_MBITER): Likewise.
21571
21572 2011-01-20  Jim Meyering  <meyering@redhat.com>
21573
21574         init.sh: insert space between each function name and "()"
21575         * tests/init.sh: Make it a little easier to see that a function's
21576         name is "warn_", and not "warn" when looking at the first part of
21577         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21578
21579 2011-01-20  Jim Meyering  <meyering@redhat.com>
21580
21581         mountlist: clean up code formatting
21582         * lib/mountlist.c (read_file_system_list): Split a long line,
21583         correct bracing style, use NULL in place of "(struct statfs *)0",
21584         don't parenthesize return value, add spaces around "=" and after
21585         ";-in-for-stmt".
21586
21587 2011-01-14  Markus Duft <mduft@gentoo.org>
21588
21589         mountlist: add support for Interix
21590         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21591         Apply statvfs to all entries of /dev/fs.
21592         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21593         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21594
21595 2011-01-20  Jim Meyering  <meyering@redhat.com>
21596
21597         maint.mk: improve the public-submodule-commit rule
21598         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21599         to suppress printing of its commands... unless V=1.
21600         Add git submodule's --quiet option to suppress printing of e.g.,
21601         "Entering gnulib" output.
21602         "cd" into $(srcdir) before running git submodule.
21603
21604 2011-01-20  Bruno Haible  <bruno@clisp.org>
21605
21606         include_next: Fix bug introduced on 2011-01-18.
21607         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21608         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21609         ac_cv_header_... variable if the second argument is not 'check'.
21610         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21611         gl_NEXT_HEADERS_INTERNAL.
21612
21613 2011-01-20  Bruno Haible  <bruno@clisp.org>
21614
21615         Allow the user to avoid the GNULIB_TEST_* macros.
21616         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21617         Suggested by Paul Eggert.
21618
21619 2011-01-14  Jim Meyering  <meyering@redhat.com>
21620
21621         bootstrap: avoid failure when there is no .gitmodules file
21622         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21623         has been assigned to, even when its value is the empty string.
21624         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21625         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21626         Reported by John W. Eaton <jwe@gnu.org>.
21627
21628 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21629
21630         assume <ctype.h>, ..., <time.h> exist
21631         For years gnulib has been assuming the existence of the headers
21632         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21633         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21634         them, since they don't appear to be needed.
21635         * README (Portability guidelines): Document this.
21636         * lib/flock.c: Assume <fcntl.h> exists.
21637         * lib/regex_internal.h: Assume <locale.h> exists.
21638         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21639         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21640         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21641         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21642         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21643         * m4/regex.m4 (gl_REGEX): Likewise.
21644         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21645         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21646         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21647         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21648         * tests/test-argp.c: Likewise.
21649         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21650
21651         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21652         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21653         AA_APPLE_UNIVERSAL_BUILD.  See
21654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21655         * NEWS: Document this.
21656
21657 2011-01-19  Eric Blake  <eblake@redhat.com>
21658
21659         c-stack: assume stack overflow if SA_SIGINFO unsupported
21660         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21661         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21662         sigaction will work.
21663         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21664         behavior match Linux.
21665         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21666
21667         stdbool-tests: accommodate Haiku
21668         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21669
21670         binary-io: fix O_TEXT on Haiku
21671         * modules/binary-io (Depends-on): Add fcntl-h.
21672         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21673         than blindly undefining O_TEXT.
21674         Reported by Scott McCreary.
21675
21676 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21677
21678         include_next: do not check for standard headers like stddef.h
21679
21680         I found this problem when modifying Emacs to use gnulib.
21681         I noticed that it added HAVE_STDDEF_H to config.h, even though
21682         gnulib always assumes <stddef.h> exists as per README and this
21683         symbol is unnecessary.
21684         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21685         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21686         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21687         faster for headers like stddef.h that are known to exist.
21688         (gl_CHECK_NEXT_HEADERS): Use it.
21689         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21690         rather than gl_CHECK_NEXT_HEADERS.
21691         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21692         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21693
21694 2011-01-18  Eric Blake  <eblake@redhat.com>
21695
21696         ansi-c++-opt: skip C++ dependency style if C++ is unused
21697         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21698         tests when we know C++ compilation is not desired.
21699         Reported by Scott McCreary.
21700
21701 2011-01-18  Bruno Haible  <bruno@clisp.org>
21702
21703         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21704         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21705         (main): Perform test also when getrlimit and setrlimit don't exist or
21706         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21707         limiting the address space size using setrlimit, compare the address
21708         space size before and after the the test.
21709         * tests/test-dprintf-posix2.c: Likewise.
21710         * tests/test-fprintf-posix3.sh: Update skip messages.
21711         * tests/test-dprintf-posix2.sh: Likewise.
21712         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21713         * modules/dprintf-posix-tests (Depends-on): Likewise.
21714         Reported by Bruce Korb <bkorb@gnu.org> and
21715         Gary V. Vaughan <gary@gnu.org>.
21716
21717 2011-01-18  Bruno Haible  <bruno@clisp.org>
21718
21719         get-rusage-as: Improvement for Cygwin.
21720         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21721         areas that are merely reserved.
21722
21723 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21724
21725         strftime: remove dependencies on multibyte modules
21726
21727         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21728         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21729         only if __osf__ is defined, and I suspect OSF doesn't need these
21730         other modules.  If my guess is wrong, we'll need to come up with a
21731         variant of strftime that doesn't need the multibyte modules.
21732
21733         I discovered this problem when attempting modify Emacs to use the
21734         strftime module.  With the previous gnulib, this caused Emacs to
21735         need 31 new files, ranging from lib/config.charset to
21736         m4/wint_t.m4.  This was overkill and I expect would be offputting
21737         to the Emacs maintainers.  After this change, only 6 new files are
21738         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21739         stdbool.m4, and tm_gmtoff.m4.
21740
21741         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21742         Suggested by Bruno Haible in
21743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21744         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21745         and do not check for wchar.h.
21746         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21747         (Depends-on): Remove mbrlen, mbsinit, wchar.
21748
21749 2011-01-18  Bruno Haible  <bruno@clisp.org>
21750
21751         Tests for module 'get-rusage-as'.
21752         * modules/get-rusage-as-tests: New file.
21753         * tests/test-get-rusage-as.c: New file.
21754
21755         New module 'get-rusage-as'.
21756         * modules/get-rusage-as: New file.
21757         * lib/resource-ext.h: New file.
21758         * lib/get-rusage-as.c: New file.
21759
21760 2011-01-17  Eric Blake  <eblake@redhat.com>
21761
21762         sigaction: relax license from LGPLv3+ to LGPLv2+
21763         * modules/sigaction (License): Relax to LGPLv2+.
21764
21765 2011-01-14  Bruno Haible  <bruno@clisp.org>
21766
21767         filemode: Make function declarations usable in C++ mode.
21768         * lib/filemode.h: Enclose function declarations in extern "C" block.
21769         Reported by John W. Eaton <jwe@gnu.org>.
21770
21771 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21772
21773         save-cwd: no longer include "xgetcwd.h"
21774         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21775         This avoids a compilation failure in projects that use save-cwd
21776         without also using the xgetcwd module.
21777
21778 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21779
21780         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21781         This is so that a program like Emacs, which needs only dtoastr,
21782         does not have to bother with distributing and compiling ftoastr
21783         and ldtoastr.
21784         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21785         * modules/dtoastr, modules/ldtoastr: New files.
21786         * modules/ftoastr: Now works just for 'float'.
21787         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21788         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21789         dtoastr.c, ldtoastr.c.
21790
21791 2011-01-11  Jim Meyering  <meyering@redhat.com>
21792
21793         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21794         There is no need to work around the lack of the fchdir function,
21795         since gnulib can now provide a replacement when required.
21796         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21797         * modules/save-cwd (Depends-on): Add fchdir.
21798
21799 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21800
21801         openat, save-cwd: avoid xmalloc
21802
21803         This removes a direct (but undocumented) dependency of openat on
21804         xalloc, along with an indirect dependency via save-cwd.  It also
21805         removes a dependency of save-cwd on xgetcwd, and thereby
21806         indirectly on xalloc.  This change causes the openat substitute
21807         to fall back on save_cwd when memory is tight, and for save_cwd to
21808         fail instead of dying when memory is tight, but that's good enough.
21809         Problem and initial idea for fix reported by Bastien Roucaries in
21810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21811
21812         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21813         xalloc.h (for xmalloc).
21814         (openat_proc_name): Use malloc, not xmalloc.
21815         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21816         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21817
21818         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21819         This avoids heap allocation for file names whose lengths are in
21820         the range 512..1023, with the upper bound increasing to at most
21821         4031 depending on the platform's PATH_MAX.  (We do not want
21822         pathmax.h here as it might supply a non-constant PATH_MAX.)
21823         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21824         Perhaps they should be moved to malloca.h?
21825         (OPENAT_BUFFER_SIZE): Use them.
21826
21827 2011-01-10  Bruno Haible  <bruno@clisp.org>
21828
21829         doc: Update users.txt.
21830         * users.txt: Add recutils.
21831
21832 2011-01-09  Karl Berry  <karl@gnu.org>
21833
21834         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21835
21836         * doc/configmake.texi: New file.
21837         * doc/gnulib.texi: Include it.
21838         * modules/configmake: Move documentation from here.
21839
21840 2011-01-09  Bruno Haible  <bruno@clisp.org>
21841
21842         Update to Unicode 6.0.0.
21843         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21844         (get_lbp): Update for Unicode 6.0.0.
21845         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21846         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21847         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21848         U+11001, U+11038..U+11046. Remove U+06DE.
21849         (uc_width): Fix bounds of planes.
21850         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21851         lib/uniwidth/width.c.
21852         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21853         trailing whitespace removed.
21854         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21855         without comments, but with the original copyright notice.
21856         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21857         * lib/unicase/ignorable.h: Likewise.
21858         * lib/unicase/tocasefold.h: Likewise.
21859         * lib/unicase/tolower.h: Likewise.
21860         * lib/unicase/totitle.h: Likewise.
21861         * lib/unicase/toupper.h: Likewise.
21862         * lib/unictype/bidi_of.h: Likewise.
21863         * lib/unictype/blocks.h: Likewise.
21864         * lib/unictype/categ_C.h: Likewise.
21865         * lib/unictype/categ_Cn.h: Likewise.
21866         * lib/unictype/categ_L.h: Likewise.
21867         * lib/unictype/categ_Ll.h: Likewise.
21868         * lib/unictype/categ_Lm.h: Likewise.
21869         * lib/unictype/categ_Lo.h: Likewise.
21870         * lib/unictype/categ_Lu.h: Likewise.
21871         * lib/unictype/categ_M.h: Likewise.
21872         * lib/unictype/categ_Mc.h: Likewise.
21873         * lib/unictype/categ_Me.h: Likewise.
21874         * lib/unictype/categ_Mn.h: Likewise.
21875         * lib/unictype/categ_N.h: Likewise.
21876         * lib/unictype/categ_Nd.h: Likewise.
21877         * lib/unictype/categ_No.h: Likewise.
21878         * lib/unictype/categ_P.h: Likewise.
21879         * lib/unictype/categ_Po.h: Likewise.
21880         * lib/unictype/categ_S.h: Likewise.
21881         * lib/unictype/categ_Sc.h: Likewise.
21882         * lib/unictype/categ_Sk.h: Likewise.
21883         * lib/unictype/categ_Sm.h: Likewise.
21884         * lib/unictype/categ_So.h: Likewise.
21885         * lib/unictype/categ_of.h: Likewise.
21886         * lib/unictype/combining.h: Likewise.
21887         * lib/unictype/ctype_alnum.h: Likewise.
21888         * lib/unictype/ctype_alpha.h: Likewise.
21889         * lib/unictype/ctype_graph.h: Likewise.
21890         * lib/unictype/ctype_lower.h: Likewise.
21891         * lib/unictype/ctype_print.h: Likewise.
21892         * lib/unictype/ctype_punct.h: Likewise.
21893         * lib/unictype/ctype_upper.h: Likewise.
21894         * lib/unictype/decdigit.h: Likewise.
21895         * lib/unictype/digit.h: Likewise.
21896         * lib/unictype/numeric.h: Likewise.
21897         * lib/unictype/pr_alphabetic.h: Likewise.
21898         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21899         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21900         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21901         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21902         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21903         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21904         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21905         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21906         * lib/unictype/pr_case_ignorable.h: Likewise.
21907         * lib/unictype/pr_cased.h: Likewise.
21908         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21909         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21910         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21911         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21912         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21913         * lib/unictype/pr_combining.h: Likewise.
21914         * lib/unictype/pr_composite.h: Likewise.
21915         * lib/unictype/pr_currency_symbol.h: Likewise.
21916         * lib/unictype/pr_decimal_digit.h: Likewise.
21917         * lib/unictype/pr_deprecated.h: Likewise.
21918         * lib/unictype/pr_format_control.h: Likewise.
21919         * lib/unictype/pr_grapheme_base.h: Likewise.
21920         * lib/unictype/pr_grapheme_extend.h: Likewise.
21921         * lib/unictype/pr_grapheme_link.h: Likewise.
21922         * lib/unictype/pr_id_continue.h: Likewise.
21923         * lib/unictype/pr_id_start.h: Likewise.
21924         * lib/unictype/pr_ideographic.h: Likewise.
21925         * lib/unictype/pr_lowercase.h: Likewise.
21926         * lib/unictype/pr_math.h: Likewise.
21927         * lib/unictype/pr_numeric.h: Likewise.
21928         * lib/unictype/pr_other_alphabetic.h: Likewise.
21929         * lib/unictype/pr_other_id_continue.h: Likewise.
21930         * lib/unictype/pr_other_math.h: Likewise.
21931         * lib/unictype/pr_punctuation.h: Likewise.
21932         * lib/unictype/pr_sentence_terminal.h: Likewise.
21933         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21934         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21935         * lib/unictype/pr_unified_ideograph.h: Likewise.
21936         * lib/unictype/pr_uppercase.h: Likewise.
21937         * lib/unictype/pr_xid_continue.h: Likewise.
21938         * lib/unictype/pr_xid_start.h: Likewise.
21939         * lib/unictype/scripts.h: Likewise.
21940         * lib/unictype/scripts_byname.gperf: Likewise.
21941         * lib/unictype/sy_java_ident.h: Likewise.
21942         * lib/unigbrk/gbrkprop.h: Likewise.
21943         * lib/unilbrk/lbrkprop1.h: Likewise.
21944         * lib/unilbrk/lbrkprop2.h: Likewise.
21945         * lib/uninorm/decomposition-table2.h: Likewise.
21946         * lib/uniwbrk/wbrkprop.h: Likewise.
21947         * tests/unicase/test-cased.c: Likewise.
21948         * tests/unicase/test-ignorable.c: Likewise.
21949         * tests/unicase/test-uc_tolower.c: Likewise.
21950         * tests/unicase/test-uc_totitle.c: Likewise.
21951         * tests/unicase/test-uc_toupper.c: Likewise.
21952         * tests/unictype/test-categ_C.c: Likewise.
21953         * tests/unictype/test-categ_Cn.c: Likewise.
21954         * tests/unictype/test-categ_L.c: Likewise.
21955         * tests/unictype/test-categ_Ll.c: Likewise.
21956         * tests/unictype/test-categ_Lm.c: Likewise.
21957         * tests/unictype/test-categ_Lo.c: Likewise.
21958         * tests/unictype/test-categ_Lu.c: Likewise.
21959         * tests/unictype/test-categ_M.c: Likewise.
21960         * tests/unictype/test-categ_Mc.c: Likewise.
21961         * tests/unictype/test-categ_Me.c: Likewise.
21962         * tests/unictype/test-categ_Mn.c: Likewise.
21963         * tests/unictype/test-categ_N.c: Likewise.
21964         * tests/unictype/test-categ_Nd.c: Likewise.
21965         * tests/unictype/test-categ_No.c: Likewise.
21966         * tests/unictype/test-categ_P.c: Likewise.
21967         * tests/unictype/test-categ_Po.c: Likewise.
21968         * tests/unictype/test-categ_S.c: Likewise.
21969         * tests/unictype/test-categ_Sc.c: Likewise.
21970         * tests/unictype/test-categ_Sk.c: Likewise.
21971         * tests/unictype/test-categ_Sm.c: Likewise.
21972         * tests/unictype/test-categ_So.c: Likewise.
21973         * tests/unictype/test-ctype_alnum.c: Likewise.
21974         * tests/unictype/test-ctype_alpha.c: Likewise.
21975         * tests/unictype/test-ctype_graph.c: Likewise.
21976         * tests/unictype/test-ctype_lower.c: Likewise.
21977         * tests/unictype/test-ctype_print.c: Likewise.
21978         * tests/unictype/test-ctype_punct.c: Likewise.
21979         * tests/unictype/test-ctype_upper.c: Likewise.
21980         * tests/unictype/test-decdigit.h: Likewise.
21981         * tests/unictype/test-digit.h: Likewise.
21982         * tests/unictype/test-numeric.h: Likewise.
21983         * tests/unictype/test-pr_alphabetic.c: Likewise.
21984         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21985         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21986         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21987         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21988         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21989         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21990         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21991         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21992         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21993         * tests/unictype/test-pr_cased.c: Likewise.
21994         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21995         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21996         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21997         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21998         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21999         * tests/unictype/test-pr_combining.c: Likewise.
22000         * tests/unictype/test-pr_composite.c: Likewise.
22001         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22002         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22003         * tests/unictype/test-pr_deprecated.c: Likewise.
22004         * tests/unictype/test-pr_format_control.c: Likewise.
22005         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22006         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22007         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22008         * tests/unictype/test-pr_id_continue.c: Likewise.
22009         * tests/unictype/test-pr_id_start.c: Likewise.
22010         * tests/unictype/test-pr_ideographic.c: Likewise.
22011         * tests/unictype/test-pr_lowercase.c: Likewise.
22012         * tests/unictype/test-pr_math.c: Likewise.
22013         * tests/unictype/test-pr_numeric.c: Likewise.
22014         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22015         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22016         * tests/unictype/test-pr_other_math.c: Likewise.
22017         * tests/unictype/test-pr_punctuation.c: Likewise.
22018         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22019         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22020         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22021         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22022         * tests/unictype/test-pr_uppercase.c: Likewise.
22023         * tests/unictype/test-pr_xid_continue.c: Likewise.
22024         * tests/unictype/test-pr_xid_start.c: Likewise.
22025         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22026         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22027         changes.
22028         * lib/unictype/categ_Cc.h: Likewise.
22029         * lib/unictype/categ_Cf.h: Likewise.
22030         * lib/unictype/categ_Co.h: Likewise.
22031         * lib/unictype/categ_Cs.h: Likewise.
22032         * lib/unictype/categ_Lt.h: Likewise.
22033         * lib/unictype/categ_Nl.h: Likewise.
22034         * lib/unictype/categ_Pc.h: Likewise.
22035         * lib/unictype/categ_Pd.h: Likewise.
22036         * lib/unictype/categ_Pe.h: Likewise.
22037         * lib/unictype/categ_Pf.h: Likewise.
22038         * lib/unictype/categ_Pi.h: Likewise.
22039         * lib/unictype/categ_Ps.h: Likewise.
22040         * lib/unictype/categ_Z.h: Likewise.
22041         * lib/unictype/categ_Zl.h: Likewise.
22042         * lib/unictype/categ_Zp.h: Likewise.
22043         * lib/unictype/categ_Zs.h: Likewise.
22044         * lib/unictype/ctype_blank.h: Likewise.
22045         * lib/unictype/ctype_cntrl.h: Likewise.
22046         * lib/unictype/ctype_digit.h: Likewise.
22047         * lib/unictype/ctype_space.h: Likewise.
22048         * lib/unictype/ctype_xdigit.h: Likewise.
22049         * lib/unictype/mirror.h: Likewise.
22050         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22051         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22052         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22053         * lib/unictype/pr_bidi_control.h: Likewise.
22054         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22055         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22056         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22057         * lib/unictype/pr_bidi_pdf.h: Likewise.
22058         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22059         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22060         * lib/unictype/pr_dash.h: Likewise.
22061         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22062         * lib/unictype/pr_diacritic.h: Likewise.
22063         * lib/unictype/pr_extender.h: Likewise.
22064         * lib/unictype/pr_hex_digit.h: Likewise.
22065         * lib/unictype/pr_hyphen.h: Likewise.
22066         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22067         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22068         * lib/unictype/pr_ignorable_control.h: Likewise.
22069         * lib/unictype/pr_iso_control.h: Likewise.
22070         * lib/unictype/pr_join_control.h: Likewise.
22071         * lib/unictype/pr_left_of_pair.h: Likewise.
22072         * lib/unictype/pr_line_separator.h: Likewise.
22073         * lib/unictype/pr_logical_order_exception.h: Likewise.
22074         * lib/unictype/pr_non_break.h: Likewise.
22075         * lib/unictype/pr_not_a_character.h: Likewise.
22076         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22077         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22078         * lib/unictype/pr_other_id_start.h: Likewise.
22079         * lib/unictype/pr_other_lowercase.h: Likewise.
22080         * lib/unictype/pr_other_uppercase.h: Likewise.
22081         * lib/unictype/pr_paired_punctuation.h: Likewise.
22082         * lib/unictype/pr_paragraph_separator.h: Likewise.
22083         * lib/unictype/pr_pattern_syntax.h: Likewise.
22084         * lib/unictype/pr_pattern_white_space.h: Likewise.
22085         * lib/unictype/pr_private_use.h: Likewise.
22086         * lib/unictype/pr_quotation_mark.h: Likewise.
22087         * lib/unictype/pr_radical.h: Likewise.
22088         * lib/unictype/pr_soft_dotted.h: Likewise.
22089         * lib/unictype/pr_space.h: Likewise.
22090         * lib/unictype/pr_titlecase.h: Likewise.
22091         * lib/unictype/pr_variation_selector.h: Likewise.
22092         * lib/unictype/pr_white_space.h: Likewise.
22093         * lib/unictype/pr_zero_width.h: Likewise.
22094         * lib/unictype/sy_c_ident.h: Likewise.
22095         * lib/unictype/sy_c_whitespace.h: Likewise.
22096         * lib/unictype/sy_java_whitespace.h: Likewise.
22097         * lib/uninorm/composition-table.gperf: Likewise.
22098         * lib/uninorm/decomposition-table1.h: Likewise.
22099         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22100         LB8.
22101         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22102         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22103         * modules/unictype/*: Bump version number of expected libunistring
22104         version.
22105
22106 2011-01-09  Bruno Haible  <bruno@clisp.org>
22107
22108         Update to Unicode 5.2.0.
22109         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22110         trailing whitespace removed.
22111
22112 2011-01-09  Bruno Haible  <bruno@clisp.org>
22113
22114         New Unicode character properties, from Unicode 5.2.0.
22115         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22116         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22117         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22118         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22119         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22120         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22121         uc_is_property_cased, uc_is_property_case_ignorable,
22122         uc_is_property_changes_when_lowercased,
22123         uc_is_property_changes_when_uppercased,
22124         uc_is_property_changes_when_titlecased,
22125         uc_is_property_changes_when_casefolded,
22126         uc_is_property_changes_when_casemapped): New declarations.
22127         * lib/unictype/pr_byname.gperf: Add the new properties.
22128         * modules/unictype/property-byname (Depends-on): Depend on the new
22129         properties modules.
22130         * modules/unictype/property-all (Depends-on): Likewise.
22131         * MODULES.html.sh (Unicode string functions): Add
22132         unictype/property-case-ignorable, unictype/property-cased,
22133         unictype/property-changes-when-casefolded,
22134         unictype/property-changes-when-casemapped,
22135         unictype/property-changes-when-lowercased,
22136         unictype/property-changes-when-titlecased,
22137         unictype/property-changes-when-uppercased.
22138
22139         New module 'unictype/property-changes-when-casemapped'.
22140         * modules/unictype/property-changes-when-casemapped: New file.
22141         * lib/unictype/pr_changes_when_casemapped.c: New file.
22142         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22143         generated by gen-uni-tables.
22144         * modules/unictype/property-changes-when-casemapped-tests: New file.
22145         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22146         automatically generated by gen-uni-tables.
22147
22148         New module 'unictype/property-changes-when-casefolded'.
22149         * modules/unictype/property-changes-when-casefolded: New file.
22150         * lib/unictype/pr_changes_when_casefolded.c: New file.
22151         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22152         generated by gen-uni-tables.
22153         * modules/unictype/property-changes-when-casefolded-tests: New file.
22154         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22155         automatically generated by gen-uni-tables.
22156
22157         New module 'unictype/property-changes-when-titlecased'.
22158         * modules/unictype/property-changes-when-titlecased: New file.
22159         * lib/unictype/pr_changes_when_titlecased.c: New file.
22160         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22161         generated by gen-uni-tables.
22162         * modules/unictype/property-changes-when-titlecased-tests: New file.
22163         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22164         automatically generated by gen-uni-tables.
22165
22166         New module 'unictype/property-changes-when-uppercased'.
22167         * modules/unictype/property-changes-when-uppercased: New file.
22168         * lib/unictype/pr_changes_when_uppercased.c: New file.
22169         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22170         generated by gen-uni-tables.
22171         * modules/unictype/property-changes-when-uppercased-tests: New file.
22172         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22173         automatically generated by gen-uni-tables.
22174
22175         New module 'unictype/property-changes-when-lowercased'.
22176         * modules/unictype/property-changes-when-lowercased: New file.
22177         * lib/unictype/pr_changes_when_lowercased.c: New file.
22178         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22179         generated by gen-uni-tables.
22180         * modules/unictype/property-changes-when-lowercased-tests: New file.
22181         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22182         automatically generated by gen-uni-tables.
22183
22184         New module 'unictype/property-case-ignorable'.
22185         * modules/unictype/property-case-ignorable: New file.
22186         * lib/unictype/pr_case_ignorable.c: New file.
22187         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22188         by gen-uni-tables.
22189         * modules/unictype/property-case-ignorable-tests: New file.
22190         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22191         generated by gen-uni-tables.
22192
22193         New module 'unictype/property-cased'.
22194         * modules/unictype/property-cased: New file.
22195         * lib/unictype/pr_cased.c: New file.
22196         * lib/unictype/pr_cased.h: New file, automatically generated by
22197         gen-uni-tables.
22198         * modules/unictype/property-cased-tests: New file.
22199         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22200         gen-uni-tables.
22201
22202 2011-01-09  Bruno Haible  <bruno@clisp.org>
22203
22204         Update to Unicode 5.2.0.
22205         * lib/gen-uni-tables.c (output_predicate, output_category,
22206         output_combclass, output_bidi_category, output_decimal_digit_test,
22207         output_decimal_digit, output_digit_test, output_digit,
22208         output_numeric_test, output_numeric, output_mirror, output_scripts,
22209         output_scripts_byname, output_blocks, output_ident_category): Fix
22210         comment header.
22211         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22212         get_wbp.
22213         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22214         items.
22215         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22216         Changes_When_Lowercased, Changes_When_Uppercased,
22217         Changes_When_Titlecased, Changes_When_Casefolded,
22218         Changes_When_Casemapped.
22219         (is_property_alphabetic, is_property_default_ignorable_code_point):
22220         Update for Unicode 5.2.0.
22221         (is_property_cased, is_property_case_ignorable,
22222         is_property_changes_when_lowercased,
22223         is_property_changes_when_uppercased,
22224         is_property_changes_when_titlecased,
22225         is_property_changes_when_casefolded,
22226         is_property_changes_when_casemapped): New functions.
22227         (output_properties): Output also the properties cased, case_ignorable,
22228         changes_when_lowercased, changes_when_uppercased,
22229         changes_when_titlecased, changes_when_casefolded,
22230         changes_when_casemapped.
22231         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22232         Unicode TR#11 revision 17 -> 19.
22233         (LBP_CP): New enumeration value.
22234         (LBP_*): Adjust values accordingly.
22235         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22236         TR#14 revision 22 -> 24.
22237         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22238         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22239         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22240         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22241         is_WBP_MIDLETTER.
22242         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22243         the code1 and code2 of each composition rule.
22244         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22245         * lib/unicase/ignorable.h: Likewise.
22246         * lib/unicase/tocasefold.h: Likewise.
22247         * lib/unicase/tolower.h: Likewise.
22248         * lib/unicase/totitle.h: Likewise.
22249         * lib/unicase/toupper.h: Likewise.
22250         * lib/unictype/bidi_of.h: Likewise.
22251         * lib/unictype/blocks.h: Likewise.
22252         * lib/unictype/categ_C.h: Likewise.
22253         * lib/unictype/categ_Cf.h: Likewise.
22254         * lib/unictype/categ_Cn.h: Likewise.
22255         * lib/unictype/categ_L.h: Likewise.
22256         * lib/unictype/categ_Ll.h: Likewise.
22257         * lib/unictype/categ_Lm.h: Likewise.
22258         * lib/unictype/categ_Lo.h: Likewise.
22259         * lib/unictype/categ_Lu.h: Likewise.
22260         * lib/unictype/categ_M.h: Likewise.
22261         * lib/unictype/categ_Mc.h: Likewise.
22262         * lib/unictype/categ_Mn.h: Likewise.
22263         * lib/unictype/categ_N.h: Likewise.
22264         * lib/unictype/categ_Nd.h: Likewise.
22265         * lib/unictype/categ_Nl.h: Likewise.
22266         * lib/unictype/categ_No.h: Likewise.
22267         * lib/unictype/categ_P.h: Likewise.
22268         * lib/unictype/categ_Pd.h: Likewise.
22269         * lib/unictype/categ_Po.h: Likewise.
22270         * lib/unictype/categ_S.h: Likewise.
22271         * lib/unictype/categ_Sc.h: Likewise.
22272         * lib/unictype/categ_So.h: Likewise.
22273         * lib/unictype/categ_of.h: Likewise.
22274         * lib/unictype/combining.h: Likewise.
22275         * lib/unictype/ctype_alnum.h: Likewise.
22276         * lib/unictype/ctype_alpha.h: Likewise.
22277         * lib/unictype/ctype_graph.h: Likewise.
22278         * lib/unictype/ctype_lower.h: Likewise.
22279         * lib/unictype/ctype_print.h: Likewise.
22280         * lib/unictype/ctype_punct.h: Likewise.
22281         * lib/unictype/ctype_upper.h: Likewise.
22282         * lib/unictype/decdigit.h: Likewise.
22283         * lib/unictype/digit.h: Likewise.
22284         * lib/unictype/numeric.h: Likewise.
22285         * lib/unictype/pr_alphabetic.h: Likewise.
22286         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22287         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22288         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22289         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22290         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22291         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22292         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22293         * lib/unictype/pr_combining.h: Likewise.
22294         * lib/unictype/pr_composite.h: Likewise.
22295         * lib/unictype/pr_currency_symbol.h: Likewise.
22296         * lib/unictype/pr_dash.h: Likewise.
22297         * lib/unictype/pr_decimal_digit.h: Likewise.
22298         * lib/unictype/pr_deprecated.h: Likewise.
22299         * lib/unictype/pr_diacritic.h: Likewise.
22300         * lib/unictype/pr_extender.h: Likewise.
22301         * lib/unictype/pr_grapheme_base.h: Likewise.
22302         * lib/unictype/pr_grapheme_extend.h: Likewise.
22303         * lib/unictype/pr_grapheme_link.h: Likewise.
22304         * lib/unictype/pr_id_continue.h: Likewise.
22305         * lib/unictype/pr_id_start.h: Likewise.
22306         * lib/unictype/pr_ideographic.h: Likewise.
22307         * lib/unictype/pr_ignorable_control.h: Likewise.
22308         * lib/unictype/pr_logical_order_exception.h: Likewise.
22309         * lib/unictype/pr_lowercase.h: Likewise.
22310         * lib/unictype/pr_numeric.h: Likewise.
22311         * lib/unictype/pr_other_alphabetic.h: Likewise.
22312         * lib/unictype/pr_punctuation.h: Likewise.
22313         * lib/unictype/pr_sentence_terminal.h: Likewise.
22314         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22315         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22316         * lib/unictype/pr_unified_ideograph.h: Likewise.
22317         * lib/unictype/pr_uppercase.h: Likewise.
22318         * lib/unictype/pr_xid_continue.h: Likewise.
22319         * lib/unictype/pr_xid_start.h: Likewise.
22320         * lib/unictype/pr_zero_width.h: Likewise.
22321         * lib/unictype/scripts.h: Likewise.
22322         * lib/unictype/scripts_byname.gperf: Likewise.
22323         * lib/unictype/sy_java_ident.h: Likewise.
22324         * lib/unigbrk/gbrkprop.h: Likewise.
22325         * lib/unilbrk/lbrkprop1.h: Likewise.
22326         * lib/unilbrk/lbrkprop2.h: Likewise.
22327         * lib/unilbrk/lbrktables.h: Likewise.
22328         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22329         LBP_CP. Implement rule LB30.
22330         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22331         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22332         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22333         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22334         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22335         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22336         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22337         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22338         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22339         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22340         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22341         bits instead of 16 bits in the code1 and code2 of each composition
22342         rule.
22343         (uc_composition): Update for Unicode 5.2.0.
22344         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22345         * lib/uninorm/decomposition-table2.h: Likewise.
22346         * lib/uniwbrk/wbrkprop.h: Likewise.
22347         * tests/unicase/test-cased.c: Likewise.
22348         * tests/unicase/test-ignorable.c: Likewise.
22349         * tests/unicase/test-uc_tolower.c: Likewise.
22350         * tests/unicase/test-uc_totitle.c: Likewise.
22351         * tests/unicase/test-uc_toupper.c: Likewise.
22352         * tests/unictype/test-categ_C.c: Likewise.
22353         * tests/unictype/test-categ_Cf.c: Likewise.
22354         * tests/unictype/test-categ_Cn.c: Likewise.
22355         * tests/unictype/test-categ_L.c: Likewise.
22356         * tests/unictype/test-categ_Ll.c: Likewise.
22357         * tests/unictype/test-categ_Lm.c: Likewise.
22358         * tests/unictype/test-categ_Lo.c: Likewise.
22359         * tests/unictype/test-categ_Lu.c: Likewise.
22360         * tests/unictype/test-categ_M.c: Likewise.
22361         * tests/unictype/test-categ_Mc.c: Likewise.
22362         * tests/unictype/test-categ_Mn.c: Likewise.
22363         * tests/unictype/test-categ_N.c: Likewise.
22364         * tests/unictype/test-categ_Nd.c: Likewise.
22365         * tests/unictype/test-categ_Nl.c: Likewise.
22366         * tests/unictype/test-categ_No.c: Likewise.
22367         * tests/unictype/test-categ_P.c: Likewise.
22368         * tests/unictype/test-categ_Pd.c: Likewise.
22369         * tests/unictype/test-categ_Po.c: Likewise.
22370         * tests/unictype/test-categ_S.c: Likewise.
22371         * tests/unictype/test-categ_Sc.c: Likewise.
22372         * tests/unictype/test-categ_So.c: Likewise.
22373         * tests/unictype/test-ctype_alnum.c: Likewise.
22374         * tests/unictype/test-ctype_alpha.c: Likewise.
22375         * tests/unictype/test-ctype_graph.c: Likewise.
22376         * tests/unictype/test-ctype_lower.c: Likewise.
22377         * tests/unictype/test-ctype_print.c: Likewise.
22378         * tests/unictype/test-ctype_punct.c: Likewise.
22379         * tests/unictype/test-ctype_upper.c: Likewise.
22380         * tests/unictype/test-decdigit.h: Likewise.
22381         * tests/unictype/test-digit.h: Likewise.
22382         * tests/unictype/test-numeric.h: Likewise.
22383         * tests/unictype/test-pr_alphabetic.c: Likewise.
22384         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22385         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22386         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22387         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22388         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22389         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22390         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22391         * tests/unictype/test-pr_combining.c: Likewise.
22392         * tests/unictype/test-pr_composite.c: Likewise.
22393         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22394         * tests/unictype/test-pr_dash.c: Likewise.
22395         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22396         * tests/unictype/test-pr_deprecated.c: Likewise.
22397         * tests/unictype/test-pr_diacritic.c: Likewise.
22398         * tests/unictype/test-pr_extender.c: Likewise.
22399         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22400         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22401         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22402         * tests/unictype/test-pr_id_continue.c: Likewise.
22403         * tests/unictype/test-pr_id_start.c: Likewise.
22404         * tests/unictype/test-pr_ideographic.c: Likewise.
22405         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22406         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22407         * tests/unictype/test-pr_lowercase.c: Likewise.
22408         * tests/unictype/test-pr_numeric.c: Likewise.
22409         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22410         * tests/unictype/test-pr_punctuation.c: Likewise.
22411         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22412         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22413         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22414         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22415         * tests/unictype/test-pr_uppercase.c: Likewise.
22416         * tests/unictype/test-pr_xid_continue.c: Likewise.
22417         * tests/unictype/test-pr_xid_start.c: Likewise.
22418         * tests/unictype/test-pr_zero_width.c: Likewise.
22419         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22420         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22421         changed behaviour: line breaking is now disallowed between a letter
22422         or '=' and '('.
22423         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22424         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22425         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22426         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22427         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22428         lib/uniwidth/width.c.
22429         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22430         without comments, but with the original copyright notice.
22431         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22432         changes.
22433         * lib/unictype/categ_Cc.h: Likewise.
22434         * lib/unictype/categ_Co.h: Likewise.
22435         * lib/unictype/categ_Cs.h: Likewise.
22436         * lib/unictype/categ_Lt.h: Likewise.
22437         * lib/unictype/categ_Me.h: Likewise.
22438         * lib/unictype/categ_Pc.h: Likewise.
22439         * lib/unictype/categ_Pe.h: Likewise.
22440         * lib/unictype/categ_Pf.h: Likewise.
22441         * lib/unictype/categ_Pi.h: Likewise.
22442         * lib/unictype/categ_Ps.h: Likewise.
22443         * lib/unictype/categ_Sk.h: Likewise.
22444         * lib/unictype/categ_Sm.h: Likewise.
22445         * lib/unictype/categ_Z.h: Likewise.
22446         * lib/unictype/categ_Zl.h: Likewise.
22447         * lib/unictype/categ_Zp.h: Likewise.
22448         * lib/unictype/categ_Zs.h: Likewise.
22449         * lib/unictype/ctype_blank.h: Likewise.
22450         * lib/unictype/ctype_cntrl.h: Likewise.
22451         * lib/unictype/ctype_digit.h: Likewise.
22452         * lib/unictype/ctype_space.h: Likewise.
22453         * lib/unictype/ctype_xdigit.h: Likewise.
22454         * lib/unictype/mirror.h: Likewise.
22455         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22456         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22457         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22458         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22459         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22460         * lib/unictype/pr_bidi_control.h: Likewise.
22461         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22462         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22463         * lib/unictype/pr_bidi_pdf.h: Likewise.
22464         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22465         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22466         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22467         * lib/unictype/pr_format_control.h: Likewise.
22468         * lib/unictype/pr_hex_digit.h: Likewise.
22469         * lib/unictype/pr_hyphen.h: Likewise.
22470         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22471         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22472         * lib/unictype/pr_iso_control.h: Likewise.
22473         * lib/unictype/pr_join_control.h: Likewise.
22474         * lib/unictype/pr_left_of_pair.h: Likewise.
22475         * lib/unictype/pr_line_separator.h: Likewise.
22476         * lib/unictype/pr_math.h: Likewise.
22477         * lib/unictype/pr_non_break.h: Likewise.
22478         * lib/unictype/pr_not_a_character.h: Likewise.
22479         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22480         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22481         * lib/unictype/pr_other_id_continue.h: Likewise.
22482         * lib/unictype/pr_other_id_start.h: Likewise.
22483         * lib/unictype/pr_other_lowercase.h: Likewise.
22484         * lib/unictype/pr_other_math.h: Likewise.
22485         * lib/unictype/pr_other_uppercase.h: Likewise.
22486         * lib/unictype/pr_paired_punctuation.h: Likewise.
22487         * lib/unictype/pr_paragraph_separator.h: Likewise.
22488         * lib/unictype/pr_pattern_syntax.h: Likewise.
22489         * lib/unictype/pr_pattern_white_space.h: Likewise.
22490         * lib/unictype/pr_private_use.h: Likewise.
22491         * lib/unictype/pr_quotation_mark.h: Likewise.
22492         * lib/unictype/pr_radical.h: Likewise.
22493         * lib/unictype/pr_soft_dotted.h: Likewise.
22494         * lib/unictype/pr_space.h: Likewise.
22495         * lib/unictype/pr_titlecase.h: Likewise.
22496         * lib/unictype/pr_variation_selector.h: Likewise.
22497         * lib/unictype/pr_white_space.h: Likewise.
22498         * lib/unictype/sy_c_ident.h: Likewise.
22499         * lib/unictype/sy_c_whitespace.h: Likewise.
22500         * lib/unictype/sy_java_whitespace.h: Likewise.
22501         * modules/uni*/*: Bump version number of expected libunistring version.
22502         Reported by Simon Josefsson.
22503
22504 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22505
22506         useless-if-before-free: fix typo in --help and make the internal,
22507         automatic version date update process work once again.
22508         --help output contained a NUL character instead of the
22509         backslash-zero that was intended.  Also, the "must lie within
22510         the first 8 lines" line is on line 9, and hence not getting
22511         automatically updated.
22512         * build-aux/useless-if-before-free: Fix the former by adding a
22513         backslash, and the latter by condensing the three lines of what-it-does
22514         to a single line, leaving one line of slack for the future.
22515
22516 2011-01-09  Bruno Haible  <bruno@clisp.org>
22517
22518         uniwidth/width: Fix width of U+1D173..U+1D17A.
22519         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22520         symbolic_width, output_width_property_test): New functions.
22521         (main): Invoke output_nonspacing_property, output_width_property_test.
22522         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22523         U+1D173..U+1D17A.
22524         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22525         1.
22526         * modules/uniwidth/*: Bump version number of expected libunistring
22527         version.
22528         * modules/unilbrk/*: Likewise.
22529
22530 2011-01-08  Bruno Haible  <bruno@clisp.org>
22531
22532         uninorm tests: Preserve copyright of Unicode data file.
22533         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22534         Mention modifications.
22535
22536 2011-01-08  Bruno Haible  <bruno@clisp.org>
22537
22538         gen-uni-tables: Prepare for Unicode 5.2.0.
22539         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22540         (debug_output_lbp, output_lbp): Update.
22541
22542 2011-01-08  Bruno Haible  <bruno@clisp.org>
22543
22544         unilbrk: Clarify gen-uni-tables.c code.
22545         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22546         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22547         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22548
22549 2011-01-07  Bruno Haible  <bruno@clisp.org>
22550
22551         strtod: Restore errno when successfully parsing Infinity or NaN.
22552         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22553         restore the original errno.
22554
22555 2011-01-07  Bruno Haible  <bruno@clisp.org>
22556
22557         remove test: Avoid failure on HP-UX 11.
22558         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22559
22560 2011-01-07  Bruno Haible  <bruno@clisp.org>
22561
22562         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22563         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22564         error code.
22565
22566 2011-01-07  Pádraig Brady <P@draigBrady.com>
22567
22568         ignore-value: fixup comments, and add Eric Blake
22569         as an author since he rewrote the macros.
22570         * lib/ignore-value.h (ignore_value):  State that
22571         we now support aggregates.  Also specify exactly
22572         when the GCC warn_unused_result feature was added.
22573
22574 2011-01-06  Eric Blake  <eblake@redhat.com>
22575
22576         ignore-value: support aggregate types
22577         * lib/ignore-value.h (ignore_value): Provide separate gcc
22578         definition.
22579         * modules/ignore-value-tests: New test module.
22580         * tests/test-ignore-value.c: New test.
22581
22582         maint.mk: improve sc_prohibit_strcmp regex
22583         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22584         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22585         definition of STRNEQ.
22586
22587         signal: work around Haiku issue with SIGBUS
22588         * lib/siglist.h: Add comment.
22589         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22590         strsignal's favoring of SIGSEGV.
22591         * tests/test-signal.c (main): Avoid test failure.
22592         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22593         Reported by Scott McCreary.
22594
22595         maint.mk: add pre-release check to ensure submodule commits are public
22596         * top/maint.mk (public-submodule-commit): New rule.
22597         (submodule-checks): New variable.
22598         (alpha beta stable): Depend on the variable.
22599
22600 2011-01-05  Pádraig Brady <P@draigBrady.com>
22601         and Jim Meyering  <meyering@redhat.com>
22602
22603         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22604         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22605         (ATTRIBUTE_DEPRECATED): Define.
22606         (_ignore_case): New function.
22607         (ignore_value): New macro, to replace the old function.
22608         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22609         * modules/ignore-value (Depends-on): Add stdint.
22610
22611 2011-01-04  Eric Blake  <eblake@redhat.com>
22612
22613         doc: regenerate INSTALL
22614         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22615         @firstparagraphindent support, now that autoconf dropped it.
22616         (INSTALL_PRELUDE): Reinstate old macro.
22617         * doc/install.texi: Resync from autoconf.
22618         * doc/INSTALL: Reflect recent autoconf update.
22619         * doc/INSTALL.ISO: Likewise.
22620         * doc/INSTALL.UTF-8: Likewise.
22621         Reported by Karl Berry.
22622
22623 2011-01-04  Bruce Korb  <address@hidden>
22624
22625         git-version-gen: avoid a sub-shell
22626         * build-aux/git-version-gen: Redirect stderr in `...` via
22627         "exec 2>...", rather than via an added sub-shell.
22628
22629 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22630
22631         git-version-gen: use (...) rather than sh -c '...'
22632         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22633         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22634
22635 2011-01-03  Jim Meyering  <meyering@redhat.com>
22636
22637         git-version-gen: convert leading TABs to spaces
22638         * build-aux/git-version-gen: Expand leading TABs.
22639
22640         git-version-gen: handle failed "git rev-list"
22641         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22642         from git and proceeding as if it had succeeded but printed no SHA1
22643         checksums, suppress the diagnostic and handle the failure.
22644         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22645
22646         git-version-gen: include command name in one more diagnostic
22647         * build-aux/git-version-gen: When the required .tarball-version file
22648         was missing or unreadable, you might see the diagnostic from "cat",
22649         but no trace of the name of the invoking script.  Now, you still see
22650         the diagnostic from cat, but also get one from "git-version-gen: ".
22651         Inspired by a patch from Bruce Korb.
22652
22653         update-copyright: adjust test to match changed code
22654         * tests/test-update-copyright.sh: Change test's expected output
22655         to match new actual output.
22656
22657 2011-01-02  Bruno Haible  <bruno@clisp.org>
22658
22659         getlogin_r: Avoid test failure on HP-UX 11.
22660         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22661         ERANGE when the second argument is zero.
22662         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22663         portability problem.
22664
22665 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22666
22667         * build-aux/update-copyright: doc Simon's changes
22668
22669 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22670
22671         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22672         environment variable.
22673
22674 2011-01-02  Bruno Haible  <bruno@clisp.org>
22675
22676         unigbrk: Avoid gcc warnings.
22677         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22678         unused variable.
22679         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22680         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22681         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22682         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22683         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22684         Change type of first argument to 'const char *'.
22685         (main): Remove unused variable.
22686         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22687         type of first argument to 'const char *'.
22688         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22689         Likewise.
22690         (main): Change type of variable 's'.
22691         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22692         to 'int'.
22693
22694 2011-01-02  Bruno Haible  <bruno@clisp.org>
22695
22696         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22697         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22698         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22699         bug.
22700         * lib/pwrite.c: Undo 2010-12-31 patch.
22701         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22702
22703 2011-01-02  Bruno Haible  <bruno@clisp.org>
22704
22705         pread: Fix test whether it works.
22706         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22707
22708 2011-01-02  Bruno Haible  <bruno@clisp.org>
22709
22710         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22711         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22712         ends in "6". Don't require a specific month name. Try also the locale
22713         names found on HP-UX 11 and Solaris 7.
22714
22715 2011-01-02  Bruno Haible  <bruno@clisp.org>
22716
22717         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22718         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22719         C linkage.
22720         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22721
22722 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22723
22724         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22725         for consistency, since the "cluster" term is not used elsewhere.
22726         * lib/unigbrk.in.h: Update name.
22727         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22728         * lib/unigbrk/u16-grapheme-next.c: Update name.
22729         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22730         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22731         * lib/unigbrk/u32-grapheme-next.c: Update name.
22732         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22733         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22734         * lib/unigbrk/u8-grapheme-next.c: Update name.
22735         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22736         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22737         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22738         Suggested by Bruno Haible.
22739
22740 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22741
22742         Remove module 'u8-grapheme-len' as too redundant with
22743         'u8-grapheme-next'.
22744         * modules/unigbrk/u8-grapheme-len: Delete file.
22745         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22746         * lib/unigbrk.in.h: Remove prototype for deleted function.
22747         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22748         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22749
22750         Remove module 'u16-grapheme-len' as too redundant with
22751         'u16-grapheme-next'.
22752         * modules/unigbrk/u16-grapheme-len: Delete file.
22753         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22754         * lib/unigbrk.in.h: Remove prototype for deleted function.
22755         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22756         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22757
22758         Remove module 'u32-grapheme-len' as too redundant with
22759         'u32-grapheme-next'.
22760         * modules/unigbrk/u32-grapheme-len: Delete file.
22761         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22762         * lib/unigbrk.in.h: Remove prototype for deleted function.
22763         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22764         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22765
22766         Suggested by Bruno Haible.
22767
22768 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22769
22770         * unigbrk.in.h: Fix typo: "ben" => "been".
22771         Reported by Bruno Haible.
22772
22773 2011-01-01  Jim Meyering  <meyering@redhat.com>
22774
22775         maint: update almost all copyright ranges to include 2011
22776         Run the new "make update-copyright" rule.
22777
22778 2011-01-01  Jim Meyering  <meyering@redhat.com>
22779
22780         maint: update-copyright: exempt doc/INSTALL*
22781         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22782         since they are generated.  Suggested by Bruno Haible.
22783
22784 2011-01-01  Jim Meyering  <meyering@redhat.com>
22785
22786         maint: refine the update-copyright rule
22787         * Makefile (update-copyright): Also exclude any file that includes
22788         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22789         code that merely generates the comment.
22790
22791 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22792
22793         New module 'u8-grapheme-len'.
22794         * modules/unigbrk/u8-grapheme-len: New file.
22795         * modules/unigbrk/u8-grapheme-len-tests: New file.
22796         * lib/unigbrk.in.h: Add prototype for new function.
22797         * lib/unigbrk/u8-grapheme-len.c: New file.
22798         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22799
22800         New module 'u16-grapheme-len'.
22801         * modules/unigbrk/u16-grapheme-len: New file.
22802         * modules/unigbrk/u16-grapheme-len-tests: New file.
22803         * lib/unigbrk.in.h: Add prototype for new function.
22804         * lib/unigbrk/u16-grapheme-len.c: New file.
22805         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22806
22807         New module 'u32-grapheme-len'.
22808         * modules/unigbrk/u32-grapheme-len: New file.
22809         * modules/unigbrk/u32-grapheme-len-tests: New file.
22810         * lib/unigbrk.in.h: Add prototype for new function.
22811         * lib/unigbrk/u32-grapheme-len.c: New file.
22812         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22813
22814         New module 'u8-grapheme-next'.
22815         * modules/unigbrk/u8-grapheme-next: New file.
22816         * modules/unigbrk/u8-grapheme-next-tests: New file.
22817         * lib/unigbrk.in.h: Add prototype for new function.
22818         * lib/unigbrk/u8-grapheme-next.c: New file.
22819         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22820
22821         New module 'u16-grapheme-next'.
22822         * modules/unigbrk/u16-grapheme-next: New file.
22823         * modules/unigbrk/u16-grapheme-next-tests: New file.
22824         * lib/unigbrk.in.h: Add prototype for new function.
22825         * lib/unigbrk/u16-grapheme-next.c: New file.
22826         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22827
22828         New module 'u32-grapheme-next'.
22829         * modules/unigbrk/u32-grapheme-next: New file.
22830         * modules/unigbrk/u32-grapheme-next-tests: New file.
22831         * lib/unigbrk.in.h: Add prototype for new function.
22832         * lib/unigbrk/u32-grapheme-next.c: New file.
22833         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22834
22835         New module 'u8-grapheme-prev'.
22836         * modules/unigbrk/u8-grapheme-prev: New file.
22837         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22838         * lib/unigbrk.in.h: Add prototype for new function.
22839         * lib/unigbrk/u8-grapheme-prev.c: New file.
22840         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22841
22842         New module 'u16-grapheme-prev'.
22843         * modules/unigbrk/u16-grapheme-prev: New file.
22844         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22845         * lib/unigbrk.in.h: Add prototype for new function.
22846         * lib/unigbrk/u16-grapheme-prev.c: New file.
22847         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22848
22849         New module 'u32-grapheme-prev'.
22850         * modules/unigbrk/u32-grapheme-prev: New file.
22851         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22852         * lib/unigbrk.in.h: Add prototype for new function.
22853         * lib/unigbrk/u32-grapheme-prev.c: New file.
22854         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22855
22856         New module 'u8-grapheme-breaks'.
22857         * modules/unigbrk/u8-grapheme-breaks: New file.
22858         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22859         * lib/unigbrk.in.h: Add prototype for new function.
22860         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22861         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22862
22863         New module 'u16-grapheme-breaks'.
22864         * modules/unigbrk/u16-grapheme-breaks: New file.
22865         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22866         * lib/unigbrk.in.h: Add prototype for new function.
22867         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22868         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22869
22870         New module 'u32-grapheme-breaks'.
22871         * modules/unigbrk/u32-grapheme-breaks: New file.
22872         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22873         * lib/unigbrk.in.h: Add prototype for new function.
22874         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22875         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22876
22877         New module 'ulc-grapheme-breaks'.
22878         * modules/unigbrk/ulc-grapheme-breaks: New file.
22879         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22880         * m4/locale-ar.m4: New file.
22881         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22882         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22883         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22884
22885 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22886
22887         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22888         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22889         modified how this file was generated before I initially submitted
22890         the module, but failed to regenerate it.  This meant that several
22891         of the level2 entries were wrong.
22892         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22893         Remove the division-by-2 that is folded into the table now that
22894         gbrkprop.h has been regenerated properly.  Now -1 entries are
22895         handled correctly.
22896
22897         New module 'unigbrk/uc-gbrk-prop-tests'.
22898         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22899         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22900         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22901         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22902
22903 2011-01-01  Bruno Haible  <bruno@clisp.org>
22904
22905         Avoid use of hexadecimal escapes.
22906         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22907         instead of hexadecimal escapes.
22908
22909 2011-01-01  Jim Meyering  <meyering@redhat.com>
22910
22911         maint: new rule to update copyright year ranges
22912         * Makefile (update-copyright): New rule.
22913
22914         maint: indent with TABs in Makefile
22915         * Makefile: Expand leading sequences of spaces to TABs
22916
22917         version-etc: update the copyright year it reports
22918         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22919
22920 2010-12-31  Bruno Haible  <bruno@clisp.org>
22921
22922         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22923         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22924         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22925         zero.
22926
22927 2010-12-31  Bruno Haible  <bruno@clisp.org>
22928
22929         pwrite: Work around HP-UX 11.11 bug.
22930         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22931         works and set REPLACE_PWRITE if not.
22932         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22933         function.
22934         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22935
22936 2010-12-31  Bruno Haible  <bruno@clisp.org>
22937
22938         pread: Work around HP-UX 11 bugs.
22939         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22940         and set REPLACE_PREAD if not.
22941         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22942
22943 2010-12-31  Eric Blake  <eblake@redhat.com>
22944
22945         nl_langinfo: fix YESEXPR on Irix 6.5
22946         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22947         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22948         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22949         it.
22950
22951 2010-12-31  Bruno Haible  <bruno@clisp.org>
22952
22953         iconv: Document HP-UX 11 bug.
22954         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22955
22956 2010-12-31  Bruno Haible  <bruno@clisp.org>
22957
22958         ldexpl: Fix link error on HP-UX 11.
22959         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22960         LDEXPL_LIBM, using $ISNANL_LIBM.
22961
22962 2010-12-31  Eric Blake  <eblake@redhat.com>
22963
22964         ftello: avoid compilation failure with SunStudio c89
22965         * lib/ftello.c (ftello): Use lseek, not llseek.
22966
22967         tests: avoid failing coreutils tests on cygwin
22968         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22969         (create_exe_shims_): Return 0 when skipping.
22970
22971 2010-12-31  Bruno Haible  <bruno@clisp.org>
22972
22973         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22974         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22975
22976 2010-12-31  Bruno Haible  <bruno@clisp.org>
22977
22978         waitpid: Fix link error in C++ mode.
22979         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22980
22981 2010-12-31  Bruno Haible  <bruno@clisp.org>
22982
22983         isnan: Use GCC built-ins when possible.
22984         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22985         __builtin_isnan.
22986         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22987         (isnan): Define using GCC built-ins for GCC >= 4.0.
22988
22989 2010-12-31  Bruno Haible  <bruno@clisp.org>
22990
22991         isnand: Fix mistake.
22992         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22993         __builtin_isnand.
22994
22995 2010-12-31  Bruno Haible  <bruno@clisp.org>
22996
22997         open: Avoid C++ error on HP-UX 11.
22998         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22999
23000 2010-12-31  Bruno Haible  <bruno@clisp.org>
23001
23002         time_r: Add missing declarations on HP-UX 11.
23003         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23004         instead of HAVE_LOCALTIME_R.
23005         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23006         HAVE_LOCALTIME_R always.
23007         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23008         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23009         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23010         HAVE_LOCALTIME_R.
23011         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23012         * doc/posix-functions/localtime_r.texi: Likewise.
23013
23014 2010-12-29  Eric Blake  <eblake@redhat.com>
23015
23016         mountlist: tweak previous commit
23017         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23018         Reported by Paul Eggert.
23019
23020         mountlist: fix local drive detection on cygwin
23021         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23022         that works for cygwin.
23023
23024 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23025
23026         ftoastr, snprintf: ftoastr + snprintf module
23027         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23028         since the snprintf module now should be good enough here.
23029         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23030         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23031         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23032         GNULIB_SNPRINTF only for the test directory, and the latter
23033         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23034         seems to suffice by itself.
23035
23036 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23037
23038         alloca: one step towards thread-safety
23039         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23040         need for a static variable.  All callers changed.  This does not
23041         make the alloca replacement thread-safe, but it's one step.
23042
23043         tests: minor indenting change
23044         * tests/init.sh: Sync from coreutils housekeeping patch
23045         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23046         to keep lines within 80 columns.
23047
23048 2010-12-28  Jim Meyering  <meyering@redhat.com>
23049
23050         regex: don't infloop on persistent failing calloc
23051         * lib/regexec.c (build_trtable): Return failure indication upon
23052         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23053         In glibc, this was fixed for version 2.13:
23054         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23055
23056 2010-12-28  Bruno Haible  <bruno@clisp.org>
23057             Paul Eggert <eggert@cs.ucla.edu>
23058
23059         linkat: Make implementation robust against system behaviour variations.
23060         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23061         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23062         way, and to -2 if it needs a generic runtime test.
23063         * lib/linkat.c (solaris_optimized_link_immediate,
23064         solaris_optimized_link_follow): New functions.
23065         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23066         (check_same_link): Use it.
23067
23068 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23069
23070         New module 'unigbrk/base'.
23071         * modules/unigbrk/base: New file.
23072         * lib/unigbrk.in.h: New file.
23073
23074         New module 'unigbrk/uc-gbrk-prop'.
23075         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23076         * modules/unigbrk/uc-gbrk-prop: New file.
23077         * lib/unigbrk/gbrkprop.h: New file.
23078         * lib/unigbrk/uc-gbrk-prop.c: New file.
23079
23080         New module 'unigbrk/uc-is-grapheme-break'.
23081         * modules/unigbrk/uc-is-grapheme-break: New file.
23082         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23083         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23084         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23085         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23086         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23087
23088         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23089
23090 2010-12-27  Bruno Haible  <bruno@clisp.org>
23091
23092         linkat test: Avoid failure on Solaris 11 2010-11.
23093         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23094
23095 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23096
23097         utimens: work around glibc rounding bug on more platforms
23098         * lib/utimens.c (fdutimens): Work around rounding bug even if
23099         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23100         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23101
23102 2010-12-27  Bruno Haible  <bruno@clisp.org>
23103
23104         select tests: Improve comments.
23105         * tests/test-select.c (do_select): Add comments.
23106
23107 2010-12-27  Bruno Haible  <bruno@clisp.org>
23108
23109         select tests: Safer way of handling timeout.
23110         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23111         at every invocation.
23112
23113 2010-12-27  Bruno Haible  <bruno@clisp.org>
23114
23115         select tests: Use 'bool' where appropriate.
23116         * tests/test-select.c (connect_to_socket): Change argument type to
23117         'bool'.
23118
23119 2010-12-27  Bruno Haible  <bruno@clisp.org>
23120
23121         select tests: Use existing modules.
23122         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23123         (configure.ac): Don't test for unistd.h.
23124         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23125         declared in <unistd.h>.
23126
23127 2010-12-27  Bruno Haible  <bruno@clisp.org>
23128
23129         mbrtowc: Work around a Solaris 7 bug.
23130         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23131         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23132         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23133         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23134         MBRTOWC_NULL_ARG1_BUG.
23135         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23136         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23137         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23138         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23139
23140 2010-12-27  Jim Meyering  <meyering@redhat.com>
23141
23142         read-file.c: tweak syntax
23143         * lib/read-file.c (fread_file): Remove space after "*" in function
23144         definitions.
23145
23146 2010-12-27  Bruno Haible  <bruno@clisp.org>
23147
23148         times test: Avoid gcc warnings on OSF/1.
23149         * tests/test-times.c (main): Cast printf arguments from clock_t to
23150         'long int'.
23151
23152 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23153
23154         utimens: work around glibc rounding bug on older Linux kernels
23155         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23156         on Linux with a glibc whose utimes might not work, then work
23157         around a longstanding glibc bug involving rounding rather than
23158         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23159         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23160
23161 2010-12-26  Bruno Haible  <bruno@clisp.org>
23162
23163         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23164         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23165         _GL_CXXALIAS_SYS.
23166         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23167
23168 2010-12-26  Bruno Haible  <bruno@clisp.org>
23169
23170         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23171         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23172         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23173         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23174         looking for the declaration.
23175         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23176         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23177         problem.
23178         * doc/posix-functions/inet_pton.texi: Likewise.
23179
23180 2010-12-26  Bruno Haible  <bruno@clisp.org>
23181
23182         arpa_inet: Use the common idioms with C++ support.
23183         * lib/arpa_inet.in.h: Include c++defs.h.
23184         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23185         support.
23186         * modules/arpa_inet (Depends-on): Add c++defs.
23187         (Makefile.am): Substitute the contents of c++defs.h.
23188         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23189         * modules/arpa_inet-c++-tests: New file.
23190         * tests/test-arpa_inet-c++.cc: New file.
23191
23192 2010-12-25  Bruno Haible  <bruno@clisp.org>
23193
23194         Fix more C++ link errors on Solaris 8.
23195         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23196         $(LIB_EACCESS).
23197         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23198         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23199         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23200         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23201         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23202
23203 2010-12-25  Bruno Haible  <bruno@clisp.org>
23204
23205         printf-posix: Fix link error when a non-GCC compiler is used.
23206         * lib/stdio.in.h (printf): When not using GCC, override printf
23207         correctly.
23208         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23209
23210 2010-12-25  Bruno Haible  <bruno@clisp.org>
23211
23212         strerror_r-posix: Update doc.
23213         * doc/posix-functions/strerror_r.texi: Update doc about the return
23214         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23215
23216 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23217
23218         utimens: simplify the logic of the previous change
23219         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23220         This should not affect whether the test succeeds or fails.
23221
23222         utimens: configure better on hosts with NFS clock skew
23223         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23224         uses the clock of the local host.  It might use the clock of the
23225         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23226         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23227
23228 2010-12-25  Bruno Haible  <bruno@clisp.org>
23229
23230         ptsname test: Avoid failure on Solaris.
23231         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23232         open a pseudo-terminal; don't use BSD-style ptys.
23233         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23234
23235 2010-12-25  Bruno Haible  <bruno@clisp.org>
23236
23237         ptsname: Avoid ERANGE failure on some systems.
23238         * lib/ptsname.c (buffer): Increase size.
23239
23240 2010-12-25  Bruno Haible  <bruno@clisp.org>
23241
23242         rename, renameat: Avoid test failures at NFS mounted locations.
23243         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23244         so that subsequent mkdir calls succeed.
23245
23246 2010-12-25  Bruno Haible  <bruno@clisp.org>
23247
23248         iswblank: Fix C++ link error on Solaris 8.
23249         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23250         _GL_FUNCDECL_SYS.
23251
23252 2010-12-25  Bruno Haible  <bruno@clisp.org>
23253
23254         unistd: Fix C++ link error on Solaris 8.
23255         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23256
23257 2010-12-25  Bruno Haible  <bruno@clisp.org>
23258
23259         readlink doc: Mention an old glibc bug.
23260         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23261
23262 2010-12-25  Bruno Haible  <bruno@clisp.org>
23263
23264         fcntl-h: Fix for use of C++ on glibc systems.
23265         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23266         also on glibc systems in C++ mode.
23267         Reported by Gary V. Vaughan <gary@gnu.org>.
23268
23269 2010-12-25  Bruno Haible  <bruno@clisp.org>
23270
23271         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23272         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23273
23274 2010-12-25  Bruno Haible  <bruno@clisp.org>
23275
23276         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23277         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23278         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23279         test whether truncl works according to ISO C 99 with IEC 60559.
23280         * m4/truncl-ieee.m4: New file.
23281         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23282         m4/signbit.m4.
23283         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23284
23285 2010-12-25  Bruno Haible  <bruno@clisp.org>
23286
23287         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23288         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23289         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23290         test whether ceill works according to ISO C 99 with IEC 60559.
23291         * m4/ceill-ieee.m4: New file.
23292         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23293         m4/signbit.m4.
23294         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23295
23296 2010-12-25  Bruno Haible  <bruno@clisp.org>
23297
23298         Ensure all prerequisites of <wchar.h> are included.
23299         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23300         before <wchar.h>.
23301         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23302         gl_MBRLEN_NUL_RETVAL): Likewise.
23303         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23304         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23305         AC_FUNC_MBRTOWC): Likewise.
23306         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23307         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23308         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23309         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23310         Likewise.
23311         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23312         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23313         (gl_WCHAR_H): Improve comments.
23314         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23315
23316 2010-12-25  Bruno Haible  <bruno@clisp.org>
23317
23318         strtok_r: Fix C syntax error in autoconf macro.
23319         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23320         characters in test program.
23321
23322 2010-12-24  Bruno Haible  <bruno@clisp.org>
23323
23324         ceil, trunc, round: Fix gcc warnings.
23325         * lib/ceil.c (MIN): Undefine before redefining.
23326         * lib/trunc.c (MIN): Likewise.
23327         * lib/round.c (MIN): Likewise.
23328         Include <math.h> first.
23329
23330 2010-12-24  Bruno Haible  <bruno@clisp.org>
23331
23332         select tests: Avoid failures on OSF/1 5.1.
23333         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23334         failure of closing the last socket; it may fail with ECONNRESET.
23335
23336 2010-12-24  Eric Blake  <eblake@redhat.com>
23337
23338         stdint: avoid HP-UX 10.20 preprocessor bug
23339         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23340         than #if.
23341         * tests/test-floor2.c (main): Likewise.
23342         Reported by Peter O'Gorman.
23343
23344         pipe: make obsoletion transition easier
23345         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23346         * modules/pipe (Files): Include revived file.
23347         (Include): Drop reference, to mirror getdate's behavior.
23348
23349 2010-12-24  Bruno Haible  <bruno@clisp.org>
23350
23351         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23352         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23353         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23354         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23355
23356 2010-12-24  Bruno Haible  <bruno@clisp.org>
23357
23358         gethostname: Ensure declaration on NonStop Kernel.
23359         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23360         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23361
23362 2010-12-24  Bruno Haible  <bruno@clisp.org>
23363
23364         sys_select: Ensure all necessary types on NonStop Kernel.
23365         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23366         include <sys/time.h>.
23367         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23368         NonStop Kernel.
23369         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23370
23371 2010-12-24  Bruno Haible  <bruno@clisp.org>
23372
23373         sys_select: Remove unneeded include.
23374         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23375         have <sys/select.h>.
23376
23377 2010-12-24  Bruno Haible  <bruno@clisp.org>
23378
23379         gethostname: Provide a fallback for HOST_NAME_MAX.
23380         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23381         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23382         instead.
23383         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23384
23385 2010-12-24  Bruno Haible  <bruno@clisp.org>
23386
23387         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23388         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23389         (SA_RESTART): Likewise.
23390         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23391
23392 2010-12-24  Bruno Haible  <bruno@clisp.org>
23393
23394         signal: Define NSIG.
23395         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23396         * tests/test-signal.c (nsig): New variable.
23397         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23398
23399 2010-12-24  Bruno Haible  <bruno@clisp.org>
23400
23401         rename, renameat: Avoid test failures on OSF/1 5.1.
23402         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23403         alternative error codes.
23404         * tests/test-renameat.c (main): Likewise.
23405
23406 2010-12-24  Bruno Haible  <bruno@clisp.org>
23407
23408         *printf: Detect large precisions bug on Solaris 10/SPARC.
23409         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23410         by Paul Eggert.
23411         * tests/test-snprintf-posix.h (test_function): Add this test code here
23412         too.
23413         * tests/test-sprintf-posix.h (test_function): Likewise.
23414         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23415         * tests/test-vasprintf-posix.c (test_function): Likewise.
23416         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23417         around by gnulib.
23418         * doc/posix-functions/printf.texi: Likewise.
23419         * doc/posix-functions/snprintf.texi: Likewise.
23420         * doc/posix-functions/sprintf.texi: Likewise.
23421         * doc/posix-functions/vfprintf.texi: Likewise.
23422         * doc/posix-functions/vprintf.texi: Likewise.
23423         * doc/posix-functions/vsnprintf.texi: Likewise.
23424         * doc/posix-functions/vsprintf.texi: Likewise.
23425         * doc/posix-functions/dprintf.texi: Undo last commit.
23426         * doc/posix-functions/vdprintf.texi: Likewise.
23427
23428 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23429
23430         tests: port test-fdutimensat.c to Solaris 8
23431         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23432         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23433         On Solaris 8, it fails with errno == ENOSYS, because there is no
23434         futimens (so it can't use the fd), and there is no lutimens (so it
23435         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23436
23437         vsnprintf: make more consistent with snprintf; doc fixes
23438
23439         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23440         the byte count return problem was promoted from the snprintf-posix
23441         to the snprintf module.
23442         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23443         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23444         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23445         * tests/test-snprintf.c (main): Check the byte count returned.
23446         * tests/test-vsnprintf.c (main): Likewise.
23447
23448 2010-12-23  Eric Blake  <eblake@redhat.com>
23449
23450         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23451         * modules/sigpipe (License): Relax license.
23452
23453 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23454
23455         doc: document Solaris printf bug with large float precisions
23456         * doc/posix-functions/dprintf.texi (dprintf):
23457         * doc/posix-functions/fprintf.texi (fprintf):
23458         * doc/posix-functions/printf.texi (printf):
23459         * doc/posix-functions/snprintf.texi (snprintf):
23460         * doc/posix-functions/sprintf.texi (sprintf):
23461         * doc/posix-functions/vdprintf.texi (vdprintf):
23462         * doc/posix-functions/vfprintf.texi (vfprintf):
23463         * doc/posix-functions/vprintf.texi (vprintf):
23464         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23465         * doc/posix-functions/vsprintf.texi (vsprintf):
23466         Mention that these functions mishandle large floating point
23467         precisions on Solaris 10.  The same bug is also present in Solaris
23468         8, and I assume earlier.  This causes "cd gnulib-tests; make
23469         check" to fail on Solaris 8 (and I assume, later) when building
23470         the latest coreutils, in test-vasprintf-posix's call to
23471         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23472         the wide flavors (e.g., wprintf) so this patch just updates the
23473         documentation for the narrow ones.
23474
23475         test-posixtm.c: add two tests
23476         * tests/test-posixtm.c: Add two tests, to highlight the
23477         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23478         around this bug; this is merely to document it.
23479
23480 2010-12-22  Bruno Haible  <bruno@clisp.org>
23481
23482         getlogin_r: Work around portability problem on OSF/1.
23483         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23484         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23485         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23486         test for a truncated result.
23487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23488         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23489         * modules/getlogin_r (Depends-on): Add memchr.
23490         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23491
23492 2010-12-22  Bruno Haible  <bruno@clisp.org>
23493
23494         ptsname: Avoid test failure on OSF/1 5.1.
23495         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23496         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23497         (same_slave): New function.
23498         (main): Use it to compare ptsname's result with the expected file name.
23499
23500 2010-12-22  Bruno Haible  <bruno@clisp.org>
23501
23502         Port extended stdio modules to HP NonStop Kernel.
23503         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23504         macros.
23505         * lib/fbufmode.c: Update comments.
23506         * lib/fflush.c: Likewise.
23507         * lib/fpurge.c: Likewise.
23508         * lib/freadable.c: Likewise.
23509         * lib/freadahead.c: Likewise.
23510         * lib/freading.c: Likewise.
23511         * lib/freadptr.c: Likewise.
23512         * lib/freadseek.c: Likewise.
23513         * lib/fseeko.c: Likewise.
23514         * lib/fseterr.c: Likewise.
23515         * lib/fwritable.c: Likewise.
23516         * lib/fwriting.c: Likewise.
23517         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23518
23519 2010-12-22  Bruno Haible  <bruno@clisp.org>
23520
23521         ttyname_r: Work around bug on OSF/1 5.1.
23522         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23523         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23524         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23525         present.
23526         * lib/ttyname_r.c (ttyname_r): Update comments.
23527
23528 2010-12-22  Bruno Haible  <bruno@clisp.org>
23529
23530         round: Implement result sign according to IEEE 754.
23531         * lib/round.c (MIN, MINUS_ZERO): New macros.
23532         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23533         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23534         * tests/test-round-ieee.c (main): Likewise.
23535         * tests/test-roundl-ieee.c (main): Likewise.
23536
23537         trunc: Implement result sign according to IEEE 754.
23538         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23539         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23540         * tests/test-trunc2.c: Include minus-zero.h.
23541         (MINUS_ZERO): New macro.
23542         (trunc_reference): Keep in sync with lib/trunc.c.
23543         * tests/test-truncf2.c: Include minus-zero.h.
23544         (MINUS_ZERO): New macro.
23545         (truncf_reference): Keep in sync with lib/trunc.c.
23546         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23547         * tests/test-trunc-ieee.c (main): Likewise.
23548         * tests/test-truncl-ieee.c (main): Likewise.
23549
23550         ceil: Implement result sign according to IEEE 754.
23551         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23552         (FUNC): Return -0.0 for -1 < x < 0.
23553         * tests/test-ceil2.c: Include minus-zero.h.
23554         (MINUS_ZERO): New macro.
23555         (ceil_reference): Keep in sync with lib/ceil.c.
23556         * tests/test-ceilf2.c: Include minus-zero.h.
23557         (MINUS_ZERO): New macro.
23558         (ceilf_reference): Keep in sync with lib/ceil.c.
23559         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23560         * tests/test-ceil-ieee.c (main): Likewise.
23561         * tests/test-ceill-ieee.c (main): Likewise.
23562
23563         floor: Implement result sign according to IEEE 754.
23564         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23565         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23566         * tests/test-floorf2.c (floorf_reference): Likewise.
23567         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23568         * tests/test-floor-ieee.c (main): Likewise.
23569         * tests/test-floorl-ieee.c (main): Likewise.
23570
23571 2010-12-22  Bruno Haible  <bruno@clisp.org>
23572
23573         getaddrinfo: Update doc.
23574         * doc/posix-functions/gai_strerror.texi: Return type is also different
23575         on AIX and HP-UX.
23576
23577 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23578
23579         getaddrinfo, inet_ntop: Update doc for Solaris.
23580         * doc/posix-functions/gai_strerror.texi: Return type is also an
23581         issue on Solaris 9 and earlier.
23582         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23583         on Solaris 10 and earlier.
23584
23585 2010-12-21  Bruno Haible  <bruno@clisp.org>
23586
23587         New module 'roundl-ieee'.
23588         * modules/roundl-ieee: New file.
23589         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23590         test whether roundl works according to ISO C 99 with IEC 60559.
23591         * m4/roundl-ieee.m4: New file.
23592         * modules/roundl-ieee-tests: New file.
23593         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23594         * tests/test-roundl.c (main): Remove signbit tests.
23595         * modules/roundl-tests (Depends-on): Remove signbit.
23596         * doc/posix-functions/roundl.texi: Mention the new module.
23597
23598 2010-12-21  Bruno Haible  <bruno@clisp.org>
23599
23600         New module 'truncl-ieee'.
23601         * modules/truncl-ieee: New file.
23602         * modules/truncl-ieee-tests: New file.
23603         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23604         * tests/test-truncl.c (main): Remove signbit tests.
23605         * modules/truncl-tests (Depends-on): Remove signbit.
23606         * doc/posix-functions/truncl.texi: Mention the new module.
23607
23608 2010-12-21  Bruno Haible  <bruno@clisp.org>
23609
23610         New module 'ceill-ieee'.
23611         * modules/ceill-ieee: New file.
23612         * modules/ceill-ieee-tests: New file.
23613         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23614         * tests/test-ceill.c (main): Remove signbit tests.
23615         * modules/ceill-tests (Depends-on): Remove signbit.
23616         * doc/posix-functions/ceill.texi: Mention the new module.
23617
23618 2010-12-21  Bruno Haible  <bruno@clisp.org>
23619
23620         New module 'floorl-ieee'.
23621         * modules/floorl-ieee: New file.
23622         * modules/floorl-ieee-tests: New file.
23623         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23624         * tests/test-floorl.c (main): Remove signbit tests.
23625         * modules/floorl-tests (Depends-on): Remove signbit.
23626         * doc/posix-functions/floorl.texi: Mention the new module.
23627
23628 2010-12-21  Bruno Haible  <bruno@clisp.org>
23629
23630         New module 'round-ieee'.
23631         * modules/round-ieee: New file.
23632         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23633         whether round works according to ISO C 99 with IEC 60559.
23634         * m4/round-ieee.m4: New file.
23635         * modules/round-ieee-tests: New file.
23636         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23637         * tests/test-round1.c (main): Remove signbit tests.
23638         * modules/round-tests (Depends-on): Remove 'signbit'.
23639         * doc/posix-functions/round.texi: Mention the new module.
23640
23641 2010-12-21  Bruno Haible  <bruno@clisp.org>
23642
23643         New module 'trunc-ieee'.
23644         * modules/trunc-ieee: New file.
23645         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23646         whether trunc works according to ISO C 99 with IEC 60559.
23647         * m4/trunc-ieee.m4: New file.
23648         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23650         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23651         * modules/trunc-ieee-tests: New file.
23652         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23653         * tests/test-trunc1.c (main): Remove signbit tests.
23654         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23655         * doc/posix-functions/trunc.texi: Mention the new module.
23656
23657 2010-12-21  Bruno Haible  <bruno@clisp.org>
23658
23659         New module 'ceil-ieee'.
23660         * modules/ceil-ieee: New file.
23661         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23662         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23663         ISO C 99 with IEC 60559.
23664         * m4/ceil-ieee.m4: New file.
23665         * modules/ceil (Files): Add lib/ceil.c.
23666         (Depends-on): Add 'float'.
23667         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23668         * lib/math.in.h (ceil): New declaration.
23669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23670         REPLACE_CEIL.
23671         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23672         * modules/ceil-ieee-tests: New file.
23673         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23674         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23675         * doc/posix-functions/ceil.texi: Mention the new module.
23676
23677 2010-12-21  Bruno Haible  <bruno@clisp.org>
23678
23679         New module 'floor-ieee'.
23680         * modules/floor-ieee: New file.
23681         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23682         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23683         ISO C 99 with IEC 60559.
23684         * m4/floor-ieee.m4: New file.
23685         * modules/floor (Files): Add lib/floor.c.
23686         (Depends-on): Add 'float'.
23687         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23688         * lib/math.in.h (floor): New declaration.
23689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23690         REPLACE_FLOOR.
23691         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23692         * modules/floor-ieee-tests: New file.
23693         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23694         * tests/test-math-c++.cc: Check the signature of 'floor'.
23695         * doc/posix-functions/floor.texi: Mention the new module.
23696
23697 2010-12-21  Bruno Haible  <bruno@clisp.org>
23698
23699         New module 'roundf-ieee'.
23700         * modules/roundf-ieee: New file.
23701         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23702         test whether roundf works according to ISO C 99 with IEC 60559.
23703         * m4/roundf-ieee.m4: New file.
23704         * modules/roundf-ieee-tests: New file.
23705         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23706         * tests/test-roundf1.c (main): Remove signbit tests.
23707         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23708         * doc/posix-functions/roundf.texi: Mention the new module.
23709
23710 2010-12-21  Bruno Haible  <bruno@clisp.org>
23711
23712         New module 'truncf-ieee'.
23713         * modules/truncf-ieee: New file.
23714         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23715         test whether truncf works according to ISO C 99 with IEC 60559.
23716         * m4/truncf-ieee.m4: New file.
23717         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23719         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23720         * modules/truncf-ieee-tests: New file.
23721         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23722         * tests/test-truncf1.c (main): Remove signbit tests.
23723         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23724         * doc/posix-functions/truncf.texi: Mention the new module.
23725
23726 2010-12-21  Bruno Haible  <bruno@clisp.org>
23727
23728         New module 'ceilf-ieee'.
23729         * modules/ceilf-ieee: New file.
23730         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23731         test whether ceilf works according to ISO C 99 with IEC 60559.
23732         * m4/ceilf-ieee.m4: New file.
23733         * modules/ceilf-ieee-tests: New file.
23734         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23735         * tests/test-ceilf1.c (main): Remove signbit tests.
23736         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23737         * doc/posix-functions/ceilf.texi: Mention the new module.
23738
23739 2010-12-21  Bruno Haible  <bruno@clisp.org>
23740
23741         New module 'floorf-ieee'.
23742         * modules/floorf-ieee: New file.
23743         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23744         test whether floorf works according to ISO C 99 with IEC 60559.
23745         * m4/floorf-ieee.m4: New file.
23746         * modules/floorf-ieee-tests: New file.
23747         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23748         * tests/test-floorf1.c (main): Remove signbit tests.
23749         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23750         * doc/posix-functions/floorf.texi: Mention the new module.
23751
23752 2010-12-21  Bruno Haible  <bruno@clisp.org>
23753
23754         Support for minus zero in autoconf macros.
23755         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23756         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23757         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23758         * tests/minus-zero.h: Update comments.
23759
23760 2010-12-21  Bruno Haible  <bruno@clisp.org>
23761
23762         Tests for module 'ceil'.
23763         * modules/ceil-tests: New file.
23764         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23765         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23766
23767 2010-12-21  Bruno Haible  <bruno@clisp.org>
23768
23769         Tests for module 'floor'.
23770         * modules/floor-tests: New file.
23771         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23772         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23773
23774 2010-12-21  Bruno Haible  <bruno@clisp.org>
23775
23776         math: Fix indentation.
23777         * lib/math.in.h (floorf): Fix indentation.
23778
23779 2010-12-21  Bruno Haible  <bruno@clisp.org>
23780
23781         Fix cross-compilation guesses on Solaris.
23782         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23783         not match "solaris2.10".
23784         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23785         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23786         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23787
23788 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23789
23790         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23791         This fixes a problem observed with the latest coreutils snapshot
23792         that caused a test to fail on Solaris 8.  src/csplit.c's call
23793         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23794         earlier, instead of returning the number of bytes that would have
23795         been generated; this causes csplit to incorrectly report memory
23796         exhaustion.
23797         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23798         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23799         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23800         comments to match.
23801         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23802         Fix typo in matching older versions of Solaris: "solaris2.10"
23803         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23804         only for guessing while cross-compiling.
23805         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23806
23807 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23808
23809         ftoastr: fix comment again
23810         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23811         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23812         Also, simplify example a bit by using flags = 0.
23813
23814 2010-12-20  Bruno Haible  <bruno@clisp.org>
23815
23816         round*, trunc*: Update documentation regarding glibc.
23817         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23818         * doc/posix-functions/round.texi: Likewise.
23819         * doc/posix-functions/roundl.texi: Likewise.
23820         * doc/posix-functions/truncf.texi: Likewise.
23821         * doc/posix-functions/trunc.texi: Likewise.
23822         * doc/posix-functions/truncl.texi: Likewise.
23823
23824 2010-12-20  Bruno Haible  <bruno@clisp.org>
23825
23826         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23827         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23828         * doc/posix-functions/round.texi: Likewise.
23829         * doc/posix-functions/roundl.texi: Likewise.
23830
23831 2010-12-20  Bruno Haible  <bruno@clisp.org>
23832
23833         ttyname_r: Add missing declaration on HP-UX 11.
23834         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23835         HAVE_TTYNAME_R.
23836         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23837         declared. Set HAVE_TTYNAME_R always.
23838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23839         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23840         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23841         HAVE_TTYNAME_R.
23842         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23843
23844 2010-12-20  Bruno Haible  <bruno@clisp.org>
23845
23846         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23847         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23848         * doc/posix-functions/getlogin_r.texi: Likewise.
23849         * tests/test-getlogin.c: Include <errno.h>.
23850         (main): Avoid test failure on HP-UX 11.11.
23851         * tests/test-getlogin_r.c (main): Likewise.
23852
23853 2010-12-20  Bruno Haible  <bruno@clisp.org>
23854
23855         getlogin_r: Add missing declaration on HP-UX 11.
23856         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23857         declared also when it exists as a function.
23858         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23859
23860 2010-12-20  Bruno Haible  <bruno@clisp.org>
23861
23862         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23863         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23864         through wcrtomb.
23865
23866 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23867
23868         ftoastr: fix comment
23869         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23870         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23871
23872 2010-12-19  Bruno Haible  <bruno@clisp.org>
23873
23874         isnan: Ensure it is a macro.
23875         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23876         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23877         Solaris.
23878
23879 2010-12-19  Bruno Haible  <bruno@clisp.org>
23880
23881         ldexpl test: Fix link error on OSF/1 5.1.
23882         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23883
23884 2010-12-19  Bruno Haible  <bruno@clisp.org>
23885
23886         wctype: Make it work in C++ mode on OSF/1 5.1.
23887         * lib/wctype.in.h (iswblank): Declare but not define here.
23888         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23889         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23890         * modules/wctype (Files): Add lib/iswblank.c.
23891
23892 2010-12-19  Bruno Haible  <bruno@clisp.org>
23893
23894         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23895         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23896         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23897
23898 2010-12-19  Bruno Haible  <bruno@clisp.org>
23899
23900         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23901         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23902         _POSIX_PII_SOCKET.
23903         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23904         * doc/posix-functions/recvfrom.texi: Likewise.
23905         * doc/posix-functions/send.texi: Likewise.
23906         * doc/posix-functions/sendto.texi: Likewise.
23907
23908 2010-12-19  Bruno Haible  <bruno@clisp.org>
23909
23910         tcgetsid: Add missing declaration on OSF/1 5.1.
23911         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23912         HAVE_TCGETSID.
23913         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23914         Don't set HAVE_TCGETSID.
23915         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23916         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23917         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23918         HAVE_TCGETSID.
23919         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23920
23921 2010-12-19  Bruno Haible  <bruno@clisp.org>
23922
23923         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23924         * lib/stdio.in.h: During the include_next statement, let recursive
23925         includes of this file include only the system header file.
23926
23927 2010-12-19  Bruno Haible  <bruno@clisp.org>
23928
23929         iconv_open: Fix regression from 2010-12-04.
23930         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23931         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23932
23933 2010-12-19  Bruno Haible  <bruno@clisp.org>
23934
23935         stdbool test: Avoid a gcc warning.
23936         * tests/test-stdbool.c (main): Fail if e1 is false.
23937         Reported by Jim Meyering.
23938
23939 2010-12-19  Jim Meyering  <meyering@redhat.com>
23940
23941         setenv: restore to working order
23942         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23943         mistakenly removed.
23944         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23945         HAVE_SETENV.
23946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23947         HAVE_SETENV.
23948
23949 2010-12-19  Bruno Haible  <bruno@clisp.org>
23950
23951         Document some different function declarations on OSF/1 5.1.
23952         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23953         * doc/posix-functions/inet_ntop.texi: Likewise.
23954         * doc/posix-functions/gethostname.texi: Likewise.
23955         * lib/unistd.in.h (gethostname): Update comment.
23956
23957 2010-12-19  Bruno Haible  <bruno@clisp.org>
23958
23959         doc: Mention vasprintf-posix module.
23960         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23961         the 'vasprintf-posix' module.
23962         * doc/glibc-functions/vasprintf.texi: Likewise.
23963
23964 2010-12-19  Bruno Haible  <bruno@clisp.org>
23965
23966         unsetenv: Add missing declaration on OSF/1 5.1.
23967         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23968         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23969         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23971         not HAVE_UNSETENV.
23972         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23973         HAVE_UNSETENV.
23974         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23975
23976 2010-12-19  Bruno Haible  <bruno@clisp.org>
23977
23978         setenv: Add missing declaration on OSF/1 5.1.
23979         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23980         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23981         declared. Don't set HAVE_SETENV.
23982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23983         not HAVE_SETENV.
23984         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23985         HAVE_SETENV.
23986         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23987
23988 2010-12-19  Bruno Haible  <bruno@clisp.org>
23989
23990         nl_langinfo tests: Avoid gcc warning.
23991         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23992
23993 2010-12-19  Bruno Haible  <bruno@clisp.org>
23994
23995         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23996         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23997         _GL_CXXALIAS_SYS.
23998
23999 2010-12-19  Bruno Haible  <bruno@clisp.org>
24000
24001         stdbool: Relax test.
24002         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24003         address to 'bool' work in static initializer, for compilers other than
24004         GCC.
24005
24006 2010-12-19  Bruno Haible  <bruno@clisp.org>
24007
24008         ftello: Add missing declaration on OSF/1 5.1.
24009         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24010         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24012         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24013         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24014
24015 2010-12-19  Bruno Haible  <bruno@clisp.org>
24016
24017         fseeko: Add missing declaration on OSF/1 5.1.
24018         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24019         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24021         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24022         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24023
24024 2010-12-19  Bruno Haible  <bruno@clisp.org>
24025
24026         fchdir: Add missing declaration on OSF/1 5.1.
24027         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24028         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24030         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24031         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24032
24033 2010-12-19  Bruno Haible  <bruno@clisp.org>
24034
24035         relocatable-prog-wrapper: Separate from relocatable-prog.
24036         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24037         uninstall-relocwrapper rule here.
24038         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24039         Reported by Ian Beckwith <ianb@erislabs.net>.
24040
24041 2010-12-19  Bruno Haible  <bruno@clisp.org>
24042
24043         unistr/u8-mbsnlen: Add missing dependency.
24044         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24045         Reported by Ian Beckwith <ianb@erislabs.net>.
24046
24047 2010-12-19  Bruno Haible  <bruno@clisp.org>
24048
24049         iconv: Make it possible again to use this module without 'iconv-h'.
24050         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24051         if it is not defined.
24052         Reported by Ian Beckwith <ianb@erislabs.net>.
24053
24054 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24055
24056         acl: port to Solaris 8 when copying from tmpfs to ufs
24057         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24058         error number.  Problem observed on Solaris 8 with latest
24059         coreutils, with "mv A B", where A is on a tmpfs file system and B
24060         is on a ufs file system.  This caused coreutils' mv/part-symlink
24061         test to fail.
24062
24063         tests: set fail=0 at start
24064         * tests/init.sh (setup_): Move fail=0 initialization here ...
24065         (mktempd_): ... from here, so that tests can rely on fail being
24066         set to 0 initially.  This fixes a problem in coreutils; see:
24067         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24068
24069 2010-12-18  Bruno Haible  <bruno@clisp.org>
24070
24071         memmem-simple: Stylistic changes.
24072         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24073         Fix preprocessor directive indentation.
24074
24075 2010-12-15  Pádraig Brady <P@draigBrady.com>
24076
24077         memmem, memmem-simple: reorganize and expand empty needle check
24078         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24079         functional checks to memmem-simple so that one has a fully functional
24080         memmem by using just this module.
24081         Restrict the performance only check to the memmem module.
24082         Also expand the empty needle check to ensure the correct
24083         pointer is returned, not just a non NULL pointer.
24084         * doc/glibc-functions/memmem.texi: Rearrange the portability
24085         documentation to correlate with the rearranged checks.
24086         Clarify exactly how the memmem and memmem-simple modules
24087         relate to each other.
24088
24089 2010-12-15  Pádraig Brady <P@draigBrady.com>
24090             Bruno Haible  <bruno@clisp.org>
24091
24092         Improve cross-compilation guesses for uClibc.
24093         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24094         that uClibc does not have the glibc bug.
24095         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24096         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24097
24098 2010-12-14  Eric Blake  <eblake@redhat.com>
24099
24100         configmake: provide fallbacks for oldest supported autotools
24101         * m4/configmake.m4: New file.
24102         * modules/configmake (Files): Ship it.
24103         (configure.ac): Use it to guarantee fallbacks.
24104
24105 2010-12-13  Pádraig Brady <P@draigBrady.com>
24106
24107         read-file: Improve handling of large files
24108         * lib/read-file.c (fread_file): Minimize realloc()s
24109         for regular files, and better manage sizes around SIZE_MAX.
24110
24111 2010-12-13  Eric Blake  <eblake@redhat.com>
24112
24113         cloexec, fcntl: relax license
24114         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24115         consent from all contributors.
24116         * modules/fcntl (License): Likewise.
24117
24118 2010-12-10  Bruno Haible  <bruno@clisp.org>
24119
24120         Tests for module 'pipe-posix'.
24121         * modules/pipe-posix-tests: New file.
24122         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24123
24124 2010-12-10  Bruno Haible  <bruno@clisp.org>
24125
24126         pipe-posix: Make it work in C++ mode.
24127         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24128         (pipe): Use common idiom, not a macro definition.
24129         * lib/pipe.c: New file.
24130         * m4/pipe.m4: New file.
24131         * modules/pipe-posix (Description): Enhance.
24132         (Files): Add lib/pipe.c, m4/pipe.m4.
24133         (configure.ac): Invoke gl_FUNC_PIPE.
24134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24135         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24136         * tests/test-unistd-c++.cc: Check the signature of pipe.
24137
24138 2010-12-10  Bruno Haible  <bruno@clisp.org>
24139
24140         Rename module 'pipe' to 'spawn-pipe'.
24141         * modules/spawn-pipe: New file, renamed from modules/pipe.
24142         (Files, configure.ac, Makefile.am): Update.
24143         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24144         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24145         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24146         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24147         "spawn-pipe.h" instead of "pipe.h".
24148         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24149         to gl_SPAWN_PIPE.
24150         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24151         (Files, Makefile.am): Update.
24152         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24153         Update.
24154         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24155         Include "spawn-pipe.h" instead of "pipe.h".
24156         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24157         * lib/javacomp.c: Likewise.
24158         * lib/javaversion.c: Likewise.
24159         * lib/pipe-filter-gi.c: Likewise.
24160         * lib/pipe-filter-ii.c: Likewise.
24161         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24162         * modules/javacomp (Depends-on): Likewise.
24163         * modules/javaversion (Depends-on): Likewise.
24164         * modules/pipe-filter-gi (Depends-on): Likewise.
24165         * modules/pipe-filter-ii (Depends-on): Likewise.
24166         * MODULES.html.sh (Executing programs): Update.
24167         * NEWS: Mention the change.
24168
24169 2010-12-10  Eric Blake  <eblake@redhat.com>
24170
24171         pipe-posix: new module
24172         * modules/pipe-posix: New file.
24173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24174         (gl_UNISTD_H): Check for declaration.
24175         * modules/unistd (Makefile.am): Substitute it.
24176         * lib/unistd.in.h (pipe): Provide it for mingw.
24177         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24178         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24179
24180 2010-12-07  Bruno Haible  <bruno@clisp.org>
24181
24182         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24183         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24184         u8_strcmp_gnu.
24185         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24186
24187 2010-12-06  Bruno Haible  <bruno@clisp.org>
24188
24189         Update internal documentation.
24190         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24191
24192 2010-12-04  Bruno Haible  <bruno@clisp.org>
24193
24194         Put more information about failed tests into the test return codes.
24195         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24196         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24197         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24198         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24199         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24200         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24201         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24202         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24203         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24204         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24205         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24206         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24207         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24208         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24209         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24210         returns a bit mask.
24211         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24212         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24213         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24214         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24215         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24216         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24219         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24220         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24221         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24222         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24223         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24224         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24225         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24226         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24227         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24228         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24229         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24230         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24232         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24233         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24234         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24235         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24236         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24237         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24238         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24239         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24240         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24241         gl_PRINTF_PRECISION): Likewise.
24242         * m4/regex.m4 (gl_REGEX): Likewise.
24243         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24244         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24245         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24246         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24247         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24248         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24249         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24250         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24251         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24252         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24253         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24254         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24255         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24256         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24257         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24258         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24259         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24260         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24261         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24262         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24263         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24264         enumerated value.
24265         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24266
24267 2010-12-04  Bruno Haible  <bruno@clisp.org>
24268
24269         Update for Solaris 11 2010-11.
24270         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24271         Express, released in November 2010.
24272
24273 2010-12-04  Bruno Haible  <bruno@clisp.org>
24274
24275         nproc: Relax license.
24276         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24277         and Paul Eggert.
24278         Requested by Ludovic Courtès <ludo@gnu.org>.
24279
24280 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24281
24282         utimecmp: fine-grained src to nearby coarse-grained dest
24283
24284         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24285         and the source is on a file system with higher-resolution time
24286         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24287         not work, and the time stamps are close together, the algorithm to
24288         determine the exact resolution from the read-back mtime was buggy:
24289         it had a "!=" where it should have had an "==".  This bug has been
24290         in the code ever since it was introduced to gnulib.
24291         Problem reported by Dan Jacobson in
24292         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24293
24294 2010-11-30  Bruno Haible  <bruno@clisp.org>
24295
24296         strerror_r-posix: Fix autoconf test.
24297         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24298
24299 2010-11-28  Bruno Haible  <bruno@clisp.org>
24300             Paul Eggert  <eggert@cs.ucla.edu>
24301
24302         Tests for module 'getdomainname'.
24303         * modules/getdomainname-tests: New file.
24304         * tests/test-getdomainname.c: New file, based on
24305         tests/test-gethostname.c.
24306
24307 2010-11-28  Bruno Haible  <bruno@clisp.org>
24308             Paul Eggert  <eggert@cs.ucla.edu>
24309
24310         getdomainname: Use the system function when possible.
24311         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24312         (getdomainname): Replace if needed. Provide the declaration if it is
24313         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24314         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24315         (getdomainname): When the system has getdomainname, call the system
24316         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24317         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24318         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24319         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24320         the function if its second argument is of type 'int' or if it is found
24321         in libnsl.
24322         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24323         <sys/systeminfo.h> and sysinfo().
24324         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24326         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24327         HAVE_GETDOMAINNAME.
24328         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24329         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24330         * doc/glibc-functions/getdomainname.texi: Document the problems with
24331         the getdomainname declaration.
24332
24333 2010-11-28  Bruno Haible  <bruno@clisp.org>
24334
24335         sys_socket: Ensure ss_family field on AIX.
24336         * lib/sys_socket.in.h (ss_family): New macro definition.
24337         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24338         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24339         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24340         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24341         * modules/sys_socket (Makefile.am): Substitute
24342         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24343         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24344
24345 2010-11-27  Bruno Haible  <bruno@clisp.org>
24346
24347         readline: Improve configure output.
24348         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24349         "checking for readline..." result understandable.
24350
24351 2010-11-27  Bruno Haible  <bruno@clisp.org>
24352
24353         *printf-posix: Detect a bug on Solaris 10/x86.
24354         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24355         for floating-point output.
24356         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24357         directive.
24358         * tests/test-snprintf-posix.h (test_function): Likewise.
24359         * tests/test-sprintf-posix.h (test_function): Likewise.
24360         * tests/test-vasprintf-posix.c (test_function): Likewise.
24361         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24362         * doc/posix-functions/printf.texi: Likewise.
24363         * doc/posix-functions/snprintf.texi: Likewise.
24364         * doc/posix-functions/sprintf.texi: Likewise.
24365         * doc/posix-functions/vfprintf.texi: Likewise.
24366         * doc/posix-functions/vprintf.texi: Likewise.
24367         * doc/posix-functions/vsnprintf.texi: Likewise.
24368         * doc/posix-functions/vsprintf.texi: Likewise.
24369         * doc/glibc-functions/obstack_printf.texi: Likewise.
24370         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24371
24372 2010-11-27  Bruno Haible  <bruno@clisp.org>
24373
24374         Fix link error when module libunistring-optional is in use.
24375         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24376         * modules/striconveha-tests (Makefile.am): Likewise.
24377
24378 2010-11-27  Bruno Haible  <bruno@clisp.org>
24379
24380         regex: Mention link dependencies.
24381         * modules/regex (Link): New section.
24382         * modules/rpmatch (Link): Likewise.
24383         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24384
24385 2010-11-27  Bruno Haible  <bruno@clisp.org>
24386
24387         ftoastr: Fix compilation error on Solaris.
24388         * lib/ftoastr.c: Include <config.h>.
24389
24390 2010-11-27  Bruno Haible  <bruno@clisp.org>
24391
24392         getloadavg: Update documentation.
24393         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24394
24395 2010-11-27  Bruno Haible  <bruno@clisp.org>
24396
24397         sys_socket: Fix test whether the functions are declared.
24398         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24399         not <sys/select.h>.
24400
24401 2010-11-27  Bruno Haible  <bruno@clisp.org>
24402
24403         getpass: Make sure to get system declaration on some platforms.
24404         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24405         gl_USE_SYSTEM_EXTENSIONS.
24406         * modules/getpass (Depends-on): Add extensions.
24407
24408 2010-11-26  Bruno Haible  <bruno@clisp.org>
24409
24410         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24411         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24412         'iconv' module is present.
24413         (ICONV_CONST): New macro.
24414         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24415         ICONV_CONST.
24416         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24417         set ICONV_CONST.
24418         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24419         here.
24420         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24421         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24422         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24423         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24424         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24425         present.
24426
24427 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24428
24429         ftoastr: comment fix
24430         * lib/ftoastr.c: "little" -> "little or no" in comment
24431
24432 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24433
24434         stdint: port to GCC 4.3 + OSX + Octave
24435         On this platform, stdint.h is buggy and defines int64_t to long
24436         long int.  The replacement defined it to long int, causing
24437         problems with C++ style name mangling.  Instead, trust the system
24438         definition if INT64_MAX is defined, and likewise for the unsigned
24439         variant.   Problem reported by Jarno Rajahalme in
24440         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24441         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24442         and don't mess with int64_t and INT64_MAX in this case.
24443         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24444
24445 2010-11-24  Bruno Haible  <bruno@clisp.org>
24446
24447         doc: Corrections regarding MacOS X 10.4 and 10.5.
24448         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24449         MacOS X.
24450         Reported by Simon Josefsson.
24451
24452 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24453
24454         Uninstall ".bin" files installed by relocwrapper.
24455         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24456         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24457         unless it is already there.
24458
24459 2010-11-21  Bruno Haible  <bruno@clisp.org>
24460
24461         Update for NetBSD 5.0.
24462         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24463         NetBSD; the test fails on NetBSD 5.0.
24464         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24465         about NetBSD.
24466
24467 2010-11-21  Bruno Haible  <bruno@clisp.org>
24468
24469         Update for HP-UX 11.23 and HP-UX 11.31.
24470         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24471         HP-UX.
24472
24473 2010-11-21  Bruno Haible  <bruno@clisp.org>
24474
24475         Update for MacOS X 10.5.
24476         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24477         MacOS X; the test fails on MacOS X 10.5.8.
24478         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24479         about MacOS X.
24480
24481 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24482
24483         bootstrap: add bootstrap_sync option.
24484         See discussion at
24485         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24486         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24487         * build-aux/bootstrap: Accept --bootstrap-sync to update
24488         bootstrap if it is not identical to the local gnulib's
24489         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24490         enable this by default.  Accept --no-bootstrap-sync to disable
24491         it.
24492
24493 2010-11-20  Bruno Haible  <bruno@clisp.org>
24494
24495         Ensure that <features.h> is included before __GLIBC__ is tested.
24496         * lib/printf-parse.h: Include <features.h>.
24497         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24498         Reported by Mike Frysinger <vapier@gentoo.org>.
24499
24500         Ensure that <features.h> is included before __GLIBC__ is tested.
24501         * lib/wchar.in.h: Include <features.h>.
24502         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24503         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24504         Reported by Mike Frysinger <vapier@gentoo.org>.
24505
24506         Ensure that <features.h> is included before __GLIBC__ is tested.
24507         * lib/arpa_inet.in.h: Include <features.h>.
24508         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24509         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24510         Reported by Mike Frysinger <vapier@gentoo.org>.
24511
24512         Ensure that <features.h> is included before __GLIBC__ is tested.
24513         * build-aux/link-warning.h: Include <features.h>.
24514         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24515         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24516         Reported by Mike Frysinger <vapier@gentoo.org>.
24517
24518         Ensure that <features.h> is included before __GLIBC__ is tested.
24519         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24520         Reported by Mike Frysinger <vapier@gentoo.org>.
24521
24522 2010-11-20  Bruno Haible  <bruno@clisp.org>
24523
24524         memmem: Fix autoconf test.
24525         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24526
24527 2010-11-20  Bruno Haible  <bruno@clisp.org>
24528
24529         Port to uClibc.
24530         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24531         * lib/fcntl.in.h: Likewise.
24532         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24533         * lib/mbrtowc.c (mbrtowc): Likewise.
24534         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24535         * lib/strerror_r.c: Likewise.
24536         * lib/unistr/u8-strnlen.c: Likewise.
24537         * lib/vasnprintf.c (decimal_point_char): Likewise.
24538         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24539         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24540         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24541         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24542         * tests/test-sigaction.c (handler, main): Likewise.
24543         * lib/freading.h: Treat uClibc like a non-glibc platform.
24544         * lib/freading.c: Likewise.
24545         * lib/gettext.h: Likewise.
24546         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24547         Likewise.
24548         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24549         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24550         * lib/propername.c (proper_name_utf8): Likewise.
24551         * lib/spawn.in.h: Likewise.
24552         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24553         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24554         mem_cd_iconveh_internal): Likewise.
24555         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24556         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24557         strstr, strcasestr): Likewise.
24558         * lib/unicodeio.c (unicode_to_mb): Likewise.
24559         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24560         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24561         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24562         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24563         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24564         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24565         * lib/unistr/u8-stpncpy.c: Likewise.
24566         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24567         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24568         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24569         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24570         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24571         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24572         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24573         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24574         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24575         Likewise.
24576         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24577         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24578         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24579         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24580         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24581         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24582         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24583         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24584         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24585         * tests/test-striconveha.c (main): Likewise.
24586         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24587         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24588         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24589         * doc/posix-functions/getline.texi: Likewise.
24590         Reported by Mike Frysinger <vapier@gentoo.org>.
24591
24592 2010-11-20  Bruno Haible  <bruno@clisp.org>
24593
24594         nproc: Fix condition.
24595         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24596         HAVE_PTHREAD_AFFINITY_NP.
24597
24598 2010-11-20  Bruno Haible  <bruno@clisp.org>
24599
24600         Fix a comment.
24601         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24602
24603 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24604
24605         ftoastr: don't assume snprintf
24606         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24607         Implement a subset of snprintf here, by using sprintf safely.
24608         * modules/ftoastr (Depends-on): Remove snprintf.
24609
24610 2010-11-19  Jim Meyering  <meyering@redhat.com>
24611
24612         test-rename.h: fix compilation failure
24613         * tests/test-rename.h (test_rename): Add omitted "}".
24614
24615 2010-11-17  Jim Meyering  <meyering@redhat.com>
24616
24617         maint.mk: add a URL discussing the no-@acronym policy
24618         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24619
24620 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24621
24622         ftoastr: depend on snprintf, improve comments
24623         * lib/ftoastr.c: Also mention Loitsch's draft.
24624         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24625         needed in the current implementation, but it might simplify
24626         speeding up the code later.
24627         * modules/ftoastr: Depend on snprintf; this improves portability.
24628         Suggested by Bruno Haible in the same email.
24629
24630         ftoastr: port to hosts lacking strtof and strtold
24631         Problem reported by Bruno Haible in
24632         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24633         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24634         environment and strtold (and presumably strtof) are not available.
24635         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24636         (configure.ac): Require gl_C99_STRTOLD.
24637
24638 2010-11-18  Bruno Haible  <bruno@clisp.org>
24639
24640         c-strtold: Avoid link error on AIX 7.
24641         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24642         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24643         (gl_C_STRTOLD): Test whether strtold_l exists.
24644         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24645
24646 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24647
24648         intprops: new macro INT_BITS_STRLEN_BOUND
24649         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24650         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24651         not exposed.  Also, it uses a slightly tighter bound than before;
24652         though this makes no practical difference, we might as well be as
24653         tight as we easily can.
24654
24655         ftoastr: new module, for lossless conversion of floats to short strings
24656         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24657         * modules/ftoastr: New files.
24658
24659 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24660
24661         bootstrap: port to Solaris sed
24662         * build-aux/bootstrap (get_version): Port to Solaris sed.
24663         See Ralf Wildenhues's note in
24664         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24665
24666 2010-11-14  Jim Meyering  <meyering@redhat.com>
24667
24668         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24669         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24670         and move definition closer to sole use.
24671
24672 2010-11-13  Jim Meyering  <meyering@redhat.com>
24673
24674         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24675         Now we require at least autoconf-2.59, which means the work-around
24676         is no longer needed.
24677         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24678         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24679         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24680         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24681         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24682
24683 2010-11-13  Bruno Haible  <bruno@clisp.org>
24684
24685         rename, renameat: Avoid test failures at NFS mounted locations.
24686         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24687         functions.
24688         (test_rename): Use assert_nonexistent.
24689         * tests/test-rename.c: Include <dirent.h>.
24690         * tests/test-renameat.c: Likewise.
24691         Reported by Gary V. Vaughan <gary@gnu.org>.
24692
24693         rename, renameat: Document Linux bug with NFS
24694         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24695         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24696         * doc/posix-functions/renameat.texi: Likewise.
24697         Suggested by Eric Blake.
24698
24699 2010-11-13  Bruno Haible  <bruno@clisp.org>
24700
24701         rename test: Add comments.
24702         * tests/test-rename.h (test_rename): Add structure and comments.
24703
24704 2010-11-13  Eric Blake  <eblake@redhat.com>
24705
24706         maintainer-makefile: cover a few more files
24707         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24708         scripts generated within C files, for libvirt.
24709
24710 2010-11-13  Bruno Haible  <bruno@clisp.org>
24711
24712         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24713         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24714         character, return the number of bytes that belong together, not always
24715         1.
24716         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24717         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24718         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24719         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24720         number of bytes of an invalid character.
24721         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24722         (main): Invoke it.
24723         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24724         results.
24725         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24726         malformed byte sequences.
24727         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24728         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24729         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24730         Reported by Ben Pfaff and Paolo Bonzini.
24731
24732 2010-11-13  Bruno Haible  <bruno@clisp.org>
24733
24734         openat: Work around glibc bug with fchownat() and empty file names.
24735         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24736         (gl_FUNC_FCHOWNAT): Invoke it.
24737         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24738         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24739         Reported by Gary V. Vaughan <gary@gnu.org>.
24740
24741 2010-11-13  Bruno Haible  <bruno@clisp.org>
24742
24743         openat: Ensure autoconf macro ordering.
24744         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24745         gl_USE_SYSTEM_EXTENSIONS.
24746         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24747
24748 2010-11-13  Bruno Haible  <bruno@clisp.org>
24749
24750         Update comments.
24751         * lib/unistr/u8-check.c: Update file name in comments.
24752         * lib/unistr/u8-mblen.c: Likewise.
24753         * lib/unistr/u8-prev.c: Likewise.
24754         * lib/unistr/u8-strmblen.c: Likewise.
24755         * lib/unistr/u8-strmbtouc.c: Likewise.
24756
24757 2010-11-13  Jim Meyering  <meyering@redhat.com>
24758
24759         tests: avoid test failure on Solaris 10 due to lack of PATH export
24760         * tests/test-update-copyright.sh: Don't forget to export PATH.
24761
24762         init.sh: ensure that IFS is defined, just in case...
24763         * tests/init.sh (setup_): Ensure that IFS is defined,
24764         so that saving and restoring it works as expected.  This
24765         appears to be useful at least for an old version of dash
24766         from a long time ago (RH 6).  See here for details:
24767         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24768
24769         maint.mk: tighten "test a == b" check
24770         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24771         test to files that contain something like #!/bin/sh.
24772         Without this, coreutils would get two false positives in
24773         the comments of C source files.
24774
24775 2010-11-12  Eric Blake  <eblake@redhat.com>
24776
24777         bootstrap: fix typo in previous attempt
24778         * build-aux/bootstrap (buildreq): Correct the grouping.
24779         Reported by Paul Eggert.
24780
24781         maintainer-makefile: prohibit test x == x
24782         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24783         Based on a report by Matthias Bolte.
24784
24785         bootstrap: allow FreeBSD gzip
24786         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24787         which has no '.' and goes to stderr.
24788         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24789         Reported by Matthias Bolte.
24790
24791         maintainer-makefile: check for i18n setup
24792         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24793         will likely work.
24794
24795 2010-11-12  Bruno Haible  <bruno@clisp.org>
24796
24797         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24798         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24799         * lib/nanosleep.c (nanosleep): Likewise.
24800
24801 2010-11-11  Bruno Haible  <bruno@clisp.org>
24802
24803         fcntl-h: Fix for use of C++ on glibc systems.
24804         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24805         also on glibc systems in C++ mode.
24806         Reported by Gary V. Vaughan <gary@gnu.org>.
24807
24808 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24809
24810         mknod: avoid false failure with dash
24811         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24812
24813 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24814
24815         unlink: Fix "is it should" typo in diagnostic.
24816         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24817         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24818
24819 2010-11-11  Bruno Haible  <bruno@clisp.org>
24820
24821         Tests for module 'strerror_r-posix'.
24822         * modules/strerror_r-posix-tests: New file.
24823         * tests/test-strerror_r.c: New file.
24824         * tests/test-string-c++.cc: Check the signature of strerror_r.
24825
24826         New module 'strerror_r-posix'.
24827         * lib/string.in.h (strerror_r): New declaration.
24828         * lib/strerror_r.c: New file.
24829         * m4/strerror_r.m4: New file.
24830         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24831         of strerror_r.
24832         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24833         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24834         * modules/strerror_r-posix: New file.
24835         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24836         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24837         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24838         portability problems.
24839
24840 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24841
24842         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24843         line is also considered for output. Quoted function name in shell
24844         command, so temporary files for functions like MyClass::operator()
24845         are removed correctly without errors.
24846
24847 2010-11-09  Bruno Haible  <bruno@clisp.org>
24848
24849         * doc/posix-functions/strerror.texi: List more failing platforms.
24850
24851         * doc/posix-functions/strerror.texi: Add a comment.
24852
24853 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24854
24855         fdopendir: fix bug on MacOS X when low on file descriptors
24856
24857         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24858         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24859         All callers changed.
24860         (fdopendir): Invoke save_cwd at the top level, not after using
24861         multiple dup() calls to use up file descriptors.  Then retry
24862         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24863         less than the maximum number of open file descriptors, because
24864         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24865         on Mac OS X 10.6.4 for tar 1.24
24866         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24867         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24868         and for tar 1.25
24869         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24870
24871 2010-11-07  Bruno Haible  <bruno@clisp.org>
24872
24873         vasnprintf: Support I flag on glibc systems.
24874         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24875         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24876         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24877         snprintf function.
24878         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24879         glibc systems.
24880         * tests/test-vasnprintf-posix3.c: New file.
24881         * modules/vasnprintf-posix-tests (Files): Add it.
24882         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24883
24884 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24885
24886         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24887         * MODULES.html.sh: For compiler warnings, use name
24888         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24889
24890 2010-11-05  Eric Blake  <eblake@redhat.com>
24891
24892         ceil, floor: avoid spurious failure with icc
24893         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24894         [denormals-as-zero] when optimizing without -mieee-fp option.
24895         * tests/test-floorf2.c (floorf_reference): Likewise.
24896         * tests/test-ceilf1.c (dummy): New function.
24897         (main): Use it to outsmart icc's optimization.
24898         * tests/test-floorf1.c (dummy, main): Likewise.
24899
24900         tests: require working signbit
24901         * modules/ceilf-tests (Depends-on): Add signbit.
24902         * modules/ceill-tests (Depends-on): Likewise.
24903         * modules/floorf-tests (Depends-on): Likewise.
24904         * modules/floorl-tests (Depends-on): Likewise.
24905         * modules/round-tests (Depends-on): Likewise.
24906         * modules/roundf-tests (Depends-on): Likewise.
24907         * modules/roundl-tests (Depends-on): Likewise.
24908         * modules/trunc-tests (Depends-on): Likewise.
24909         * modules/truncf-tests (Depends-on): Likewise.
24910         * modules/truncl-tests (Depends-on): Likewise.
24911
24912         strtod: work around icc bug
24913         * lib/strtod.c (minus_zero): Define to working value.
24914         (strtod): Use it to avoid icc bug.
24915
24916         copysign: enhance tests
24917         * modules/copysign-tests (Files): Add minus-zero.h.
24918         * tests/test-copysign.c (main): Also test zeros.
24919
24920 2010-11-04  Eric Blake  <eblake@redhat.com>
24921
24922         ceil, floor, round, trunc: enhance tests of -0
24923         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24924         * tests/test-ceill.c (main): Likewise.
24925         * tests/test-floorf1.c (main): Likewise.
24926         * tests/test-floorl.c (main): Likewise.
24927         * tests/test-round1.c (main): Likewise.
24928         * tests/test-roundf1.c (main): Likewise.
24929         * tests/test-roundl.c (main): Likewise.
24930         * tests/test-trunc1.c (main): Likewise.
24931         * tests/test-truncf1.c (main): Likewise.
24932         * tests/test-truncl.c (main): Likewise.
24933
24934 2010-11-04  Eric Blake  <eblake@redhat.com>
24935
24936         frexp, tests: work around ICC bug with -zero
24937         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24938         works with more compilers.
24939         * tests/minus-zero.h: New file.
24940         * modules/ceilf-tests (Files): Include it.
24941         * modules/ceill-tests (Files): Likewise.
24942         * modules/floorf-tests (Files): Likewise.
24943         * modules/floorl-tests (Files): Likewise.
24944         * modules/frexp-nolibm-tests (Files): Likewise.
24945         * modules/frexp-tests (Files): Likewise.
24946         * modules/frexpl-nolibm-tests (Files): Likewise.
24947         * modules/frexpl-tests (Files): Likewise.
24948         * modules/isnan-tests (Files): Likewise.
24949         * modules/isnand-nolibm-tests (Files): Likewise.
24950         * modules/isnand-tests (Files): Likewise.
24951         * modules/isnanf-nolibm-tests (Files): Likewise.
24952         * modules/isnanf-tests (Files): Likewise.
24953         * modules/isnanl-nolibm-tests (Files): Likewise.
24954         * modules/isnanl-tests (Files): Likewise.
24955         * modules/round-tests (Files): Likewise.
24956         * modules/roundf-tests (Files): Likewise.
24957         * modules/roundl-tests (Files): Likewise.
24958         * modules/ldexpl-tests (Files): Likewise.
24959         * modules/signbit-tests (Files): Likewise.
24960         * modules/snprintf-posix-tests (Files): Likewise.
24961         * modules/sprintf-posix-tests (Files): Likewise.
24962         * modules/strtod-tests (Files): Likewise.
24963         * modules/trunc-tests (Files): Likewise.
24964         * modules/truncf-tests (Files): Likewise.
24965         * modules/truncl-tests (Files): Likewise.
24966         * modules/vsnprintf-posix-tests (Files): Likewise.
24967         * modules/vsprintf-posix-tests (Files): Likewise.
24968         * modules/vasnprintf-posix-tests (Files): Likewise.
24969         * modules/vasprintf-posix-tests (Files): Likewise.
24970         * tests/test-ceilf1.c (main): Use it.
24971         * tests/test-ceill.c (main): Likewise.
24972         * tests/test-floorf1.c (main): Likewise.
24973         * tests/test-floorl.c (main): Likewise.
24974         * tests/test-frexp.c (main): Likewise.
24975         * tests/test-frexpl.c (main): Likewise.
24976         * tests/test-isnan.c (main): Likewise.
24977         * tests/test-isnand.h (main): Likewise.
24978         * tests/test-isnanf.h (main): Likewise.
24979         * tests/test-isnanl.h (main): Likewise.
24980         * tests/test-ldexpl.c (main): Likewise.
24981         * tests/test-round.c (main): Likewise.
24982         * tests/test-roundf.c (main): Likewise.
24983         * tests/test-roundl.c (main): Likewise.
24984         * tests/test-signbit.c (test_signbitf, test_signbitd)
24985         (test_signbitl): Likewise.
24986         * tests/test-snprintf-posix.h (test_function): Likewise.
24987         * tests/test-sprintf-posix.h (test_function): Likewise.
24988         * tests/test-strtod.c (main): Likewise.
24989         * tests/test-trunc1.c (main): Likewise.
24990         * tests/test-truncf1.c (main): Likewise.
24991         * tests/test-truncl.c (main): Likewise.
24992
24993         isnanl: work around icc bug
24994         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24995
24996 2010-11-03  Eric Blake  <eblake@redhat.com>
24997
24998         tests: fix compiler warnings
24999         * tests/test-getopt.h (test_getopt): Fix condition.
25000         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25001         * tests/test-pipe2.c (main): Likewise.
25002         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25003
25004         utimens: fix broken m4 test
25005         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25006
25007 2010-10-28  Bruno Haible  <bruno@clisp.org>
25008
25009         posix_spawn*, getdtablesize: Relax license.
25010         * modules/posix_spawn (License): Change to LGPLv2+.
25011         * modules/posix_spawnp (License): Likewise.
25012         * modules/posix_spawn-internal (License): Likewise.
25013         * modules/posix_spawnattr_init (License): Likewise.
25014         * modules/posix_spawnattr_getflags (License): Likewise.
25015         * modules/posix_spawnattr_setflags (License): Likewise.
25016         * modules/posix_spawnattr_getpgroup (License): Likewise.
25017         * modules/posix_spawnattr_setpgroup (License): Likewise.
25018         * modules/posix_spawnattr_getschedparam (License): Likewise.
25019         * modules/posix_spawnattr_setschedparam (License): Likewise.
25020         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25021         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25022         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25023         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25024         * modules/posix_spawnattr_getsigmask (License): Likewise.
25025         * modules/posix_spawnattr_setsigmask (License): Likewise.
25026         * modules/posix_spawnattr_destroy (License): Likewise.
25027         * modules/posix_spawn_file_actions_init (License): Likewise.
25028         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25029         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25030         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25031         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25032         * modules/getdtablesize (License): Likewise.
25033         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25034
25035 2010-10-26  Bruno Haible  <bruno@clisp.org>
25036
25037         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25038         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25039         Cygwin and mingw.
25040         Suggested by Eric Blake.
25041
25042 2010-10-26  Bruno Haible  <bruno@clisp.org>
25043
25044         stdio: Work around compilation error due to renameat() on Solaris 10.
25045         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25046         * lib/renameat.c: Don't include <unistd.h> here.
25047         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25048         Reported by Paul Eggert and Eric Blake.
25049
25050 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25051
25052         renameat: port to Solaris 10, which declares renameat in unistd.h
25053
25054         * lib/renameat.c: Include unistd.h before stdio.h, because
25055         Solaris 10 declares renameat in unistd.h.  Problem encountered
25056         when building GNU tar 1.24 on Solaris 10.
25057
25058 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25059
25060         fdopendir: fix C89 compilation
25061         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25062         compilers.
25063
25064 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25065
25066         inttostr: simplify by removing unnecessary redundancy
25067         * lib/anytostr.c: Don't include verify.h.
25068         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25069         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25070         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25071         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25072         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25073         Likewise.
25074         * modules/inttostr (Depends-on): Remove 'verify'.
25075
25076 2010-10-23  Bruno Haible  <bruno@clisp.org>
25077
25078         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25079         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25080         Reported by Eric Blake.
25081
25082 2010-10-23  Bruno Haible  <bruno@clisp.org>
25083
25084         Tests: Fix LOCALE_JA on MirBSD 10.
25085         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25086         to an UTF-8 locale.
25087         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25088         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25089         Reported by Eric Blake.
25090
25091 2010-10-21  Bruno Haible  <bruno@clisp.org>
25092
25093         nl_langinfo test: Avoid test failure on NetBSD 5.
25094         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25095         Reported by Eric Blake.
25096
25097 2010-10-21  Eric Blake  <eblake@redhat.com>
25098
25099         c-stack: work around libsigsegv 2.8 bug
25100         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25101         overflow on at least PowerPC64.
25102
25103 2010-10-17  Bruno Haible  <bruno@clisp.org>
25104
25105         userspec: Drop redundant file.
25106         * modules/userspec (Files): Remove lib/inttostr.h.
25107
25108 2010-10-17  Bruno Haible  <bruno@clisp.org>
25109
25110         nl_langinfo tests: Silence some warnings.
25111         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25112         Reported by Jim Meyering.
25113
25114 2010-10-17  Bruno Haible  <bruno@clisp.org>
25115
25116         Make use of GCC's attribute __alloc_size__.
25117         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25118         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25119         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25120         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25121         __alloc_size__.
25122         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25123         Suggested by Jim Meyering.
25124
25125 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25126
25127         bootstrap: anchor .gitignore entries.
25128         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25129         with...
25130         (insert_vc_ignore): ... this new function, which prepends `/' to
25131         all .gitignore entries before passing them to
25132         insert_sorted_if_absent.
25133
25134 2010-10-16  Bruno Haible  <bruno@clisp.org>
25135
25136         nextafter: Fix configure check.
25137         * modules/nextafter (configure.ac): Correct expected prototype.
25138
25139 2010-10-16  Bruno Haible  <bruno@clisp.org>
25140
25141         termios: Update documentation.
25142         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25143
25144 2010-10-16  Bruno Haible  <bruno@clisp.org>
25145
25146         tests: Make them compile with TinyCC.
25147         * tests/test-strstr.c (main): Remove parentheses around array
25148         initializer.
25149
25150 2010-10-15  Eric Blake  <eblake@redhat.com>
25151
25152         ignore-value: make header idempotent
25153         * lib/ignore-value.h: Add double-inclusion guards.
25154         Reported by Stefan Berger.
25155
25156 2010-10-15  Jim Meyering  <meyering@redhat.com>
25157
25158         GNUmakefile: handle "stable" target, not "major"
25159         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25160         lists in maint.mk and announce-gen.  Without this, "make stable"
25161         would fail to ensure that $(VERSION) is up to date.
25162
25163 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25164
25165         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25166         & co.
25167
25168 2010-10-14  Bruno Haible  <bruno@clisp.org>
25169
25170         vasnprintf: Don't set errno to 0.
25171         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25172         block that sets it to 0.
25173         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25174
25175 2010-10-14  Bruno Haible  <bruno@clisp.org>
25176
25177         socketlib: Fix.
25178         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25179         gl_PREREQ_SYS_H_WINSOCK2.
25180         Reported by Ian Beckwith <ianb@erislabs.net>.
25181
25182 2010-10-13  Jim Meyering  <meyering@redhat.com>
25183
25184         test-select-stdin.c: avoid warn_unused_result warnings
25185         * tests/test-select-stdin.c: Include "macros.h".
25186         ASSERT that read and fflush succeed.
25187
25188 2010-10-13  Jim Meyering  <meyering@redhat.com>
25189
25190         git-version-gen: do require git-VC'd files in cwd
25191         * build-aux/git-version-gen: Reject a git version string
25192         if there are no commits associated with the current directory.
25193         This avoids an unlikely false-positive (unrelated dir whose parent
25194         repository also contains a tag matching v*), as pointed out
25195         by Giuseppe Scrivano in
25196         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25197
25198 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25199
25200         argv-iter: omit nonconforming declaration
25201         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25202         enum arg_iter_err declaration, which doesn't conform to C99.
25203         Solaris 10 cc warns about this.
25204
25205 2010-10-13  Eric Blake  <eblake@redhat.com>
25206
25207         termios: fix compilation on mingw
25208         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25209         (gl_TERMIOS_H): Adjust it on mingw.
25210         * modules/termios (Makefile.am): Substitute new key.
25211         * lib/termios.in.h (includes): Make include_next conditional.
25212         * doc/posix-headers/termios.texi (termios.h): Update
25213         documentation.
25214         Reported by Daniel P. Berrange.
25215
25216 2010-10-13  Jim Meyering  <meyering@redhat.com>
25217
25218         git-version-gen: don't require that .git/ be in the current dir
25219         * build-aux/git-version-gen: Adjust this script so that it works
25220         when run from any working directory beneath the top-level .git/-
25221         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25222         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25223
25224         test-select: avoid warn_unused_result warnings
25225         * tests/test-select.c: Include "macros.h".
25226         ASSERT that each call to read, write, and pipe succeeds.
25227         While not technically required, also check each "close".
25228         * modules/select-tests (Files): Add tests/macros.h.
25229
25230         test-symlinkat: remove declaration of unused local
25231         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25232
25233         test-inttostr: avoid shadowing warnings
25234         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25235         and use malloc rather than the stack for the same reason as
25236         mentioned in the comment justifying the other allocation.
25237
25238 2010-10-11  Bruno Haible  <bruno@clisp.org>
25239
25240         stdlib: Allow multiple gnulib generated replacements to coexist.
25241         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25242         Reported by Sam Steingold <sds@gnu.org>.
25243
25244 2010-10-11  Jim Meyering  <meyering@redhat.com>
25245
25246         fix a documentation typo
25247         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25248
25249 2010-10-11  Eric Blake  <eblake@redhat.com>
25250
25251         futimens: work around Solaris 11 bug
25252         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25253         * tests/test-futimens.h (test_futimens): Enhance, rather than
25254         weaken test.
25255         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25256
25257 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25258
25259         Indentation.
25260         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25261         higher-level operators more to the left.
25262
25263 2010-10-11  Jim Meyering  <meyering@redhat.com>
25264
25265         test-futimens: avoid unwarranted test failure on Solaris 5.11
25266         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25267         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25268         because it tries to dereference the NULL name argument.
25269
25270 2010-10-11  Bruno Haible  <bruno@clisp.org>
25271
25272         Indentation.
25273         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25274         indentation.
25275
25276 2010-10-11  Jim Meyering  <meyering@redhat.com>
25277
25278         spawn.in.h: make indentation consistent with parentheses
25279         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25280         Make indentation consistent with parentheses.
25281
25282 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25283
25284         Fix mismatched parens in previous commit
25285         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25286         parens.
25287
25288 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25289
25290         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25291
25292         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25293         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25294         * lib/malloca.c: Include "verify.h".
25295         (verify1): Remove, replacing with a verify call.
25296         * lib/relocwrapper.c (verify1): Likewise.
25297         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25298         Likewise.
25299         * modules/malloca (Depends-on): Add 'verify'.
25300         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25301         * modules/vasnprintf (Depends-on): Add 'verify'.
25302         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25303         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25304         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25305         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25306         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25307         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25308         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25309
25310         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25311
25312         Formerly the style was sometimes 2*X - 1, because the C standard
25313         was wrongly thought to disallow ?: in integral constant expressions.
25314         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25315         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25316         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25317         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25318         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25319         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25320         verify that time_t cannot be floating.
25321
25322 2010-10-08  Eric Blake  <eblake@redhat.com>
25323
25324         time: enforce recent POSIX ruling that time_t is integral
25325         * lib/time.in.h (__time_t_must_be_integral): Detect any
25326         problematic systems, allowing the rest of gnulib to assume POSIX.
25327
25328 2010-10-08  Jim Meyering  <meyering@redhat.com>
25329
25330         fdopendir: fix a bug on systems lacking openat and /proc support
25331         OpenBSD 4.7 is one such system.  The most noticeable effect was
25332         failure of any application making nontrivial use of fts: rm, du,
25333         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25334           ./rm: traversal failed: `a': Bad file descriptor
25335         Debugging that, you see that even though FD 6 was closed just
25336         prior to the opendir call in fd_clone_opendir, its resulting
25337         dir->dd_fd was 8, rather than the expected value of 6:
25338
25339         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25340         93                close (fd);
25341         (gdb) n
25342         94                dir = fd_clone_opendir (dupfd);
25343         (gdb) n
25344         95                saved_errno = errno;
25345         (gdb) p dir->dd_fd
25346         $11 = 8
25347
25348         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25349         The problem is that on OpenBSD, fd_clone_opendir has to resort
25350         to using the old-style save/restore CWD mechanism, due to its
25351         lack of openat/proc support, and *that* would steal the FD (6)
25352         that opendir was supposed to use.
25353
25354         The fix is to squirrel away the desired FD so that save_cwd uses a
25355         different one, and then free the dest FD right before calling opendir.
25356         That guarantees opendir will use the required file descriptor.
25357
25358         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25359
25360 2010-10-08  Bruno Haible  <bruno@clisp.org>
25361
25362         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25363         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25364
25365 2010-10-08  Bruno Haible  <bruno@clisp.org>
25366
25367         nanosleep: Make replacement POSIX compliant.
25368         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25369         is out of range.
25370         Reported by Jim Meyering.
25371
25372 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25373
25374         bootstrap: add hook for altering gnulib.mk, for Bison
25375         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25376         the Bison bootstrapping process can rewrite file names and variables
25377         in this file before later parts of 'bootstrap' use the file.
25378         Bison wants to include lib/gnulib.mk from the top-level makefile,
25379         so it needs the file names in this file to be relative to the top
25380         level, not relative to lib; plus it needs variable names to be
25381         rewritten.
25382         (slurp): Use the new function.
25383
25384         bootstrap: reformat for readability
25385         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25386
25387 2010-10-08  Eric Blake  <eblake@redhat.com>
25388
25389         docs: update cygwin progress
25390         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25391         1.7.7.
25392         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25393         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25394         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25395         * doc/posix-functions/carg.texi (carg): Likewise.
25396         * doc/posix-functions/cargf.texi (cargf): Likewise.
25397         * doc/posix-functions/casin.texi (casin): Likewise.
25398         * doc/posix-functions/casinf.texi (casinf): Likewise.
25399         * doc/posix-functions/casinh.texi (casinh): Likewise.
25400         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25401         * doc/posix-functions/catan.texi (catan): Likewise.
25402         * doc/posix-functions/catanf.texi (catanf): Likewise.
25403         * doc/posix-functions/catanh.texi (catanh): Likewise.
25404         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25405         * doc/posix-functions/ccos.texi (ccos): Likewise.
25406         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25407         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25408         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25409         * doc/posix-functions/cexp.texi (cexp): Likewise.
25410         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25411         * doc/posix-functions/cimag.texi (cimag): Likewise.
25412         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25413         * doc/posix-functions/clog.texi (clog): Likewise.
25414         * doc/posix-functions/clogf.texi (clogf): Likewise.
25415         * doc/posix-functions/conj.texi (conj): Likewise.
25416         * doc/posix-functions/conjf.texi (conjf): Likewise.
25417         * doc/posix-functions/cpow.texi (cpow): Likewise.
25418         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25419         * doc/posix-functions/cproj.texi (cproj): Likewise.
25420         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25421         * doc/posix-functions/creal.texi (creal): Likewise.
25422         * doc/posix-functions/crealf.texi (crealf): Likewise.
25423         * doc/posix-functions/csin.texi (csin): Likewise.
25424         * doc/posix-functions/csinf.texi (csinf): Likewise.
25425         * doc/posix-functions/csinh.texi (csinh): Likewise.
25426         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25427         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25428         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25429         * doc/posix-functions/ctan.texi (ctan): Likewise.
25430         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25431         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25432         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25433         * doc/posix-headers/complex.texi (complex.h): Likewise.
25434
25435 2010-10-07  Jim Meyering  <meyering@redhat.com>
25436
25437         parse-datetime: avoid compilation failure on OpenBSD 4.7
25438         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25439         This works around a compilation failure on OpenBSD 4.7:
25440         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25441
25442 2010-10-07  Eric Blake  <eblake@redhat.com>
25443
25444         docs: update cygwin progress
25445         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25446         1.7.6.
25447         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25448         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25449         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25450         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25451         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25452         Likewise.
25453         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25454         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25455         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25456         Likewise.
25457         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25458         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25459         Likewise.
25460         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25461         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25462         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25463         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25464         Likewise.
25465         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25466         Likewise.
25467         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25468
25469         docs: update parse-datetime history
25470         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25471         documentation of this function's history and alternatives.
25472
25473         cygwin: use more robust version check
25474         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25475         exclude an eventual cygwin 1.9.1.
25476         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25477         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25478         (gl_FUNC_STRCASESTR): Likewise.
25479         Reported by Bruno Haible.
25480
25481 2010-10-06  Bruno Haible  <bruno@clisp.org>
25482
25483         string, sys_select: Avoid #including large headers unless necessary.
25484         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25485         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25486         OSF/1, BeOS, Haiku.
25487         Reported by Jim Meyering.
25488
25489 2010-10-05  Eric Blake  <eblake@redhat.com>
25490
25491         memmem, strstr, strcasestr: fix bug with long periodic needle
25492         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25493         periodic needle having false positive.
25494         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25495         and cygwin 1.7.7.
25496         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25497         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25498         (gl_FUNC_STRCASESTR): Likewise.
25499         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25500         * tests/test-memmem.c (main): Expose the bug.
25501         * tests/test-strcasestr.c (main): Likewise.
25502         * tests/test-strstr.c (main): Likewise.
25503         * tests/test-c-strcasestr.c (main): Likewise.
25504         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25505         * doc/posix-functions/strstr.texi (strstr): Likewise.
25506         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25507         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25508
25509 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25510
25511         parse-datetime: do some more renaming
25512         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25513         parse_datetime, not get_date.  Mention the renaming.
25514         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25515         in comments.
25516         * m4/bison.m4: Likewise.
25517
25518 2010-10-05  Eric Blake  <eblake@redhat.com>
25519
25520         parse-datetime: better name than get_date
25521         * NEWS: Reword the deprecation notice.
25522         * modules/get_date: Rename to modules/parse-datetime.
25523         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25524         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25525         * lib/get_date.y: Rename to lib/parse-datetime.y.
25526         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25527         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25528         * doc/getdate.texi: Provide fallback wrapper.
25529         * lib/getdate.h: Move guts, and wrap...
25530         * lib/parse-datetime.h: ...new file.
25531         * lib/parse-datetime.y (get_date): Rename...
25532         (parse_datetime): ...to this.
25533         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25534         (gl_PARSE_DATETIME): ...to this.
25535         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25536         documentation.
25537         * modules/getdate (Files): Provide fallback docs and header.
25538         (Notice, Depends-on): Update references.
25539         * tests/test-parse-datetime.c: Likewise.
25540         * DEPENDENCIES: Likewise.
25541         * MODULES.html.sh (Date and time <time.h>): Likewise.
25542         * doc/parse-datetime.texi (Date input formats)
25543         (Authors of parse_datetime): Likewise.
25544         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25545         (Include): Likewise.
25546         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25547         * gnulib-tool: Likewise.
25548         * m4/bison.m4 (gl_BISON): Likewise.
25549         Suggested by Bruno Haible.
25550
25551 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25552
25553         more ports to Solaris tr, which needs [] around ranges
25554         * gnulib-tool: Solaris tr needs [] around ranges.
25555         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25556         * tests/test-pipe-filter-gi1.c (main): Likewise.
25557         * tests/test-pipe-filter-ii1.c (main): Likewise.
25558
25559 2010-10-05  Eric Blake  <eblake@redhat.com>
25560
25561         bootstrap: fix Solaris regression
25562         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25563         around ranges.
25564         Reported by Pádraig Brady.
25565
25566         bootstrap: work with pkg-config
25567         * build-aux/bootstrap (check_versions): Also transliterate - in
25568         prerequisite name.
25569         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25570         prerequisites that were already found, to avoid confusion.
25571         Reported by Justin Clift.
25572
25573         faccessat: remove unused wrappers
25574         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25575         presence of these wrappers dragged in -lgen on Solaris.
25576         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25577
25578 2010-10-05  Jim Meyering  <meyering@redhat.com>
25579
25580         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25581         * Makefile (sc_pragma_columns): New syntax-check rule.
25582
25583 2010-10-04  Bruno Haible  <bruno@clisp.org>
25584
25585         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25586         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25587         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25588         Reported by Bruce Korb and Eric Blake.
25589
25590 2010-10-04  Bruno Haible  <bruno@clisp.org>
25591
25592         threadlib: Make option --with-libpth-prefix work.
25593         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25594         use $LIBPTH, not just -lpth.
25595
25596 2010-10-04  Bruno Haible  <bruno@clisp.org>
25597
25598         Avoid line length limitation from HP NonStop system header files.
25599         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25600         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25601         * lib/ctype.in.h: Likewise.
25602         * lib/dirent.in.h: Likewise.
25603         * lib/errno.in.h: Likewise.
25604         * lib/fcntl.in.h: Likewise.
25605         * lib/float.in.h: Likewise.
25606         * lib/getopt.in.h: Likewise.
25607         * lib/iconv.in.h: Likewise.
25608         * lib/inttypes.in.h: Likewise.
25609         * lib/langinfo.in.h: Likewise.
25610         * lib/locale.in.h: Likewise.
25611         * lib/math.in.h: Likewise.
25612         * lib/netdb.in.h: Likewise.
25613         * lib/netinet_in.in.h: Likewise.
25614         * lib/poll.in.h: Likewise.
25615         * lib/pthread.in.h: Likewise.
25616         * lib/pty.in.h: Likewise.
25617         * lib/sched.in.h: Likewise.
25618         * lib/se-selinux.in.h: Likewise.
25619         * lib/search.in.h: Likewise.
25620         * lib/signal.in.h: Likewise.
25621         * lib/spawn.in.h: Likewise.
25622         * lib/stdarg.in.h: Likewise.
25623         * lib/stddef.in.h: Likewise.
25624         * lib/stdint.in.h: Likewise.
25625         * lib/stdio.in.h: Likewise.
25626         * lib/stdlib.in.h: Likewise.
25627         * lib/string.in.h: Likewise.
25628         * lib/strings.in.h: Likewise.
25629         * lib/sys_file.in.h: Likewise.
25630         * lib/sys_ioctl.in.h: Likewise.
25631         * lib/sys_select.in.h: Likewise.
25632         * lib/sys_socket.in.h: Likewise.
25633         * lib/sys_stat.in.h: Likewise.
25634         * lib/sys_time.in.h: Likewise.
25635         * lib/sys_times.in.h: Likewise.
25636         * lib/sys_utsname.in.h: Likewise.
25637         * lib/sys_wait.in.h: Likewise.
25638         * lib/sysexits.in.h: Likewise.
25639         * lib/termios.in.h: Likewise.
25640         * lib/time.in.h: Likewise.
25641         * lib/unistd.in.h: Likewise.
25642         * lib/wchar.in.h: Likewise.
25643         * lib/wctype.in.h: Likewise.
25644         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25645         * modules/ctype (Makefile.am): Likewise.
25646         * modules/dirent (Makefile.am): Likewise.
25647         * modules/errno (Makefile.am): Likewise.
25648         * modules/fcntl-h (Makefile.am): Likewise.
25649         * modules/float (Makefile.am): Likewise.
25650         * modules/getopt-posix (Makefile.am): Likewise.
25651         * modules/iconv-h (Makefile.am): Likewise.
25652         * modules/inttypes (Makefile.am): Likewise.
25653         * modules/langinfo (Makefile.am): Likewise.
25654         * modules/locale (Makefile.am): Likewise.
25655         * modules/math (Makefile.am): Likewise.
25656         * modules/netdb (Makefile.am): Likewise.
25657         * modules/netinet_in (Makefile.am): Likewise.
25658         * modules/poll-h (Makefile.am): Likewise.
25659         * modules/pthread (Makefile.am): Likewise.
25660         * modules/pty (Makefile.am): Likewise.
25661         * modules/sched (Makefile.am): Likewise.
25662         * modules/search (Makefile.am): Likewise.
25663         * modules/selinux-h (Makefile.am): Likewise.
25664         * modules/signal (Makefile.am): Likewise.
25665         * modules/spawn (Makefile.am): Likewise.
25666         * modules/stdarg (Makefile.am): Likewise.
25667         * modules/stddef (Makefile.am): Likewise.
25668         * modules/stdint (Makefile.am): Likewise.
25669         * modules/stdio (Makefile.am): Likewise.
25670         * modules/stdlib (Makefile.am): Likewise.
25671         * modules/string (Makefile.am): Likewise.
25672         * modules/strings (Makefile.am): Likewise.
25673         * modules/sys_file (Makefile.am): Likewise.
25674         * modules/sys_ioctl (Makefile.am): Likewise.
25675         * modules/sys_select (Makefile.am): Likewise.
25676         * modules/sys_socket (Makefile.am): Likewise.
25677         * modules/sys_stat (Makefile.am): Likewise.
25678         * modules/sys_time (Makefile.am): Likewise.
25679         * modules/sys_times (Makefile.am): Likewise.
25680         * modules/sys_utsname (Makefile.am): Likewise.
25681         * modules/sys_wait (Makefile.am): Likewise.
25682         * modules/sysexits (Makefile.am): Likewise.
25683         * modules/termios (Makefile.am): Likewise.
25684         * modules/time (Makefile.am): Likewise.
25685         * modules/unistd (Makefile.am): Likewise.
25686         * modules/wchar (Makefile.am): Likewise.
25687         * modules/wctype (Makefile.am): Likewise.
25688
25689 2010-10-04  Bruno Haible  <bruno@clisp.org>
25690
25691         read-file tests: Avoid a test failure on NonStop Kernel.
25692         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25693         a regular file.
25694         Reported by Joachim Schmitz <schmitz@hp.com>.
25695
25696 2010-10-03  Bruno Haible  <bruno@clisp.org>
25697
25698         gnulib-tool: Fixes for --create-testdir with --libtool.
25699         * gnulib-tool (func_get_automake_snippet): Don't augment
25700         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25701         an executable.
25702         (func_create_testdir): Handle module 'alloca' like func_import.
25703         Reported by Bruce Korb <bruce.korb@gmail.com>.
25704
25705 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25706
25707         Avoid some lines longer than 80 characters.
25708         * lib/stdint.in.h: Break long comment lines.
25709         * lib/math.in.h: Likewise.
25710         (_GL_NUM_UINT_WORDS): New macro, for readability.
25711         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25712         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25713         * lib/stdlib.in.h: Likewise.
25714         * lib/spawn.in.h: Likewise.
25715         * lib/sys_socket.in.h: Update an URL.
25716         * lib/sys_stat.in.h: Break long line.
25717
25718 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25719
25720         Improve pmccabe2html.
25721         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25722         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25723         when the sources change. Remove the line in the HTML about "Used
25724         ranges" (which implied that there might be other unused ranges),
25725         rename "Resume" to "Summary" (easier to understand for more users).
25726         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25727         styles, and some unnecessary blank lines.
25728
25729 2010-10-03  Bruno Haible  <bruno@clisp.org>
25730             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25731
25732         acl: Add support for ACLs on NonStop Kernel.
25733         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25734         Check whether the function aclsort() exists.
25735         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25736         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25737         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25738         (acl_nontrivial [HAVE_ACLSORT]: New function.
25739         (file_has_acl): Implement for NonStop Kernel.
25740         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25741         (qset_acl): Implement for NonStop Kernel.
25742         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25743         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25744         (main): Implement for NonStop Kernel.
25745         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25746         Kernel. Handle this flavor.
25747         * tests/test-set-mode-acl.sh: Likewise.
25748         * tests/test-copy-acl.sh: Likewise.
25749         * tests/test-copy-file.sh: Likewise.
25750
25751 2010-10-03  Bruno Haible  <bruno@clisp.org>
25752
25753         Info about ACLs on NonStop Kernel.
25754         * doc/acl-resources.txt: Add info about NonStop Kernel.
25755         References by Joachim Schmitz <schmitz@hp.com>.
25756
25757 2010-10-02  Bruno Haible  <bruno@clisp.org>
25758
25759         Define missing EDQUOT on NonStop Kernel.
25760         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25761         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25762         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25763         missing.
25764         * doc/posix-headers/errno.texi: Mention the NSK bug.
25765         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25766         Reported by Joachim Schmitz <schmitz@hp.com>.
25767
25768 2010-10-02  Bruno Haible  <bruno@clisp.org>
25769
25770         Update doc for POSIX:2008.
25771         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25772         Update URL of POSIX specification.
25773
25774 2010-10-02  Bruno Haible  <bruno@clisp.org>
25775
25776         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25777         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25778         from gnulib, not from Automake.
25779
25780 2010-10-02  Bruno Haible  <bruno@clisp.org>
25781
25782         New module 'system-posix'.
25783         * modules/system-posix: New file.
25784         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25785         module is present.
25786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25787         GNULIB_SYSTEM_POSIX.
25788         * modules/stdlib (Depends-on): Remove sys_wait.
25789         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25790         * doc/posix-functions/system.texi: Mention the new module.
25791         * doc/posix-headers/stdlib.texi: Likewise.
25792         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25793         define test_sys_wait_macros to a no-op.
25794         Reported by Sam Steingold <sds@gnu.org>.
25795
25796 2010-09-30  Bruno Haible  <bruno@clisp.org>
25797
25798         More renaming from 'getdate' to 'get_date'.
25799         * doc/get_date.texi: Renamed from doc/getdate.texi.
25800         * modules/get_date (Files): Update.
25801         * MODULES.html.sh (Date and time <time.h>): Update.
25802         * DEPENDENCIES: Update.
25803         * gnulib-tool: Update comment.
25804         * m4/bison.m4 (gl_BISON): Likewise.
25805         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25806
25807 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25808
25809         bootstrap: support ACLOCAL_FLAGS during aclocal
25810         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25811         can add additional -I dir for third-party .m4 files.
25812
25813 2010-09-30  Eric Blake  <eblake@redhat.com>
25814
25815         bootstrap: use glibtoolize on MacOS
25816         * build-aux/bootstrap (check_versions): Convert libtool into
25817         libtoolize.
25818         (tool search): Move libtool check earlier, and look for
25819         glibtoolize for MacOS.
25820         (gnulib_tool_options): Auto-add --libtool when appropriate.
25821         Reported by Justin Clift.
25822
25823         poll: fix typo that broke test on MacOS
25824         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25825         Reported by Justin Clift.
25826
25827         getdate: rename to get_date
25828         Note: getdate.h is not renamed, to minimize client impact.
25829         * modules/getdate: Mark obsolete.  Move old contents...
25830         * modules/get_date: ...to new module name.
25831         * modules/getdate-tests: Move...
25832         * modules/get_date-tests: ...here.
25833         * m4/getdate.m4: Move...
25834         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25835         * lib/getdate.y: Move...
25836         * lib/get_date.y: ...here.
25837         * tests/test-getdate.c: Move...
25838         * tests/test-get_date.c: ...here.
25839         * doc/posix-functions/getdate.texi (getdate): Update name.
25840         * NEWS: Mention the change.
25841
25842 2010-09-29  Bruno Haible  <bruno@clisp.org>
25843
25844         Separate the module 'waitpid' from the module 'sys_wait'.
25845         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25846         present.
25847         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25848         gl_MODULE_INDICATOR_FOR_TESTS.
25849         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25850         * modules/sys_wait (Depends-on): Remove waitpid.
25851         (Makefile.am): Substitute GNULIB_WAITPID.
25852         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25853         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25854         signature only if the 'waitpid' module is present.
25855         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25856         * NEWS: Mention the change.
25857         * modules/grantpt (Depends-on): Add waitpid.
25858         * modules/wait-process (Depends-on): Likewise.
25859
25860 2010-09-29  Bruno Haible  <bruno@clisp.org>
25861
25862         More tests for module 'sys_wait'.
25863         * modules/sys_wait-c++-tests: New file.
25864         * tests/test-sys_wait-c++.cc: New file.
25865         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25866         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25867
25868 2010-09-29  Bruno Haible  <bruno@clisp.org>
25869
25870         New module 'waitpid'.
25871         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25872         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25873         Don't include <process.h>.
25874         (waitpid): Declare only, using modern idiom.
25875         * m4/waitpid.m4: New file.
25876         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25877         * modules/waitpid: New file.
25878         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25879         (Makefile.am): Update.
25880         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25881
25882 2010-09-28  Bruno Haible  <bruno@clisp.org>
25883
25884         poll: Assume ANSI C.
25885         * lib/poll.c (poll): Use an ANSI C declaration.
25886
25887 2010-09-28  Bruno Haible  <bruno@clisp.org>
25888
25889         poll-h: Create poll.h on all platforms.
25890         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25891         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25892         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25893         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25894         (gl_REPLACE_POLL_H): Don't set POLL_H.
25895         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25896         * modules/poll-h (Depends-on): Add include_next.
25897         (Makefile.am): Create poll.h unconditionally. Substitute also
25898         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25899
25900 2010-09-28  Bruno Haible  <bruno@clisp.org>
25901
25902         Tests for module 'poll-h'.
25903         * modules/poll-h-c++-tests: New file.
25904         * tests/test-poll-h-c++.cc: New file.
25905
25906         Tests for module 'poll-h'.
25907         * modules/poll-h-tests: New file.
25908         * tests/test-poll-h.c: New file.
25909
25910 2010-09-28  Bruno Haible  <bruno@clisp.org>
25911
25912         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25913         * modules/poll-h (Depends-on): Add 'extensions'.
25914
25915 2010-09-28  Bruno Haible  <bruno@clisp.org>
25916
25917         New module 'poll-h'.
25918         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25919         (poll): Use modern idiom.
25920         * modules/poll-h: New file.
25921         * modules/poll (Files): Remove lib/poll.in.h.
25922         (Depends-on): Add poll-h.
25923         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25924         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25925         * m4/poll_h.m4: New file.
25926         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25927         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25928         and invoke gl_REPLACE_POLL_H.
25929         * lib/poll.c: Use common idiom.
25930         * tests/test-poll.c: Likewise.
25931         * doc/posix-headers/poll.texi: Mention the poll-h module.
25932         Suggested by Eric Blake.
25933
25934 2010-09-26  Bruno Haible  <bruno@clisp.org>
25935
25936         sys_wait: Implement WSTOPSIG.
25937         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25938         Reported by Simon Josefsson.
25939
25940 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25941
25942         stdlib, sys_wait: Avoid compilation error on mingw.
25943         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25944
25945 2010-09-26  Bruno Haible  <bruno@clisp.org>
25946
25947         stdlib tests: Avoid code duplication.
25948         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25949         * modules/sys_wait-tests (Files): Likewise.
25950         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25951         * tests/test-stdlib.c: Include test-sys_wait.h.
25952         (main): Invoke test_sys_wait_macros.
25953         * tests/test-sys_wait.c: Include test-sys_wait.h.
25954         (main): Invoke test_sys_wait_macros.
25955
25956 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25957
25958         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25959         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25960         sure Windows sockets are working before calling getaddrinfo.
25961         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25962         * doc/gnulib.texi (Windows sockets): Fix typo.
25963
25964 2010-09-25  Bruno Haible  <bruno@clisp.org>
25965
25966         Tests for module 'regex-quote'.
25967         * modules/regex-quote-tests: New file.
25968         * tests/test-regex-quote.c: New file.
25969
25970         New module 'regex-quote'.
25971         * lib/regex-quote.h: New file.
25972         * lib/regex-quote.c: New file.
25973         * modules/regex-quote: New file.
25974         Suggested by Reuben Thomas <rrt@sc3d.org>.
25975
25976 2010-09-24  Bruno Haible  <bruno@clisp.org>
25977
25978         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25979         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25980
25981 2010-09-23  Bruno Haible  <bruno@clisp.org>
25982
25983         setenv: Relax license.
25984         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25985         Blake.
25986         Requested by Eric Blake.
25987
25988 2010-09-22  Bruno Haible  <bruno@clisp.org>
25989
25990         termios: Relax license.
25991         * modules/termios (License): Change to LGPLv2+.
25992         Requested by Eric Blake.
25993
25994 2010-09-22  Bruno Haible  <bruno@clisp.org>
25995
25996         threadlib: Allow the package to change the default to 'no'.
25997         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25998         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25999         Reported by Paul Eggert.
26000
26001 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26002             Bruno Haible  <bruno@clisp.org>
26003
26004         Fix endless loop in mbmemcasecoll.
26005         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26006         byte.
26007         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26008
26009 2010-09-22  Bruno Haible  <bruno@clisp.org>
26010
26011         Tests for module 'memcoll'.
26012         * modules/memcoll-tests: New file.
26013         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26014
26015         memcoll, xmemcoll: Clarify size vs. length.
26016         * modules/memcoll.c (memcoll0): Clarify specification.
26017         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26018         passed to collate_error.
26019
26020 2010-09-22  Bruno Haible  <bruno@clisp.org>
26021
26022         Tests for module 'memcasecmp'.
26023         * modules/memcasecmp-tests: New file.
26024         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26025
26026 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26027
26028         * lib/pthread.in.h: Add split double-inclusion guard, and include
26029         system <pthread.h> if there is one.  Use @@-style as in other
26030         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26031         pthread.h doesn't.
26032         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26033         (pthread_mutexattr_settype, pthread_mutex_trylock):
26034         New static inline functions, if there's no system <pthread.h>.
26035         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26036         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26037         Approximate with mutexes if the system lacks spinlocks, as in
26038         MacOS.
26039         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26040         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26041         @@-style.  Check for spinlocks separately.
26042         (gl_PTHREAD_DEFAULTS): New macro.
26043         * modules/pthread: Redo to use a more typical style for in.h files.
26044
26045 2010-09-21  Eric Blake  <eblake@redhat.com>
26046
26047         net_if: enhance tests
26048         * tests/test-net_if.c (main): Move signature checks earlier.
26049         Print failures to stderr.
26050         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26051         Document the bug that we do not yet fix.
26052
26053 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26054
26055         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26056         about gnulib, not GSS.
26057
26058 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26059
26060         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26061         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26062         for Emacs.
26063         * build-aux/pmccabe2html: Make Makefile.am example code more
26064         cut-and-paste friendly.
26065
26066 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26067
26068         * tests/test-net_if.c: New file.
26069         * modules/net_if-tests: New file.
26070
26071 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26072
26073         pthread: add pthread_spin_destroy
26074         * lib/pthread.in.h (pthread_spin_destroy): New function.
26075
26076 2010-09-19  Bruno Haible  <bruno@clisp.org>
26077
26078         gnulib-tool: Fix --help output.
26079         * gnulib-tool (func_usage): Fix help message.
26080         Reported by Reuben Thomas <rrt@sc3d.org>.
26081
26082 2010-09-18  Jim Meyering  <meyering@redhat.com>
26083
26084         maint.mk: avoid unexpanded \n in two diagnostics
26085         * top/maint.mk (sc_prohibit_always_true_header_tests):
26086         Don't use a literal \n in a halt=... assignment.  It would not be
26087         expanded, and the two \n bytes would appear in the diagnostic output
26088         rather than the desired newline.  Use halt=$$(printf ... instead.
26089         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26090
26091 2010-09-18  Bruno Haible  <bruno@clisp.org>
26092
26093         netinet_in: Doc tweak.
26094         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26095         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26096
26097 2010-09-18  Jim Meyering  <meyering@redhat.com>
26098
26099         init.sh: correct an outdated comment
26100         * tests/init.sh (create_exe_shims_):  s/function/alias/
26101
26102         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26103         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26104         a file named "*.exe" is removed between the glob expansion and the
26105         processing of that oddly named file.
26106
26107 2010-09-17  Eric Blake  <eblake@redhat.com>
26108
26109         mirbsd: add some more support
26110         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26111         in BSD family.
26112         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26113         devices as OpenBSD.
26114         * m4/host-os.m4 (mirbsd): Add MirBSD.
26115
26116         tests: fix unportable assumption on sys/wait.h
26117         * tests/test-sys_wait.c (main): Relax test.
26118         * tests/test-stdlib.c (main): Likewise.
26119
26120         init.sh: accommodate directory with no .exes
26121         * tests/init.sh: Accomodate directory containing only scripts.
26122
26123         tests: avoid compiler warning
26124         * tests/test-stdlib.c (main): Use the variable.
26125
26126         fdutimens, fdutimensat: update signature, again
26127         * lib/utimens.h (gl_futimens): Delete, and move signature...
26128         (fdutimens): ...here.
26129         (fdutimensat): Rearrange signature.
26130         (lutimensat): Rename variable for clarity.
26131         * lib/fdutimensat.c (fdutimensat): Update signature.
26132         * lib/utimens.c (fdutimens): Likewise.
26133         (gl_futimens): Delete.
26134         (utimens, lutimens): Update callers.
26135         * lib/futimens.c (futimens): Likewise.
26136         * tests/test-fdutimensat.c: Likewise.
26137         * tests/test-utimens.c: Likewise.
26138         * tests/test-futimens.h: Update comment.
26139         * NEWS: Mention this.
26140         Suggested by Paul Eggert.
26141
26142 2010-09-17  Bruno Haible  <bruno@clisp.org>
26143
26144         Take over the maintenance of some older macros from Autoconf.
26145         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26146         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26147         GNU Autoconf.
26148         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26149         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26150
26151 2010-09-17  Eric Blake  <eblake@redhat.com>
26152
26153         fdutimensat: drop atflag validation
26154         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26155         with valid fd, to close a race scenario where futimens is
26156         unsupported and FILE was replaced by a symlink.
26157         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26158         accordingly.
26159         Suggested by Paul Eggert.
26160
26161 2010-09-16  Bruno Haible  <bruno@clisp.org>
26162
26163         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26164         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26165
26166 2010-09-16  Bruno Haible  <bruno@clisp.org>
26167
26168         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26169         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26170         login_tty exists.
26171         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26172
26173 2010-09-16  Bruno Haible  <bruno@clisp.org>
26174
26175         login_tty: Make the replacement code work on BSD systems.
26176         * lib/login_tty.c: Include <sys/ioctl.h>.
26177         (login_tty): Use ioctl TIOCSCTTY when available.
26178         * modules/login_tty (Depends-on): Add sys_ioctl.
26179         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26180
26181 2010-09-16  Bruno Haible  <bruno@clisp.org>
26182
26183         login_tty: Stricter unit test.
26184         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26185         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26186         and tcgetsid() after login_tty.
26187         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26188
26189 2010-09-16  Bruno Haible  <bruno@clisp.org>
26190
26191         New module 'tcgetsid'.
26192         * lib/tcgetsid.c: New file.
26193         * m4/tcgetsid.m4: New file.
26194         * modules/tcgetsid: New file.
26195         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26196         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26197         GNULIB_TCGETSID, HAVE_TCGETSID.
26198         * lib/termios.in.h: Include <sys/types.h>.
26199         (tcgetsid): New declaration.
26200         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26201         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26202         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26203         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26204
26205 2010-09-16  Bruno Haible  <bruno@clisp.org>
26206
26207         Tests for module 'termios'.
26208         * modules/termios-c++-tests: New file.
26209         * modules/termios-tests: New file.
26210         * tests/test-termios-c++.cc: New file.
26211         * tests/test-termios.c: New file.
26212
26213         New module 'termios'.
26214         * modules/termios: New file.
26215         * lib/termios.in.h: New file.
26216         * m4/termios_h.m4: New file.
26217         * doc/posix-headers/termios.texi: Mention the new module.
26218
26219 2010-09-16  Eric Blake  <eblake@redhat.com>
26220
26221         fdutimensat: add an atflag parameter
26222         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26223         * lib/utimens.h (fdutimensat): Update prototype.
26224         * tests/test-fdutimensat.c: Adjust test to match.
26225         * NEWS: Document the change.
26226         Suggested by Paul Eggert.
26227
26228 2010-09-16  Bruno Haible  <bruno@clisp.org>
26229
26230         Fix typos in comments.
26231         * lib/striconveh.h: Fix typo in comment.
26232         * lib/login_tty.c (login_tty): Likewise.
26233
26234 2010-09-15  Bruno Haible  <bruno@clisp.org>
26235
26236         stdlib: clarify MirBSD WEXITSTATUS bug
26237         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26238         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26239
26240 2010-09-15  Eric Blake  <eblake@redhat.com>
26241
26242         stdlib: work around MirBSD WEXITSTATUS bug
26243         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26244         * modules/stdlib (Depends-on): Add sys_wait.
26245         * tests/test-sys_wait.c (main): Enhance test.
26246         * tests/test-stdlib.c (main): Likewise.
26247         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26248
26249         docs: mention MacOS issue with WEXITSTATUS(constant)
26250         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26251         issue.
26252         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26253
26254         strnlen: add tests
26255         * modules/strnlen-tests: New file.
26256         * tests/test-strnlen.c: Likewise.
26257
26258 2010-09-14  Bruno Haible  <bruno@clisp.org>
26259
26260         unistr/base: Avoid link errors when module 'libunistring' is also used.
26261         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26262         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26263         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26264         Declare also when HAVE_LIBUNISTRING is set.
26265         Reported by Pádraig Brady <P@draigbrady.com>.
26266
26267 2010-09-14  Eric Blake  <eblake@redhat.com>
26268
26269         test-rawmemchr: make more robust
26270         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26271         (Depends-on, configure.ac): Add needed prerequisites to use it.
26272         * modules/memchr-tests (Files, Depends-on, configure.ac):
26273         Likewise, to avoid implicit reliance on memchr module prereqs.
26274         * tests/test-memchr.c (main): Ensure proper masking.
26275         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26276         reads.
26277
26278         memchr: detect glibc Alpha bug
26279         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26280         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26281         Alpha.
26282         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26283         * tests/test-memchr.c (main): Enhance test.
26284         Reported by Nelson H. F. Beebe.
26285
26286 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26287
26288         fts, getcwd, glob: audit for dirfd returning -1
26289         * lib/fts.c (opendir): Remove #define; no longer used.
26290         (opendirat): New arg PDIR_FD.  All callers changed.
26291         (fts_build, _opendir2): Use new opendirat to avoid the need for
26292         dirfd, or for checking whether dirfd returns a negative value.
26293         Don't use opendir; always use openat followed by fdopendir.
26294         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26295         it.
26296         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26297         returns -1 here.
26298         * modules/fts (Depends-on): Remove dirfd.
26299         * modules/getcwd (Depends-on): Likewise.
26300
26301 2010-09-13  Eric Blake  <eblake@redhat.com>
26302
26303         float: fix broken MirBSD header
26304         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26305         * doc/posix-headers/float.texi (float.h): Document it.
26306
26307 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26308
26309         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26310         * lib/fts.c (opendirat): New arg extra_flags.
26311         (__opendir2): Use it to avoid following symlinks when opening
26312         a directory, if symlinks are not supposed to be followed.  See
26313         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26314
26315         fdopendir: preserve argument fd before returning
26316         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26317         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26318         (fdopendir): Use them, arranging for FD to be open to the same
26319         directory that it was when it started.  (It might be temporarily
26320         closed while fdopendir is running, so this not thread- or
26321         signal-safe.)  Be careful to do the right thing even when file
26322         descriptors are scarce and dup fails with errno == EMFILE.  See
26323         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26324
26325 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26326
26327         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26328         * NEWS: Document change.
26329         * m4/regex.m4: Disable test for regoff_t size.
26330
26331 2010-09-13  Jim Meyering  <meyering@redhat.com>
26332
26333         fts: don't operate on an invalid file descriptor after failed dup
26334         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26335         negative file descriptor.
26336
26337 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26338
26339         savedir: add streamsavedir, deprecate fdsavedir
26340         * NEWS: Mention deprecation of fdsavedir.
26341         * lib/savedir.c (streamsavedir): New extern function, whose name
26342         ends in "savedir" to be consistent with the others.  This differs
26343         from savedirstream in that it doesn't close its argument.  The
26344         next version of GNU tar will use this instead of fdsavedir, to
26345         avoid some race conditions and conserve file descriptors.
26346         (savedirstream): Reimplement as a wrapper around streamsavedir.
26347         (fdsavedir): Add a comment deprecating this function.  As far as
26348         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26349         * lib/savedir.h (streamsavedir): New decl.
26350         (fdsavedir): Add a comment deprecating this.
26351
26352 2010-09-10  Bruno Haible  <bruno@clisp.org>
26353
26354         langinfo: Fix last commit.
26355         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26356         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26357         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26358
26359 2010-09-10  Bruno Haible  <bruno@clisp.org>
26360
26361         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26362         * lib/progreloc.c (O_EXEC): Define fallback.
26363
26364 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26365
26366         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26367         * NEWS: Document recent changes to fcntl-h.
26368         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26369         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26370         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26371         Similarly for O_SEARCH; this last was already true, but not documented.
26372         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26373         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26374         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26375         Likewise.
26376         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26377         is zero, not whether it is defined.
26378         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26379         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26380         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26381
26382 2010-09-10  Bruno Haible  <bruno@clisp.org>
26383
26384         langinfo, nl_langinfo: Fix for IRIX 5.3.
26385         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26386         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26387         HAVE_LANGINFO_YESEXPR.
26388         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26389         HAVE_LANGINFO_YESEXPR.
26390         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26391         HAVE_LANGINFO_T_FMT_AMPM is 0.
26392         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26393         HAVE_LANGINFO_YESEXPR is 0.
26394         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26395         NOEXPR.
26396         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26397         * doc/posix-functions/nl_langinfo.texi: Likewise.
26398         Reported by Eric Blake.
26399
26400 2010-09-10  Bruno Haible  <bruno@clisp.org>
26401
26402         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26403         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26404         on FreeBSD 8.0 and OpenBSD 4.6.
26405         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26406         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26407         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26408         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26409         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26410         ac_includes_default.
26411         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26412
26413 2010-09-09  Eric Blake  <eblake@redhat.com>
26414
26415         strsignal: work around NetBSD bug
26416         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26417         * lib/string.in.h (includes): Likewise.
26418         * doc/posix-functions/strsignal.texi (strsignal): Document the
26419         bug.
26420         Reported by Nelson H. F. Beebe.
26421
26422         gnulib-tool: work with NetBSD /bin/sh
26423         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26424         (func_get_description, func_get_comment, func_get_status)
26425         (func_get_notice, func_get_applicability, func_get_filelist)
26426         (func_get_dependencies, func_get_autoconf_early_snippet)
26427         (func_get_autoconf_snippet, func_get_automake_snippet)
26428         (func_get_include_directive, func_get_link_directive)
26429         (func_get_license, func_get_maintainer, func_import): Avoid
26430         shell syntax errors from parsing syntax extensions.
26431
26432 2010-09-09  Bruno Haible  <bruno@clisp.org>
26433
26434         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26435         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26436         a reliable way to determine whether the 'alias' command works.
26437
26438 2010-09-08  Jim Meyering  <meyering@redhat.com>
26439
26440         init.sh: penalize a set-x-impaired shell; don't disqualify it
26441         * tests/init.sh: Too many shells corrupt application stderr when
26442         you set -x, so we can't afford to disqualify them, since at least
26443         on Irix-6.5, that would disqualify all bourne shells.
26444         Instead, use a two-pass approach.
26445         On the first pass, try to find a shell that meets the stricter
26446         condition that set -x does not corrupt stderr.
26447         If no shell meets the stricter condition, retest each candidate
26448         shell, but without that extra condition.  Finally, when
26449         VERBOSE=yes is requested and set -x might cause trouble, simply
26450         issue a warning and refrain from enabling debug output.
26451
26452 2010-09-08  Eric Blake  <eblake@redhat.com>
26453
26454         unsetenv: fix OpenBSD bug
26455         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26456         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26457         documentation.
26458         Reported by Jim Meyering.
26459
26460         strtod: work around IRIX 6.5 bug
26461         * lib/strtod.c (strtod): Reparse number on shorter string if
26462         exponent parse was invalid.
26463         * tests/test-strtod.c (main): Add check for "0x1p 2".
26464         Reported by Tom G. Christensen.
26465
26466         getopt: optimize previous patch
26467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26468         empty variable.  Speed up awk script.
26469         Reported by Paolo Bonzini.
26470
26471 2010-09-08  Jim Meyering  <meyering@redhat.com>
26472
26473         test.sh: disqualify shells for which set -x corrupts stderr
26474         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26475         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26476         appear in stderr output.  For example, this command:
26477             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26478         prints "P=1" on those two systems:
26479
26480 2010-09-08  Bruno Haible  <bruno@clisp.org>
26481
26482         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26483         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26484         commands, because some shells ignore redirections when there is an
26485         error in the command lookup.
26486         Reported by Eric Blake.
26487
26488 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26489
26490         * lib/regex.h: Fix a mention of `regex_compile' (should be
26491         `re_compile_pattern').
26492         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26493         (re_set_registers): Correct name of parameter in comment.
26494
26495         * doc/regex.texi: Add documentation for missing syntax flags.
26496         Remove commented-out documentation of defunct syntax option
26497         RE_NO_EMPTY_ALTS.
26498         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26499         Add documentation of re_set_registers.
26500         Document trick to re-use a pattern buffer by setting fastmap manually.
26501         Update documentation of struct re_pattern_buffer per public members.
26502         Uncomment documentation of equivalence class operators and
26503         collating symbol operators, since they are now implemented,
26504         Explain leftmost-longest matching in relation to alternatives.
26505         Tidy documentation of substring matching.
26506         Remove POSIX documentation, which is done better in
26507         glibc, and refer the reader there. Keep BSD API documentation, as
26508         that is not readily available elsewhere.
26509
26510 2010-09-07  Eric Blake  <eblake@redhat.com>
26511
26512         getopt: handle POSIXLY_CORRECT set but not exported
26513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26514         export state of POSIXLY_CORRECT, due to bash set -o posix.
26515         Reported by Dustin J. Mitchell.
26516
26517 2010-09-05  Bruno Haible  <bruno@clisp.org>
26518
26519         gnulib-tool: Highlight the changed options.
26520         * gnulib-tool (func_usage): Display the --import, --add-import,
26521         --remove-import explanations in bold font.
26522
26523 2010-09-06  Karl Berry  <karl@gnu.org>
26524
26525         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26526
26527 2010-09-05  Bruno Haible  <bruno@clisp.org>
26528
26529         uniwidth/width: Update comment.
26530         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26531         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26532
26533 2010-09-05  Bruno Haible  <bruno@clisp.org>
26534
26535         isinf, isnan: Relax license.
26536         * modules/isinf (License): Change from GPL to LGPL, with consent from
26537         Ben Pfaff.
26538         * modules/isnan (License): Likewise.
26539         Requested by Ludovic Courtès.
26540
26541 2010-09-04  Bruno Haible  <bruno@clisp.org>
26542
26543         gnulib-tool: Help migration from --import to --add-import or --update.
26544         * gnulib-tool: Emit a verbose error message when --import is used
26545         without any module name.
26546
26547 2010-09-04  Bruno Haible  <bruno@clisp.org>
26548
26549         Update doc about gnulib-tool.
26550         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26551         'gnulib-tool --update' in more detail.
26552         Reported by Eric Blake.
26553
26554 2010-09-04  Bruno Haible  <bruno@clisp.org>
26555
26556         gnulib-tool: Change --import. New options --add/remove-import.
26557         * gnulib-tool: New options --add-import, --remove-import.
26558         (func_usage): Document them.
26559         (have_associative): Define always.
26560         (func_import): In import mode, don't merge the specified settings with
26561         the cached settings. Implement remove-import mode.
26562         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26563         Explain when to use them versus --import.
26564         (Simple update): Use --add-import instead of --import.
26565         * NEWS: Mention the change.
26566
26567 2010-09-04  Bruno Haible  <bruno@clisp.org>
26568
26569         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26570         separate gnulib.mk.
26571
26572 2010-09-04  Bruno Haible  <bruno@clisp.org>
26573
26574         gnulib-tool: Don't talk about CVS any more.
26575         * gnulib-tool (func_usage, func_import): Write "version control"
26576         instead of CVS.
26577
26578 2010-09-04  Jim Meyering  <meyering@redhat.com>
26579
26580         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26581         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26582         false positives (whose names may be ill-chosen) when searching
26583         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26584         would cause a false-positive.
26585
26586         avoid coreutils "make distcheck" failure
26587         Coreutils tests with an absolute build directory name that contains
26588         a space.  Not quoting this directory name caused a failure.
26589         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26590         * tests/test-vc-list-files-cvs.sh: Likewise.
26591
26592 2010-09-04  Bruno Haible  <bruno@clisp.org>
26593
26594         gnulib-tool: Avoid error when run in a package without Makefile.am.
26595         * gnulib-tool: When collecting the m4dirs in a package that does not
26596         have a Makefile.am, eliminate those directories that contain no
26597         gnulib-cache.m4. Fix expression that counts these directories.
26598
26599 2010-09-04  Bruno Haible  <bruno@clisp.org>
26600
26601         update-copyright test: Improve output when perl is missing or too old.
26602         * tests/test-update-copyright.sh: Move test of Perl version down after
26603         the test whether Perl exists. Provide an explanation relating Perl's
26604         error message to Automake's SKIP: message.
26605
26606 2010-09-04  Bruno Haible  <bruno@clisp.org>
26607
26608         Don't augment PATH in TESTS_ENVIRONMENT.
26609         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26610         set abs_aux_dir instead of augmenting PATH.
26611         * modules/vc-list-files-tests (Makefile.am): Likewise.
26612         * tests/test-update-copyright.sh: Augment PATH here.
26613         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26614         path_prepend_.
26615         * tests/test-vc-list-files-git.sh: Likewise.
26616
26617 2010-09-04  Jim Meyering  <meyering@redhat.com>
26618
26619         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26620         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26621
26622 2010-09-04  Bruno Haible  <bruno@clisp.org>
26623
26624         strdup: Fix compilation error in C++ mode.
26625         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26626         the macro.
26627
26628 2010-09-04  Bruno Haible  <bruno@clisp.org>
26629
26630         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26631         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26632         macro into a function.
26633         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26634
26635 2010-09-04  Bruno Haible  <bruno@clisp.org>
26636
26637         Set PATH_SEPARATOR the same way autoconf does.
26638         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26639         the value of PATH_SEPARATOR the same way autoconf-generated configure
26640         scripts do.
26641         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26642         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26643
26644 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26645
26646         Set PATH_SEPARATOR the same way autoconf does.
26647         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26648         the same way autoconf-generated configure scripts do.
26649         * posix-modules: Likewise.
26650
26651 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26652
26653         hash: fix safe_hasher const typo
26654         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26655         const; otherwise, there is a type error later.
26656
26657 2010-09-02  Jim Meyering  <meyering@redhat.com>
26658
26659         test-update-copyright.sh: require perl 5.8.0
26660         * tests/test-update-copyright.sh: Require 5.8.0,
26661         which Tom G. Christensen has confirmed is adequate,
26662         while 5.6.1 is not.
26663
26664 2010-09-02  Eric Blake  <eblake@redhat.com>
26665
26666         tests: init.sh improvements for re-exec'ing with zsh
26667         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26668         -vx through shell re-exec.
26669         Reported by Tom G. Christensen.
26670
26671         wctype: fix typo in previous commit
26672         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26673         Reported by Ludovic Courtès.
26674
26675 2010-09-02  Jim Meyering  <meyering@redhat.com>
26676
26677         test-update-copyright.sh: skip test if Perl is too old
26678         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26679         Reported by Tom G. Christensen.
26680
26681 2010-09-02  Bruno Haible  <bruno@clisp.org>
26682
26683         wctype: Avoid compilation error on IRIX 6.5.30.
26684         * lib/wctype.in.h (iswblank): Declare with a replacement if
26685         REPLACE_ISWBLANK is set.
26686         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26687         declared. Set REPLACE_ISWBLANK.
26688         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26689         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26690         * doc/posix-headers/wctype.texi: Likewise.
26691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26692
26693 2010-09-01  Bruno Haible  <bruno@clisp.org>
26694
26695         New module 'socketlib'.
26696         * modules/socketlib: New file.
26697         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26698         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26699         * modules/sockets (Depends-on): Add socketlib.
26700         Suggested by Sam Steingold <sds@gnu.org>.
26701
26702 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26703
26704         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26705
26706         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26707         when one needs search access to a directory but not read access.
26708         On systems where it is available, it works in some cases where
26709         O_RDONLY does not, namely on directories that are searchable but
26710         not readable, and which need only to be searchable.  If O_SEARCH
26711         is not available, fall back to the traditional method of using
26712         O_RDONLY.
26713
26714         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26715         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26716         when opening a directory that needs only to be searchable.
26717         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26718         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26719         * lib/openat-proc.c (openat_proc_name): Likewise.
26720         * lib/openat.c (openat_needs_fchdir): Likewise.
26721         * lib/save-cwd.c (save_cwd): Likewise.
26722         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26723
26724 2010-08-28  Bruno Haible  <bruno@clisp.org>
26725
26726         New module 'host-cpu-c-abi'.
26727         * modules/host-cpu-c-abi: New file.
26728         * m4/host-cpu-c-abi.m4: New file, based on part of
26729         clisp/src/m4/general.m4.
26730         Requested by Sam Steingold <sds@gnu.org>.
26731
26732 2010-08-31  Eric Blake  <eblake@redhat.com>
26733         and Jim Meyering  <meyering@redhat.com>
26734
26735         hash: factor, and guard against misbehaving hasher function
26736         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26737         of table->hasher's return value.  Also protect against a hash value
26738         so large that adding it to table->bucket results in a NULL pointer.
26739         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26740         Use it in place of open-coded check-and-abort.
26741
26742 2010-08-30  Bruno Haible  <bruno@clisp.org>
26743
26744         hash: silence spurious clang warning
26745         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26746         Reported by Eric Blake.
26747
26748 2010-08-30  Eric Blake  <eblake@redhat.com>
26749
26750         strstr, memmem, strcasestr: avoid leaked shell message
26751         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26752         FreeBSD.
26753         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26754         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26755
26756         tests: silence clang warning
26757         * tests/test-malloca.c (do_allocation): Avoid dead store.
26758
26759 2010-08-29  Bruno Haible  <bruno@clisp.org>
26760
26761         gettext: Fix recent mistake.
26762         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26763
26764 2010-08-29  Bruno Haible  <bruno@clisp.org>
26765
26766         selinux-h: Offer a --without-selinux option.
26767         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26768         --without-selinux was specified, skip all tests and define
26769         HAVE_SELINUX_SELINUX_H to 0.
26770         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26771         set LIB_SELINUX to empty.
26772         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26773         gl_LIBSELINUX. If --without-selinux was specified, replace
26774         selinux/context.h.
26775         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26776
26777 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26778             Bruno Haible  <bruno@clisp.org>
26779
26780         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26781         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26782         of HAVE_REALLOC.
26783         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26784         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26785         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26786         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26787
26788 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26789             Bruno Haible  <bruno@clisp.org>
26790
26791         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26792         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26793         HAVE_CALLOC.
26794         * lib/xmalloc.c: Update accordingly.
26795         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26796         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26797         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26798
26799 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26800             Bruno Haible  <bruno@clisp.org>
26801
26802         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26803         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26804         HAVE_MALLOC.
26805         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26806         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26807         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26808
26809 2010-08-29  Bruno Haible  <bruno@clisp.org>
26810
26811         Update modules list.
26812         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26813         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26814         (String handling <string.h>): Add astrxfrm.
26815         (File system functions): Add readlinkat.
26816
26817 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26818
26819         Tests for module 'realloc-gnu'.
26820         * modules/realloc-gnu-tests: New file.
26821         * tests/test-realloc-gnu.c: New file.
26822
26823         Tests for module 'calloc-gnu'.
26824         * modules/calloc-gnu-tests: New file.
26825         * tests/test-calloc-gnu.c: New file.
26826
26827         Tests for module 'malloc-gnu'.
26828         * modules/malloc-gnu-tests: New file.
26829         * tests/test-malloc-gnu.c: New file.
26830
26831 2010-08-28  Bruno Haible  <bruno@clisp.org>
26832
26833         Rename module 'realloc' -> 'realloc-gnu'.
26834         * modules/realloc-gnu: New file, copied from modules/realloc.
26835         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26836         obsolete.
26837         * modules/mgetgroups (Depends-on): Update.
26838         * doc/posix-functions/realloc.texi: Update.
26839         * NEWS: Mention the change.
26840
26841         Rename module 'calloc' -> 'calloc-gnu'.
26842         * modules/calloc-gnu: New file, copied from modules/calloc.
26843         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26844         obsolete.
26845         * doc/posix-functions/calloc.texi: Update.
26846         * NEWS: Mention the change.
26847
26848         Rename module 'malloc' -> 'malloc-gnu'.
26849         * modules/malloc-gnu: New file, copied from modules/malloc.
26850         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26851         obsolete.
26852         * modules/argp (Depends-on): Update.
26853         * modules/regex (Depends-on): Update.
26854         * doc/posix-functions/malloc.texi: Update.
26855         * NEWS: Mention the change.
26856
26857 2010-08-28  Eric Blake  <eblake@redhat.com>
26858
26859         pread, pwrite: add missing dependency
26860         * modules/pread (Depends-on): Add extensions.
26861         * modules/pwrite (Depends-on): Likewise.
26862
26863 2010-08-28  Bruno Haible  <bruno@clisp.org>
26864
26865         unistr/u*-strchr: Fix tests dependencies.
26866         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26867         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26868         Reported by Ian Beckwith <ianb@erislabs.net>.
26869
26870 2010-08-28  Bruno Haible  <bruno@clisp.org>
26871
26872         read-file: Don't occupy too much unused memory.
26873         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26874
26875 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26876             Eric Blake  <eblake@redhat.com>
26877             Bruno Haible  <bruno@clisp.org>
26878
26879         read-file: Avoid memory reallocations with regular files.
26880         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26881         (fread_file): With regular files, use the remaining length as the
26882         initial buffer size.  Check against overflow.
26883         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26884         sys_stat.
26885
26886 2010-08-28  Bruno Haible  <bruno@clisp.org>
26887
26888         ftello: Relax license.
26889         * modules/ftello (License): Relax to LGPLv2+.
26890         Reported by Eric Blake.
26891
26892 2010-08-28  Bruno Haible  <bruno@clisp.org>
26893
26894         Avoid relocwrapper link errors due to gnulib replacement functions.
26895         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26896         function.
26897         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26898
26899 2010-08-28  Bruno Haible  <bruno@clisp.org>
26900
26901         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26902         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26903         defined.
26904         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26905         Suggested by Eric Blake.
26906
26907 2010-08-28  Bruno Haible  <bruno@clisp.org>
26908
26909         sys_socket, netdb: Ensure socklen_t gets defined.
26910         * modules/sys_socket (Depends-on): Add socklen.
26911         * modules/netdb (Depends-on): Likewise.
26912         * modules/getaddrinfo (Depends-on): Remove socklen.
26913         * modules/getsockopt (Depends-on): Likewise.
26914         * modules/setsockopt (Depends-on): Likewise.
26915         * tests/test-sys_socket.c: Check that socklen_t is defined.
26916         * tests/test-netdb.c: Likewise.
26917         * m4/socklen.m4: Update comments.
26918         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26919
26920 2010-08-27  Eric Blake  <eblake@redhat.com>
26921
26922         login_tty: add missing dependency
26923         * modules/login_tty (Depends-on): Add pty.
26924
26925 2010-08-26  Eric Blake  <eblake@redhat.com>
26926
26927         lib-symbol-versions: fix m4 quoting
26928         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26929         format for AC_LINK_IFELSE.
26930
26931         glob: fix compile test
26932         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26933
26934         btowc: fix missing file
26935         * modules/btowc (Files): Also ship locale-fr.m4.
26936
26937         lseek: fix link test
26938         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26939         AC_LINK_IFELSE.
26940
26941         include_next: silence autoconf 2.68 warning
26942         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26943         AC_COMPILE_IFELSE as special.
26944         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26945         autoconf < 2.68.
26946
26947         acl: fix compilation test
26948         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26949         AC_COMPILE_IFELSE.
26950
26951 2010-08-26  Bruno Haible  <bruno@clisp.org>
26952
26953         Modernize AC_TRY_RUN invocations.
26954         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26955         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26956         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26957         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26958         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26959         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26960         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26961         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26962         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26963         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26964         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26965         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26966         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26967         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26968         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26969         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26970         gl_MBRLEN_NUL_RETVAL): Likewise.
26971         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26972         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26973         Likewise.
26974         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26975         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26976         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26977         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26978         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26979         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26980         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26981         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26982         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26983         Likewise.
26984         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26985         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26987         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26988         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26989         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26990         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26991         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26992         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26994
26995 2010-08-26  Bruno Haible  <bruno@clisp.org>
26996
26997         Modernize AC_TRY_LINK invocations.
26998         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26999         AC_TRY_LINK.
27000         * m4/argp.m4 (gl_ARGP): Likewise.
27001         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27002         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27003         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27004         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27005         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27006         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27007         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27008         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27009         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27010         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27011         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27012         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27013         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27014         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27015         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27016         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27017         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27018         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27019         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27020         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27021         Likewise.
27022         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27023         Likewise.
27024         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27025         Likewise.
27026         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27027         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27028         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27029         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27030         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27031         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27032         * m4/servent.m4 (gl_SERVENT): Likewise.
27033         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27034         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27035         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27036         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27037         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27038         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27039         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27040         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27041         * modules/tsearch-tests (configure.ac): Likewise.
27042
27043 2010-08-26  Bruno Haible  <bruno@clisp.org>
27044
27045         Modernize AC_TRY_COMPILE invocations.
27046         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27047         AC_TRY_COMPILE.
27048         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27049         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27050         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27051         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27052         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27053         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27054         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27055         * m4/lock.m4 (gl_LOCK): Likewise.
27056         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27057         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27058         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27059         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27060         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27061         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27062         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27063         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27064         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27065         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27066         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27067         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27068         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27069         extraneous semicolon.
27070
27071 2010-08-26  Jim Meyering  <meyering@redhat.com>
27072
27073         stat-time: relax license LGPL
27074         * modules/stat-time (License): Change from GPL to LGPL,
27075         with consent from all contributors, for use in libguile.
27076         Requested by Ludovic Courtès.
27077
27078 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27079
27080         poll: return immediately on POLLHUP.
27081         * lib/poll.c (poll): Always set timeout before wait_timeout is
27082         computed.
27083
27084 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27085
27086         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27087         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27088         rmdir ("dir/.//"), unlinkat.
27089
27090 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27091
27092         stdbool: avoid spurious failure with modern xlc
27093         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27094
27095 2010-08-24  Bruno Haible  <bruno@clisp.org>
27096
27097         getloadavg: simplify code
27098         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27099         gl_have_func. Update comments.
27100
27101 2010-08-24  Eric Blake  <eblake@redhat.com>
27102
27103         getloadavg: don't define SVR4 on cygwin
27104         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27105         only define SVR4 when -lkvm is required.
27106         Reported by Yaakov Selkowitz.
27107
27108 2010-08-24  Bruno Haible  <bruno@clisp.org>
27109
27110         priv-set: fix comment
27111         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27112
27113 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27114
27115         priv-set: fix comments
27116         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27117         to match code, as suggested by David Bartley in:
27118         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27119
27120 2010-08-23  Eric Blake  <eblake@redhat.com>
27121
27122         stdbool: avoid rejecting clang
27123         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27124         * tests/test-stdbool.c: Enable more tests if using the system
27125         <stdbool.h> instead of the gnulib replacement.
27126         (main): Move xlc bug test to a runtime test for all compilers.
27127         Reported by Anders Kaseorg.
27128
27129         argz: fix shell quoting issue
27130         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27131         Reported by Charles Wilson.
27132
27133 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27134             Erik Faye-Lund <kusmabite@gmail.com>
27135
27136         poll, select: handle ERROR_BROKEN_PIPE.
27137         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27138         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27139         * lib/select.c (win32_compute_revents): Do not mark a pipe
27140         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27141
27142 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27143
27144         fts: allow compilation with C++
27145         * lib/fts_.h: Specify extern "C" linkage with C++.
27146
27147 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27148
27149         Fix gnulib-tool sed script de-commentation for AIX sed.
27150         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27151         sed.
27152
27153 2010-08-17  Eric Blake  <eblake@redhat.com>
27154
27155         test-stddef: test for (some) offsetof bugs
27156         * tests/test-stddef.c: Enhance test to ensure correct type of
27157         offsetof.
27158         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27159         that we are not fixing at this time.
27160
27161 2010-08-15  Bruno Haible  <bruno@clisp.org>
27162
27163         stpncpy: Allow stpncpy to be defined as a macro.
27164         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27165         if it's already correctly declared.
27166         * lib/string.in.h (stpncpy): Undefine before redefining.
27167         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27168
27169 2010-08-14  Bruno Haible  <bruno@clisp.org>
27170
27171         Rename module 'memxfrm' to 'amemxfrm'.
27172         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27173         (amemxfrm): Renamed from memxfrm.
27174         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27175         (amemxfrm): Renamed from memxfrm.
27176         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27177         * NEWS: Mention the change.
27178         * MODULES.html.sh (String handling <string.h>): Update.
27179         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27180         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27181         * lib/unicase/u16-casexfrm.c: Likewise.
27182         * lib/unicase/u32-casexfrm.c: Likewise.
27183         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27184         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27185         * lib/uninorm/u16-normxfrm.c: Likewise.
27186         * lib/uninorm/u32-normxfrm.c: Likewise.
27187         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27188         memxfrm.
27189         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27190         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27191         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27192         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27193         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27194         Suggested by Paul Eggert.
27195
27196 2010-08-14  Bruno Haible  <bruno@clisp.org>
27197
27198         Tests for module 'astrxfrm'.
27199         * modules/astrxfrm-tests: New file.
27200         * tests/test-astrxfrm.c: New file.
27201
27202         New module 'astrxfrm'.
27203         * lib/astrxfrm.h: New file.
27204         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27205         * modules/astrxfrm: New file.
27206
27207 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27208
27209         regex: Tweak doc.
27210         * doc/regex.texi (Overview): Don't mention regex.c.
27211         (GNU Regular Expression Compiling): Likewise.
27212         (Match-end-of-line Operator): Mention 'not_eol'.
27213
27214 2010-08-14  Brian Gough  <bjg@gnu.org>
27215             Bruno Haible  <bruno@clisp.org>
27216
27217         git-merge-changelog: add doc relating to use with bzr and hg.
27218         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27219
27220 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27221
27222         pthread: fix pthread.h creation for srcdir != builddir
27223         * modules/pthread (Makefile.am): Fix the rule to work also in a
27224         non-srcdir build.
27225
27226 2010-08-13  Karl Berry  <karl@gnu.org>
27227
27228         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27229         * doc/posix-*/*: force line break before @url of POSIX
27230         specifications.
27231         Suggested by Werner Lemberg.
27232
27233 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27234
27235         strtod: fix const diagnostic
27236         * lib/strtod.c (strtod): Don't assign const char * to char *,
27237         as this elicits a warning from GCC when warnings are enabled.
27238
27239 2010-08-10  Pádraig Brady <P@draigbrady.com>
27240         and Eric Blake  <eblake@redhat.com>
27241
27242         copy-acl: ignore ENOTSUP on HP-UX
27243         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27244         so that it is available for HP-UX.
27245         * lib/copy-acl.c (qcopy_acl): Use it.
27246         Reported by Patrick M. Callahan.
27247
27248 2010-08-10  Eric Blake  <eblake@redhat.com>
27249
27250         open, chown: relax license
27251         * modules/open (License): Change to LGPLv2+, with consent by all
27252         authors, for use in augeas.
27253         * modules/chown (License): Likewise.
27254         * modules/lchown (Likewise): Likewise.
27255         Requested by Adam Stokes.
27256
27257 2010-08-09  Karl Berry  <karl@gnu.org>
27258
27259         * build-aux/ar-lib: new file, import from Automake.
27260         * config/srclist.txt: autocheck for updates.
27261
27262 2010-08-09  Eric Blake  <eblake@redhat.com>
27263
27264         readlinkat: adjust client modules
27265         * modules/areadlinkat (Depends-on): Use readlinkat, not
27266         symlinkat.
27267         * modules/areadlinkat-with-size (Depends-on): Likewise.
27268
27269         mknod: be more vocal about danger of running tests as root
27270         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27271         root, since that is just asking for problems.
27272         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27273
27274         readlinkat: split into its own module
27275         * modules/symlinkat: Split readlinkat...
27276         * modules/readlinkat: ...into separate module.
27277         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27278         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27279         * lib/symlinkat.c (readlinkat): Move...
27280         * lib/readlinkat.c: ...into new file.
27281         * modules/symlinkat-tests: Split readlinkat test...
27282         * modules/readlinkat-tests: ...into separate module.
27283         * tests/test-symlinkat.c: Split...
27284         * tests/test-readlinkat.c: ...into new file.
27285         * NEWS: Document the split.
27286         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27287         * lib/unistd.in.h (readlinkat): Likewise.
27288         Suggested by Bruno Haible.
27289
27290 2010-08-08  Bruno Haible  <bruno@clisp.org>
27291
27292         memxfrm: Speed up.
27293         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27294         that usually only one call to strxfrm is necessary for each string
27295         part.
27296         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27297
27298 2010-08-07  Karl Berry  <karl@gnu.org>
27299
27300         * doc/posix-headers/limits.texi,
27301         * doc/posix-functions/malloc.texi,
27302         * doc/posix-functions/strsignal.texi: missing @item.
27303         * doc/ld-version-script.texi: spurious leading i.
27304         * doc/regex.texi (Interval Operators): no commas inside @var.
27305
27306 2010-08-01  Bruno Haible  <bruno@clisp.org>
27307
27308         Integrate the regex documentation.
27309         * doc/gnulib.texi: Define 'cn' index.
27310         (Regular expressions): New a chapter that includes regex.texi and
27311         regexprops-generic.texi.
27312         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27313         syntax.
27314
27315         Whitespace cleanup.
27316         * doc/regex.texi: Remove trailing spaces.
27317
27318         Add regex documentation.
27319         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27320         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27321         Written by Kathy A. Hargreaves and Karl Berry.
27322
27323 2010-08-01  Bruno Haible  <bruno@clisp.org>
27324
27325         link: Update documentation.
27326         * doc/posix-functions/link.texi: Update regarding Solaris.
27327
27328 2010-07-31  Bruno Haible  <bruno@clisp.org>
27329
27330         Update modules list.
27331         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27332         (String handling <string.h>): Add memcmp2, memxfrm.
27333         (Container data structures): Add xlist, xsublist, xoset.
27334         (Core language properties): Add alignof, unused-parameter.
27335         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27336         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27337         (Unibyte characters <ctype.h>): New section.
27338         (String handling <string.h>): New section.
27339         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27340         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27341         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27342         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27343         tan, tanh, tanl, y0, y1, yn.
27344         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27345         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27346         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27347         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27348         unlockpt, vdprintf, vdprintf-posix.
27349         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27350         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27351         xconcat-filename.
27352         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27353         getdtablesize, pipe2, pipe2-safer.
27354         (Security): New section.
27355         (Networking functions): Add accept4.
27356         (Signal handling): Add sigpipe.
27357         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27358         mbmemcasecoll.
27359         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27360         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27361         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27362         pipe-filter-ii.
27363         (Misc): Add argp-version-etc, login_tty, parse-duration.
27364
27365 2010-07-31  Bruno Haible  <bruno@clisp.org>
27366
27367         Improve doc in MODULES.html.
27368         * modules/linkat (Description): Add the word "function".
27369         * modules/mkfifo (Description): Likewise.
27370         * modules/mknod (Description): Likewise.
27371         * modules/remove (Description): Likewise.
27372         * modules/renameat (Description): Likewise.
27373         * modules/stat (Description): Likewise.
27374         * modules/symlink (Description): Likewise.
27375         * modules/unlink (Description): Likewise.
27376
27377 2010-07-31  Bruno Haible  <bruno@clisp.org>
27378
27379         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27380         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27381         option --enable/disable-c++ instead of --enable/disable-cxx.
27382         * NEWS: Mention the change.
27383
27384 2010-07-31  Bruno Haible  <bruno@clisp.org>
27385
27386         readlink, areadlink: Relax test a bit.
27387         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27388         alternative to ENOTDIR.
27389         * tests/test-areadlink.h (test_areadlink): Likewise.
27390         Reported by Rainer Tammer.
27391
27392 2010-07-31  Bruno Haible  <bruno@clisp.org>
27393
27394         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27395         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27396         character, perform the search using U_STRCHR.
27397         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27398         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27399         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27400         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27401         Suggested by Paolo Bonzini.
27402
27403 2010-07-31  Bruno Haible  <bruno@clisp.org>
27404
27405         unistr/u*-strstr: Fix dependencies.
27406         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27407         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27408         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27409
27410 2010-07-31  Bruno Haible  <bruno@clisp.org>
27411
27412         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27413         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27414         the beginning of the loop.
27415         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27416         cases in 'switch' statement.
27417
27418         unistr/u8-strchr: Fix several bugs.
27419         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27420         the string. When not found, return NULL, not a pointer near the end.
27421
27422         More tests for unistr/u8-strchr.
27423         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27424         that the function does not read past the first occurrence of the byte
27425         being searched.
27426         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27427         * tests/unistr/test-u16-strchr.c (main): New function.
27428         * tests/unistr/test-u32-strchr.c (main): New function.
27429
27430 2010-07-31  Bruno Haible  <bruno@clisp.org>
27431
27432         posix-modules: Ignore backup files of documentation files.
27433         * posix-modules: grep only through files named *.texi.
27434
27435 2010-07-31  Bruno Haible  <bruno@clisp.org>
27436
27437         symlinkat: Fix documentation.
27438         * doc/posix-functions/readlinkat.texi: Fix module name.
27439
27440 2010-07-31  Bruno Haible  <bruno@clisp.org>
27441
27442         fchownat: Replace also when chown has the trailing slash bug.
27443         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27444         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27445         introduced on 2010-04-10.
27446         Reported by Rainer Tammer.
27447
27448 2010-07-31  Bruno Haible  <bruno@clisp.org>
27449
27450         linkat: Work around AIX 7.1 bug.
27451         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27452         whether linkat handles trailing slash correctly. If not, replace linkat
27453         and define LINKAT_TRAILING_SLASH_BUG.
27454         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27455         check whether (fd1,file1) points to a directory if file1 or file2 ends
27456         in a slash. Code taken from lib/link.c.
27457         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27458         Reported by Rainer Tammer.
27459
27460 2010-07-31  Bruno Haible  <bruno@clisp.org>
27461
27462         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27463         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27464         This disables an xlc optimization that was causing wrong test results.
27465         Reported by Rainer Tammer.
27466
27467 2010-07-31  Bruno Haible  <bruno@clisp.org>
27468
27469         iconv: Work around AIX 6.1..7.1 bug.
27470         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27471         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27472         cross-compiling, guess no on all versions of AIX.
27473         Reported by Rainer Tammer.
27474
27475 2010-07-31  Bruno Haible  <bruno@clisp.org>
27476
27477         readlink: Relax test a bit.
27478         * tests/test-readlink.h (test_readlink): Allow different errno value
27479         when readlink is called with a file name that ends in / and refers to
27480         a file.
27481         Suggested by Eric Blake.
27482         Reported by Rainer Tammer.
27483
27484 2010-07-31  Bruno Haible  <bruno@clisp.org>
27485
27486         copysign: Does not require -lm on glibc systems.
27487         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27488         gl_COMMON_DOUBLE_MATHFUNC.
27489         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27490
27491 2010-07-31  Bruno Haible  <bruno@clisp.org>
27492
27493         duplocale: Work around AIX 7.1 bug.
27494         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27495         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27496         * lib/duplocale.c (rpl_duplocale): Update comment.
27497         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27498         Reported by Rainer Tammer.
27499
27500 2010-07-30  Bruno Haible  <bruno@clisp.org>
27501
27502         dirfd: Avoid link error on AIX 7.1.
27503         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27504         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27505         exist, set REPLACE_DIRFD.
27506         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27507         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27508         * doc/posix-functions/dirfd.texi: Update.
27509         Reported by Rainer Tammer.
27510
27511 2010-07-30  Eric Blake  <eblake@redhat.com>
27512
27513         strtod: next round of AIX fixes
27514         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27515         exponent.
27516         * tests/test-strtod.c (main): Enhance tests.
27517         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27518         Reported by Rainer Tammer.
27519
27520         futimens: fix configure check
27521         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27522         Reported by Bruno Haible.
27523
27524 2010-07-30  Bruno Haible  <bruno@clisp.org>
27525
27526         getline: Update regarding AIX.
27527         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27528         Reported by Rainer Tammer.
27529
27530 2010-07-30  Bruno Haible  <bruno@clisp.org>
27531
27532         wcwidth: Drop replacement on AIX 7.
27533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27534         AIX 7.
27535         Reported by Rainer Tammer.
27536
27537 2010-07-30  Bruno Haible  <bruno@clisp.org>
27538
27539         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27540         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27541         a 'char *'.
27542         Reported by Rainer Tammer.
27543
27544 2010-07-30  Bruno Haible  <bruno@clisp.org>
27545
27546         unlink: Update regarding AIX.
27547         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27548         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27549         Reported by Rainer Tammer.
27550
27551 2010-07-30  Bruno Haible  <bruno@clisp.org>
27552
27553         symlink: Update regarding AIX.
27554         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27555         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27556         Reported by Rainer Tammer.
27557
27558 2010-07-30  Bruno Haible  <bruno@clisp.org>
27559
27560         strndup: Update regarding AIX.
27561         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27562         AIX 7.
27563         Reported by Rainer Tammer.
27564
27565 2010-07-30  Bruno Haible  <bruno@clisp.org>
27566
27567         stat: Update regarding AIX.
27568         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27569         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27570         Reported by Rainer Tammer.
27571
27572 2010-07-30  Bruno Haible  <bruno@clisp.org>
27573
27574         truncl: Fix autoconf test.
27575         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27576         whether truncl works.
27577         Reported by Rainer Tammer.
27578
27579 2010-07-30  Bruno Haible  <bruno@clisp.org>
27580
27581         round: Update regarding AIX.
27582         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27583         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27584         Reported by Rainer Tammer.
27585
27586 2010-07-30  Bruno Haible  <bruno@clisp.org>
27587
27588         rename: Update regarding AIX.
27589         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27590         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27591         Reported by Rainer Tammer.
27592
27593 2010-07-30  Bruno Haible  <bruno@clisp.org>
27594
27595         printf.m4: Update regarding AIX.
27596         * m4/printf.m4: Update comments regarding AIX.
27597         Reported by Rainer Tammer.
27598
27599 2010-07-30  Bruno Haible  <bruno@clisp.org>
27600
27601         iconv: Update regarding AIX.
27602         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27603         AIX 7.
27604         Reported by Rainer Tammer.
27605
27606 2010-07-30  Bruno Haible  <bruno@clisp.org>
27607
27608         getopt: Update regarding AIX.
27609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27610         no on AIX.
27611         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27612         Reported by Rainer Tammer.
27613
27614 2010-07-30  Bruno Haible  <bruno@clisp.org>
27615
27616         ldexpl; Update regarding AIX.
27617         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27618         on AIX 7.
27619         Reported by Rainer Tammer.
27620
27621 2010-07-30  Bruno Haible  <bruno@clisp.org>
27622
27623         frexpl: Update regarding AIX.
27624         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27625         on AIX 7.
27626         Reported by Rainer Tammer.
27627
27628 2010-07-30  Bruno Haible  <bruno@clisp.org>
27629
27630         open, fopen: Update regarding AIX.
27631         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27632         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27633         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27634         * doc/posix-functions/fopen.texi: Likewise.
27635         Reported by Rainer Tammer.
27636
27637 2010-07-30  Bruno Haible  <bruno@clisp.org>
27638
27639         chown: Update doc regarding AIX.
27640         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27641         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27642         Reported by Rainer Tammer.
27643
27644 2010-07-30  Eric Blake  <eblake@redhat.com>
27645
27646         strtod: fix bug in replacement function on AIX
27647         * lib/strtod.c (strtod): Special case broken "0x" parse in
27648         underlying strtod.
27649         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27650         * doc/posix-functions/strtod.texi (strtod): Likewise.
27651         Reported by Rainer Tammer.
27652
27653 2010-07-30  Bruno Haible  <bruno@clisp.org>
27654
27655         mbrlen: Fix cross-compilation guess for AIX.
27656         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27657         guess. Leftover from 2008-12-22.
27658
27659 2010-07-30  Bruno Haible  <bruno@clisp.org>
27660
27661         mbrtowc: Fix cross-compilation guess for AIX.
27662         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27663         guess. Leftover from 2008-12-21.
27664
27665 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27666
27667         init.sh: work around trap limitation of some shells
27668         * tests/init.sh (setup_): Move exit trap outside of shell function.
27669
27670 2010-07-29  Eric Blake  <eblake@redhat.com>
27671
27672         strtod: aid debugging
27673         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27674         understanding why strtod is rejected.
27675
27676 2010-07-28  Bruno Haible  <bruno@clisp.org>
27677
27678         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27679         * lib/unistr/u8-chr.c: Include <string.h>.
27680         * tests/unistr/test-u8-chr.c: Likewise.
27681         * tests/unistr/test-u16-chr.c: Likewise.
27682         * tests/unistr/test-u32-chr.c: Likewise.
27683         * tests/unistr/test-u8-strchr.c: Likewise.
27684         * tests/unistr/test-u16-strchr.c: Likewise.
27685         * tests/unistr/test-u32-strchr.c: Likewise.
27686         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27687         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27688         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27689         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27690
27691 2010-07-28  Bruno Haible  <bruno@clisp.org>
27692
27693         Use spaces for indentation, not tabs.
27694         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27695
27696 2010-07-27  Bruno Haible  <bruno@clisp.org>
27697
27698         mbspcasecmp: Fix function specification.
27699         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27700         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27701         Reported by Eric Blake <eblake@redhat.com>.
27702
27703 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27704
27705         timespec: use cast and not conditional, as truncation isn't possible
27706         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27707         instead of a conditional.  Comment about the situation in more detail.
27708         This undoes most of the 2009-10-29 patch.
27709
27710 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27711
27712         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27713         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27714         * lib/unistr/u8-strchr.c: Likewise.
27715         * modules/unistr/u8-chr: Depend on memchr.
27716
27717         unistr/u*-strchr: add tests
27718         * modules/unistr/u8-strchr-tests: New file.
27719         * modules/unistr/u16-strchr-tests: New file.
27720         * modules/unistr/u32-strchr-tests: New file.
27721         * tests/unistr/test-strchr.h: New file.
27722         * tests/unistr/test-u8-strchr.c: New file.
27723         * tests/unistr/test-u16-strchr.c: New file.
27724         * tests/unistr/test-u32-strchr.c: New file.
27725
27726         unistr/u*-chr: test multibyte sequences more
27727         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27728         test vector.
27729         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27730         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27731         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27732
27733         unistr/u*-chr: test multibyte sequences
27734         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27735
27736         unistr/u*-chr: prepare for multibyte tests
27737         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27738         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27739         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27740         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27741         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27742         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27743
27744 2010-07-18  Bruno Haible  <bruno@clisp.org>
27745
27746         unistr/u8-strchr: Optimize non-ASCII argument case.
27747         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27748         because the first byte often matches anyway.
27749         Reported by Pádraig Brady <P@draigbrady.com>.
27750
27751 2010-07-15  Karl Berry  <karl@gnu.org>
27752
27753         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27754
27755 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27756
27757         getcwd: on Solaris, work better if ancestors are inaccessible
27758         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27759         buffer and size, try again with a large buffer.  This works better
27760         on Solaris, since its getcwd succeeds even if the path to the root
27761         is inaccessible, and this is helpful in common cases such as .zfs
27762         hidden directories.  Problem reported by J Chapman Flack in
27763         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27764         Use system getcwd if it's declared, not merely if it's partly
27765         working; use the partly-working test only to avoid needless effort
27766         if the system getcwd fails.
27767         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27768         comment that was already obsolete and is now even more obsolete.
27769         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27770         now might call strdup.
27771
27772 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27773
27774         pthread: Add enough so that coreutils/src/sort.c compiles.
27775         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27776         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27777         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27778         Include <sys/types.h>, in case it defines pthread_t.
27779         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27780         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27781         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27782         (pthread_rwlockattr_t, pthread_spinlock_t):
27783         New typedefs, if HAVE_PTHREAD_T is not defined.
27784         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27785         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27786         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27787         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27788         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27789         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27790         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27791         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27792         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27793         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27794         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27795         New macros.
27796         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27797         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27798         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27799         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27800         (pthread_spin_unlock): New dummy functions.
27801         (pthread_create): Return EAGAIN; don't set errno.
27802         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27803         require AC_C_INLINE.
27804         * modules/pthread (Depends-on): Add sched, time.
27805         (pthread.h): Use AM_V_GEN.
27806
27807 2010-07-13  Bruno Haible  <bruno@clisp.org>
27808
27809         striconveh: Don't malloc memory if the result buffer is sufficient.
27810         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27811         buffer if its size is sufficient.
27812         Reported by Ludovic Courtès <ludo@gnu.org>.
27813
27814 2010-07-13  Bruno Haible  <bruno@clisp.org>
27815
27816         strtod: Add safety check.
27817         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27818
27819 2010-07-12  Bruno Haible  <bruno@clisp.org>
27820
27821         Unify tests that set gl_cv_func_ldexpl_no_libm.
27822         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27823         gl_FUNC_LDEXPL.
27824         (gl_FUNC_LDEXPL): Invoke it.
27825         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27826
27827 2010-07-12  Bruno Haible  <bruno@clisp.org>
27828
27829         Unify tests that set gl_cv_func_ldexp_no_libm.
27830         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27831         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27832         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27833         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27834         * modules/strtod (Files): Add m4/ldexp.m4.
27835
27836 2010-07-12  Bruno Haible  <bruno@clisp.org>
27837
27838         Unify tests that set gl_cv_func_frexpl_no_libm.
27839         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27840         gl_FUNC_FREXPL_NO_LIBM.
27841         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27842         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27843
27844 2010-07-12  Bruno Haible  <bruno@clisp.org>
27845
27846         Unify tests that set gl_cv_func_frexp_no_libm.
27847         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27848         gl_FUNC_FREXP_NO_LIBM.
27849         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27850         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27851
27852 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27853
27854         memcoll: clarify sizes versus lengths, document better, and tweak perf
27855         * lib/memcoll.c (strcoll_loop, memcoll0):
27856         Improve quality of descriptive comments.  Name variables
27857         consistently as to whether they are lengths (which do not include
27858         terminating null) versus sizes (which do).
27859         * lib/xmemcoll.c (xmemcoll0): Likewise.
27860         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27861         returned when s1size == 0; this is easier to compile and saves
27862         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27863
27864 2010-07-12  Bruno Haible  <bruno@clisp.org>
27865
27866         Tests for module '_Exit'.
27867         * modules/_Exit-tests: New file.
27868         * tests/test-_Exit.sh: New file.
27869         * tests/test-_Exit.c: New file.
27870
27871         New module '_Exit'.
27872         * lib/stdlib.in.h (__attribute__): New macro.
27873         (_Exit): New declaration.
27874         * lib/_Exit.c: New file.
27875         * m4/_Exit.m4: New file.
27876         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27877         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27878         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27879         * modules/_Exit: New file.
27880         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27881         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27882
27883 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27884
27885         strtod: make it more-accurate typically, and don't require libm
27886         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27887         Include limits.h.  Don't include string.h.
27888         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27889         (locale_isspace): New function, so that no casts are needed to
27890         check whether *s is a space.
27891         (ldexp): Provide an unused dummy if not available.
27892         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27893         (strtod): Use them.  This implementation prefers to use the
27894         underlying strtod if available, falling back on our own code
27895         only to fix known bugs.  This is more likely to produce an
27896         accurate result.  Also, it avoids the use of libm functions.
27897         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27898         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27899         was absent, but it caused a test failure with coreutils.
27900         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27901         with libm.
27902         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27903         * modules/strtod-tests (Makefile.am): Likewise.
27904
27905 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27906             Bruno Haible  <bruno@clisp.org>
27907
27908         unistr/u8-strchr: Optimize ASCII argument case.
27909         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27910
27911 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27912
27913         (x)memcoll: minor tweaks
27914         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27915         is after the type that it qualifies.
27916         (memcoll0): Likewise.
27917         * lib/memcoll.h (memcoll0): Likewise.
27918         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27919         * lib/xmemcoll.h (xmemcoll0): Likewise.
27920         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27921         differs from memcoll in that the NUL byte is part of the argument.
27922         Omit the abort-checks, as performance is a real issue here.  Plus,
27923         the checks were wrong anyway (an off-by-one error).  Omit local
27924         variable 'diff', as it's a bit clearer that way.
27925         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27926         no longer needed.
27927
27928 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27929
27930         (x)memcoll: speedup when input is known to be NUL delimited
27931         * lib/memcoll.c: Include stdlib.
27932         (memcoll0): New function.
27933         (strcoll_loop): New function, refactored for use in both memcoll
27934         and memcoll0.
27935         * lib/memcoll.h (memcoll0): Add prototype.
27936         * lib/xmemcoll.c (xmemcoll0): New function.
27937         (collate_error): New function, refactored for use in both xmemcoll
27938         and xmemcoll0.
27939         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27940         * m4/memcoll.m4: add inline invocation.
27941
27942 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27943
27944         * build-aux/bootstrap: Remove any local translations
27945         from the translation project synchronization directory,
27946         so that local only translations are not distributed.
27947
27948 2010-07-04  Bruno Haible  <bruno@clisp.org>
27949
27950         fsusage: Clarify which code applies to which platforms.
27951         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27952         platform.
27953         * lib/fsusage.c (get_fs_usage): Likewise.
27954
27955 2010-07-04  Bruno Haible  <bruno@clisp.org>
27956
27957         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27958         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27959         Reported by Martin Lambers <marlam@marlam.de>.
27960
27961 2010-07-04  Jim Meyering  <meyering@redhat.com>
27962
27963         hash: once again explicitly disallow insertion of NULL
27964         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27965         inserting a NULL pointer cannot work with these functions.
27966         Add a comment with details.
27967         This reverts part of the 2010-07-01 commit, 5bef1a35
27968         "hash: extend module to deal with non-pointer keys".
27969
27970 2010-07-01  Bruno Haible  <bruno@clisp.org>
27971
27972         stdbool: Update doc.
27973         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27974         Info from Christian Weisgerber <naddy@mips.inka.de>.
27975
27976 2010-07-01  Jim Meyering  <meyering@redhat.com>
27977
27978         hash: extend module to deal with non-pointer keys
27979         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27980         but that allows insertion of non-pointer entries.
27981         Do not disallow an ENTRY value of NULL.
27982         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27983         * lib/hash.h (hash_insert0): Declare.
27984
27985 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27986
27987         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27988         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27989         not present (i.e. with autoconf 2.59 and when using gettextize, not
27990         gnulib), require AC_GNU_SOURCE instead.
27991
27992 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27993
27994         idpriv-drop: Fix tests.
27995         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27996         not to the test-idpriv-droptemp program.
27997
27998 2010-06-29  Bruno Haible  <bruno@clisp.org>
27999
28000         string: Fix syntax error with g++ 2.96.
28001         * lib/string.in.h (__pure__): Remove definition.
28002         (_GL_ATTRIBUTE_PURE): New macro.
28003         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28004         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28005         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28006
28007 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28008
28009         unitypes: Fix bug introduced on 2010-05-18.
28010         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28011
28012 2010-06-22  Eric Blake  <eblake@redhat.com>
28013
28014         memmem: slight optimization
28015         * lib/str-two-way.h (critical_factorization): Update comments.
28016         Reduce work during factorization phase.
28017         Reported by Carlos Bueno <carlos@bueno.org>.
28018
28019 2010-06-21  Bruno Haible  <bruno@clisp.org>
28020
28021         Fix HAVE_CALLOC_POSIX misnomer.
28022         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28023         !HAVE_CALLOC_POSIX.
28024         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28025         HAVE_CALLOC_POSIX.
28026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28027         instead of HAVE_CALLOC_POSIX.
28028         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28029         HAVE_CALLOC_POSIX.
28030
28031         Use modern idiom for calloc() replacement.
28032         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28033         AC_FUNC_CALLOC.
28034         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28035         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28036         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28037         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28038         (gl_REPLACE_CALLOC): New macro.
28039
28040 2010-06-21  Bruno Haible  <bruno@clisp.org>
28041
28042         Fix HAVE_REALLOC_POSIX misnomer.
28043         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28044         !HAVE_REALLOC_POSIX.
28045         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28046         HAVE_REALLOC_POSIX.
28047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28048         instead of HAVE_REALLOC_POSIX.
28049         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28050         HAVE_REALLOC_POSIX.
28051
28052         Use modern idiom for realloc() replacement.
28053         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28054         AC_FUNC_REALLOC.
28055         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28056         Autoconf's AC_FUNC_REALLOC.
28057         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28058         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28059         (gl_REPLACE_REALLOC): New macro.
28060         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28061
28062 2010-06-21  Bruno Haible  <bruno@clisp.org>
28063
28064         Fix HAVE_MALLOC_POSIX misnomer.
28065         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28066         !HAVE_MALLOC_POSIX.
28067         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28068         HAVE_MALLOC_POSIX.
28069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28070         instead of HAVE_MALLOC_POSIX.
28071         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28072         HAVE_MALLOC_POSIX.
28073
28074         Use modern idiom for malloc() replacement.
28075         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28076         AC_FUNC_MALLOC.
28077         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28078         Autoconf's AC_FUNC_MALLOC.
28079         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28080         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28081         (gl_REPLACE_MALLOC): New macro.
28082         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28083
28084 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28085
28086         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28087         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28088         This macro takes 3 arguments, not 4.
28089
28090 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28091
28092         ipv6: fix detection under mingw
28093         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28094         in6_addr.
28095
28096 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28097
28098         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28099         that strtod() works when cross-compiling to a glibc version known
28100         to work.
28101
28102 2010-06-15  Bruno Haible  <bruno@clisp.org>
28103
28104         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28105
28106 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28107
28108         select: Correct timeout.
28109         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28110
28111 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28112
28113         git-version-gen: init shell var to avoid env var influence
28114         * build-aux/git-version-gen (v): Init shell var to empty.
28115
28116 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28117
28118         priv-set: Don't assume that priv.h exists merely because getppriv does.
28119         See Jan Andersen's bug report about AIX 5L in
28120         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28121         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28122         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28123         * lib/priv-set.h: Likewise.
28124         * tests/test-priv-set.c: Likewise.
28125
28126 2010-06-13  Bruno Haible  <bruno@clisp.org>
28127
28128         relocatable: Make it easier to test whether to install wrappers.
28129         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28130         RELOCATABLE_VIA_WRAPPER.
28131
28132 2010-06-13  Bruno Haible  <bruno@clisp.org>
28133
28134         gnulib-tool: Display specified modules and dependencies differently.
28135         * gnulib-tool (func_show_module_list): New function.
28136         (func_import, func_create_testdir): Invoke it.
28137         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28138
28139 2010-06-13  Bruno Haible  <bruno@clisp.org>
28140
28141         gnulib-tool: Align code of func_import and func_create_testdir.
28142         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28143         specified_modules.
28144
28145 2010-06-12  Jim Meyering  <meyering@redhat.com>
28146
28147         test-inttostr: avoid spurious failure on Solaris 9
28148         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28149         to accept "%ju".  Reported by Bruno Haible.
28150
28151 2010-06-11  Jim Meyering  <meyering@redhat.com>
28152
28153         test-sys_socket: mark variables as used more readably
28154         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28155         as "used" explicitly via (void) statement casts.  This is more
28156         readable than using them in an artificial return expression.
28157         Suggestion from Bruno Haible.
28158
28159 2010-06-11  Bruno Haible  <bruno@clisp.org>
28160
28161         Avoid some more warnings from "gcc -Wwrite-strings".
28162         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28163         to 'const char *'.
28164         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28165         * tests/test-c-strcasestr.c (main): Likewise.
28166         * tests/test-mbscasestr1.c (main): Likewise.
28167         * tests/test-mbscasestr2.c (main): Likewise.
28168         * tests/test-memmem.c (main): Likewise.
28169         * tests/test-strstr.c (main): Likewise.
28170         * tests/test-strcasestr.c (main): Likewise.
28171
28172 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28173
28174         init.sh: change framework_failure_ to fail with status 99, not 1
28175         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28176         automake's parallel-tests rule that this is an unexpected failure,
28177         even if the test is listed in XFAIL_TESTS.
28178
28179 2010-06-11  Jim Meyering  <meyering@redhat.com>
28180
28181         test-inttostr: avoid warnings about 4-6KB literal strings
28182         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28183         Include "macros.h", for its definition of ASSERT.
28184         (CK): s/assert/ASSERT/
28185         * modules/inttostr-tests (Files): Add macros.h.
28186
28187         init.sh: don't use $ME_ or skip_ before they are defined
28188         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28189         their first uses.  Also hoist their companions: warn_, fail_,
28190         framework_failure_, $stderr_fileno.  Prompted by a patch from
28191         Stefano Lattarini.
28192
28193         test-sys_socket: avoid set-but-not-used warnings from gcc
28194         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28195         avoid warning about set-but-not-used variables.
28196
28197         test-xvasprintf: avoid 'const' discard warnings
28198         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28199         "const" when assigning from literal strings.
28200         (test_xasprintf): Add "void" in function argument list to placate
28201         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28202
28203         tests: avoid compilation warnings in argmatch and exclude tests...
28204         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28205         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28206         Since it always exits, declare with the "noreturn" attribute.
28207         * tests/test-argmatch.c: Likewise.
28208
28209         tests: avoid 'const' discard warnings in mbsstr tests
28210         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28211         * tests/test-mbsstr2.c (main): Likewise.
28212
28213         test-verify: avoid warning from gcc's -Wmissing-declarations
28214         * tests/test-verify.c (function): Declare to be static.
28215
28216         test-inttostr.c: include <string.h> for use of strcmp
28217         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28218
28219         test-linkat: avoid failed assertion on "other" architectures
28220         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28221         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28222         sparc: https://bugs.launchpad.net/bugs/591968
28223
28224 2010-06-11  Jim Meyering  <meyering@redhat.com>
28225
28226         printf.m4: avoid autoconf's "Expanded Before Required" warning
28227         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28228         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28229         autoconf warning.
28230
28231 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28232
28233         Replacement header templates are now named with ".in", not "_".
28234         * doc/gnulib-intro.texi: Correct.
28235
28236 2010-06-10  Jim Meyering  <meyering@redhat.com>
28237
28238         inttostr-tests: depend on snprintf, not snprintf-posix
28239         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28240         snprintf-posix, to avoid this aclocal failure:
28241           missing file gnulib-tests/vasnprintf.c
28242           configure.ac:45: error: expected source file, required through \
28243           AC_LIBSOURCES, not found
28244
28245 2010-06-10  Jim Meyering  <meyering@redhat.com>
28246
28247         inttostr: add a new function, inttostr, and tests
28248         The namesake function was not available.  The existence of the
28249         template file, inttostr.c makes its addition nontrivial.
28250         * lib/anytostr.c: Rename from inttostr.c.
28251         (anytostr): Rename from inttostr.
28252         * lib/inttostr.c: New file.
28253         * modules/inttostr (Files): Add anytostr.c.
28254         (Makefile.am): Set lib_SOURCES instead of ...
28255         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28256         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28257         * lib/offtostr.c: Likewise.
28258         * lib/uinttostr.c: Likewise.
28259         * lib/umaxtostr.c: Likewise.
28260         * modules/inttostr-tests: New file.
28261         * tests/test-inttostr.c: New file.  Test these functions.
28262
28263 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28264             Bruno Haible  <bruno@clisp.org>
28265
28266         Add "Extending Gnulib" chapter to manual.
28267         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28268         chapter.
28269         (Extending Gnulib): New chapter.
28270         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28271         chapter.
28272
28273 2010-06-09  Bruno Haible  <bruno@clisp.org>
28274
28275         Avoid relocwrapper link errors due to gnulib replacement functions.
28276         * lib/areadlink.c: Use the system's malloc, realloc functions.
28277         (areadlink): Set errno to ENOMEM explicitly.
28278         * modules/areadlink (Depends-on): Remove malloc-posix.
28279         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28280
28281 2010-06-09  Bruno Haible  <bruno@clisp.org>
28282
28283         Avoid relocwrapper link errors due to gnulib replacement functions.
28284         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28285         * lib/malloca.c: Likewise.
28286         * lib/relocatable.c: Likewise.
28287         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28288         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28289         * lib/setenv.c: Use the system's malloc, realloc functions.
28290         * lib/strerror.c: Use the system's sprintf function.
28291         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28292
28293 2010-06-04  Bruno Haible  <bruno@clisp.org>
28294
28295         Prefer documented low-level autoconf macro names.
28296         * m4/lib-link.m4: Use m4_translit instead of translit.
28297         * m4/environ.m4: Likewise.
28298         * m4/mathfunc.m4: Likewise.
28299         * m4/onceonly.m4: Likewise.
28300         * m4/stdint.m4: Likewise.
28301         Suggested by Eric Blake.
28302
28303 2010-06-04  Martin Lambers  <marlam@marlam.de>
28304             Bruno Haible  <bruno@clisp.org>
28305
28306         havelib: Allow library names with '+' characters.
28307         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28308         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28309
28310 2010-06-09  Bruno Haible  <bruno@clisp.org>
28311
28312         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28313         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28314         realloc failed.
28315
28316 2010-06-08  Peter Simons  <simons@cryp.to>
28317
28318         maint.mk: make the news-check rule more configurable
28319         * top/maint.mk (news-check-lines-spec): New variable.
28320         (news-check): Use "sed -n 1,10p" in place of "head".
28321
28322 2010-06-07  Jim Meyering  <meyering@redhat.com>
28323
28324         do-release-commit-and-tag: fix typo in --help
28325         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28326
28327         regex: avoid new dead-code warning with gcc-4.6.0
28328         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28329         if-block containing a while-loop.  It's been unused for at least
28330         5 years.
28331
28332 2010-06-05  Bruno Haible  <bruno@clisp.org>
28333
28334         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28335         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28336
28337 2010-06-04  Bruno Haible  <bruno@clisp.org>
28338
28339         Update to GNU gettext 0.18.1.
28340         * modules/gettext (configure.ac): Require gettext infrastructure from
28341         version 0.18.1.
28342
28343 2010-06-03  Bruno Haible  <bruno@clisp.org>
28344
28345         Don't use AC_LIBOBJ with file names in subdirectories.
28346         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28347         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28348         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28349         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28350         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28351         gl_LIBUNISTRING_LIBSOURCE.
28352         (Makefile.am): Augment lib_SOURCES here, conditionally.
28353         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28354
28355 2010-06-03  Bruno Haible  <bruno@clisp.org>
28356
28357         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28358         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28359         expansion does not end with a newline.
28360         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28361         unnecessary newline.
28362
28363 2010-06-03  Bruno Haible  <bruno@clisp.org>
28364
28365         Reduce dependencies.
28366         * tests/test-quotearg.h: New file, extracted from
28367         tests/test-quotearg.c.
28368         * tests/test-quotearg-simple.c: New file, extracted from
28369         tests/test-quotearg.c.
28370         * tests/test-quotearg.c: Don't include <ctype.h>.
28371         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28372         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28373         use_quote_double_quotes, use_quotearg_colon): Moved to
28374         tests/test-quotearg.h.
28375         (results_g, flag_results, custom_quotes, custom_results): Moved
28376         to tests/test-quotearg-simple.c.
28377         (main): Moved the part that does not depend on gettext to
28378         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28379         performed.
28380         * modules/quotearg-simple: New file.
28381         * modules/quotearg-simple-tests: New file.
28382         * modules/quotearg (Depends-on): Add quotearg-simple.
28383         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28384         (Files): Add tests/test-quotearg.h.
28385         Reported by Paolo Bonzini.
28386
28387 2010-06-03  Bruno Haible  <bruno@clisp.org>
28388
28389         Reduce dependencies.
28390         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28391
28392 2010-06-03  Bruno Haible  <bruno@clisp.org>
28393
28394         time: Undefine more broken macros.
28395         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28396         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28397         Reported by Eric Blake.
28398
28399 2010-06-03  Bruno Haible  <bruno@clisp.org>
28400
28401         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28402         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28403         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28404         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28405         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28406         Reported by Ludovic Courtès <ludo@gnu.org>.
28407
28408 2010-06-02  Eric Blake  <eblake@redhat.com>
28409
28410         time: work with mingw + pthreads-win32 library
28411         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28412         if timespec is defined only in pthread.h.
28413         * modules/time (Makefile.am): Substitute it.
28414         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28415         <pthread.h>, when needed.
28416         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28417         from the library.
28418
28419 2010-05-31  Bruno Haible  <bruno@clisp.org>
28420
28421         Avoid expanding two macros in the wrong order.
28422         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28423         gl_LIBUNISTRING if it is defined.
28424         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28425         autoconf >= 2.64.
28426         Reported by Ludovic Courtès <ludo@gnu.org>.
28427
28428 2010-05-27  Jim Meyering  <meyering@redhat.com>
28429
28430         maint.mk: also prohibit "#undef" of always-defined symbols
28431         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28432         Allow more than one space before the symbol name.
28433         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28434         the regexp uses alternation.
28435
28436 2010-05-26  Eric Blake  <eblake@redhat.com>
28437
28438         maint.mk: avoid echo -e
28439         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28440         Convert all uses of echo -* to printf.
28441         Reported by Matthias Bolte.
28442
28443 2010-05-25  Bruno Haible  <bruno@clisp.org>
28444
28445         Update to GNU gettext 0.18, part 2.
28446         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28447         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28448
28449 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28450
28451         Add missing include in test-pwrite.c.
28452         * tests/test-pwrite.c: Include string.h, for strcmp.
28453
28454 2010-05-24  Bruno Haible  <bruno@clisp.org>
28455
28456         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28457
28458 2010-05-24  Bruno Haible  <bruno@clisp.org>
28459
28460         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28461         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28462         iconveh_error argument.
28463         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28464         U_STRCONV_TO_LOCALE.
28465         * lib/unistr/u16-strcoll.c: Likewise.
28466         * lib/unistr/u32-strcoll.c: Likewise.
28467         * modules/unistr/u8-strcoll (Depends-on): Add
28468         uniconv/u8-strconv-to-enc, localcharset. Remove
28469         uniconv/u8-strconv-to-locale.
28470         (configure.ac): Bump version number.
28471         * modules/unistr/u16-strcoll (Depends-on): Add
28472         uniconv/u16-strconv-to-enc, localcharset. Remove
28473         uniconv/u16-strconv-to-locale.
28474         (configure.ac): Bump version number.
28475         * modules/unistr/u32-strcoll (Depends-on): Add
28476         uniconv/u32-strconv-to-enc, localcharset. Remove
28477         uniconv/u32-strconv-to-locale.
28478         (configure.ac): Bump version number.
28479
28480 2010-05-24  Bruno Haible  <bruno@clisp.org>
28481
28482         Avoid a test failure on NetBSD 5.0.
28483         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28484         an iconv() bug.
28485
28486 2010-05-24  Bruno Haible  <bruno@clisp.org>
28487
28488         Adjust #include directive style.
28489         * modules/regex (Includes): Recommend to write <regex.h>.
28490
28491 2010-05-24  Bruno Haible  <bruno@clisp.org>
28492
28493         regex: Don't require alloca.
28494         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28495         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28496         only inside if (0).
28497
28498 2010-05-23  Jim Meyering  <meyering@redhat.com>
28499
28500         test-renameat.c: include <sys/stat.h>
28501         * tests/test-renameat.c: Include <sys/stat.h>; required for
28502         definition of S_IS* macros.
28503
28504 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28505
28506         Update maintainer documentation for 'relocatable-prog' module.
28507         * doc/relocatable-maint.texi: Update.
28508         Comments by Bruno Haible.
28509
28510 2010-05-23  Bruno Haible  <bruno@clisp.org>
28511
28512         git-merge-changelog: Enable --split-merged-entry by default.
28513         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28514         (usage): Don't mention this option any more.
28515         Reported by Ralf Wildenhues.
28516
28517 2010-05-23  Jim Meyering  <meyering@redhat.com>
28518
28519         test-pwrite: do not leave behind a test file named "out"
28520         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28521         The trivial-looking use of init.sh is really necessary.
28522         It ensures that the temporary file, "out", is created in
28523         a temporary directory, and removed upon termination.
28524         * tests/test-pwrite.sh: Re-add file.
28525         * modules/pwrite-tests: Reference it.
28526
28527 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28528
28529         Fix output redirection buglet in init.sh.
28530         * tests/init.sh: Fix redirection of stderr.
28531
28532 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28533
28534         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28535
28536 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28537
28538         * modules/valgrind-tests: New file.
28539         * m4/valgrind-tests.m4: New file.
28540         * doc/valgrind-tests.texi: New file.
28541         * doc/gnulib.texi (Running self-tests under valgrind): New
28542         section.
28543
28544 2010-05-19  Bruno Haible  <bruno@clisp.org>
28545
28546         Clean up dead code in recent commit.
28547         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28548         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28549         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28550         Suggested by Paolo Bonzini.
28551
28552 2010-05-19  Bruno Haible  <bruno@clisp.org>
28553
28554         Avoid valgrind error reports from libunistring.
28555         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28556         * modules/libunistring (Files): Add it.
28557         * modules/libunistring-optional (Files): Likewise.
28558
28559 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28560             Bruno Haible  <bruno@clisp.org>
28561
28562         New module 'libunistring-optional'.
28563         * modules/libunistring-optional: New file.
28564         * m4/libunistring-base.m4: New file.
28565         * m4/libunistring-optional.m4: New file.
28566         * lib/unicase.in.h: Renamed from lib/unicase.h.
28567         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28568         * lib/unictype.in.h: Renamed from lib/unictype.h.
28569         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28570         * lib/uniname.in.h: Renamed from lib/uniname.h.
28571         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28572         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28573         * lib/unistr.in.h: Renamed from lib/unistr.h.
28574         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28575         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28576         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28577         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28578         gl_LIBUNISTRING. If the library was found, determine the installed
28579         version and set LIBUNISTRING_VERSION.
28580         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28581         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28582         handle a configuration option --with-included-libunistring.
28583         * modules/libunistring (Files): Add m4/absolute-header.m4.
28584         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28585         Add m4/libunistring-base.m4.
28586         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28587         (Makefile.am): Build unicase.h from unicase.in.h.
28588         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28589         Add m4/libunistring-base.m4.
28590         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28591         (Makefile.am): Build uniconv.h from uniconv.in.h.
28592         * modules/unictype/base (Files): Use unictype.in.h instead of
28593         unictype.h. Add m4/libunistring-base.m4.
28594         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28595         (Makefile.am): Build unictype.h from unictype.in.h.
28596         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28597         Add m4/libunistring-base.m4.
28598         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28599         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28600         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28601         Add m4/libunistring-base.m4.
28602         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28603         (Makefile.am): Build uniname.h from uniname.in.h.
28604         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28605         Add m4/libunistring-base.m4.
28606         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28607         (Makefile.am): Build uninorm.h from uninorm.in.h.
28608         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28609         unistdio.h. Add m4/libunistring-base.m4.
28610         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28611         (Makefile.am): Build unistdio.h from unistdio.in.h.
28612         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28613         Add m4/libunistring-base.m4.
28614         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28615         (Makefile.am): Build unistr.h from unistr.in.h.
28616         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28617         Add m4/libunistring-base.m4.
28618         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28619         (Makefile.am): Build unitypes.h from unitypes.in.h.
28620         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28621         Add m4/libunistring-base.m4.
28622         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28623         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28624         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28625         uniwidth.h. Add m4/libunistring-base.m4.
28626         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28627         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28628         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28629         instead of augmenting lib_SOURCES.
28630         * modules/unicase/empty-suffix-context: Likewise.
28631         * modules/unicase/locale-language: Likewise.
28632         * modules/unicase/tolower: Likewise.
28633         * modules/unicase/totitle: Likewise.
28634         * modules/unicase/toupper: Likewise.
28635         * modules/unicase/u8-casecmp: Likewise.
28636         * modules/unicase/u8-casecoll: Likewise.
28637         * modules/unicase/u8-casefold: Likewise.
28638         * modules/unicase/u8-casexfrm: Likewise.
28639         * modules/unicase/u8-ct-casefold: Likewise.
28640         * modules/unicase/u8-ct-tolower: Likewise.
28641         * modules/unicase/u8-ct-totitle: Likewise.
28642         * modules/unicase/u8-ct-toupper: Likewise.
28643         * modules/unicase/u8-is-cased: Likewise.
28644         * modules/unicase/u8-is-casefolded: Likewise.
28645         * modules/unicase/u8-is-lowercase: Likewise.
28646         * modules/unicase/u8-is-titlecase: Likewise.
28647         * modules/unicase/u8-is-uppercase: Likewise.
28648         * modules/unicase/u8-prefix-context: Likewise.
28649         * modules/unicase/u8-suffix-context: Likewise.
28650         * modules/unicase/u8-tolower: Likewise.
28651         * modules/unicase/u8-totitle: Likewise.
28652         * modules/unicase/u8-toupper: Likewise.
28653         * modules/unicase/u16-casecmp: Likewise.
28654         * modules/unicase/u16-casecoll: Likewise.
28655         * modules/unicase/u16-casefold: Likewise.
28656         * modules/unicase/u16-casexfrm: Likewise.
28657         * modules/unicase/u16-ct-casefold: Likewise.
28658         * modules/unicase/u16-ct-tolower: Likewise.
28659         * modules/unicase/u16-ct-totitle: Likewise.
28660         * modules/unicase/u16-ct-toupper: Likewise.
28661         * modules/unicase/u16-is-cased: Likewise.
28662         * modules/unicase/u16-is-casefolded: Likewise.
28663         * modules/unicase/u16-is-lowercase: Likewise.
28664         * modules/unicase/u16-is-titlecase: Likewise.
28665         * modules/unicase/u16-is-uppercase: Likewise.
28666         * modules/unicase/u16-prefix-context: Likewise.
28667         * modules/unicase/u16-suffix-context: Likewise.
28668         * modules/unicase/u16-tolower: Likewise.
28669         * modules/unicase/u16-totitle: Likewise.
28670         * modules/unicase/u16-toupper: Likewise.
28671         * modules/unicase/u32-casecmp: Likewise.
28672         * modules/unicase/u32-casecoll: Likewise.
28673         * modules/unicase/u32-casefold: Likewise.
28674         * modules/unicase/u32-casexfrm: Likewise.
28675         * modules/unicase/u32-ct-casefold: Likewise.
28676         * modules/unicase/u32-ct-tolower: Likewise.
28677         * modules/unicase/u32-ct-totitle: Likewise.
28678         * modules/unicase/u32-ct-toupper: Likewise.
28679         * modules/unicase/u32-is-cased: Likewise.
28680         * modules/unicase/u32-is-casefolded: Likewise.
28681         * modules/unicase/u32-is-lowercase: Likewise.
28682         * modules/unicase/u32-is-titlecase: Likewise.
28683         * modules/unicase/u32-is-uppercase: Likewise.
28684         * modules/unicase/u32-prefix-context: Likewise.
28685         * modules/unicase/u32-suffix-context: Likewise.
28686         * modules/unicase/u32-tolower: Likewise.
28687         * modules/unicase/u32-totitle: Likewise.
28688         * modules/unicase/u32-toupper: Likewise.
28689         * modules/unicase/ulc-casecmp: Likewise.
28690         * modules/unicase/ulc-casecoll: Likewise.
28691         * modules/unicase/ulc-casexfrm: Likewise.
28692         * modules/uniconv/u8-conv-from-enc: Likewise.
28693         * modules/uniconv/u8-conv-to-enc: Likewise.
28694         * modules/uniconv/u8-strconv-from-enc: Likewise.
28695         * modules/uniconv/u8-strconv-from-locale: Likewise.
28696         * modules/uniconv/u8-strconv-to-enc: Likewise.
28697         * modules/uniconv/u8-strconv-to-locale: Likewise.
28698         * modules/uniconv/u16-conv-from-enc: Likewise.
28699         * modules/uniconv/u16-conv-to-enc: Likewise.
28700         * modules/uniconv/u16-strconv-from-enc: Likewise.
28701         * modules/uniconv/u16-strconv-from-locale: Likewise.
28702         * modules/uniconv/u16-strconv-to-enc: Likewise.
28703         * modules/uniconv/u16-strconv-to-locale: Likewise.
28704         * modules/uniconv/u32-conv-from-enc: Likewise.
28705         * modules/uniconv/u32-conv-to-enc: Likewise.
28706         * modules/uniconv/u32-strconv-from-enc: Likewise.
28707         * modules/uniconv/u32-strconv-from-locale: Likewise.
28708         * modules/uniconv/u32-strconv-to-enc: Likewise.
28709         * modules/uniconv/u32-strconv-to-locale: Likewise.
28710         * modules/unictype/bidicategory-byname: Likewise.
28711         * modules/unictype/bidicategory-name: Likewise.
28712         * modules/unictype/bidicategory-of: Likewise.
28713         * modules/unictype/bidicategory-test: Likewise.
28714         * modules/unictype/block-list: Likewise.
28715         * modules/unictype/block-test: Likewise.
28716         * modules/unictype/category-C: Likewise.
28717         * modules/unictype/category-Cc: Likewise.
28718         * modules/unictype/category-Cf: Likewise.
28719         * modules/unictype/category-Cn: Likewise.
28720         * modules/unictype/category-Co: Likewise.
28721         * modules/unictype/category-Cs: Likewise.
28722         * modules/unictype/category-L: Likewise.
28723         * modules/unictype/category-Ll: Likewise.
28724         * modules/unictype/category-Lm: Likewise.
28725         * modules/unictype/category-Lo: Likewise.
28726         * modules/unictype/category-Lt: Likewise.
28727         * modules/unictype/category-Lu: Likewise.
28728         * modules/unictype/category-M: Likewise.
28729         * modules/unictype/category-Mc: Likewise.
28730         * modules/unictype/category-Me: Likewise.
28731         * modules/unictype/category-Mn: Likewise.
28732         * modules/unictype/category-N: Likewise.
28733         * modules/unictype/category-Nd: Likewise.
28734         * modules/unictype/category-Nl: Likewise.
28735         * modules/unictype/category-No: Likewise.
28736         * modules/unictype/category-P: Likewise.
28737         * modules/unictype/category-Pc: Likewise.
28738         * modules/unictype/category-Pd: Likewise.
28739         * modules/unictype/category-Pe: Likewise.
28740         * modules/unictype/category-Pf: Likewise.
28741         * modules/unictype/category-Pi: Likewise.
28742         * modules/unictype/category-Po: Likewise.
28743         * modules/unictype/category-Ps: Likewise.
28744         * modules/unictype/category-S: Likewise.
28745         * modules/unictype/category-Sc: Likewise.
28746         * modules/unictype/category-Sk: Likewise.
28747         * modules/unictype/category-Sm: Likewise.
28748         * modules/unictype/category-So: Likewise.
28749         * modules/unictype/category-Z: Likewise.
28750         * modules/unictype/category-Zl: Likewise.
28751         * modules/unictype/category-Zp: Likewise.
28752         * modules/unictype/category-Zs: Likewise.
28753         * modules/unictype/category-and: Likewise.
28754         * modules/unictype/category-and-not: Likewise.
28755         * modules/unictype/category-byname: Likewise.
28756         * modules/unictype/category-name: Likewise.
28757         * modules/unictype/category-none: Likewise.
28758         * modules/unictype/category-of: Likewise.
28759         * modules/unictype/category-or: Likewise.
28760         * modules/unictype/category-test: Likewise.
28761         * modules/unictype/combining-class: Likewise.
28762         * modules/unictype/ctype-alnum: Likewise.
28763         * modules/unictype/ctype-alpha: Likewise.
28764         * modules/unictype/ctype-blank: Likewise.
28765         * modules/unictype/ctype-cntrl: Likewise.
28766         * modules/unictype/ctype-digit: Likewise.
28767         * modules/unictype/ctype-graph: Likewise.
28768         * modules/unictype/ctype-lower: Likewise.
28769         * modules/unictype/ctype-print: Likewise.
28770         * modules/unictype/ctype-punct: Likewise.
28771         * modules/unictype/ctype-space: Likewise.
28772         * modules/unictype/ctype-upper: Likewise.
28773         * modules/unictype/ctype-xdigit: Likewise.
28774         * modules/unictype/decimal-digit: Likewise.
28775         * modules/unictype/digit: Likewise.
28776         * modules/unictype/mirror: Likewise.
28777         * modules/unictype/numeric: Likewise.
28778         * modules/unictype/property-alphabetic: Likewise.
28779         * modules/unictype/property-ascii-hex-digit: Likewise.
28780         * modules/unictype/property-bidi-arabic-digit: Likewise.
28781         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28782         * modules/unictype/property-bidi-block-separator: Likewise.
28783         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28784         * modules/unictype/property-bidi-common-separator: Likewise.
28785         * modules/unictype/property-bidi-control: Likewise.
28786         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28787         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28788         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28789         * modules/unictype/property-bidi-european-digit: Likewise.
28790         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28791         * modules/unictype/property-bidi-left-to-right: Likewise.
28792         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28793         * modules/unictype/property-bidi-other-neutral: Likewise.
28794         * modules/unictype/property-bidi-pdf: Likewise.
28795         * modules/unictype/property-bidi-segment-separator: Likewise.
28796         * modules/unictype/property-bidi-whitespace: Likewise.
28797         * modules/unictype/property-byname: Likewise.
28798         * modules/unictype/property-combining: Likewise.
28799         * modules/unictype/property-composite: Likewise.
28800         * modules/unictype/property-currency-symbol: Likewise.
28801         * modules/unictype/property-dash: Likewise.
28802         * modules/unictype/property-decimal-digit: Likewise.
28803         * modules/unictype/property-default-ignorable-code-point: Likewise.
28804         * modules/unictype/property-deprecated: Likewise.
28805         * modules/unictype/property-diacritic: Likewise.
28806         * modules/unictype/property-extender: Likewise.
28807         * modules/unictype/property-format-control: Likewise.
28808         * modules/unictype/property-grapheme-base: Likewise.
28809         * modules/unictype/property-grapheme-extend: Likewise.
28810         * modules/unictype/property-grapheme-link: Likewise.
28811         * modules/unictype/property-hex-digit: Likewise.
28812         * modules/unictype/property-hyphen: Likewise.
28813         * modules/unictype/property-id-continue: Likewise.
28814         * modules/unictype/property-id-start: Likewise.
28815         * modules/unictype/property-ideographic: Likewise.
28816         * modules/unictype/property-ids-binary-operator: Likewise.
28817         * modules/unictype/property-ids-trinary-operator: Likewise.
28818         * modules/unictype/property-ignorable-control: Likewise.
28819         * modules/unictype/property-iso-control: Likewise.
28820         * modules/unictype/property-join-control: Likewise.
28821         * modules/unictype/property-left-of-pair: Likewise.
28822         * modules/unictype/property-line-separator: Likewise.
28823         * modules/unictype/property-logical-order-exception: Likewise.
28824         * modules/unictype/property-lowercase: Likewise.
28825         * modules/unictype/property-math: Likewise.
28826         * modules/unictype/property-non-break: Likewise.
28827         * modules/unictype/property-not-a-character: Likewise.
28828         * modules/unictype/property-numeric: Likewise.
28829         * modules/unictype/property-other-alphabetic: Likewise.
28830         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28831         * modules/unictype/property-other-grapheme-extend: Likewise.
28832         * modules/unictype/property-other-id-continue: Likewise.
28833         * modules/unictype/property-other-id-start: Likewise.
28834         * modules/unictype/property-other-lowercase: Likewise.
28835         * modules/unictype/property-other-math: Likewise.
28836         * modules/unictype/property-other-uppercase: Likewise.
28837         * modules/unictype/property-paired-punctuation: Likewise.
28838         * modules/unictype/property-paragraph-separator: Likewise.
28839         * modules/unictype/property-pattern-syntax: Likewise.
28840         * modules/unictype/property-pattern-white-space: Likewise.
28841         * modules/unictype/property-private-use: Likewise.
28842         * modules/unictype/property-punctuation: Likewise.
28843         * modules/unictype/property-quotation-mark: Likewise.
28844         * modules/unictype/property-radical: Likewise.
28845         * modules/unictype/property-sentence-terminal: Likewise.
28846         * modules/unictype/property-soft-dotted: Likewise.
28847         * modules/unictype/property-space: Likewise.
28848         * modules/unictype/property-terminal-punctuation: Likewise.
28849         * modules/unictype/property-test: Likewise.
28850         * modules/unictype/property-titlecase: Likewise.
28851         * modules/unictype/property-unassigned-code-value: Likewise.
28852         * modules/unictype/property-unified-ideograph: Likewise.
28853         * modules/unictype/property-uppercase: Likewise.
28854         * modules/unictype/property-variation-selector: Likewise.
28855         * modules/unictype/property-white-space: Likewise.
28856         * modules/unictype/property-xid-continue: Likewise.
28857         * modules/unictype/property-xid-start: Likewise.
28858         * modules/unictype/property-zero-width: Likewise.
28859         * modules/unictype/scripts: Likewise.
28860         * modules/unictype/syntax-c-ident: Likewise.
28861         * modules/unictype/syntax-c-whitespace: Likewise.
28862         * modules/unictype/syntax-java-ident: Likewise.
28863         * modules/unictype/syntax-java-whitespace: Likewise.
28864         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28865         * modules/unilbrk/u8-width-linebreaks: Likewise.
28866         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28867         * modules/unilbrk/u16-width-linebreaks: Likewise.
28868         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28869         * modules/unilbrk/u32-width-linebreaks: Likewise.
28870         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28871         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28872         * modules/uniname/uniname: Likewise.
28873         * modules/uninorm/canonical-decomposition: Likewise.
28874         * modules/uninorm/composition: Likewise.
28875         * modules/uninorm/decomposing-form: Likewise.
28876         * modules/uninorm/decomposition: Likewise.
28877         * modules/uninorm/filter: Likewise.
28878         * modules/uninorm/nfc: Likewise.
28879         * modules/uninorm/nfd: Likewise.
28880         * modules/uninorm/nfkc: Likewise.
28881         * modules/uninorm/nfkd: Likewise.
28882         * modules/uninorm/u8-normalize: Likewise.
28883         * modules/uninorm/u8-normcmp: Likewise.
28884         * modules/uninorm/u8-normcoll: Likewise.
28885         * modules/uninorm/u8-normxfrm: Likewise.
28886         * modules/uninorm/u16-normalize: Likewise.
28887         * modules/uninorm/u16-normcmp: Likewise.
28888         * modules/uninorm/u16-normcoll: Likewise.
28889         * modules/uninorm/u16-normxfrm: Likewise.
28890         * modules/uninorm/u32-normalize: Likewise.
28891         * modules/uninorm/u32-normcmp: Likewise.
28892         * modules/uninorm/u32-normcoll: Likewise.
28893         * modules/uninorm/u32-normxfrm: Likewise.
28894         * modules/unistdio/u8-asnprintf: Likewise.
28895         * modules/unistdio/u8-asprintf: Likewise.
28896         * modules/unistdio/u8-snprintf: Likewise.
28897         * modules/unistdio/u8-sprintf: Likewise.
28898         * modules/unistdio/u8-u8-asnprintf: Likewise.
28899         * modules/unistdio/u8-u8-asprintf: Likewise.
28900         * modules/unistdio/u8-u8-snprintf: Likewise.
28901         * modules/unistdio/u8-u8-sprintf: Likewise.
28902         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28903         * modules/unistdio/u8-u8-vasprintf: Likewise.
28904         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28905         * modules/unistdio/u8-u8-vsprintf: Likewise.
28906         * modules/unistdio/u8-vasnprintf: Likewise.
28907         * modules/unistdio/u8-vasprintf: Likewise.
28908         * modules/unistdio/u8-vsnprintf: Likewise.
28909         * modules/unistdio/u8-vsprintf: Likewise.
28910         * modules/unistdio/u16-asnprintf: Likewise.
28911         * modules/unistdio/u16-asprintf: Likewise.
28912         * modules/unistdio/u16-snprintf: Likewise.
28913         * modules/unistdio/u16-sprintf: Likewise.
28914         * modules/unistdio/u16-u16-asnprintf: Likewise.
28915         * modules/unistdio/u16-u16-asprintf: Likewise.
28916         * modules/unistdio/u16-u16-snprintf: Likewise.
28917         * modules/unistdio/u16-u16-sprintf: Likewise.
28918         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28919         * modules/unistdio/u16-u16-vasprintf: Likewise.
28920         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28921         * modules/unistdio/u16-u16-vsprintf: Likewise.
28922         * modules/unistdio/u16-vasnprintf: Likewise.
28923         * modules/unistdio/u16-vasprintf: Likewise.
28924         * modules/unistdio/u16-vsnprintf: Likewise.
28925         * modules/unistdio/u16-vsprintf: Likewise.
28926         * modules/unistdio/u32-asnprintf: Likewise.
28927         * modules/unistdio/u32-asprintf: Likewise.
28928         * modules/unistdio/u32-snprintf: Likewise.
28929         * modules/unistdio/u32-sprintf: Likewise.
28930         * modules/unistdio/u32-u32-asnprintf: Likewise.
28931         * modules/unistdio/u32-u32-asprintf: Likewise.
28932         * modules/unistdio/u32-u32-snprintf: Likewise.
28933         * modules/unistdio/u32-u32-sprintf: Likewise.
28934         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28935         * modules/unistdio/u32-u32-vasprintf: Likewise.
28936         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28937         * modules/unistdio/u32-u32-vsprintf: Likewise.
28938         * modules/unistdio/u32-vasnprintf: Likewise.
28939         * modules/unistdio/u32-vasprintf: Likewise.
28940         * modules/unistdio/u32-vsnprintf: Likewise.
28941         * modules/unistdio/u32-vsprintf: Likewise.
28942         * modules/unistdio/ulc-asnprintf: Likewise.
28943         * modules/unistdio/ulc-asprintf: Likewise.
28944         * modules/unistdio/ulc-fprintf: Likewise.
28945         * modules/unistdio/ulc-snprintf: Likewise.
28946         * modules/unistdio/ulc-sprintf: Likewise.
28947         * modules/unistdio/ulc-vasnprintf: Likewise.
28948         * modules/unistdio/ulc-vasprintf: Likewise.
28949         * modules/unistdio/ulc-vfprintf: Likewise.
28950         * modules/unistdio/ulc-vsnprintf: Likewise.
28951         * modules/unistdio/ulc-vsprintf: Likewise.
28952         * modules/unistr/u8-check: Likewise.
28953         * modules/unistr/u8-chr: Likewise.
28954         * modules/unistr/u8-cmp: Likewise.
28955         * modules/unistr/u8-cmp2: Likewise.
28956         * modules/unistr/u8-cpy: Likewise.
28957         * modules/unistr/u8-cpy-alloc: Likewise.
28958         * modules/unistr/u8-endswith: Likewise.
28959         * modules/unistr/u8-mblen: Likewise.
28960         * modules/unistr/u8-mbsnlen: Likewise.
28961         * modules/unistr/u8-mbtouc: Likewise.
28962         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28963         * modules/unistr/u8-mbtoucr: Likewise.
28964         * modules/unistr/u8-move: Likewise.
28965         * modules/unistr/u8-next: Likewise.
28966         * modules/unistr/u8-prev: Likewise.
28967         * modules/unistr/u8-set: Likewise.
28968         * modules/unistr/u8-startswith: Likewise.
28969         * modules/unistr/u8-stpcpy: Likewise.
28970         * modules/unistr/u8-stpncpy: Likewise.
28971         * modules/unistr/u8-strcat: Likewise.
28972         * modules/unistr/u8-strchr: Likewise.
28973         * modules/unistr/u8-strcmp: Likewise.
28974         * modules/unistr/u8-strcoll: Likewise.
28975         * modules/unistr/u8-strcpy: Likewise.
28976         * modules/unistr/u8-strcspn: Likewise.
28977         * modules/unistr/u8-strdup: Likewise.
28978         * modules/unistr/u8-strlen: Likewise.
28979         * modules/unistr/u8-strmblen: Likewise.
28980         * modules/unistr/u8-strmbtouc: Likewise.
28981         * modules/unistr/u8-strncat: Likewise.
28982         * modules/unistr/u8-strncmp: Likewise.
28983         * modules/unistr/u8-strncpy: Likewise.
28984         * modules/unistr/u8-strnlen: Likewise.
28985         * modules/unistr/u8-strpbrk: Likewise.
28986         * modules/unistr/u8-strrchr: Likewise.
28987         * modules/unistr/u8-strspn: Likewise.
28988         * modules/unistr/u8-strstr: Likewise.
28989         * modules/unistr/u8-strtok: Likewise.
28990         * modules/unistr/u8-to-u16: Likewise.
28991         * modules/unistr/u8-to-u32: Likewise.
28992         * modules/unistr/u8-uctomb: Likewise.
28993         * modules/unistr/u16-check: Likewise.
28994         * modules/unistr/u16-chr: Likewise.
28995         * modules/unistr/u16-cmp: Likewise.
28996         * modules/unistr/u16-cmp2: Likewise.
28997         * modules/unistr/u16-cpy: Likewise.
28998         * modules/unistr/u16-cpy-alloc: Likewise.
28999         * modules/unistr/u16-endswith: Likewise.
29000         * modules/unistr/u16-mblen: Likewise.
29001         * modules/unistr/u16-mbsnlen: Likewise.
29002         * modules/unistr/u16-mbtouc: Likewise.
29003         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29004         * modules/unistr/u16-mbtoucr: Likewise.
29005         * modules/unistr/u16-move: Likewise.
29006         * modules/unistr/u16-next: Likewise.
29007         * modules/unistr/u16-prev: Likewise.
29008         * modules/unistr/u16-set: Likewise.
29009         * modules/unistr/u16-startswith: Likewise.
29010         * modules/unistr/u16-stpcpy: Likewise.
29011         * modules/unistr/u16-stpncpy: Likewise.
29012         * modules/unistr/u16-strcat: Likewise.
29013         * modules/unistr/u16-strchr: Likewise.
29014         * modules/unistr/u16-strcmp: Likewise.
29015         * modules/unistr/u16-strcoll: Likewise.
29016         * modules/unistr/u16-strcpy: Likewise.
29017         * modules/unistr/u16-strcspn: Likewise.
29018         * modules/unistr/u16-strdup: Likewise.
29019         * modules/unistr/u16-strlen: Likewise.
29020         * modules/unistr/u16-strmblen: Likewise.
29021         * modules/unistr/u16-strmbtouc: Likewise.
29022         * modules/unistr/u16-strncat: Likewise.
29023         * modules/unistr/u16-strncmp: Likewise.
29024         * modules/unistr/u16-strncpy: Likewise.
29025         * modules/unistr/u16-strnlen: Likewise.
29026         * modules/unistr/u16-strpbrk: Likewise.
29027         * modules/unistr/u16-strrchr: Likewise.
29028         * modules/unistr/u16-strspn: Likewise.
29029         * modules/unistr/u16-strstr: Likewise.
29030         * modules/unistr/u16-strtok: Likewise.
29031         * modules/unistr/u16-to-u32: Likewise.
29032         * modules/unistr/u16-to-u8: Likewise.
29033         * modules/unistr/u16-uctomb: Likewise.
29034         * modules/unistr/u32-check: Likewise.
29035         * modules/unistr/u32-chr: Likewise.
29036         * modules/unistr/u32-cmp: Likewise.
29037         * modules/unistr/u32-cmp2: Likewise.
29038         * modules/unistr/u32-cpy: Likewise.
29039         * modules/unistr/u32-cpy-alloc: Likewise.
29040         * modules/unistr/u32-endswith: Likewise.
29041         * modules/unistr/u32-mblen: Likewise.
29042         * modules/unistr/u32-mbsnlen: Likewise.
29043         * modules/unistr/u32-mbtouc: Likewise.
29044         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29045         * modules/unistr/u32-mbtoucr: Likewise.
29046         * modules/unistr/u32-move: Likewise.
29047         * modules/unistr/u32-next: Likewise.
29048         * modules/unistr/u32-prev: Likewise.
29049         * modules/unistr/u32-set: Likewise.
29050         * modules/unistr/u32-startswith: Likewise.
29051         * modules/unistr/u32-stpcpy: Likewise.
29052         * modules/unistr/u32-stpncpy: Likewise.
29053         * modules/unistr/u32-strcat: Likewise.
29054         * modules/unistr/u32-strchr: Likewise.
29055         * modules/unistr/u32-strcmp: Likewise.
29056         * modules/unistr/u32-strcoll: Likewise.
29057         * modules/unistr/u32-strcpy: Likewise.
29058         * modules/unistr/u32-strcspn: Likewise.
29059         * modules/unistr/u32-strdup: Likewise.
29060         * modules/unistr/u32-strlen: Likewise.
29061         * modules/unistr/u32-strmblen: Likewise.
29062         * modules/unistr/u32-strmbtouc: Likewise.
29063         * modules/unistr/u32-strncat: Likewise.
29064         * modules/unistr/u32-strncmp: Likewise.
29065         * modules/unistr/u32-strncpy: Likewise.
29066         * modules/unistr/u32-strnlen: Likewise.
29067         * modules/unistr/u32-strpbrk: Likewise.
29068         * modules/unistr/u32-strrchr: Likewise.
29069         * modules/unistr/u32-strspn: Likewise.
29070         * modules/unistr/u32-strstr: Likewise.
29071         * modules/unistr/u32-strtok: Likewise.
29072         * modules/unistr/u32-to-u16: Likewise.
29073         * modules/unistr/u32-to-u8: Likewise.
29074         * modules/unistr/u32-uctomb: Likewise.
29075         * modules/uniwbrk/u8-wordbreaks: Likewise.
29076         * modules/uniwbrk/u16-wordbreaks: Likewise.
29077         * modules/uniwbrk/u32-wordbreaks: Likewise.
29078         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29079         * modules/uniwbrk/wordbreak-property: Likewise.
29080         * modules/uniwidth/u8-strwidth: Likewise.
29081         * modules/uniwidth/u8-width: Likewise.
29082         * modules/uniwidth/u16-strwidth: Likewise.
29083         * modules/uniwidth/u16-width: Likewise.
29084         * modules/uniwidth/u32-strwidth: Likewise.
29085         * modules/uniwidth/u32-width: Likewise.
29086         * modules/uniwidth/width: Likewise.
29087         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29088         with $(LIBUNISTRING).
29089         * modules/unicase/ignorable-tests: Likewise.
29090         * modules/unicase/locale-language-tests: Likewise.
29091         * modules/unicase/tolower-tests: Likewise.
29092         * modules/unicase/totitle-tests: Likewise.
29093         * modules/unicase/toupper-tests: Likewise.
29094         * modules/unicase/u8-casecmp-tests: Likewise.
29095         * modules/unicase/u8-casecoll-tests: Likewise.
29096         * modules/unicase/u8-casefold-tests: Likewise.
29097         * modules/unicase/u8-is-cased-tests: Likewise.
29098         * modules/unicase/u8-is-casefolded-tests: Likewise.
29099         * modules/unicase/u8-is-lowercase-tests: Likewise.
29100         * modules/unicase/u8-is-titlecase-tests: Likewise.
29101         * modules/unicase/u8-is-uppercase-tests: Likewise.
29102         * modules/unicase/u8-tolower-tests: Likewise.
29103         * modules/unicase/u8-totitle-tests: Likewise.
29104         * modules/unicase/u8-toupper-tests: Likewise.
29105         * modules/unicase/u16-casecmp-tests: Likewise.
29106         * modules/unicase/u16-casecoll-tests: Likewise.
29107         * modules/unicase/u16-casefold-tests: Likewise.
29108         * modules/unicase/u16-is-cased-tests: Likewise.
29109         * modules/unicase/u16-is-casefolded-tests: Likewise.
29110         * modules/unicase/u16-is-lowercase-tests: Likewise.
29111         * modules/unicase/u16-is-titlecase-tests: Likewise.
29112         * modules/unicase/u16-is-uppercase-tests: Likewise.
29113         * modules/unicase/u16-tolower-tests: Likewise.
29114         * modules/unicase/u16-totitle-tests: Likewise.
29115         * modules/unicase/u16-toupper-tests: Likewise.
29116         * modules/unicase/u32-casecmp-tests: Likewise.
29117         * modules/unicase/u32-casecoll-tests: Likewise.
29118         * modules/unicase/u32-casefold-tests: Likewise.
29119         * modules/unicase/u32-is-cased-tests: Likewise.
29120         * modules/unicase/u32-is-casefolded-tests: Likewise.
29121         * modules/unicase/u32-is-lowercase-tests: Likewise.
29122         * modules/unicase/u32-is-titlecase-tests: Likewise.
29123         * modules/unicase/u32-is-uppercase-tests: Likewise.
29124         * modules/unicase/u32-tolower-tests: Likewise.
29125         * modules/unicase/u32-totitle-tests: Likewise.
29126         * modules/unicase/u32-toupper-tests: Likewise.
29127         * modules/unicase/ulc-casecmp-tests: Likewise.
29128         * modules/unicase/ulc-casecoll-tests: Likewise.
29129         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29130         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29131         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29132         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29133         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29134         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29135         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29136         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29137         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29138         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29139         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29140         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29141         * modules/unictype/bidicategory-byname-tests: Likewise.
29142         * modules/unictype/bidicategory-name-tests: Likewise.
29143         * modules/unictype/bidicategory-of-tests: Likewise.
29144         * modules/unictype/bidicategory-test-tests: Likewise.
29145         * modules/unictype/block-list-tests: Likewise.
29146         * modules/unictype/block-of-tests: Likewise.
29147         * modules/unictype/block-test-tests: Likewise.
29148         * modules/unictype/category-C-tests: Likewise.
29149         * modules/unictype/category-Cc-tests: Likewise.
29150         * modules/unictype/category-Cf-tests: Likewise.
29151         * modules/unictype/category-Cn-tests: Likewise.
29152         * modules/unictype/category-Co-tests: Likewise.
29153         * modules/unictype/category-Cs-tests: Likewise.
29154         * modules/unictype/category-L-tests: Likewise.
29155         * modules/unictype/category-Ll-tests: Likewise.
29156         * modules/unictype/category-Lm-tests: Likewise.
29157         * modules/unictype/category-Lo-tests: Likewise.
29158         * modules/unictype/category-Lt-tests: Likewise.
29159         * modules/unictype/category-Lu-tests: Likewise.
29160         * modules/unictype/category-M-tests: Likewise.
29161         * modules/unictype/category-Mc-tests: Likewise.
29162         * modules/unictype/category-Me-tests: Likewise.
29163         * modules/unictype/category-Mn-tests: Likewise.
29164         * modules/unictype/category-N-tests: Likewise.
29165         * modules/unictype/category-Nd-tests: Likewise.
29166         * modules/unictype/category-Nl-tests: Likewise.
29167         * modules/unictype/category-No-tests: Likewise.
29168         * modules/unictype/category-P-tests: Likewise.
29169         * modules/unictype/category-Pc-tests: Likewise.
29170         * modules/unictype/category-Pd-tests: Likewise.
29171         * modules/unictype/category-Pe-tests: Likewise.
29172         * modules/unictype/category-Pf-tests: Likewise.
29173         * modules/unictype/category-Pi-tests: Likewise.
29174         * modules/unictype/category-Po-tests: Likewise.
29175         * modules/unictype/category-Ps-tests: Likewise.
29176         * modules/unictype/category-S-tests: Likewise.
29177         * modules/unictype/category-Sc-tests: Likewise.
29178         * modules/unictype/category-Sk-tests: Likewise.
29179         * modules/unictype/category-Sm-tests: Likewise.
29180         * modules/unictype/category-So-tests: Likewise.
29181         * modules/unictype/category-Z-tests: Likewise.
29182         * modules/unictype/category-Zl-tests: Likewise.
29183         * modules/unictype/category-Zp-tests: Likewise.
29184         * modules/unictype/category-Zs-tests: Likewise.
29185         * modules/unictype/category-and-not-tests: Likewise.
29186         * modules/unictype/category-and-tests: Likewise.
29187         * modules/unictype/category-byname-tests: Likewise.
29188         * modules/unictype/category-name-tests: Likewise.
29189         * modules/unictype/category-none-tests: Likewise.
29190         * modules/unictype/category-of-tests: Likewise.
29191         * modules/unictype/category-or-tests: Likewise.
29192         * modules/unictype/category-test-withtable-tests: Likewise.
29193         * modules/unictype/combining-class-tests: Likewise.
29194         * modules/unictype/ctype-alnum-tests: Likewise.
29195         * modules/unictype/ctype-alpha-tests: Likewise.
29196         * modules/unictype/ctype-blank-tests: Likewise.
29197         * modules/unictype/ctype-cntrl-tests: Likewise.
29198         * modules/unictype/ctype-digit-tests: Likewise.
29199         * modules/unictype/ctype-graph-tests: Likewise.
29200         * modules/unictype/ctype-lower-tests: Likewise.
29201         * modules/unictype/ctype-print-tests: Likewise.
29202         * modules/unictype/ctype-punct-tests: Likewise.
29203         * modules/unictype/ctype-space-tests: Likewise.
29204         * modules/unictype/ctype-upper-tests: Likewise.
29205         * modules/unictype/ctype-xdigit-tests: Likewise.
29206         * modules/unictype/decimal-digit-tests: Likewise.
29207         * modules/unictype/digit-tests: Likewise.
29208         * modules/unictype/mirror-tests: Likewise.
29209         * modules/unictype/numeric-tests: Likewise.
29210         * modules/unictype/property-alphabetic-tests: Likewise.
29211         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29212         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29213         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29214         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29215         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29216         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29217         * modules/unictype/property-bidi-control-tests: Likewise.
29218         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29219         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29220         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29221         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29222         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29223         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29224         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29225         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29226         * modules/unictype/property-bidi-pdf-tests: Likewise.
29227         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29228         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29229         * modules/unictype/property-byname-tests: Likewise.
29230         * modules/unictype/property-combining-tests: Likewise.
29231         * modules/unictype/property-composite-tests: Likewise.
29232         * modules/unictype/property-currency-symbol-tests: Likewise.
29233         * modules/unictype/property-dash-tests: Likewise.
29234         * modules/unictype/property-decimal-digit-tests: Likewise.
29235         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29236         * modules/unictype/property-deprecated-tests: Likewise.
29237         * modules/unictype/property-diacritic-tests: Likewise.
29238         * modules/unictype/property-extender-tests: Likewise.
29239         * modules/unictype/property-format-control-tests: Likewise.
29240         * modules/unictype/property-grapheme-base-tests: Likewise.
29241         * modules/unictype/property-grapheme-extend-tests: Likewise.
29242         * modules/unictype/property-grapheme-link-tests: Likewise.
29243         * modules/unictype/property-hex-digit-tests: Likewise.
29244         * modules/unictype/property-hyphen-tests: Likewise.
29245         * modules/unictype/property-id-continue-tests: Likewise.
29246         * modules/unictype/property-id-start-tests: Likewise.
29247         * modules/unictype/property-ideographic-tests: Likewise.
29248         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29249         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29250         * modules/unictype/property-ignorable-control-tests: Likewise.
29251         * modules/unictype/property-iso-control-tests: Likewise.
29252         * modules/unictype/property-join-control-tests: Likewise.
29253         * modules/unictype/property-left-of-pair-tests: Likewise.
29254         * modules/unictype/property-line-separator-tests: Likewise.
29255         * modules/unictype/property-logical-order-exception-tests: Likewise.
29256         * modules/unictype/property-lowercase-tests: Likewise.
29257         * modules/unictype/property-math-tests: Likewise.
29258         * modules/unictype/property-non-break-tests: Likewise.
29259         * modules/unictype/property-not-a-character-tests: Likewise.
29260         * modules/unictype/property-numeric-tests: Likewise.
29261         * modules/unictype/property-other-alphabetic-tests: Likewise.
29262         * modules/unictype/property-other-default-ignorable-code-point-tests:
29263         Likewise.
29264         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29265         * modules/unictype/property-other-id-continue-tests: Likewise.
29266         * modules/unictype/property-other-id-start-tests: Likewise.
29267         * modules/unictype/property-other-lowercase-tests: Likewise.
29268         * modules/unictype/property-other-math-tests: Likewise.
29269         * modules/unictype/property-other-uppercase-tests: Likewise.
29270         * modules/unictype/property-paired-punctuation-tests: Likewise.
29271         * modules/unictype/property-paragraph-separator-tests: Likewise.
29272         * modules/unictype/property-pattern-syntax-tests: Likewise.
29273         * modules/unictype/property-pattern-white-space-tests: Likewise.
29274         * modules/unictype/property-private-use-tests: Likewise.
29275         * modules/unictype/property-punctuation-tests: Likewise.
29276         * modules/unictype/property-quotation-mark-tests: Likewise.
29277         * modules/unictype/property-radical-tests: Likewise.
29278         * modules/unictype/property-sentence-terminal-tests: Likewise.
29279         * modules/unictype/property-soft-dotted-tests: Likewise.
29280         * modules/unictype/property-space-tests: Likewise.
29281         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29282         * modules/unictype/property-test-tests: Likewise.
29283         * modules/unictype/property-titlecase-tests: Likewise.
29284         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29285         * modules/unictype/property-unified-ideograph-tests: Likewise.
29286         * modules/unictype/property-uppercase-tests: Likewise.
29287         * modules/unictype/property-variation-selector-tests: Likewise.
29288         * modules/unictype/property-white-space-tests: Likewise.
29289         * modules/unictype/property-xid-continue-tests: Likewise.
29290         * modules/unictype/property-xid-start-tests: Likewise.
29291         * modules/unictype/property-zero-width-tests: Likewise.
29292         * modules/unictype/scripts-tests: Likewise.
29293         * modules/unictype/syntax-c-ident-tests: Likewise.
29294         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29295         * modules/unictype/syntax-java-ident-tests: Likewise.
29296         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29297         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29298         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29299         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29300         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29301         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29302         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29303         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29304         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29305         * modules/uniname/uniname-tests: Likewise.
29306         * modules/uninorm/canonical-decomposition-tests: Likewise.
29307         * modules/uninorm/compat-decomposition-tests: Likewise.
29308         * modules/uninorm/composition-tests: Likewise.
29309         * modules/uninorm/decomposing-form-tests: Likewise.
29310         * modules/uninorm/decomposition-tests: Likewise.
29311         * modules/uninorm/filter-tests: Likewise.
29312         * modules/uninorm/nfc-tests: Likewise.
29313         * modules/uninorm/nfd-tests: Likewise.
29314         * modules/uninorm/nfkc-tests: Likewise.
29315         * modules/uninorm/nfkd-tests: Likewise.
29316         * modules/uninorm/u8-normcmp-tests: Likewise.
29317         * modules/uninorm/u8-normcoll-tests: Likewise.
29318         * modules/uninorm/u16-normcmp-tests: Likewise.
29319         * modules/uninorm/u16-normcoll-tests: Likewise.
29320         * modules/uninorm/u32-normcmp-tests: Likewise.
29321         * modules/uninorm/u32-normcoll-tests: Likewise.
29322         * modules/unistdio/u8-asnprintf-tests: Likewise.
29323         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29324         * modules/unistdio/u8-vasprintf-tests: Likewise.
29325         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29326         * modules/unistdio/u8-vsprintf-tests: Likewise.
29327         * modules/unistdio/u16-asnprintf-tests: Likewise.
29328         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29329         * modules/unistdio/u16-vasprintf-tests: Likewise.
29330         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29331         * modules/unistdio/u16-vsprintf-tests: Likewise.
29332         * modules/unistdio/u32-asnprintf-tests: Likewise.
29333         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29334         * modules/unistdio/u32-vasprintf-tests: Likewise.
29335         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29336         * modules/unistdio/u32-vsprintf-tests: Likewise.
29337         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29338         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29339         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29340         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29341         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29342         * modules/unistr/u8-check-tests: Likewise.
29343         * modules/unistr/u8-chr-tests: Likewise.
29344         * modules/unistr/u8-cmp-tests: Likewise.
29345         * modules/unistr/u8-cmp2-tests: Likewise.
29346         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29347         * modules/unistr/u8-cpy-tests: Likewise.
29348         * modules/unistr/u8-mblen-tests: Likewise.
29349         * modules/unistr/u8-mbsnlen-tests: Likewise.
29350         * modules/unistr/u8-mbtouc-tests: Likewise.
29351         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29352         * modules/unistr/u8-mbtoucr-tests: Likewise.
29353         * modules/unistr/u8-move-tests: Likewise.
29354         * modules/unistr/u8-next-tests: Likewise.
29355         * modules/unistr/u8-prev-tests: Likewise.
29356         * modules/unistr/u8-set-tests: Likewise.
29357         * modules/unistr/u8-stpcpy-tests: Likewise.
29358         * modules/unistr/u8-stpncpy-tests: Likewise.
29359         * modules/unistr/u8-strcat-tests: Likewise.
29360         * modules/unistr/u8-strcmp-tests: Likewise.
29361         * modules/unistr/u8-strcoll-tests: Likewise.
29362         * modules/unistr/u8-strcpy-tests: Likewise.
29363         * modules/unistr/u8-strdup-tests: Likewise.
29364         * modules/unistr/u8-strlen-tests: Likewise.
29365         * modules/unistr/u8-strmblen-tests: Likewise.
29366         * modules/unistr/u8-strmbtouc-tests: Likewise.
29367         * modules/unistr/u8-strncat-tests: Likewise.
29368         * modules/unistr/u8-strncmp-tests: Likewise.
29369         * modules/unistr/u8-strncpy-tests: Likewise.
29370         * modules/unistr/u8-strnlen-tests: Likewise.
29371         * modules/unistr/u8-to-u16-tests: Likewise.
29372         * modules/unistr/u8-to-u32-tests: Likewise.
29373         * modules/unistr/u8-uctomb-tests: Likewise.
29374         * modules/unistr/u16-check-tests: Likewise.
29375         * modules/unistr/u16-chr-tests: Likewise.
29376         * modules/unistr/u16-cmp-tests: Likewise.
29377         * modules/unistr/u16-cmp2-tests: Likewise.
29378         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29379         * modules/unistr/u16-cpy-tests: Likewise.
29380         * modules/unistr/u16-mblen-tests: Likewise.
29381         * modules/unistr/u16-mbsnlen-tests: Likewise.
29382         * modules/unistr/u16-mbtouc-tests: Likewise.
29383         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29384         * modules/unistr/u16-mbtoucr-tests: Likewise.
29385         * modules/unistr/u16-move-tests: Likewise.
29386         * modules/unistr/u16-next-tests: Likewise.
29387         * modules/unistr/u16-prev-tests: Likewise.
29388         * modules/unistr/u16-set-tests: Likewise.
29389         * modules/unistr/u16-stpcpy-tests: Likewise.
29390         * modules/unistr/u16-stpncpy-tests: Likewise.
29391         * modules/unistr/u16-strcat-tests: Likewise.
29392         * modules/unistr/u16-strcmp-tests: Likewise.
29393         * modules/unistr/u16-strcoll-tests: Likewise.
29394         * modules/unistr/u16-strcpy-tests: Likewise.
29395         * modules/unistr/u16-strdup-tests: Likewise.
29396         * modules/unistr/u16-strlen-tests: Likewise.
29397         * modules/unistr/u16-strmblen-tests: Likewise.
29398         * modules/unistr/u16-strmbtouc-tests: Likewise.
29399         * modules/unistr/u16-strncat-tests: Likewise.
29400         * modules/unistr/u16-strncmp-tests: Likewise.
29401         * modules/unistr/u16-strncpy-tests: Likewise.
29402         * modules/unistr/u16-strnlen-tests: Likewise.
29403         * modules/unistr/u16-to-u32-tests: Likewise.
29404         * modules/unistr/u16-to-u8-tests: Likewise.
29405         * modules/unistr/u16-uctomb-tests: Likewise.
29406         * modules/unistr/u32-check-tests: Likewise.
29407         * modules/unistr/u32-chr-tests: Likewise.
29408         * modules/unistr/u32-cmp-tests: Likewise.
29409         * modules/unistr/u32-cmp2-tests: Likewise.
29410         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29411         * modules/unistr/u32-cpy-tests: Likewise.
29412         * modules/unistr/u32-mblen-tests: Likewise.
29413         * modules/unistr/u32-mbsnlen-tests: Likewise.
29414         * modules/unistr/u32-mbtouc-tests: Likewise.
29415         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29416         * modules/unistr/u32-mbtoucr-tests: Likewise.
29417         * modules/unistr/u32-move-tests: Likewise.
29418         * modules/unistr/u32-next-tests: Likewise.
29419         * modules/unistr/u32-prev-tests: Likewise.
29420         * modules/unistr/u32-set-tests: Likewise.
29421         * modules/unistr/u32-stpcpy-tests: Likewise.
29422         * modules/unistr/u32-stpncpy-tests: Likewise.
29423         * modules/unistr/u32-strcat-tests: Likewise.
29424         * modules/unistr/u32-strcmp-tests: Likewise.
29425         * modules/unistr/u32-strcoll-tests: Likewise.
29426         * modules/unistr/u32-strcpy-tests: Likewise.
29427         * modules/unistr/u32-strdup-tests: Likewise.
29428         * modules/unistr/u32-strlen-tests: Likewise.
29429         * modules/unistr/u32-strmblen-tests: Likewise.
29430         * modules/unistr/u32-strmbtouc-tests: Likewise.
29431         * modules/unistr/u32-strncat-tests: Likewise.
29432         * modules/unistr/u32-strncmp-tests: Likewise.
29433         * modules/unistr/u32-strncpy-tests: Likewise.
29434         * modules/unistr/u32-strnlen-tests: Likewise.
29435         * modules/unistr/u32-to-u16-tests: Likewise.
29436         * modules/unistr/u32-to-u8-tests: Likewise.
29437         * modules/unistr/u32-uctomb-tests: Likewise.
29438         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29439         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29440         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29441         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29442         * modules/uniwidth/u8-strwidth-tests: Likewise.
29443         * modules/uniwidth/u8-width-tests: Likewise.
29444         * modules/uniwidth/u16-strwidth-tests: Likewise.
29445         * modules/uniwidth/u16-width-tests: Likewise.
29446         * modules/uniwidth/u32-strwidth-tests: Likewise.
29447         * modules/uniwidth/u32-width-tests: Likewise.
29448         * modules/uniwidth/width-tests: Likewise.
29449
29450 2010-05-18  Richard Jones  <rjones@redhat.com>
29451
29452         doc: users.txt: list hivex
29453         * users.txt: Add hivex.
29454
29455 2010-05-18  Richard Jones  <rjones@redhat.com>
29456
29457         doc: users.txt: list febootstrap
29458         * users.txt: Add febootstrap.
29459
29460 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29461
29462         bootstrap: fix an error when gnulib is not used as a git submodule
29463         * build-aux/bootstrap (gnulib_path): If its length is zero then
29464         assign "gnulib" to it.
29465         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29466
29467 2010-05-16  Bruno Haible  <bruno@clisp.org>
29468
29469         Avoid autoconf warnings about AM_ICONV.
29470         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29471         2.64.
29472
29473 2010-05-16  Bruno Haible  <bruno@clisp.org>
29474
29475         absolute-header: Make the macro usable in more situations.
29476         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29477         from gl_ABSOLUTE_HEADER.
29478         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29479
29480 2010-05-16  James Youngman  <jay@gnu.org>
29481
29482         doc: update users.txt
29483         * users.txt: Add CSSC.
29484
29485 2010-05-16  Jim Meyering  <meyering@redhat.com>
29486
29487         init.sh: fix an error in the previous change; add more comments
29488         * tests/init.sh: Compare exit code in loop against 9, not 2.
29489         Patch by Bruno Haible.
29490         Make the two tests more similar by adding an empty "then" clause.
29491         Add comments.
29492
29493         init.sh: avoid unnecessary shell re-exec
29494         * tests/init.sh: Improve the re-exec-required check to first test the
29495         current shell.  If it passes the test, do not search for a shell that
29496         does pass, and do not re-exec.  This test is particularly contorted to
29497         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29498         of $(...) evokes a syntax error and causes immediate shell exit with
29499         status 2.  Bruno Haible reported that the re-exec made it impossible
29500         to single-step through any init.sh-using script.
29501
29502 2010-05-16  Bruno Haible  <bruno@clisp.org>
29503
29504         Fix collision between gnulib's and libintl's printf replacements.
29505         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29506         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29507         (printf): When using GNU C, map the __printf__ function to rpl_printf
29508         via __asm__. When not using GNU C, define rpl_printf instead of
29509         __printf__.
29510         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29511         commit.
29512         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29513         commit.
29514         * m4/asm-underscore.m4: New file.
29515         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29516         * modules/stdio (Files): Add m4/asm-underscore.m4.
29517         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29518         Reported by Ben Pfaff.
29519
29520 2010-05-16  Bruno Haible  <bruno@clisp.org>
29521
29522         verify: Avoid skipping the test on openSUSE 11.0.
29523         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29524
29525 2010-05-13  Bruno Haible  <bruno@clisp.org>
29526
29527         Avoid useless warnings from G++.
29528         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29529         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29530         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29531
29532 2010-05-11  Jim Meyering  <meyering@redhat.com>
29533
29534         maint.mk: tweak preceding change
29535         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29536         regexps tighter by anchoring at EOL, and make the new group "shy"
29537         for slightly decreased overhead.
29538
29539 2010-05-11  Eric Blake  <eblake@redhat.com>
29540
29541         maint.mk: gnulib doesn't guarantee NSIG
29542         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29543
29544 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29545
29546         test-pwrite.c: Remove unused variable declaration.
29547         * tests/test-pwrite.c (main): Remove read_buf declaration.
29548
29549         Remove useless test-pwrite.sh file.
29550         * tests/test-pwrite.sh: Delete file.
29551         * modules/pwrite-tests: Remove references.
29552         Reported by Bruno Haible.
29553
29554 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29555
29556         init.sh: fix a typo
29557         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29558
29559 2010-05-10  Jim Meyering  <meyering@redhat.com>
29560
29561         maint.mk: avoid using a temporary file in the always-defined-macros check
29562         * top/maint.mk (.re-defmac): Remove rule.
29563         (gl_trap_): Remove definition.
29564         (sc_prohibit_always-defined_macros): Rewrite not to create and
29565         depend on a temporary file.  Instead, depend on GNU grep's ability
29566         to read a list of regular expressions from stdin when given "-f -".
29567
29568 2010-05-09  Bruno Haible  <bruno@clisp.org>
29569
29570         Update to GNU gettext 0.18, part 1.
29571         * m4/gettext.m4: Update to GNU gettext 0.18.
29572         * m4/intl.m4: Likewise.
29573         * m4/po.m4: Likewise.
29574         * modules/gettext (Files): Add m4/fcntl-o.m4.
29575         (configure.ac): Require gettext infrastructure from version 0.18.
29576
29577 2010-05-09  Jim Meyering  <meyering@redhat.com>
29578
29579         init.sh: enable MALLOC_PERTURB_
29580         * tests/init.sh: Enable glibc's malloc-perturbing option.
29581
29582         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29583         With my recent change in init.sh from the two-line form:
29584             -#   : ${srcdir=.}
29585             -#   . "$srcdir/init.sh"; path_prepend_ .
29586             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29587         I noticed that using the one-line form would cause this test
29588         to fail with a false-positive, or to stop working altogether,
29589         depending on whether help-version changed or all the tests did.
29590         * top/maint.mk (_hv_regex): Remove this definition.
29591         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29592         (_hv_regex_strong): Use a stronger regex to check for conformance.
29593         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29594         Give a separate diagnostic for lack of conforming use.
29595
29596         maint.mk: prohibit definition of symbols defined by gnulib
29597         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29598         definition of symbols defined by gnulib.
29599
29600 2010-05-09  Bruno Haible  <bruno@clisp.org>
29601
29602         acl: Avoid test failure on Cygwin-hosted mingw.
29603         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29604
29605 2010-05-09  Bruno Haible  <bruno@clisp.org>
29606
29607         error: Use system's fcntl function.
29608         * lib/error.c (fcntl): Undefine.
29609
29610 2010-05-09  Jim Meyering  <meyering@redhat.com>
29611
29612         verify: adjust formatting to be more consistent
29613         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29614         argument-list '('s, and after one comma.
29615
29616 2010-05-09  Bruno Haible  <bruno@clisp.org>
29617
29618         error: More reliable output on mingw.
29619         * lib/error.c: Include <windows.h>.
29620         (is_open): New function.
29621         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29622         defined.
29623
29624 2010-05-09  Bruno Haible  <bruno@clisp.org>
29625
29626         vasnprintf: Fix syntax errors in libintl build on mingw.
29627         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29628         pad_ourselves and prec_ourselves after use.
29629
29630 2010-05-08  Bruno Haible  <bruno@clisp.org>
29631
29632         * lib/config.charset: Update comments for Cygwin 1.7.
29633         * lib/localcharset.c: Likewise.
29634
29635 2010-05-07  Jim Meyering  <meyering@redhat.com>
29636
29637         init.sh: improve comments
29638         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29639         . "${srcdir=.}/init.sh"; path_prepend_ .
29640         Add a note about path_prepend_ and the alternative of using
29641         TESTS_ENVIRONMENT.
29642
29643 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29644
29645         exclude: Unescape hashed patterns in wildcard mode.
29646         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29647         to the hash list.
29648         * tests/test-exclude8.sh: New test case.
29649         * modules/exclude-tests: Add new test.
29650
29651 2010-05-05  Eric Blake  <eblake@redhat.com>
29652
29653         verify: automate tests
29654         * modules/verify-tests: New module.
29655         * tests/test-verify.sh: New file.
29656         * tests/test-verify.c: Guard each negative test with a unique id.
29657         Also avoid warning about unused left hand of comma expressions.
29658
29659 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29660
29661         Further improvements to verify.h, suggested by Eric Blake.
29662         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29663         the GL_* versions, to avoid collision with OpenGL.
29664         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29665         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29666         than testing merely whether it's defined.
29667
29668         Modify verify.h to pacify gcc -Wredundant_decls.
29669         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29670         These use the prefix "GL_" since they're likely to be useful elsewhere.
29671         We may need to break them out into a different .h file.
29672         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29673         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29674         of verify_function__.
29675
29676 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29677
29678         Tests for module pwrite.
29679         * modules/pwrite-tests: New file.
29680         * tests/test-pwrite.sh: New file.
29681         * tests/test-pwrite.c: New file.
29682
29683         New module pwrite.
29684         * lib/unistd.in.h (pwrite): New declaration.
29685         * lib/pwrite.c: New file, from glibc with modifications.
29686         * m4/pwrite.m4: New file.
29687         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29688         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29689         REPLACE_PWRITE.
29690         * modules/pwrite: New file.
29691         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29692         REPLACE_PWRITE.
29693         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29694         * doc/posix-functions/pwrite.texi: Mention the new module.
29695
29696 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29697
29698         pread: Update documentation.
29699         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29700
29701 2010-05-04  Eric Blake  <eblake@redhat.com>
29702
29703         docs: update cygwin progress
29704         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29705         this bug.
29706         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29707         Added in cygwin 1.7.2.
29708         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29709         Likewise.
29710         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29711         Likewise.
29712         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29713         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29714         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29715         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29716         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29717         Mention nproc module.
29718         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29719         bug in cygwin 1.7.5 addition.
29720         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29721         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29722         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29723         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29724         1.7.5.
29725         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29726         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29727         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29728         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29729         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29730         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29731         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29732         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29733         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29734         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29735         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29736         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29737         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29738         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29739         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29740         Likewise.
29741         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29742         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29743         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29744         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29745         Likewise.
29746         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29747         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29748         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29749         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29750         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29751         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29752         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29753         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29754         Likewise.
29755         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29756         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29757         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29758         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29759         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29760         Likewise.
29761         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29762         Likewise.
29763         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29764         Likewise.
29765         * doc/glibc-functions/xdrrec_endofrecord.texi
29766         (xdrrec_endofrecord): Likewise.
29767         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29768         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29769         Likewise.
29770         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29771         Likewise.
29772
29773 2010-05-04  Jim Meyering  <meyering@redhat.com>
29774
29775         gendocs.sh: make its "-s FILE" option more useful
29776         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29777         $PACKAGE to reflect the probably-different basename of "FILE".
29778
29779 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29780
29781         bootstrap: don't ignore download_po_files failure
29782         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29783         failure.
29784
29785 2010-05-03  Jim Meyering  <meyering@redhat.com>
29786
29787         maint.mk: allow to pass options to gendocs.sh
29788         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29789         (gendocs_options_): New overridable variable.
29790
29791         gnu-web-doc-update: don't ignore configure or build failure
29792         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29793
29794         announce-gen: backslash-escape '@'s in --help output
29795         * build-aux/announce-gen: Fix syntax errors.
29796
29797         maint.mk, announce-gen: allow project-specific announcement mail headers
29798         * top/maint.mk (translation_project_): Define default.
29799         (announcement_Cc_, announcement_mail_headers_): Likewise.
29800         (announcement): Invoke announce-gen with new --mail-headers option.
29801         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29802
29803         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29804         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29805         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29806         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29807         line in the "err2" output file when running "make check" in verbose
29808         mode (i.e., with set -x enabled).
29809
29810 2010-05-03  Bruno Haible  <bruno@clisp.org>
29811
29812         wctob: Fix for weird platforms.
29813         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29814         argument value.
29815
29816 2010-05-03  Jim Meyering  <meyering@redhat.com>
29817
29818         maint.mk: prohibit unwarranted use of <strings.h>
29819         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29820         strings.h in a file that does not also use strcasecmp, strncasecmp,
29821         ffs or ffsll.
29822
29823         maint.mk: remove obsolete comments
29824         * top/maint.mk: Remove stale, commented-out rules.
29825
29826 2010-05-02  Bruno Haible  <bruno@clisp.org>
29827
29828         wcwidth: Declare also when it's aliased.
29829         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29830         macro.
29831
29832 2010-05-02  Bruno Haible  <bruno@clisp.org>
29833
29834         Fix regression from 2010-04-25.
29835         * gnulib-tool (func_modules_transitive_closure): Check the status of
29836         all modules, not only of the tests that are of the form foo-tests where
29837         foo is a module.
29838
29839 2010-05-02  Bruno Haible  <bruno@clisp.org>
29840
29841         wctob: Work around nasty Cygwin 1.7.2 bug.
29842         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29843         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29844
29845 2010-05-01  Bruno Haible  <bruno@clisp.org>
29846
29847         fpurge: Sharper test.
29848         * tests/test-fpurge.c (main): Add one more ftell check.
29849         * modules/fpurge-tests (Depends-on): Add ftell.
29850         Suggested by Eric Blake.
29851
29852 2010-05-01  Bruno Haible  <bruno@clisp.org>
29853
29854         ftello: Another test.
29855         * tests/test-ftello3.c: New file.
29856         * modules/ftello-tests (Files): Add it.
29857         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29858         MOSTLYCLEANFILES.
29859
29860         ftell: Another test.
29861         * tests/test-ftell3.c: New file.
29862         * modules/ftell-tests (Files): Add it.
29863         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29864         MOSTLYCLEANFILES.
29865
29866 2010-05-01  Bruno Haible  <bruno@clisp.org>
29867
29868         ftell, ftello: Work around Solaris bug.
29869         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29870         * lib/ftello.c: Include stdio-impl.h.
29871         (ftello): On Solaris, when _IOWRT is set, compute the result without
29872         looking at _IOREAD.
29873         * modules/ftello (Files): Add lib/stdio-impl.h.
29874         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29875         * doc/posix-functions/ftello.texi: Likewise.
29876         Reported by Eric Blake.
29877
29878 2010-05-01  Bruno Haible  <bruno@clisp.org>
29879
29880         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29881         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29882         the _IOWRT flag is also set.
29883
29884 2010-05-01  Bruno Haible  <bruno@clisp.org>
29885
29886         Fix doc about a HP-UX stdio bug.
29887         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29888         * doc/posix-functions/ftello.texi: Likewise.
29889
29890 2010-05-01  Bruno Haible  <bruno@clisp.org>
29891
29892         lseek test: Fix failure on Solaris.
29893         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29894         output.
29895
29896 2010-04-30  Jim Meyering  <meyering@redhat.com>
29897
29898         bootstrap: don't ignore failure to generate po*/Makevars
29899         * build-aux/bootstrap (with_gettext): Don't ignore failure
29900         to create po/Makevars or runtime-po/Makevars.
29901
29902 2010-04-29  Eric Blake  <eblake@redhat.com>
29903
29904         headers: relax license to LGPLv2+
29905         * modules/fcntl-h (License): Relax license.
29906         * modules/getopt-posix (License): Likewise.
29907         * modules/locale (License): Likewise.
29908         * modules/math (License): Likewise.
29909         * modules/pty (License): Likewise.
29910         * modules/sched (License): Likewise.
29911         * modules/search (License): Likewise.
29912         * modules/spawn (License): Likewise.
29913         * modules/stdarg (License): Likewise.
29914         * modules/sysexits (License): Likewise.
29915
29916 2010-04-29  Jim Meyering  <meyering@redhat.com>
29917
29918         inttypes: relax license to LGPLv2+
29919         * modules/inttypes (License): Relax license.
29920
29921 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29922
29923         * top/maint.mk (indent): Run twice to produce idempotent results.
29924
29925 2010-04-28  Bruno Haible  <bruno@clisp.org>
29926
29927         getdate: Generate getdate.c in the source directory.
29928         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29929         MOSTLYCLEANFILES.
29930         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29931
29932 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29933
29934         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29935         is not declared as a const *; avoid warnings in that case.
29936
29937 2010-04-28  Eric Blake  <eblake@redhat.com>
29938
29939         canonicalize-lgpl: avoid compiler warning
29940         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29941         declaration' / 'extraneous semicolon' warning with some compilers.
29942         Reported by Andreas Gruenbacher.
29943
29944 2010-04-28  Jim Meyering  <meyering@redhat.com>
29945
29946         init.sh: ensure a more reliable exit status when exiting via trap
29947         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29948         Inspired by patches from Dmitry V. Levin.
29949         Also trap on signal 3 (SIGQUIT).
29950
29951 2010-04-27  Bruno Haible  <bruno@clisp.org>
29952
29953         Update doc about utimes().
29954         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29955         'utimens' module.
29956         Reported by Andreas Gruenbacher <agruen@suse.de>.
29957
29958 2010-04-27  Eric Blake  <eblake@redhat.com>
29959
29960         full-read, full-write: relax license
29961         * modules/full-read (License): Drop to LGPLv2+.
29962         * modules/full-write (License): Likewise.
29963         * modules/safe-read (License): Likewise.
29964         * modules/safe-write (License): Likewise.
29965
29966         pthread: mention library for linking
29967         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29968
29969 2010-04-27  Jim Meyering  <meyering@redhat.com>
29970
29971         maint.mk: fix a bug introduced in last change
29972         * top/maint.mk (gl_assured_headers_): Now that all names are on
29973         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29974         is not anchored to end of word, it should be adequate.
29975
29976         maint.mk: avoid side-effect in latest syntax-check
29977         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29978         to run commands via $(shell...), and hence to incur cost only when
29979         the new rule is actually run.
29980
29981         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29982         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29983         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29984         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29985         (gl_assured_headers_, az_, AZ_): Define.
29986         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29987
29988 2010-04-26  Jim Meyering  <jim@meyering.net>
29989             Bruno Haible  <bruno@clisp.org>
29990
29991         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29992         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29993         Prompted by an exchange with Gilles Espinasse.
29994
29995 2010-04-26  Jim Meyering  <meyering@redhat.com>
29996
29997         git-version-gen: aesthetic tweak
29998         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29999         so that the command remains on a single line.
30000
30001 2010-04-26  Eric Blake  <eblake@redhat.com>
30002
30003         git-version-gen: allow use on EBCDIC hosts
30004         * build-aux/git-version-gen (dirty): Use literal rather than tying
30005         ourselves to ascii.
30006         Reported by Steve Goetze.
30007
30008 2010-04-25  Bruno Haible  <bruno@clisp.org>
30009
30010         netdb: Add support for GNULIB_POSIXCHECK.
30011         * lib/netdb.in.h: Include warn-on-use.h.
30012         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30013         functions are used when GNULIB_POSIXCHECK is defined and the
30014         getaddrinfo module is not in use.
30015         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30016         freeaddrinfo, gai_strerror, getnameinfo are declared.
30017         * modules/netdb (Depends-on): Add warn-on-use.
30018         (Makefile.am): Include warn-on-use.h in netdb.h.
30019
30020 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30021
30022         build: avoid "make check" failure without .git/ directory
30023         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30024         there is no .git/ directory.
30025
30026 2010-04-25  Bruno Haible  <bruno@clisp.org>
30027
30028         ptsname: Fix misuse of ttyname_r.
30029         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30030         of errno.
30031
30032 2010-04-25  Bruno Haible  <bruno@clisp.org>
30033
30034         ttyname_r: Make it work on Solaris 10.
30035         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30036         if the system function has the POSIX declaration. Test whether the
30037         function fails if the buffer is less than 128 bytes large.
30038         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30039         system's ttyname_r function. Provide a reasonably large buffer.
30040         * modules/ttyname_r (Depends-on): Add extensions.
30041         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30042
30043 2010-04-25  Bruno Haible  <bruno@clisp.org>
30044
30045         Use the 'extensions' module for some more functions on Solaris.
30046         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30047         module.
30048         * doc/posix-functions/ctime_r.texi: Likewise.
30049         * doc/posix-functions/getgrgid_r.texi: Likewise.
30050         * doc/posix-functions/getgrnam_r.texi: Likewise.
30051         * doc/posix-functions/getpwnam_r.texi: Likewise.
30052         * doc/posix-functions/getpwuid_r.texi: Likewise.
30053         * doc/posix-functions/readdir_r.texi: Likewise.
30054         * doc/posix-functions/sigwait.texi: Likewise.
30055         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30056         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30057
30058 2010-04-25  Bruno Haible  <bruno@clisp.org>
30059
30060         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30061         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30062         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30063         * lib/ttyname_r.c: Include <limits.h>.
30064         (ttyname_r): Define using the system's ttyname_r function, if it exists
30065         and not on Solaris.
30066         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30067         set.
30068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30069         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30070         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30071         Reported by Simon Josefsson.
30072
30073 2010-04-25  Bruno Haible  <bruno@clisp.org>
30074
30075         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30076         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30077         * doc/posix-functions/ctime_r.texi: Likewise.
30078         * doc/posix-functions/getgrgid_r.texi: Likewise.
30079         * doc/posix-functions/getgrnam_r.texi: Likewise.
30080         * doc/posix-functions/getlogin_r.texi: Likewise.
30081         * doc/posix-functions/getpwnam_r.texi: Likewise.
30082         * doc/posix-functions/getpwuid_r.texi: Likewise.
30083         * doc/posix-functions/readdir_r.texi: Likewise.
30084         * doc/posix-functions/sigwait.texi: Likewise.
30085         * doc/posix-functions/ttyname_r.texi: Likewise.
30086         Reported by Simon Josefsson.
30087
30088 2010-04-25  Bruno Haible  <bruno@clisp.org>
30089
30090         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30091         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30092         also to --create-testdir.
30093         (func_acceptable): Don't consider the status of *-tests modules here.
30094         (func_modules_transitive_closure): Consider it here, before including a
30095         test module.
30096         (func_import, func_create_testdir): Set inc_all_direct_tests,
30097         inc_all_indirect_tests.
30098         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30099         --create-testdir and --create-megatestdir.
30100
30101 2010-04-25  Bruno Haible  <bruno@clisp.org>
30102
30103         gnulib-tool: Add --without-*-tests options.
30104         * gnulib-tool (func_usage): Document the --without-*-tests options.
30105         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30106         excl_unportable_tests): New variables.
30107         Fail if they are specified with --import or --update.
30108         (func_acceptable): Respect the excl_*_tests variables.
30109         (func_import): Set the excl_*_tests variables to empty.
30110
30111 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30112             Bruno Haible  <bruno@clisp.org>
30113
30114         Work around a MacOS X 10.4 bug with openpty.
30115         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30116         * tests/test-openpty.c (main): Close the master side explicitly.
30117
30118 2010-04-25  Bruno Haible  <bruno@clisp.org>
30119
30120         strnlen: Fix a C++ test error on MacOS X and Solaris.
30121         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30122         the function is not declared.
30123         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30124         Simon Josefsson.
30125
30126 2010-04-24  Bruno Haible  <bruno@clisp.org>
30127
30128         Avoid a gcc warning.
30129         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30130         of correct type for %08lx directive.
30131         Reported by Eric Blake.
30132
30133 2010-04-24  Bruno Haible  <bruno@clisp.org>
30134
30135         vasnprintf: Correct errno value in case of out-of-memory.
30136         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30137         or sprintf. Use the errno value from SNPRINTF or sprintf.
30138         Reported by Ian Beckwith <ianb@erislabs.net>.
30139
30140 2010-04-24  Bruno Haible  <bruno@clisp.org>
30141
30142         ansi-c++-opt: Find correct compiler when cross-compiling.
30143         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30144         AC_CHECK_PROGS.
30145         Reported by Simon Josefsson.
30146
30147 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30148
30149         vc-list-files: Add support for subversion
30150         * build-aux/vc-list-files: Use "svn list" to generate the list of
30151         files controlled by subversion.
30152
30153 2010-04-23  Jim Meyering  <meyering@redhat.com>
30154
30155         vc-list-files tests: convert to use init.sh
30156         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30157         path_prepend_.
30158         Use Exit, not exit.
30159         Use skip_ rather than open coding it.
30160         Remove trap set-up and compare definitions.
30161         * tests/test-vc-list-files-git.sh: Likewise.
30162         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30163
30164 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30165
30166         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30167         backup files.
30168
30169 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30170
30171         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30172
30173 2010-04-20  Eric Blake  <eblake@redhat.com>
30174
30175         tests: be robust to ignored SIGPIPE
30176         * tests/test-select-in.sh: Consume all output.
30177         * tests/test-lseek.sh: Check correct exit status, while avoiding
30178         EPIPE.
30179
30180 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30181             Bruno Haible  <bruno@clisp.org>
30182
30183         visibility: Don't use -fvisibility if it leads to a warning.
30184         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30185         yes, don't pretend that visibility works if it leads to a warning.
30186         Reported by Mike Gran <spk121@yahoo.com>.
30187
30188 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30189
30190         * build-aux/bootstrap: Use "git -h" for testing for supported options
30191         instead of "git --help".  The short-form option only shows a summary,
30192         and doesn't layout the full man page.  Grep for the full option name
30193         in the summary, too.
30194
30195 2010-04-19  Bruno Haible  <bruno@clisp.org>
30196
30197         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30198         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30199         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30200         mention of RELOCATABLE_STRIP.
30201         Reported by Sylvain Beucler <beuc@beuc.net>.
30202
30203 2010-04-19  Bruno Haible  <bruno@clisp.org>
30204
30205         * lib/diffseq.h: Fix typo in comment.
30206         Reported by Eric Blake.
30207
30208 2010-04-19  Bruno Haible  <bruno@clisp.org>
30209
30210         ioctl: Move autoconf macro to a .m4 file.
30211         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30212         * modules/ioctl (Files): Add it.
30213         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30214         Reported by Ian Beckwith <ianb@erislabs.net>.
30215
30216 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30217             Bruno Haible  <bruno@clisp.org>
30218
30219         diffseq: Accommodate use-case with abstract arrays.
30220         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30221         is not defined.
30222         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30223         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30224
30225 2010-04-18  Bruno Haible  <bruno@clisp.org>
30226
30227         * doc/posix-headers/stdbool.texi: More precise wording.
30228
30229 2010-04-17  Jim Meyering  <meyering@redhat.com>
30230
30231         maint.mk: use gnu-style indentation in an embedded perl script
30232         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30233         Rename variable: s/two/last_two_bytes/
30234
30235 2010-04-16  Eric Blake  <eblake@redhat.com>
30236
30237         test-stdbool: skip test that fails with Solaris CC
30238         * tests/test-stdbool.c (f): Skip test that causes compilation
30239         error under buggy C++ compiler.
30240         * lib/stdbool.in.h: Document the limitation.
30241         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30242
30243         setenv: allow compilation with C++
30244         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30245         register keyword.
30246
30247         stdint: allow test to pass with C++
30248         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30249
30250         getopt: allow compilation with C++
30251         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30252         struct.
30253         * lib/getopt.c (_getopt_internal_r): Use correct type.
30254         Reported by Dagobert Michelson, via Joel E. Denny.
30255
30256 2010-04-16  Bruno Haible  <bruno@clisp.org>
30257
30258         Override netdb.h always.
30259         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30260         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30261         Reported by Ludovic Courtès <ludo@gnu.org>.
30262
30263 2010-04-15  Bruno Haible  <bruno@clisp.org>
30264
30265         openpty: Fix mistake from 2010-03-21.
30266         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30267         Reported by Simon Josefsson.
30268
30269 2010-04-15  Eric Blake  <eblake@redhat.com>
30270
30271         test-forkpty: fix expected signature
30272         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30273         Reported by Simon Josefsson.
30274
30275 2010-04-15  Jim Meyering  <meyering@redhat.com>
30276
30277         maint.mk: texinfo_suffix_re_: correct the default regexp
30278         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30279
30280         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30281         make it configurable via texinfo_suffix_re_.
30282
30283 2010-04-14  Eric Blake  <eblake@redhat.com>
30284
30285         strtok_r: relax license to LGPLv2+
30286         * modules/strtok_r (License): Relax license.
30287         Reported by Matthias Bolte.
30288
30289 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30290
30291         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30292         version 1.4.4 by default instead of requiring the libgcrypt
30293         version used during build.  This makes it possible to use the
30294         application with older but still binary compatible libgcrypt
30295         versions.
30296
30297 2010-04-13  Eric Blake  <eblake@redhat.com>
30298
30299         getopt-gnu: match recent glibc fixes and posix ruling
30300         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30301         '+' handling, when requesting extensions.
30302         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30303         'W;' handling.
30304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30305         * doc/posix-functions/getopt.texi (getopt): Document this.
30306         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30307         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30308         Likewise.
30309
30310         getopt: merge bug fixes from glibc
30311         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30312         diagnostics.  Honor '+:' correctly.  Reject ';'.
30313
30314         getopt-posix: detect MacOS bug
30315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30316         optind when missing a required argument.
30317         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30318         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30319         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30320         Likewise.
30321
30322         getopt-posix: avoid spurious failure on Solaris
30323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30324         an indicator that setting optind=1 is sufficient for reset.
30325
30326         getopt-posix: avoid spurious failure on FreeBSD
30327         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30328         in POSIX mode, since the m4 test uses it.
30329
30330         gnulib-tool: silence warning on BSD sh
30331         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30332
30333 2010-04-13  Jim Meyering  <meyering@redhat.com>
30334
30335         doc: users.txt: GNU patch now uses gnulib
30336         * users.txt: Add patch.
30337
30338 2010-04-12  Jim Meyering  <meyering@redhat.com>
30339
30340         maint.mk: generate more concise timing data for syntax-check rules
30341         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30342         " done" from each line that reports a syntax-check test duration.
30343
30344 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30345
30346         git-version-gen: use "git update-index..." rather than "git status"
30347         * build-aux/git-version-gen: Use git update-index --refresh, not
30348         "git status".  With some versions of git, "git status" would fail
30349         to update the index and result in an unwarranted "-dirty" suffix.
30350
30351 2010-04-11  Jim Meyering  <meyering@redhat.com>
30352
30353         openat: correct formatting (no semantic change)
30354         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30355         Suggested by Bruno Haible.
30356
30357 2010-04-11  Bruno Haible  <bruno@clisp.org>
30358
30359         Stricter declaration checking in testdirs.
30360         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30361         If for_tests is true, augment AM_CPPFLAGS to define
30362         GNULIB_STRICT_CHECKING.
30363         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30364         GNULIB_STRICT_CHECKING is defined, verify that the function is
30365         declared.
30366
30367 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30368             Bruno Haible  <bruno@clisp.org>
30369
30370         libunistring: Improve configure output.
30371         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30372         Don't say "consider installing GNU libunistring" when checking again
30373         with libiconv.
30374
30375 2010-04-11  Bruno Haible  <bruno@clisp.org>
30376
30377         libunistring: Correct value of $LTLIBUNISTRING.
30378         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30379         correct the value of $LTLIBUNISTRING.
30380
30381 2010-04-11  Bruno Haible  <bruno@clisp.org>
30382
30383         havelib: Add static libraries to LIBS in the right order.
30384         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30385         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30386
30387 2010-04-11  Bruno Haible  <bruno@clisp.org>
30388
30389         libunistring: Detect libunistring also when it depends on libiconv.
30390         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30391         the second AC_LIB_HAVE_LINKFLAGS invocation.
30392
30393 2010-04-11  James Youngman  <jay@gnu.org>
30394
30395         close-stream: declare local scalars to be "const"
30396         * lib/close-stream.c (close_stream): Make boolean variables const
30397         to document the fact that we set but do not change them.
30398
30399 2010-04-11  Bruno Haible  <bruno@clisp.org>
30400
30401         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30402
30403 2010-04-11  Jim Meyering  <meyering@redhat.com>
30404
30405         maint.mk: don't include dist-check.mk
30406         * top/maint.mk: Remove bogus include directive.
30407
30408         maint.mk: improve empty-line-at-EOF check
30409         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30410         solution, rather than tail+Perl-based one.  The latter would read
30411         a few kilobytes from the end of each file, and did not handle empty
30412         files properly.
30413
30414         maint.mk: print the elapsed time for each syntax-check rule
30415         * top/maint.mk (sc_m_rules_): Save start time in a file.
30416         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30417         (local-check): Interpose the .z rules
30418
30419 2010-04-11  Jim Meyering  <meyering@redhat.com>
30420
30421         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30422         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30423         empty file with one that ends in an empty line.
30424
30425 2010-04-10  Bruno Haible  <bruno@clisp.org>
30426
30427         mkdir: Make it work on mingw64.
30428         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30429         * lib/mkdir.c: Update comment.
30430         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
30431
30432 2010-04-10  Bruno Haible  <bruno@clisp.org>
30433
30434         Don't override improved macro from newer autoconf.
30435         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30436         autoconf >= 2.62.
30437         Reported by Joel E. Denny <jdenny@clemson.edu>.
30438
30439 2010-04-10  Jim Meyering  <meyering@redhat.com>
30440
30441         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30442         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30443
30444         maint.mk: correct a diagnostic
30445         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30446         in diagnostic; now use $prohibit.
30447
30448 2010-04-10  Bruno Haible  <address@hidden>
30449
30450         fchownat: Fix a C++ test error on Solaris 8.
30451         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30452         the function does not exist.
30453
30454 2010-04-10  Bruno Haible  <bruno@clisp.org>
30455
30456         vasnprintf: Add more tests.
30457         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30458         (test_function): Test converting an invalid wide string.
30459
30460         vasnprintf: Correct handling of unconvertible wide string arguments.
30461         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30462         VASNPRINTF.
30463         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30464         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30465         smaller than the expected maximum need for the directive. Set errno to
30466         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30467         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30469         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30470         * modules/vasnprintf (Files): Add m4/printf.m4.
30471         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30472
30473 2010-04-10  Bruno Haible  <bruno@clisp.org>
30474
30475         vasnprintf: Fix crash in %ls directive.
30476         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30477         string is passed as argument to %ls, with no precision and no width.
30478         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30479
30480 2010-04-10  Bruno Haible  <bruno@clisp.org>
30481
30482         vasnprintf: Fix multiple test failures on mingw.
30483         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30484         _snprintf, or snwprintf, not _snwprintf.
30485
30486 2010-04-10  Bruno Haible  <bruno@clisp.org>
30487
30488         write: Fix a C++ test error on mingw.
30489         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30490
30491 2010-04-10  Bruno Haible  <bruno@clisp.org>
30492
30493         vasnprintf test: Reduce code duplication.
30494         * tests/test-vasnprintf.c (test_function): New function, extracted from
30495         test_vasnprintf.
30496         (test_vasnprintf, test_asnprintf): Invoke it.
30497
30498 2010-04-10  Bruno Haible  <bruno@clisp.org>
30499
30500         strnlen: Fix warning in C++ mode on MacOS X.
30501         * lib/string.in.h (strnlen): Use the modern idiom.
30502         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30503         defining strnlen as a macro already in <config.h>.
30504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30505         REPLACE_STRNLEN.
30506         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30507         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30508
30509 2010-04-08  James Youngman  <jay@gnu.org>
30510
30511         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30512         the example.
30513
30514 2010-04-09  Jim Meyering  <meyering@redhat.com>
30515
30516         maint.mk: print better diagnostic when there is no $(_hv_file)
30517         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30518         announce that when $(_hv_file) (aka help-version) does not exist.
30519
30520         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30521         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30522         not try to interpret its random input bytes.  Jarno Rajahalme reported
30523         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30524         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30525         (mktempd_): Likewise, just in case.
30526
30527         ftruncate: add two years to projected module removal date: 2012
30528         * m4/ftruncate.m4: Adjust comments.
30529
30530         ftruncate: mark module as obsolete; even MinGW provides it, now
30531         * modules/ftruncate (Status): Obsolete.
30532         (Notice): Say that.
30533         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30534         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30535
30536 2010-04-08  Bruno Haible  <bruno@clisp.org>
30537
30538         Fix side effects from tests-related modules.
30539         * modules/dprintf-posix (Comment): New section.
30540         * modules/fprintf-posix (Comment): Likewise.
30541         * modules/obstack-printf-posix (Comment): Likewise.
30542         * modules/printf-posix (Comment): Likewise.
30543         * modules/snprintf-posix (Comment): Likewise.
30544         * modules/sprintf-posix (Comment): Likewise.
30545         * modules/vasnprintf-posix (Comment): Likewise.
30546         * modules/vasprintf-posix (Comment): Likewise.
30547         * modules/vdprintf-posix (Comment): Likewise.
30548         * modules/vfprintf-posix (Comment): Likewise.
30549         * modules/vprintf-posix (Comment): Likewise.
30550         * modules/vsnprintf-posix (Comment): Likewise.
30551         * modules/vsprintf-posix (Comment): Likewise.
30552         * modules/xprintf-posix (Comment): Likewise.
30553         * modules/xvasprintf-posix (Comment): Likewise.
30554         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30555         * modules/floorf-tests (Depends-on): Likewise.
30556         * modules/round-tests (Depends-on): Likewise.
30557         * modules/roundf-tests (Depends-on): Likewise.
30558         * modules/trunc-tests (Depends-on): Likewise.
30559         * modules/truncf-tests (Depends-on): Likewise.
30560         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30561         'fprintf-posix' module is not present.
30562         * tests/test-floorf2.c (check): Likewise.
30563         * tests/test-trunc2.c (check): Likewise.
30564         * tests/test-truncf2.c (check): Likewise.
30565         * tests/test-round2.c (equal): Likewise.
30566         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30567
30568 2010-04-07  Karl Berry  <karl@gnu.org>
30569
30570         * config/srclist.txt,
30571         * config/srclistvars.sh,
30572         * config/srclist-update: doc fixes.
30573
30574 2010-04-07  Jim Meyering  <meyering@redhat.com>
30575
30576         maint.mk: add a PATH crosschecking syntax-check rule
30577         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30578         Useful if you use a test like the one in help-version (coreutils,
30579         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30580         printed by prog --version.
30581
30582 2010-04-06  Bruno Haible  <bruno@clisp.org>
30583
30584         Fix link error on mingw.
30585         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30586         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30587
30588 2010-04-06  Bruno Haible  <bruno@clisp.org>
30589
30590         Assume rmdir exists.
30591         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30592
30593 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30594
30595         doc: update users.txt
30596         * users.txt: Add gcal.
30597
30598 2010-04-06  Jim Meyering  <meyering@redhat.com>
30599
30600         init.sh: simply unset TMPDIR rather than risking env -i
30601         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30602         although it probably works fine on all Unix-based systems, some
30603         systems (Cygwin?) cannot tolerate a totally cleared environment.
30604         Suggestion from Eric Blake.
30605
30606 2010-04-06  Jim Meyering  <meyering@redhat.com>
30607
30608         init.sh: portability fix: use env's POSIX-specified -i option not -u
30609         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30610         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30611
30612 2010-04-05  Bruno Haible  <bruno@clisp.org>
30613
30614         btowc: Work around Cygwin 1.7.2 bug.
30615         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30616         does not map NUL to 0.
30617         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30618
30619 2010-04-05  Bruno Haible  <bruno@clisp.org>
30620
30621         Make the multithread modules work on Cygwin 1.7.2.
30622         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30623         imported symbols can be declared weak, so that it returns "no" on
30624         Cygwin 1.7.2.
30625
30626 2010-04-05  Bruno Haible  <bruno@clisp.org>
30627
30628         Use the module 'strncat'.
30629         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30630
30631         Tests for module 'strncat'.
30632         * modules/strncat-tests: New file.
30633         * tests/test-strncat.c: New file.
30634
30635         New module 'strncat'.
30636         * lib/string.in.h (strncat): New declaration.
30637         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30638         * m4/strncat.m4: New file, based on m4/memchr.m4.
30639         * modules/strncat: New file.
30640         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30641         is declared.
30642         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30643         REPLACE_STRNCAT.
30644         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30645         REPLACE_STRNCAT.
30646         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30647         module.
30648         * tests/test-string-c++.cc: Check signature of strncat.
30649
30650 2010-04-05  Jim Meyering  <meyering@redhat.com>
30651
30652         xstrtoumax-tests: convert to use init.sh
30653         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30654         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30655         Use Exit, not exit.
30656         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30657
30658         xstrtoimax-tests: convert to use init.sh
30659         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30660         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30661         Use Exit, not exit.
30662         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30663
30664 2010-04-05  Bruno Haible  <bruno@clisp.org>
30665
30666         sys_socket: Avoid #define replacements in C++ mode.
30667         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30668         warning to the function if possible, rather than #defining the symbol
30669         to a dysfunctional alias.
30670
30671 2010-04-05  Bruno Haible  <bruno@clisp.org>
30672
30673         fseeko: Fix C++ test error on mingw.
30674         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30675         gl_FUNC_FSEEKO.
30676         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30677         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30678         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30679         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30680
30681 2010-04-05  Bruno Haible  <bruno@clisp.org>
30682
30683         duplocale: Improve test output.
30684         * tests/test-duplocale.c (main): Print reason for skipped test.
30685
30686 2010-04-05  Bruno Haible  <bruno@clisp.org>
30687
30688         Assume rmdir exists.
30689         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30690         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30691
30692 2010-04-05  Bruno Haible  <bruno@clisp.org>
30693
30694         Fix link error on Solaris 8 with cc.
30695         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30696
30697 2010-04-05  Bruno Haible  <bruno@clisp.org>
30698
30699         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30700         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30701
30702 2010-04-05  Bruno Haible  <bruno@clisp.org>
30703
30704         vasprintf: Update documentation.
30705         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30706
30707 2010-04-05  Bruno Haible  <bruno@clisp.org>
30708
30709         ptsname: Improve test.
30710         * tests/test-ptsname.c (main): Also try the various master names of BSD
30711         systems.
30712
30713 2010-04-05  Bruno Haible  <bruno@clisp.org>
30714
30715         memchr: Avoid a possible C++ test error.
30716         * lib/string.in.h (memchr): Provide declaration if function is missing.
30717         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30718         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30720         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30721
30722 2010-04-05  Bruno Haible  <bruno@clisp.org>
30723
30724         strtok_r: Improve idiom.
30725         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30726         AC_LIBOBJ is used.
30727
30728 2010-04-05  Bruno Haible  <bruno@clisp.org>
30729
30730         strdup: Improve idiom.
30731         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30732         AC_LIBOBJ is used.
30733         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30734         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30735         when AC_LIBOBJ is used.
30736
30737 2010-04-05  Bruno Haible  <bruno@clisp.org>
30738
30739         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30740         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30741         don't set REPLACE_MBSINIT to 1.
30742         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30743         don't set REPLACE_MBRTOWC to 1.
30744         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30745         exist, don't set REPLACE_MBSRTOWCS to 1.
30746         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30747         exist, don't set REPLACE_MBSNRTOWCS to 1.
30748         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30749         don't set REPLACE_WCRTOMB to 1.
30750         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30751         exist, don't set REPLACE_WCSRTOMBS to 1.
30752         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30753         exist, don't set REPLACE_WCSNRTOMBS to 1.
30754
30755 2010-04-05  Bruno Haible  <bruno@clisp.org>
30756
30757         ldexpl: Improve idiom.
30758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30759         make sure to set HAVE_DECL_LDEXPL to 0.
30760
30761 2010-04-05  Jim Meyering  <meyering@redhat.com>
30762
30763         xstrtol-tests: convert to use init.sh
30764         * modules/xstrtol-tests (Files): Add tests/init.sh.
30765         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30766         Use Exit, not exit.
30767         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30768
30769         atexit-tests: convert to use init.sh
30770         * modules/atexit-tests (Files): Add tests/init.sh.
30771         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30772         Use Exit, not exit.
30773         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30774
30775         init.sh: fix typo
30776         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30777
30778         init.sh: make it easier for a test script to write to the tty, ...
30779         when using automake's parallel-tests mode.
30780         * tests/init.sh (stderr_fileno_): Define overridable variable.
30781         (warn_): New function, to use it.
30782         (fail_, skip_, framework_failure_): Use warn_.
30783
30784 2010-04-04  Bruno Haible  <bruno@clisp.org>
30785
30786         btowc: Avoid warning.
30787         * lib/btowc.c: Include <stdlib.h>.
30788         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30789
30790 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30791             Bruno Haible  <bruno@clisp.org>
30792
30793         wchar: Port to NetBSD 1.5.
30794         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30795         * lib/wctype.in.h (WEOF): Likewise.
30796
30797 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30798             Bruno Haible  <bruno@clisp.org>
30799
30800         Port extended stdio to NetBSD 1.5.
30801         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30802         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30803         older.
30804
30805 2010-04-04  Bruno Haible  <bruno@clisp.org>
30806
30807         string: Remove unused substitution.
30808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30809         HAVE_DECL_STRERROR.
30810         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30811
30812 2010-04-04  Bruno Haible  <bruno@clisp.org>
30813
30814         strtod: Avoid a possible C++ test error.
30815         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30816         set REPLACE_STRTOD.
30817
30818 2010-04-04  Bruno Haible  <bruno@clisp.org>
30819
30820         strerror: Update documentation.
30821         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30822
30823 2010-04-04  Bruno Haible  <bruno@clisp.org>
30824
30825         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30826         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30827         _GL_CXXALIAS_SYS_CAST.
30828
30829 2010-04-04  Bruno Haible  <bruno@clisp.org>
30830
30831         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30832         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30833         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30834         REPLACE_FREXPL to 1.
30835         * doc/posix-functions/frexpl.texi: Update documentation.
30836
30837 2010-04-04  Bruno Haible  <bruno@clisp.org>
30838
30839         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30840         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30841
30842 2010-04-04  Bruno Haible  <bruno@clisp.org>
30843
30844         Implement nanosleep for native Windows.
30845         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30846
30847 2010-04-04  Bruno Haible  <bruno@clisp.org>
30848
30849         math: Fix some C++ test errors on Solaris 8.
30850         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30851
30852 2010-04-04  Bruno Haible  <bruno@clisp.org>
30853
30854         math: Fix some C++ test errors on Cygwin.
30855         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30856         truncl): Provide declaration if the system does not have it.
30857         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30858         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30859         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30860         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30861         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30862         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30863         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30864         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30865         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30866         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30867         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30868         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30869         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30870         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30871         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30872         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30874         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30875         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30876         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30877         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30878         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30879
30880 2010-04-04  Bruno Haible  <bruno@clisp.org>
30881
30882         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30883         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30884         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30885         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30886         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30887         * m4/isinf.m4 (gl_ISINF): Likewise.
30888         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30889
30890 2010-04-04  Bruno Haible  <bruno@clisp.org>
30891
30892         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30893         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30894
30895 2010-04-04  Bruno Haible  <bruno@clisp.org>
30896
30897         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30898         * modules/tmpfile (configure.ac): Update.
30899
30900         tmpfile: Fix C++ test error on mingw.
30901         * lib/stdio.in.h (tmpfile): New declaration.
30902         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30903         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30904         * modules/tmpfile (Depends-on): Add stdio.
30905         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30906         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30907         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30908         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30909         REPLACE_TMPFILE.
30910         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30911
30912 2010-04-04  Bruno Haible  <bruno@clisp.org>
30913
30914         ioctl: Fix C++ test error on mingw.
30915         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30916         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30917         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30918
30919 2010-04-03  Bruno Haible  <bruno@clisp.org>
30920
30921         wcwidth: Fix C++ test error on mingw.
30922         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30924         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30925
30926 2010-04-03  Bruno Haible  <bruno@clisp.org>
30927
30928         nanosleep: Fix C++ test error on mingw.
30929         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30930         * lib/time.in.h (nanosleep): Use modern idiom.
30931         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30932         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30933         REPLACE_NANOSLEEP to 1.
30934         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30935         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30936
30937 2010-04-03  Bruno Haible  <bruno@clisp.org>
30938
30939         strptime: Fix C++ test error on mingw.
30940         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30941         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30942         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30943         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30944         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30945         not REPLACE_STRPTIME.
30946         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30947         REPLACE_STRPTIME.
30948
30949 2010-04-03  Bruno Haible  <bruno@clisp.org>
30950
30951         timegm: Fix C++ test error on mingw.
30952         * lib/time.in.h (timegm): Use modern idiom.
30953         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30954         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30955         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30956         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30957
30958 2010-04-03  Bruno Haible  <bruno@clisp.org>
30959
30960         timegm: Assume declaration if function exists.
30961         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30962         if it exists. Don't clobber ac_cv_func_timegm.
30963
30964 2010-04-03  Bruno Haible  <bruno@clisp.org>
30965
30966         time_r: Fix C++ test error on mingw.
30967         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30968         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30969         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30970         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30971         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30972
30973 2010-04-03  Bruno Haible  <bruno@clisp.org>
30974
30975         time_r: Minor updates.
30976         * modules/time_r (Description): Mention the provided functions.
30977         * lib/time_r.c: Don't include <string.h>.
30978         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30979         * doc/posix-functions/localtime_r.texi: Likewise.
30980
30981 2010-04-03  Bruno Haible  <bruno@clisp.org>
30982
30983         time: Fix regression introduced on 2010-03-08.
30984         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30985         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30986
30987 2010-04-03  Jim Meyering  <meyering@redhat.com>
30988
30989         maint.mk: don't silently disable project-specific syntax-check rules
30990         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30991         that they need to convert their project-specific syntax-check rules
30992         to use the new _sc_search_regexp.
30993
30994 2010-04-03  Bruno Haible  <bruno@clisp.org>
30995
30996         fchdir: Fix regression introduced on 2010-03-08.
30997         * lib/unistd.in.h (fchdir): Fix declaration.
30998         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31000         REPLACE_FCHDIR.
31001         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31002         REPLACE_FCHDIR.
31003
31004 2010-04-03  Bruno Haible  <bruno@clisp.org>
31005
31006         getpagesize: Fix C++ test error on mingw.
31007         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31008         system does not declare the function.
31009         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31010         declared.
31011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31012         HAVE_DECL_GETPAGESIZE.
31013         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31014
31015 2010-04-03  Bruno Haible  <bruno@clisp.org>
31016
31017         stdio: Make C++ tests work on mingw.
31018         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31019         does not declare the function.
31020
31021 2010-04-03  Bruno Haible  <bruno@clisp.org>
31022
31023         ftello: Fix C++ test error on mingw.
31024         * lib/stdio.in.h (ftello): Use modern idiom.
31025         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31026         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31027         is missing and that it needs to be replaced.
31028         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31030         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31031
31032 2010-04-03  Bruno Haible  <bruno@clisp.org>
31033
31034         fseeko: Fix C++ test error on mingw.
31035         * lib/stdio.in.h (fseeko): Use modern idiom.
31036         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31037         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31038         is missing and that it needs to be replaced.
31039         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31041         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31042
31043 2010-04-03  Bruno Haible  <bruno@clisp.org>
31044
31045         mkstemp: Fix C++ test error on mingw.
31046         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31047         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31048         function is missing and that it needs to be replaced.
31049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31050         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31051
31052 2010-04-03  Bruno Haible  <bruno@clisp.org>
31053
31054         stpncpy: Fix C++ test error on mingw.
31055         * lib/string.in.h (stpncpy): Use modern idiom.
31056         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31057         function is missing and that it needs to be replaced.
31058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31059         REPLACE_STPNCPY.
31060         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31061
31062 2010-04-03  Bruno Haible  <bruno@clisp.org>
31063
31064         sys_stat: Fix C++ test error on mingw.
31065         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31066         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31067
31068 2010-04-03  Bruno Haible  <bruno@clisp.org>
31069
31070         pty: Update doc.
31071         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31072
31073 2010-04-03  Bruno Haible  <bruno@clisp.org>
31074
31075         unistd: Fix C++ test error on mingw.
31076         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31077
31078 2010-04-03  Bruno Haible  <bruno@clisp.org>
31079
31080         Update doc regarding mingw.
31081         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31082         * doc/glibc-functions/login_tty.texi: Likewise.
31083         * doc/glibc-functions/forkpty.texi: Likewise.
31084
31085 2010-04-03  Bruno Haible  <bruno@clisp.org>
31086
31087         stdlib: Avoid compilation failure of c-strtold on mingw.
31088         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31089
31090 2010-04-03  Bruno Haible  <bruno@clisp.org>
31091
31092         locale: Make C++ tests work on Cygwin and mingw.
31093         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31094         cannot provide the function.
31095         Reported by Simon Josefsson.
31096
31097 2010-04-03  Bruno Haible  <bruno@clisp.org>
31098
31099         localename: Port to MacOS X 10.6.
31100         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31101         memory layout of the locales in MacOS X 10.6 as well.
31102         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31103
31104 2010-04-02  Bruno Haible  <bruno@clisp.org>
31105
31106         gnulib-tool: Ensure that long-running tests are executed last.
31107         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31108         running tests after the one for the other tests.
31109
31110 2010-04-02  Bruno Haible  <bruno@clisp.org>
31111
31112         gnulib-tool: Ensure the tests in the main directory are executed first.
31113         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31114         start with the current directory.
31115
31116 2010-04-02  Bruno Haible  <bruno@clisp.org>
31117
31118         Tests for module 'havelib', moved here from GNU gettext.
31119         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31120         modifications.
31121         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31122         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31123         with modifications.
31124         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31125         modifications.
31126         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31127         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31128         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31129         with modifications.
31130         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31131         with modifications.
31132         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31133         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31134         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31135         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31136         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31137         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31138         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31139         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31140         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31141         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31142         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31143         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31144         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31145         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31146         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31147         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31148         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31149         with modifications.
31150         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31151         with modifications.
31152         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31153         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31154         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31155         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31156         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31157         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31158         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31159         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31160         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31161         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31162         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31163         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31164         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31165         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31166         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31167         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31168         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31169         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31170         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31171         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31172         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31173         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31174         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31175         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31176         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31177         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31178         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31179         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31180         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31181         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31182         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31183         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31184         * tests/havelib/rpathx/rpathx.c: New file, from
31185         gettext/autoconf-lib-link.
31186         * tests/havelib/rpathx/Makefile.am: New file, from
31187         gettext/autoconf-lib-link.
31188         * tests/havelib/rpathx/configure.ac: New file, from
31189         gettext/autoconf-lib-link with modifications.
31190         * tests/havelib/rpathy/rpathy.c: New file, from
31191         gettext/autoconf-lib-link.
31192         * tests/havelib/rpathy/Makefile.am: New file, from
31193         gettext/autoconf-lib-link.
31194         * tests/havelib/rpathy/configure.ac: New file, from
31195         gettext/autoconf-lib-link with modifications.
31196         * tests/havelib/rpathz/rpathz.c: New file, from
31197         gettext/autoconf-lib-link.
31198         * tests/havelib/rpathz/Makefile.am: New file, from
31199         gettext/autoconf-lib-link.
31200         * tests/havelib/rpathz/configure.ac: New file, from
31201         gettext/autoconf-lib-link with modifications.
31202         * tests/havelib/rpathlx/usex.c: New file, from
31203         gettext/autoconf-lib-link.
31204         * tests/havelib/rpathlx/Makefile.am: New file, from
31205         gettext/autoconf-lib-link.
31206         * tests/havelib/rpathlx/configure.ac: New file, from
31207         gettext/autoconf-lib-link with modifications.
31208         * tests/havelib/rpathly/usey.c: New file, from
31209         gettext/autoconf-lib-link.
31210         * tests/havelib/rpathly/Makefile.am: New file, from
31211         gettext/autoconf-lib-link.
31212         * tests/havelib/rpathly/configure.ac: New file, from
31213         gettext/autoconf-lib-link with modifications.
31214         * tests/havelib/rpathlz/usez.c: New file, from
31215         gettext/autoconf-lib-link.
31216         * tests/havelib/rpathlz/Makefile.am: New file, from
31217         gettext/autoconf-lib-link.
31218         * tests/havelib/rpathlz/configure.ac: New file, from
31219         gettext/autoconf-lib-link with modifications.
31220         * tests/havelib/rpathlyx/usey.c: New file, from
31221         gettext/autoconf-lib-link.
31222         * tests/havelib/rpathlyx/Makefile.am: New file, from
31223         gettext/autoconf-lib-link.
31224         * tests/havelib/rpathlyx/configure.ac: New file, from
31225         gettext/autoconf-lib-link with modifications.
31226         * tests/havelib/rpathlzyx/usez.c: New file, from
31227         gettext/autoconf-lib-link.
31228         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31229         gettext/autoconf-lib-link.
31230         * tests/havelib/rpathlzyx/configure.ac: New file, from
31231         gettext/autoconf-lib-link with modifications.
31232         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31233         with modifications.
31234
31235 2010-04-02  Bruno Haible  <bruno@clisp.org>
31236
31237         gnulib-tool: Create distributed built sources also for the tests.
31238         * gnulib-tool (func_create_testdir): Also generate distributed built
31239         sources in the tests directory.
31240
31241 2010-04-02  Bruno Haible  <bruno@clisp.org>
31242
31243         gnulib-tool: Obey user's environment variables.
31244         * gnulib-tool (func_create_testdir): When creating built sources,
31245         respect the environment variables for autoconf, automake, etc. given by
31246         the user.
31247
31248 2010-04-02  Bruno Haible  <bruno@clisp.org>
31249
31250         gnulib-tool: Provide the value of --m4-base to modules.
31251         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31252         of gl_m4_base.
31253
31254 2010-04-02  Eric Blake  <eblake@redhat.com>
31255
31256         maint.mk: fix some fallout
31257         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31258         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31259
31260 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31261
31262         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31263         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31264         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31265         (sc_cast_of_x_alloc_return_value): Likewise.
31266         (sc_cast_of_alloca_return_value): Likewise.
31267         (sc_space_tab): Likewise.
31268         (sc_prohibit_atoi_atof): Likewise.
31269         (sc_prohibit_magic_number_exit): Likewise.
31270         (sc_error_exit_success): Likewise.
31271         (sc_file_system): Likewise.
31272         (sc_prohibit_have_config_h): Likewise.
31273         (sc_require_config_h): Likewise.
31274         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31275         (sc_obsolete_symbols): Likewise.
31276         (sc_changelog): Likewise.
31277         (sc_program_name): Likewise.
31278         (sc_the_the): Likewise.
31279         (sc_trailing_blank): Likewise.
31280         (sc_two_space_separator_in_usage): Likewise.
31281         (sc_useless_cpp_parens): Likewise.
31282         (sc_GPL_version): Likewise.
31283         (sc_GFDL_version): Likewise.
31284         (sc_texinfo_acronym): Likewise.
31285         (sc_prohibit_cvs_keyword): Likewise.
31286         (sc_prohibit_stat_st_blocks): Likewise.
31287         (sc_prohibit_S_IS_definition): Likewise.
31288         (sc_redundant_const): Likewise.
31289         (sc_makefile_TAB_only_indentation): Likewise.
31290         (sc_m4_quote_check): Likewise.
31291         (sc_makefile_path_separator_check): Likewise.
31292         (sc_copyright_check): Likewise.
31293         (sc_Wundef_boolean): Likewise.
31294         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31295
31296         maint.mk: match 0 or more whitespace-before-function-call '('
31297         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31298         that have zero or two-and-more spaces between the function name
31299         and the open parenthesis.
31300         (sc_error_message_warn_fatal): Likewise.
31301         (sc_error_message_uppercase): Likewise.
31302         (sc_error_message_period): Likewise.
31303
31304 2010-03-31  Eric Blake  <eblake@redhat.com>
31305
31306         maint.mk: check for [ as well as test
31307         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31308         Based on a libvirt report by Matthias Bolte.
31309
31310         gnumakefile: don't squelch _version output
31311         * top/GNUmakefile (_version): Create one-shot dependency rather
31312         than using $(shell) when version must be regenerated.
31313         (_autoreconf): Run verbosely, by default.
31314
31315         sys_time: avoid compiler warnings
31316         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31317         unconditional, fixing regression from 2010-03-29.
31318         Reported by Simon Josefsson.
31319
31320 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31321
31322         maint.mk: s/_header_without_use/_sc_header_without_use/
31323         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31324         (sc_prohibit_assert_without_use): Use the new name.
31325         (sc_prohibit_close_stream_without_use): Likewise.
31326         (sc_prohibit_getopt_without_use): Likewise.
31327         (sc_prohibit_quotearg_without_use): Likewise.
31328         (sc_prohibit_quote_without_use): Likewise.
31329         (sc_prohibit_long_options_without_use): Likewise.
31330         (sc_prohibit_inttostr_without_use): Likewise.
31331         (sc_prohibit_ignore_value_without_use): Likewise.
31332         (sc_prohibit_error_without_use): Likewise.
31333         (sc_prohibit_xalloc_without_use): Likewise.
31334         (sc_prohibit_hash_without_use): Likewise.
31335         (sc_prohibit_hash_pjw_without_use): Likewise.
31336         (sc_prohibit_safe_read_without_use): Likewise.
31337         (sc_prohibit_argmatch_without_use): Likewise.
31338         (sc_prohibit_canonicalize_without_use): Likewise.
31339         (sc_prohibit_root_dev_ino_without_use): Likewise.
31340         (sc_prohibit_openat_without_use): Likewise.
31341         (sc_prohibit_c_ctype_without_use): Likewise.
31342         (sc_prohibit_signal_without_use): Likewise.
31343         (sc_prohibit_intprops_without_use): Likewise.
31344
31345 2010-03-30  Eric Blake  <eblake@redhat.com>
31346
31347         maint: improve module indicators
31348         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31349         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31350         columns, and avoid extra macro expansion.
31351
31352         fdopendir: work around FreeBSD bug
31353         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31354         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31355         * modules/dirent (Makefile.am): Substitute it.
31356         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31357         declaration.
31358         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31359         fix.
31360         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31361
31362 2010-03-29  Bruno Haible  <bruno@clisp.org>
31363
31364         Emit #pragma system_header after the inclusion guard, not before.
31365         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31366         guard that spans the entire file, not before. This enables an
31367         optimization in GCC's preprocessor.
31368         * lib/ctype.in.h: Likewise.
31369         * lib/dirent.in.h: Likewise.
31370         * lib/errno.in.h: Likewise.
31371         * lib/float.in.h: Likewise.
31372         * lib/getopt.in.h: Likewise.
31373         * lib/iconv.in.h: Likewise.
31374         * lib/langinfo.in.h: Likewise.
31375         * lib/locale.in.h: Likewise.
31376         * lib/math.in.h: Likewise.
31377         * lib/netdb.in.h: Likewise.
31378         * lib/netinet_in.in.h: Likewise.
31379         * lib/pty.in.h: Likewise.
31380         * lib/sched.in.h: Likewise.
31381         * lib/se-selinux.in.h: Likewise.
31382         * lib/search.in.h: Likewise.
31383         * lib/spawn.in.h: Likewise.
31384         * lib/stdarg.in.h: Likewise.
31385         * lib/stdint.in.h: Likewise.
31386         * lib/string.in.h: Likewise.
31387         * lib/strings.in.h: Likewise.
31388         * lib/sys_file.in.h: Likewise.
31389         * lib/sys_ioctl.in.h: Likewise.
31390         * lib/sys_time.in.h: Likewise.
31391         * lib/sys_times.in.h: Likewise.
31392         * lib/sys_utsname.in.h: Likewise.
31393         * lib/sys_wait.in.h: Likewise.
31394         * lib/sysexits.in.h: Likewise.
31395         * lib/wctype.in.h: Likewise.
31396
31397 2010-03-28  James Youngman  <jay@gnu.org>
31398
31399         save-cwd: don't leak a file descriptor when the caller execs.
31400         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31401         saved file descriptor.
31402         * modules/save-cwd (Depends-on): Depend on cloexec.
31403
31404 2010-03-29  Bruno Haible  <bruno@clisp.org>
31405
31406         Remove vestiges of fts-lgpl module.
31407         * lib/fts_.h: Assume GNULIB_FTS is 1.
31408         * lib/fts.c: Likewise.
31409         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31410
31411 2010-03-28  Bruno Haible  <bruno@clisp.org>
31412
31413         Fix definition of tests witness macro.
31414         * gnulib-tool (func_import): Fix definition of witness macro.
31415
31416 2010-03-28  Bruno Haible  <bruno@clisp.org>
31417
31418         Fix ioctl's protoype on glibc systems.
31419         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31420         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31421         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31422         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31423         signature. If not, arrange to replace the ioctl function.
31424         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31425         REPLACE_IOCTL.
31426         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31427         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31428         Reported by Ludovic Courtès <ludo@gnu.org>.
31429
31430 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31431
31432         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31433         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31434         made it so grep -r --include=GLOB* ... did not work.
31435
31436 2010-03-26  Jim Meyering  <meyering@redhat.com>
31437             Eric Blake  <eblake@redhat.com>
31438
31439         maint.mk: prohibit use of test's -o and -a operators
31440         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31441
31442 2010-03-28  Bruno Haible  <bruno@clisp.org>
31443
31444         Remove unused GNULIB_XYZ macro definitions.
31445         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31446         invocation.
31447
31448 2010-03-28  Bruno Haible  <bruno@clisp.org>
31449
31450         Mark privileged tests modules.
31451         * modules/idpriv-drop-tests (Status): New section.
31452         * modules/idpriv-droptemp-tests (Status): New section.
31453
31454 2010-03-28  Bruno Haible  <bruno@clisp.org>
31455
31456         Split C++ tests into separate tests modules.
31457         * modules/dirent-c++-tests: New file, extracted from
31458         modules/dirent-tests.
31459         * modules/dirent-tests: Depend on it.
31460         * modules/fcntl-h-c++-tests: New file, extracted from
31461         modules/fcntl-h-tests.
31462         * modules/fcntl-h-tests: Depend on it.
31463         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31464         * modules/glob-tests: Depend on it.
31465         * modules/iconv-h-c++-tests: New file, extracted from
31466         modules/iconv-h-tests.
31467         * modules/iconv-h-tests: Depend on it.
31468         * modules/langinfo-c++-tests: New file, extracted from
31469         modules/langinfo-tests.
31470         * modules/langinfo-tests: Depend on it.
31471         * modules/locale-c++-tests: New file, extracted from
31472         modules/locale-tests.
31473         * modules/locale-tests: Depend on it.
31474         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31475         * modules/math-tests: Depend on it.
31476         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31477         * modules/pty-tests: Depend on it.
31478         * modules/search-c++-tests: New file, extracted from
31479         modules/search-tests.
31480         * modules/search-tests: Depend on it.
31481         * modules/signal-c++-tests: New file, extracted from
31482         modules/signal-tests.
31483         * modules/signal-tests: Depend on it.
31484         * modules/spawn-c++-tests: New file, extracted from
31485         modules/spawn-tests.
31486         * modules/spawn-tests: Depend on it.
31487         * modules/stdio-c++-tests: New file, extracted from
31488         modules/stdio-tests.
31489         * modules/stdio-tests: Depend on it.
31490         * modules/stdlib-c++-tests: New file, extracted from
31491         modules/stdlib-tests.
31492         * modules/stdlib-tests: Depend on it.
31493         * modules/string-c++-tests: New file, extracted from
31494         modules/string-tests.
31495         * modules/string-tests: Depend on it.
31496         * modules/sys_ioctl-c++-tests: New file, extracted from
31497         modules/sys_ioctl-tests.
31498         * modules/sys_ioctl-tests: Depend on it.
31499         * modules/sys_select-c++-tests: New file, extracted from
31500         modules/sys_select-tests.
31501         * modules/sys_select-tests: Depend on it.
31502         * modules/sys_socket-c++-tests: New file, extracted from
31503         modules/sys_socket-tests.
31504         * modules/sys_socket-tests: Depend on it.
31505         * modules/sys_stat-c++-tests: New file, extracted from
31506         modules/sys_stat-tests.
31507         * modules/sys_stat-tests: Depend on it.
31508         * modules/sys_time-c++-tests: New file, extracted from
31509         modules/sys_time-tests.
31510         * modules/sys_time-tests: Depend on it.
31511         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31512         * modules/time-tests: Depend on it.
31513         * modules/unistd-c++-tests: New file, extracted from
31514         modules/unistd-tests.
31515         * modules/unistd-tests: Depend on it.
31516         * modules/wchar-c++-tests: New file, extracted from
31517         modules/wchar-tests.
31518         * modules/wchar-tests: Depend on it.
31519         * modules/wctype-c++-tests: New file, extracted from
31520         modules/wctype-tests.
31521         * modules/wctype-tests: Depend on it.
31522         Reported by Simon Josefsson.
31523
31524 2010-03-28  Bruno Haible  <bruno@clisp.org>
31525
31526         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31527         * gnulib-tool (func_exists_module): New function, extracted from
31528         func_verify_module.
31529         (func_verify_module): Use it.
31530         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31531         'foo' only if 'foo' exists.
31532         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31533         module.
31534
31535 2010-03-28  Bruno Haible  <bruno@clisp.org>
31536
31537         gnulib-tool: Add support for special categories of tests.
31538         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31539         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31540         (func_usage): Document them.
31541         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31542         inc_unportable_tests, inc_all_tests): New variables.
31543         (func_acceptable): Consider these variables.
31544         (func_modules_transitive_closure): Make it work when the 'Status' field
31545         consists of multiple words.
31546         (func_import): Store and restore the values of inc_cxx_tests,
31547         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31548         inc_all_tests in gnulib-comp.m4.
31549         (func_create_testdir): Set inc_all_tests to true.
31550         * doc/gnulib.texi (Extra tests modules): New section.
31551         Suggested by Jim Meyering.
31552
31553 2010-03-28  Bruno Haible  <bruno@clisp.org>
31554
31555         ansi-c++-opt: Allow turning off the C++ build by default.
31556         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31557         gl_CXX_CHOICE_DEFAULT_NO is defined.
31558         Requested by Eric Blake.
31559
31560 2010-03-28  Bruno Haible  <bruno@clisp.org>
31561
31562         unistd: Avoid #define replacements in C++ mode.
31563         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31564         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31565         setsockopt, shutdown, select): In C++, attach a warning to the function
31566         if possible, rather than #defining the symbol to a dysfunctional alias.
31567         Reported by John W. Eaton <jwe@gnu.org>.
31568
31569 2010-03-28  Bruno Haible  <bruno@clisp.org>
31570
31571         Fix link errors on mingw.
31572         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31573         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31574         $(LIBSOCKET).
31575         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31576         $(LIBSOCKET).
31577
31578 2010-03-28  Bruno Haible  <bruno@clisp.org>
31579             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31580
31581         lib-ignore: Determine different options for different compilers.
31582         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31583         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31584         Add comments.
31585         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31586         * NEWS: Mention the change.
31587
31588 2010-03-27  Bruno Haible  <bruno@clisp.org>
31589
31590         Remove unused GNULIB_XYZ macro definitions.
31591         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31592         * modules/fseek (configure.ac): Likewise.
31593         * modules/ioctl (configure.ac): Likewise.
31594         * modules/open (configure.ac): Likewise.
31595         * modules/stdlib-safer (configure.ac): Likewise.
31596
31597 2010-03-27  Bruno Haible  <bruno@clisp.org>
31598
31599         Add a remark about certain modules.
31600         * modules/malloc (Comment): New section.
31601         * modules/realloc (Comment): Likewise.
31602         * modules/sigpipe (Comment): Likewise.
31603
31604 2010-03-27  Bruno Haible  <bruno@clisp.org>
31605
31606         Resolve conflict between the two kinds of module indicators.
31607         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31608         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31609         * modules/canonicalize (configure.ac): Invoke
31610         gl_MODULE_INDICATOR_FOR_TESTS.
31611         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31612         GNULIB_XYZ.
31613         * tests/test-dirent-c++.cc: Likewise.
31614         * tests/test-dirent-safer.c: Likewise.
31615         * tests/test-dup2.c: Likewise.
31616         * tests/test-fchdir.c: Likewise.
31617         * tests/test-fcntl-h-c++.cc: Likewise.
31618         * tests/test-getopt.c: Likewise.
31619         * tests/test-getopt.h: Likewise.
31620         * tests/test-langinfo-c++.cc: Likewise.
31621         * tests/test-locale-c++.cc: Likewise.
31622         * tests/test-math-c++.cc: Likewise.
31623         * tests/test-pty-c++.cc: Likewise.
31624         * tests/test-search-c++.cc: Likewise.
31625         * tests/test-signal-c++.cc: Likewise.
31626         * tests/test-spawn-c++.cc: Likewise.
31627         * tests/test-stdio-c++.cc: Likewise.
31628         * tests/test-stdlib-c++.cc: Likewise.
31629         * tests/test-string-c++.cc: Likewise.
31630         * tests/test-sys_ioctl-c++.cc: Likewise.
31631         * tests/test-sys_select-c++.cc: Likewise.
31632         * tests/test-sys_socket-c++.cc: Likewise.
31633         * tests/test-sys_stat-c++.cc: Likewise.
31634         * tests/test-sys_time-c++.cc: Likewise.
31635         * tests/test-time-c++.cc: Likewise.
31636         * tests/test-unistd-c++.cc: Likewise.
31637         * tests/test-wchar-c++.cc: Likewise.
31638         * tests/uninorm/test-u8-nfc.c: Likewise.
31639         * tests/uninorm/test-u8-nfd.c: Likewise.
31640         * tests/uninorm/test-u8-nfkc.c: Likewise.
31641         * tests/uninorm/test-u8-nfkd.c: Likewise.
31642         * tests/uninorm/test-u16-nfc.c: Likewise.
31643         * tests/uninorm/test-u16-nfd.c: Likewise.
31644         * tests/uninorm/test-u16-nfkc.c: Likewise.
31645         * tests/uninorm/test-u16-nfkd.c: Likewise.
31646         * tests/uninorm/test-u32-nfc.c: Likewise.
31647         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31648         * tests/uninorm/test-u32-nfd.c: Likewise.
31649         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31650         * tests/uninorm/test-u32-nfkc.c: Likewise.
31651         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31652         * tests/uninorm/test-u32-nfkd.c: Likewise.
31653         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31654         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31655
31656 2010-03-27  Bruno Haible  <bruno@clisp.org>
31657
31658         Distinguish two kinds of module indicators.
31659         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31660         gl_MODULE_INDICATOR.
31661         (gl_MODULE_INDICATOR): New macro.
31662         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31663         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31664         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31665         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31666         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31667         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31668         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31669         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31670         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31671         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31672         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31673         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31674         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31675         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31676         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31677         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31678         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31679         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31680         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31681         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31682         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31683         * modules/cloexec (configure.ac): Likewise.
31684         * modules/getopt-gnu (configure.ac): Likewise.
31685         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31686         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31687         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31688         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31689
31690 2010-03-27  Bruno Haible  <bruno@clisp.org>
31691
31692         New module description field 'Comment'.
31693         * gnulib-tool: New option --extract-comment.
31694         (func_usage): Document it.
31695         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31696         (func_get_comment): New function.
31697         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31698
31699 2010-03-27  Bruno Haible  <bruno@clisp.org>
31700
31701         Addendum to 2010-02-07 commit.
31702         * gnulib-tool (func_usage): Document --extract-applicability option.
31703
31704 2010-03-27  Bruno Haible  <bruno@clisp.org>
31705
31706         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31707         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31708         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31709         rather than link errors.
31710
31711 2010-03-27  Bruno Haible  <bruno@clisp.org>
31712
31713         Avoid side effects from tests-related modules on the compilation of lib.
31714         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31715         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31716         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31717         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31718         macro.
31719         (func_import): Define a witness macro. Assign it a value that depends
31720         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31721         tests-related modules.
31722         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31723         Reported by Jim Meyering.
31724
31725 2010-03-27  Bruno Haible  <bruno@clisp.org>
31726
31727         Factorize common .m4 code.
31728         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31729         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31730         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31731         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31732         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31733         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31734         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31735         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31736         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31737         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31738         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31739         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31740         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31741         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31742         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31743         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31744         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31745         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31747         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31748         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31749         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31750         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31751         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31752         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31753         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31754         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31755         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31756         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31757         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31758         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31759         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31760
31761 2010-03-27  Bruno Haible  <bruno@clisp.org>
31762
31763         Fix a compilation error on Cygwin with g++ >= 4.3.
31764         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31765         if it is undefined or if we alias it to chmod.
31766         (lstat): Don't warn about the use of this function if it is undefined
31767         or if we alias it to stat.
31768         Reported by Simon Josefsson.
31769
31770 2010-03-27  Bruno Haible  <bruno@clisp.org>
31771
31772         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31773         * modules/getlogin (configure.ac): Update.
31774
31775         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31776         * modules/getlogin_r (configure.ac): Update.
31777
31778         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31780         * modules/inet_ntop (configure.ac): Update.
31781
31782         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31783         * modules/inet_pton (configure.ac): Update.
31784
31785         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31786         * modules/mbslen (configure.ac): Update.
31787
31788         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31789         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31790         * modules/forkpty (configure.ac): Update.
31791         * modules/openpty (configure.ac): Update.
31792
31793 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31794
31795         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31796         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31797
31798 2010-03-25  Eric Blake  <eblake@redhat.com>
31799
31800         maint: use pragma consistently across replacement headers
31801         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31802         * lib/dirent.in.h (system_header): Likewise.
31803         * lib/errno.in.h (system_header): Likewise.
31804         * lib/float.in.h (system_header): Likewise.
31805         * lib/getopt.in.h (system_header): Likewise.
31806         * lib/iconv.in.h (system_header): Likewise.
31807         * lib/inttypes.in.h (system_header): Likewise.
31808         * lib/langinfo.in.h (system_header): Likewise.
31809         * lib/locale.in.h (system_header): Likewise.
31810         * lib/math.in.h (system_header): Likewise.
31811         * lib/netdb.in.h (system_header): Likewise.
31812         * lib/netinet_in.in.h (system_header): Likewise.
31813         * lib/pty.in.h (system_header): Likewise.
31814         * lib/sched.in.h (system_header): Likewise.
31815         * lib/se-selinux.in.h (system_header): Likewise.
31816         * lib/search.in.h (system_header): Likewise.
31817         * lib/spawn.in.h (system_header): Likewise.
31818         * lib/stdarg.in.h (system_header): Likewise.
31819         * lib/stdint.in.h (system_header): Likewise.
31820         * lib/string.in.h (system_header): Likewise.
31821         * lib/strings.in.h (system_header): Likewise.
31822         * lib/sys_file.in.h (system_header): Likewise.
31823         * lib/sys_ioctl.in.h (system_header): Likewise.
31824         * lib/sys_socket.in.h (system_header): Likewise.
31825         * lib/sys_times.in.h (system_header): Likewise.
31826         * lib/sys_utsname.in.h (system_header): Likewise.
31827         * lib/sys_wait.in.h (system_header): Likewise.
31828         * lib/sysexits.in.h (system_header): Likewise.
31829         * lib/unistd.in.h (system_header): Likewise.
31830         * lib/wctype.in.h (system_header): Likewise.
31831
31832         arpa/inet: fix mingw compilation warning
31833         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31834         Reported by Matthew Bolte.
31835
31836 2010-03-25  Bruno Haible  <bruno@clisp.org>
31837
31838         Avoid collision between gnulib wrapper and libintl wrapper.
31839         * lib/printf.c (printf): Don't define if a printf wrapper is already
31840         defined in intl/printf.c.
31841         Reported by Michel Boaventura <michel@michelboaventura.com>.
31842
31843 2010-03-25  Bruno Haible  <bruno@clisp.org>
31844
31845         Use ANSI C.
31846         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31847
31848 2010-03-25  Bruno Haible  <bruno@clisp.org>
31849
31850         Minor formatting changes.
31851         * lib/acosl.c: Insert space before function argument list.
31852         * lib/argz.c: Likewise.
31853         * lib/asinl.c: Likewise.
31854         * lib/expl.c: Likewise.
31855         * lib/gen-uni-tables.c: Likewise.
31856         * lib/gettext.h: Likewise.
31857         * lib/glthread/lock.h: Likewise.
31858         * lib/tanl.c: Likewise.
31859         * lib/uniname/uniname.c: Likewise.
31860         * tests/test-idpriv-drop.c: Likewise.
31861         * tests/test-idpriv-droptemp.c: Likewise.
31862         * tests/test-lock.c: Likewise.
31863         * tests/test-tls.c: Likewise.
31864         * lib/argp-help.c: Insert space before function-like macro argument
31865         list.
31866         * lib/memcmp.c: Likewise.
31867         * tests/test-base64.c: Likewise.
31868         * lib/localename.c: Insert space before sizeof's argument list.
31869         * lib/safe-alloc.h: Likewise.
31870         * lib/file-set.h: Insert space before macro argument list.
31871         * tests/test-argp.c: Likewise.
31872         * lib/argp-namefrob.h: Insert space before function parameter list.
31873         * lib/getaddrinfo.c: Likewise.
31874         * lib/netdb.in.h: Likewise.
31875         * lib/parse-duration.h: Likewise.
31876         * lib/parse-duration.c: Likewise.
31877         * lib/poll.c: Likewise.
31878         * lib/select.c: Likewise.
31879         * lib/trim.h: Likewise.
31880         * tests/test-usleep.c: Likewise.
31881         * lib/ldexpl.c: Insert space before function parameter list and before
31882         function argument list.
31883         * lib/logl.c: Likewise.
31884         * lib/sqrtl.c: Likewise.
31885         * lib/trim.c: Likewise.
31886         * lib/cosl.c: Use GNU style indentation. Insert space before function
31887         argument list.
31888         * lib/sinl.c: Likewise.
31889         * lib/tsearch.c: Insert space after 'for'.
31890         Reported by Jim Meyering.
31891
31892 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31893
31894         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31895         config header before grepping, as it's not present before
31896         autoreconf/configure are run.  Reported by Simon Josefsson.
31897
31898 2010-03-23  Bruno Haible  <bruno@clisp.org>
31899
31900         pt_chown: Make it work with automake < 1.11.
31901         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31902         Reported by Simon Josefsson.
31903
31904 2010-03-23  Bruno Haible  <bruno@clisp.org>
31905
31906         pt_chown: Don't depend on GPLed modules.
31907         * lib/pt_chown.c: Don't include idpriv.h.
31908         (main): Don't drop privileges.
31909         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31910         Reported by Simon Josefsson.
31911
31912 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31913
31914         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31915         suggestions from karl@freefriends.org (Karl Berry).
31916
31917 2010-03-22  Eric Blake  <eblake@redhat.com>
31918
31919         gethostname: further tweaks
31920         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31921         are overriding gethostname.
31922         Suggested by Bruno Haible.
31923
31924 2010-03-21  Bruno Haible  <bruno@clisp.org>
31925
31926         Fix comments.
31927         * lib/forkpty.c (rpl_forkpty): Fix comment.
31928         * lib/openpty.c (rpl_openpty): Likewise.
31929         Reported by Eric Blake.
31930
31931 2010-03-22  Eric Blake  <eblake@redhat.com>
31932
31933         gethostname: fix build on mingw
31934         * lib/unistd.in.h (includes): Work around fact that mingw
31935         <winsock2.h> re-includes <unistd.h>, by avoiding any
31936         redeclarations if we are being included by <winsock2.h>.
31937         Reported by Matthias Bolte.
31938
31939 2010-03-21  Bruno Haible  <bruno@clisp.org>
31940
31941         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31942         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31943         modifications.
31944         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31945         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31946         provide the replacement.
31947         * modules/forkpty (Depends-on): Add openpty, login_tty.
31948         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31949         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31950         * doc/glibc-functions/forkpty.texi: More supported platforms.
31951         * config/srclist.txt: Add forkpty.c (commented).
31952
31953 2010-03-21  Bruno Haible  <bruno@clisp.org>
31954
31955         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31956         (Makefile.am): Verify that PTY_LIB is defined.
31957
31958         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31959
31960 2010-03-21  Bruno Haible  <bruno@clisp.org>
31961
31962         Tests for module 'login_tty'.
31963         * modules/login_tty-tests: New file.
31964         * tests/test-login_tty.c: New file.
31965
31966         New module 'login_tty'.
31967         * lib/login_tty.c: New file.
31968         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31969         * modules/login_tty: New file.
31970         * doc/glibc-functions/login_tty.texi: Mention the new module.
31971
31972 2010-03-21  Bruno Haible  <bruno@clisp.org>
31973
31974         login_tty: Documentation.
31975         * doc/glibc-functions/login_tty.texi: New file.
31976         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31977
31978 2010-03-21  Bruno Haible  <bruno@clisp.org>
31979
31980         pty: Consistent macro naming.
31981         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31982         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31983         * modules/pty (configure.ac): Update.
31984
31985 2010-03-21  Bruno Haible  <bruno@clisp.org>
31986
31987         Tests for openpty: Make stricter.
31988         * tests/test-openpty.c (main): Add test of canonical processing and
31989         erase.
31990         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31991
31992         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31993         * lib/openpty.c (openpty): New replacement function.
31994         * lib/pty.in.h: Include <termios.h>.
31995         (openpty): Update declaration. Add comments.
31996         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31997         is not declared, arrange to provide the replacement. Check for _getpty
31998         and posix_openpt.
31999         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32000         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32001         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32002         * modules/pty-tests (test_pty_c___LDADD): New variable.
32003         * doc/glibc-functions/openpty.texi: More supported platforms.
32004
32005 2010-03-21  Bruno Haible  <bruno@clisp.org>
32006
32007         setenv: Tweaks.
32008         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32009         the test program.
32010         * doc/posix-functions/setenv.texi: Update platforms list.
32011
32012 2010-03-21  Bruno Haible  <bruno@clisp.org>
32013
32014         New module 'unlockpt'.
32015         * lib/unlockpt.c: New file, from glibc with modifications.
32016         * m4/unlockpt.m4: New file.
32017         * modules/unlockpt: New file.
32018         * lib/stdlib.in.h (unlockpt): New declaration.
32019         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32020         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32021         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32022         HAVE_UNLOCKPT.
32023         * doc/posix-functions/unlockpt.texi: Mention the new module.
32024         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32025         * config/srclist.txt: Add unlockpt.c (commented).
32026
32027 2010-03-21  Jim Meyering  <meyering@redhat.com>
32028
32029         maint.mk: prohibit inclusion of "intprops.h" without use
32030         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32031
32032 2010-03-21  Bruno Haible  <bruno@clisp.org>
32033
32034         New module 'grantpt'.
32035         * lib/grantpt.c: New file, from glibc with modifications.
32036         * m4/grantpt.m4: New file.
32037         * modules/grantpt: New file.
32038         * lib/stdlib.in.h (grantpt): New declaration.
32039         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32040         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32041         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32042         HAVE_GRANTPT.
32043         * doc/posix-functions/grantpt.texi: Mention the new module.
32044         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32045         * config/srclist.txt: Add grantpt.c (commented).
32046
32047 2010-03-21  Bruno Haible  <bruno@clisp.org>
32048
32049         New module 'pt_chown'.
32050         * lib/pt_chown.c: New file, from glibc with modifications.
32051         * lib/pty-private.h: New file, from glibc with modifications.
32052         * modules/pt_chown: New file.
32053         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32054
32055 2010-03-21  Bruno Haible  <bruno@clisp.org>
32056
32057         Tests for module 'ptsname'.
32058         * modules/ptsname-tests: New file.
32059         * tests/test-ptsname.c: New file.
32060
32061         New module 'ptsname'.
32062         * lib/ptsname.c: New file, from glibc with modifications.
32063         * m4/ptsname.m4: New file.
32064         * modules/ptsname: New file.
32065         * lib/stdlib.in.h (ptsname): New declaration.
32066         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32067         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32068         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32069         HAVE_PTSNAME.
32070         * doc/posix-functions/ptsname.texi: Mention the new module.
32071         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32072         * config/srclist.txt: Add ptsname.c (commented).
32073
32074 2010-03-21  Bruno Haible  <bruno@clisp.org>
32075
32076         Tests for module 'ttyname_r'.
32077         * modules/ttyname_r-tests: New file.
32078         * tests/test-ttyname_r.c: New file.
32079
32080         New module 'ttyname_r'.
32081         * lib/ttyname_r.c: New file.
32082         * m4/ttyname_r.m4: New file.
32083         * modules/ttyname_r: New file.
32084         * lib/unistd.in.h (ttyname_r): New declaration.
32085         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32086         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32087         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32088         HAVE_TTYNAME_R.
32089         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32090         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32091
32092 2010-03-20  Bruno Haible  <bruno@clisp.org>
32093
32094         signal: Undefine macro definitions in C++ mode.
32095         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32096         sigfillset): Undefine macro definitions from the system header in C++
32097         mode.
32098         Reported by John W. Eaton <jwe@gnu.org>.
32099
32100 2010-03-20  Bruno Haible  <bruno@clisp.org>
32101
32102         Ensure no #include statements inside extern "C" { ... }.
32103         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32104         contain #include statements.
32105         * lib/time.in.h: Likewise.
32106
32107 2010-03-20  Bruno Haible  <bruno@clisp.org>
32108
32109         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32110         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32111         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32112         Reported by John W. Eaton <jwe@gnu.org>.
32113
32114 2010-03-20  Bruno Haible  <bruno@clisp.org>
32115
32116         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32117         Reported by Jim Meyering.
32118
32119 2010-03-20  Bruno Haible  <bruno@clisp.org>
32120
32121         pipe: Set errno upon failure.
32122         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32123         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32124         errno value in error message.
32125
32126 2010-03-20  Bruno Haible  <bruno@clisp.org>
32127             Jim Meyering  <meyering@redhat.com>
32128
32129         lchown: Avoid "unused variable" warning.
32130         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32131
32132 2010-03-20  Bruno Haible  <bruno@clisp.org>
32133
32134         Work around unlink() bug on MacOS X 10.5.6.
32135         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32136         attempting to unlink a parent directory.
32137         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32138         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32139         activate for the replacement function.
32140         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32141
32142 2010-03-20  Bruno Haible  <bruno@clisp.org>
32143
32144         Fix link errors on Solaris 8.
32145         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32146         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32147
32148 2010-03-19  Jim Meyering  <meyering@redhat.com>
32149
32150         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32151         The _LIBC implementation of build_range_exp correctly honors the
32152         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32153         However, the non-_LIBC implementation would ignore that syntax-bit
32154         flag and return REG_ERANGE unconditionally.
32155         This change makes it honor that flag.
32156         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32157         Make two pointer parameters "const".
32158         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32159         (parse_bracket_exp): Update caller.
32160
32161         regex.m4: correct the reversed range endpoint ([b-a]) test
32162         * m4/regex.m4: When requiring that [b-a] evoke failure,
32163         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32164         test pass once again for x86-based systems.
32165
32166 2010-03-19  Bruno Haible  <bruno@clisp.org>
32167
32168         scandir: Fix link error on Solaris 8.
32169         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32170         macros.
32171
32172 2010-03-19  Bruno Haible  <bruno@clisp.org>
32173
32174         getusershell: Fix documentation.
32175         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32176         module.
32177         * doc/glibc-functions/setusershell.texi: Likewise.
32178
32179         getusershell: Provide declaration, missing on Solaris 9.
32180         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32181         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32182         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32183         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32185         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32186         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32187         HAVE_GETUSERSHELL.
32188         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32189
32190 2010-03-19  Bruno Haible  <bruno@clisp.org>
32191
32192         wctype: Provide iswblank function.
32193         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32194         exists and is fine.
32195         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32196         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32197         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32198         * doc/posix-functions/iswblank.texi: Update.
32199
32200 2010-03-19  Bruno Haible  <bruno@clisp.org>
32201
32202         Tests of module 'pty' in C++ mode.
32203         * modules/pty-tests: New file.
32204         * tests/test-pty-c++.cc: New file.
32205         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32206
32207 2010-03-19  Eric Blake  <eblake@redhat.com>
32208
32209         logb: fix documentation
32210         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32211         1.5 declaration bug.
32212
32213         forkpty, openpty: prefer glibc's const-safe prototype
32214         * lib/forkpty.c (rpl_forkpty): New file.
32215         * lib/openpty.c (rpl_openpty): Likewise.
32216         * modules/forkpty (Files): Distribute it.
32217         * modules/openpty (Files): Likewise.
32218         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32219         check...
32220         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32221         replacement for for non-const BSD signature.
32222         * modules/pty (Makefile.am): Substitute witnesses.
32223         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32224         * tests/test-forkpty.c: Update signature check.
32225         * tests/test-openpty.c: Likewise.
32226         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32227         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32228
32229         forkpty, openpty: split functions into new modules
32230         * modules/pty (Makefile.am): Substitute new witnesses.
32231         (Libraries): Move library detection...
32232         * modules/forkpty: ...into new module.
32233         * modules/openpty: Another new module.
32234         * modules/pty-tests: Rename and split...
32235         * modules/forkpty-tests: ...to this...
32236         * modules/openpty-tests: ...and this.
32237         * tests/test-pty.c: Rename and split...
32238         * tests/test-forkpty.c: ...to this...
32239         * tests/test-openpty.c: ...and this.
32240         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32241         (gl_PTY): Split library searching...
32242         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32243         (gl_FORKPTY, gl_OPENPTY): New macros.
32244         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32245         * NEWS: Mention the split.
32246         * MODULES.html.sh (Misc): Document the modules.
32247         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32248         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32249
32250         pty: improve replacement header
32251         * lib/pty.in.h: New file.
32252         * modules/pty (Files): Ship it.
32253         (Makefile.am): Always build replacement.
32254         * m4/pty.m4: Rename...
32255         * m4/pty_h.m4: ...to this.
32256         (gl_PTY): Modernize setting of witness macros; update check of
32257         forkpty to take proper advantage of cache.
32258         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32259
32260         getopt: avoid compiler warning
32261         * lib/getopt.c (attribute_hidden): Remove unused macro.
32262
32263 2010-03-18  Bruno Haible  <bruno@clisp.org>
32264
32265         Fix link errors on Solaris 8.
32266         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32267         * modules/search-tests (test_search_c___LDADD): Likewise.
32268         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32269         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32270         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32271         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32272         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32273         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32274         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32275
32276 2010-03-18  Bruno Haible  <bruno@clisp.org>
32277
32278         Fix bug introduced on 2010-03-14.
32279         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32280         (gl_SPAWN_H): Require it.
32281         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32282         Reported by Simon Josefsson.
32283
32284 2010-03-18  Bruno Haible  <bruno@clisp.org>
32285
32286         Fix typo introduced on 2009-12-31.
32287         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32288         posix_spawn_file_actions_adddup2.
32289
32290 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32291         and Eric Blake  <eblake@redhat.com>
32292
32293         test-vc-list-files-git: make more robust
32294         * tests/test-vc-list-files-git.sh: Unset problematic environment
32295         variables.  Chain commands together.
32296
32297 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32298
32299         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32300         `AC_CHECK_DECL' invocation.
32301
32302 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32303
32304         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32305         appears before executable statements. Suggested by Petr Sumbera
32306         <Petr.Sumbera@Sun.COM>.
32307
32308 2010-03-14  Bruno Haible  <bruno@clisp.org>
32309
32310         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32311         portability problems. Instead use a simpler test.
32312         (main): Check that invalid arguments are rejected only on Linux.
32313
32314 2010-03-14  Bruno Haible  <bruno@clisp.org>
32315
32316         Fix bug introduced on 2009-12-31.
32317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32318         gl_PREREQ_SYS_H_WINSOCK2 always.
32319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32320         SYS_SOCKET_H variable.
32321         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32322         Update comments.
32323         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32324         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32325         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32326         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32327         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32328
32329 2010-03-14  Bruno Haible  <bruno@clisp.org>
32330
32331         Fix values returned by sinl, cosl.
32332         * lib/trigl.h: Add specification comments.
32333         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32334         that combines the values from the precomputed table with the values of
32335         the Chebyshev polynomials.
32336
32337 2010-03-14  Bruno Haible  <bruno@clisp.org>
32338
32339         Fix compilation error when modules 'posix_spawn[p]' are not used.
32340         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32341         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32342
32343 2010-03-14  Bruno Haible  <bruno@clisp.org>
32344
32345         Fix compilation error on mingw when module 'time_r' is not used.
32346         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32347         is 1.
32348         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32349         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32350         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32351         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32352
32353 2010-03-14  Bruno Haible  <bruno@clisp.org>
32354
32355         Fix compilation error with Sun C.
32356         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32357         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32358         instead of GCC specific ULONG_LONG_MAX.
32359         * lib/xstrtoll.c: Likewise.
32360         * lib/xstrtoull.c: Likewise.
32361
32362 2010-03-13  Bruno Haible  <bruno@clisp.org>
32363
32364         Allow the user to disable C++ code and tests.
32365         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32366         (gl_PROG_ANSI_CXX): Require it.
32367
32368 2010-03-13  Bruno Haible  <bruno@clisp.org>
32369
32370         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32371         cases.
32372
32373 2010-03-13  Bruno Haible  <bruno@clisp.org>
32374
32375         Test that gnulib does not break the standard C++ headers.
32376         * tests/test-locale-c++2.cc: New file.
32377         * modules/locale-tests (Files): Add it.
32378         (Makefile.am): Compile it for test-locale-c++.
32379         * tests/test-math-c++2.cc: New file.
32380         * modules/math-tests (Files): Add it.
32381         (Makefile.am): Compile it for test-math-c++.
32382         * tests/test-signal-c++2.cc: New file.
32383         * modules/signal-tests (Files): Add it.
32384         (Makefile.am): Compile it for test-signal-c++.
32385         * tests/test-stdio-c++2.cc: New file.
32386         * modules/stdio-tests (Files): Add it.
32387         (Makefile.am): Compile it for test-stdio-c++.
32388         * tests/test-stdlib-c++2.cc: New file.
32389         * modules/stdlib-tests (Files): Add it.
32390         (Makefile.am): Compile it for test-stdlib-c++.
32391         * tests/test-string-c++2.cc: New file.
32392         * modules/string-tests (Files): Add it.
32393         (Makefile.am): Compile it for test-string-c++.
32394         * tests/test-time-c++2.cc: New file.
32395         * modules/time-tests (Files): Add it.
32396         (Makefile.am): Compile it for test-time-c++.
32397         Reported by John W. Eaton <jwe@gnu.org>.
32398
32399 2010-03-13  Bruno Haible  <bruno@clisp.org>
32400
32401         * gnulib-tool (func_usage): Clarify which options are available for
32402         --create-testdir and --create-megatestdir.
32403
32404 2010-03-13  Bruno Haible  <bruno@clisp.org>
32405
32406         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32407         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32408         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32409         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32410         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32411         when appropriate.
32412         Reported by Jim Meyering.
32413
32414 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32415
32416         * gnulib-tool (func_import): Explain origin of code.
32417
32418 2010-03-12  Bruno Haible  <bruno@clisp.org>
32419
32420         Fix problem with automake's definition of CXXLINK.
32421         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32422         Reported by Simon Josefsson and Ludovic Courtès.
32423
32424 2010-03-12  Bruno Haible  <bruno@clisp.org>
32425
32426         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32427         stable releases.
32428
32429 2010-03-11  Bruno Haible  <bruno@clisp.org>
32430
32431         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32432         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32433         whether the system provides one variant or multiple variants of the
32434         function.
32435         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32436         C++ compilers.
32437         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32438         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32439         Reported by Jim Meyering.
32440
32441 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32442
32443         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32444
32445 2010-03-08  Bruno Haible  <bruno@clisp.org>
32446
32447         gnulib-tool: Add support for --libtool in --create-testdir.
32448         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32449         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32450
32451 2010-03-08  Eric Blake  <eblake@redhat.com>
32452
32453         gnulib-tool.texi: mention possibility of git submodule
32454         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32455         submodules.
32456         * doc/.gitignore: Ignore another generated file.
32457
32458 2010-03-08  Karl Berry  <karl@gnu.org>
32459
32460         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32461         of committing gnulib files while skipping others.
32462
32463 2010-03-07  Bruno Haible  <bruno@clisp.org>
32464
32465         Tests of module 'wctype' in C++ mode.
32466         * tests/test-wctype-c++.cc: New file.
32467         * modules/wctype-tests (Files): Add it and tests/signature.h.
32468         (Depends-on): Add ansi-c++-opt.
32469         (Makefile.am): Arrange to compile and run test-wctype-c++.
32470
32471         Tests of module 'wchar' in C++ mode.
32472         * tests/test-wchar-c++.cc: New file.
32473         * modules/wchar-tests (Files): Add it and tests/signature.h.
32474         (Depends-on): Add ansi-c++-opt.
32475         (Makefile.am): Arrange to compile and run test-wchar-c++.
32476         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32477         gl_MODULE_INDICATOR.
32478
32479         Tests of module 'unistd' in C++ mode.
32480         * tests/test-unistd-c++.cc: New file.
32481         * modules/unistd-tests (Files): Add it and tests/signature.h.
32482         (Depends-on): Add ansi-c++-opt.
32483         (Makefile.am): Arrange to compile and run test-unistd-c++.
32484         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32485         gl_MODULE_INDICATOR.
32486
32487         Tests of module 'time' in C++ mode.
32488         * tests/test-time-c++.cc: New file.
32489         * modules/time-tests (Files): Add it and tests/signature.h.
32490         (Depends-on): Add ansi-c++-opt.
32491         (Makefile.am): Arrange to compile and run test-time-c++.
32492         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32493
32494         Tests of module 'sys_time' in C++ mode.
32495         * tests/test-sys_time-c++.cc: New file.
32496         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32497         (Depends-on): Add ansi-c++-opt.
32498         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32499         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32500         gl_MODULE_INDICATOR.
32501
32502         Tests of module 'sys_stat' in C++ mode.
32503         * tests/test-sys_stat-c++.cc: New file.
32504         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32505         (Depends-on): Add ansi-c++-opt.
32506         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32507         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32508         gl_MODULE_INDICATOR.
32509
32510         Tests of module 'sys_socket' in C++ mode.
32511         * tests/test-sys_socket-c++.cc: New file.
32512         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32513         (Depends-on): Add ansi-c++-opt.
32514         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32515         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32516         gl_MODULE_INDICATOR.
32517
32518         Tests of module 'sys_select' in C++ mode.
32519         * tests/test-sys_select-c++.cc: New file.
32520         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32521         (Depends-on): Add ansi-c++-opt.
32522         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32523         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32524         gl_MODULE_INDICATOR.
32525
32526         Tests of module 'sys_ioctl' in C++ mode.
32527         * tests/test-sys_ioctl-c++.cc: New file.
32528         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32529         (Depends-on): Add ansi-c++-opt.
32530         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32532         gl_MODULE_INDICATOR.
32533
32534         Tests of module 'string' in C++ mode.
32535         * tests/test-string-c++.cc: New file.
32536         * modules/string-tests (Files): Add it and tests/signature.h.
32537         (Depends-on): Add ansi-c++-opt.
32538         (Makefile.am): Arrange to compile and run test-string-c++.
32539         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32540         gl_MODULE_INDICATOR.
32541
32542         Tests of module 'stdlib' in C++ mode.
32543         * tests/test-stdlib-c++.cc: New file.
32544         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32545         (Depends-on): Add ansi-c++-opt.
32546         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32547         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32548         gl_MODULE_INDICATOR.
32549
32550         Tests of module 'stdio' in C++ mode.
32551         * tests/test-stdio-c++.cc: New file.
32552         * modules/stdio-tests (Files): Add it and tests/signature.h.
32553         (Depends-on): Add ansi-c++-opt.
32554         (Makefile.am): Arrange to compile and run test-stdio-c++.
32555         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32556         gl_MODULE_INDICATOR.
32557
32558         Tests of module 'spawn' in C++ mode.
32559         * tests/test-spawn-c++.cc: New file.
32560         * modules/spawn-tests (Files): Add it and tests/signature.h.
32561         (Depends-on): Add ansi-c++-opt.
32562         (Makefile.am): Arrange to compile and run test-spawn-c++.
32563         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32564         gl_MODULE_INDICATOR.
32565
32566         Tests of module 'signal' in C++ mode.
32567         * tests/test-signal-c++.cc: New file.
32568         * modules/signal-tests (Files): Add it and tests/signature.h.
32569         (Depends-on): Add ansi-c++-opt.
32570         (Makefile.am): Arrange to compile and run test-signal-c++.
32571         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32572         gl_MODULE_INDICATOR.
32573
32574         Tests of module 'search' in C++ mode.
32575         * tests/test-search-c++.cc: New file.
32576         * modules/search-tests (Files): Add it and tests/signature.h.
32577         (Depends-on): Add ansi-c++-opt.
32578         (Makefile.am): Arrange to compile and run test-search-c++.
32579         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32580         gl_MODULE_INDICATOR.
32581
32582         Tests of module 'math' in C++ mode.
32583         * tests/test-math-c++.cc: New file.
32584         * modules/math-tests (Files): Add it and tests/signature.h.
32585         (Depends-on): Add ansi-c++-opt.
32586         (Makefile.am): Arrange to compile and run test-math-c++.
32587         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32588
32589         Tests of module 'locale' in C++ mode.
32590         * tests/test-locale-c++.cc: New file.
32591         * modules/locale-tests (Files): Add it and tests/signature.h.
32592         (Depends-on): Add ansi-c++-opt.
32593         (Makefile.am): Arrange to compile and run test-locale-c++.
32594         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32595         gl_MODULE_INDICATOR.
32596
32597         Tests of module 'langinfo' in C++ mode.
32598         * tests/test-langinfo-c++.cc: New file.
32599         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32600         (Depends-on): Add ansi-c++-opt.
32601         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32602         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32603         gl_MODULE_INDICATOR.
32604
32605         Tests of module 'iconv-h' in C++ mode.
32606         * tests/test-iconv-h-c++.cc: New file.
32607         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32608         (Depends-on): Add ansi-c++-opt.
32609         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32610
32611         Tests of module 'glob' in C++ mode.
32612         * tests/test-glob-c++.cc: New file.
32613         * modules/glob-tests (Files): Add it.
32614         (Depends-on): Add ansi-c++-opt.
32615         (Makefile.am): Arrange to compile and run test-glob-c++.
32616
32617         Tests of module 'fcntl-h' in C++ mode.
32618         * tests/test-fcntl-h-c++.cc: New file.
32619         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32620         (Depends-on): Add ansi-c++-opt.
32621         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32622         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32623         gl_MODULE_INDICATOR.
32624
32625         Tests of module 'dirent' in C++ mode.
32626         * tests/test-dirent-c++.cc: New file.
32627         * modules/dirent-tests (Files): Add it and tests/signature.h.
32628         (Depends-on): Add ansi-c++-opt.
32629         (Makefile.am): Arrange to compile and run test-dirent-c++.
32630         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32631         gl_MODULE_INDICATOR.
32632
32633         New module 'ansi-c++-opt'.
32634         * modules/ansi-c++-opt: New file.
32635         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32636
32637         Document C++ namespace mode.
32638         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32639
32640         wctype: Avoid #define replacements in C++ mode.
32641         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32642         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32643         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32644         In C++, define a namespaced alias symbol.
32645         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32646         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32647         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32648         rule.
32649
32650         wchar: Avoid #define replacements in C++ mode.
32651         * lib/wchar.in.h: Include c++defs.h.
32652         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32653         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32654         symbol.
32655         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32656         * modules/wchar (Depends-on): Add c++defs.
32657         (Makefile.am): Update wchar.h rule.
32658
32659         unistd: Avoid #define replacements in C++ mode.
32660         * lib/unistd.in.h: Include c++defs.h.
32661         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32662         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32663         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32664         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32665         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32666         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32667         symbol.
32668         (environ): Update.
32669         * modules/unistd (Depends-on): Add c++defs.
32670         (Makefile.am): Update unistd.h rule.
32671
32672         time: Avoid #define replacements in C++ mode.
32673         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32674         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32675         define a namespaced alias symbol.
32676         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32677         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32678         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32679         * modules/time (Depends-on): Add c++defs, warn-on-use.
32680         (Makefile.am): Update time.h rule.
32681         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32682         * modules/nanosleep (configure.ac): Likewise.
32683         * modules/strptime (configure.ac): Likewise.
32684         * modules/timegm (configure.ac): Likewise.
32685
32686         sys_time: Avoid #define replacements in C++ mode.
32687         * lib/sys_time.in.h: Include c++defs.h.
32688         (gettimeofday): In C++, define a namespaced alias symbol.
32689         * modules/sys_time (Depends-on): Add c++defs.
32690         (Makefile.am): Update sys/time.h rule.
32691
32692         sys_stat: Avoid #define replacements in C++ mode.
32693         * lib/sys_stat.in.h: Include c++defs.h.
32694         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32695         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32696         namespaced alias symbol.
32697         In C++, define a namespaced alias symbol.
32698         * modules/sys_stat (Depends-on): Add c++defs.
32699         (Makefile.am): Update sys/stat.h rule.
32700
32701         sys_socket: Avoid #define replacements in C++ mode.
32702         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32703         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32704         definitions also when the system has a <sys/socket.h>.
32705         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32706         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32707         In C++, define a namespaced alias symbol.
32708         * modules/sys_socket (Depends-on): Add c++defs.
32709         (Makefile.am): Update sys/socket.h rule.
32710
32711         sys_select: Avoid #define replacements in C++ mode.
32712         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32713         definitions also when the system has a <sys/select.h>.
32714         (select): In C++, define a namespaced alias symbol.
32715         * modules/sys_select (Depends-on): Add c++defs.
32716         (Makefile.am): Update sys/select.h rule.
32717
32718         sys_ioctl: Avoid #define replacements in C++ mode.
32719         * lib/sys_ioctl.in.h: Include c++defs.h.
32720         (ioctl): In C++, define a namespaced alias symbol.
32721         * modules/sys_ioctl (Depends-on): Add c++defs.
32722         (Makefile.am): Update sys/ioctl.h rule.
32723
32724         string: Avoid #define replacements in C++ mode.
32725         * lib/string.in.h: Include c++defs.h.
32726         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32727         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32728         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32729         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32730         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32731         * modules/string (Depends-on): Add c++defs.
32732         (Makefile.am): Update string.h rule.
32733
32734         stdlib: Avoid #define replacements in C++ mode.
32735         * lib/stdlib.in.h: Include c++defs.h.
32736         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32737         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32738         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32739         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32740         symbol.
32741         * modules/stdlib (Depends-on): Add c++defs.
32742         (Makefile.am): Update stdlib.h rule.
32743
32744         stdio: Avoid #define replacements in C++ mode.
32745         * lib/stdio.in.h: Include c++defs.h.
32746         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32747         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32748         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32749         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32750         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32751         namespaced alias symbol.
32752         * modules/stdio (Depends-on): Add c++defs.
32753         (Makefile.am): Update stdio.h rule.
32754
32755         spawn: Avoid #define replacements in C++ mode.
32756         * lib/spawn.in.h: Include c++defs.h.
32757         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32758         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32759         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32760         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32761         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32762         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32763         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32764         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32765         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32766         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32767         In C++, define a namespaced alias symbol.
32768         * modules/spawn (Depends-on): Add c++defs.
32769         (Makefile.am): Update spawn.h rule.
32770
32771         signal: Avoid #define replacements in C++ mode.
32772         * lib/signal.in.h: Include c++defs.h.
32773         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32774         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32775         namespaced alias symbol.
32776         * modules/signal (Depends-on): Add c++defs.
32777         (Makefile.am): Update signal.h rule.
32778
32779         search: Avoid #define replacements in C++ mode.
32780         * lib/search.in.h: Include c++defs.h.
32781         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32782         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32783         symbol.
32784         * modules/search (Depends-on): Add c++defs.
32785         (Makefile.am): Update search.h rule.
32786
32787         math: Avoid #define replacements in C++ mode.
32788         * lib/math.in.h: Include c++defs.h.
32789         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32790         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32791         trunc, truncl): In C++, define a namespaced alias symbol.
32792         * modules/math (Depends-on): Add c++defs.
32793         (Makefile.am): Update math.h rule.
32794
32795         locale: Avoid #define replacements in C++ mode.
32796         * lib/locale.in.h: Include c++defs.h.
32797         (duplocale): In C++, define a namespaced alias symbol.
32798         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32799         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32800         * modules/locale (Depends-on): Add c++defs.
32801         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32802
32803         langinfo: Avoid #define replacements in C++ mode.
32804         * lib/langinfo.in.h: Include c++defs.h.
32805         (nl_langinfo): In C++, define a namespaced alias symbol.
32806         * modules/langinfo (Depends-on): Add c++defs.
32807         (Makefile.am): Update langinfo.h rule.
32808
32809         iconv-h: Avoid #define replacements in C++ mode.
32810         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32811         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32812         symbol.
32813         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32814         whenever iconv is present.
32815         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32816         (Makefile.am): Update iconv.h rule.
32817
32818         glob: Avoid #define replacements in C++ mode.
32819         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32820         (_gl_glob_errfunc_fn): New type.
32821         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32822         symbol.
32823         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32824         (Makefile.am): Update glob.h rule.
32825
32826         fcntl-h: Avoid #define replacements in C++ mode.
32827         * lib/fcntl.in.h: Include c++defs.h.
32828         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32829         * modules/fcntl-h (Depends-on): Add c++defs.
32830         (Makefile.am): Update fcntl.h rule.
32831
32832         dirent: Avoid #define replacements in C++ mode.
32833         * lib/dirent.in.h: Include c++defs.h.
32834         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32835         namespaced alias symbol.
32836         (dirfd): Update declaration.
32837         * modules/dirent (Depends-on): Add c++defs.
32838         (Makefile.am): Update dirent.h rule.
32839
32840         ctype: Make it usable in C++ code.
32841         * lib/ctype.in.h: Include c++defs.h.
32842         (isblank): Declare as extern "C".
32843         * modules/ctype (Depends-on): Add c++defs.
32844         (Makefile.am): Update ctype.h rule.
32845
32846         New module 'c++defs'.
32847         * modules/c++defs: New file.
32848         * build-aux/c++defs.h: New file.
32849         Reported by John W. Eaton <jwe@gnu.org>.
32850
32851 2010-03-07  Bruno Haible  <bruno@clisp.org>
32852
32853         logb: Provide missing declaration for Cygwin.
32854         * lib/math.in.h (logb): New declaration.
32855         * m4/logb.m4: New file.
32856         * modules/logb (Files): Add m4/logb.m4.
32857         (Depends-on): Add math.
32858         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32859         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32861         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32862         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32863
32864 2010-03-07  Bruno Haible  <bruno@clisp.org>
32865
32866         Fix test-cond link error.
32867         * tests/test-cond.c: Include <stdio.h>.
32868
32869 2010-03-07  Bruno Haible  <bruno@clisp.org>
32870
32871         Fix test-dirent-safer link error.
32872         * modules/dirent-safer-tests (Makefile.am): Define
32873         test_dirent_safer_LDADD.
32874
32875 2010-03-07  Bruno Haible  <bruno@clisp.org>
32876
32877         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32878         among default module list.
32879
32880 2010-03-07  Bruno Haible  <bruno@clisp.org>
32881
32882         Fix link error on platforms with GNU libiconv.
32883         * modules/unistr/u8-strcoll-tests (Makefile): Define
32884         test_u8_strcoll_LDADD.
32885         * modules/unistr/u16-strcoll-tests (Makefile): Define
32886         test_u16_strcoll_LDADD.
32887         * modules/unistr/u32-strcoll-tests (Makefile): Define
32888         test_u32_strcoll_LDADD.
32889
32890 2010-03-07  Bruno Haible  <bruno@clisp.org>
32891
32892         Use POSIX declarations for socket functions.
32893         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32894         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32895         rpl_sendto): Change declaration to match POSIX.
32896         * lib/connect.c (rpl_connect): Likewise.
32897         * lib/accept.c (rpl_accept): Likewise.
32898         * lib/bind.c (rpl_bind): Likewise.
32899         * lib/getpeername.c (rpl_getpeername): Likewise.
32900         * lib/getsockname.c (rpl_getsockname): Likewise.
32901         * lib/recv.c (rpl_recv): Likewise.
32902         * lib/send.c (rpl_send): Likewise.
32903         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32904         * lib/sendto.c (rpl_sendto): Likewise.
32905
32906 2010-03-06  Bruno Haible  <bruno@clisp.org>
32907
32908         Clarify access, euidaccess, faccessat.
32909         * doc/posix-functions/faccessat.texi: Mention security problem under
32910         "Other problems", not "Portability problems".
32911         * doc/posix-functions/access.texi: Likewise. Mention a related security
32912         problem.
32913         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32914         * lib/euidaccess.c: Add comments about platforms.
32915         * lib/unistd.in.h (access, euidaccess): Add warnings.
32916
32917 2010-03-07  Bruno Haible  <bruno@clisp.org>
32918
32919         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32920         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32921         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32922         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32923         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32924         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32925         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32926         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32927         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32929         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32930         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32931         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32932         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32933         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32934         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32935         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32936         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32937         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32938         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32939         Likewise.
32940         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32941         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32942         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32943         Likewise.
32944         * tests/test-spawn.c (main): Make it work when
32945         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32946
32947 2010-03-07  Bruno Haible  <bruno@clisp.org>
32948
32949         Fix incorrect Makefile.am generation in German locale.
32950         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32951         Execute sed command with character range in C locale.
32952
32953 2010-03-06  Bruno Haible  <bruno@clisp.org>
32954
32955         Tests for module 'iconv-h'.
32956         * modules/iconv-h-tests: New file.
32957         * tests/test-iconv-h.c: New file.
32958
32959         New module 'iconv-h'.
32960         * modules/iconv-h: New file.
32961         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32962         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32963         (configure.ac): Remove gl_ICONV_H.
32964         (Makefile.am): Remove rule for iconv.h.
32965
32966 2010-03-06  Bruno Haible  <bruno@clisp.org>
32967
32968         More consistent naming of *.m4 files.
32969         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32970         * modules/wctype (Files): Update.
32971
32972         More consistent naming of *.m4 files.
32973         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32974         * modules/wchar (Files): Update.
32975
32976 2010-03-06  Jim Meyering  <meyering@redhat.com>
32977
32978         euidaccess: relax license to LGPLv2+
32979         * modules/euidaccess (License): Relax to LGPLv2+.
32980
32981 2010-03-06  Bruno Haible  <bruno@clisp.org>
32982
32983         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32984         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32985         (Makefile.am): Augment lib_SOURCES instead.
32986
32987 2010-03-04  Jim Meyering  <meyering@redhat.com>
32988
32989         utime: remove obsolete module
32990         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32991         unnecessary for years, and has been marked as obsolete for 10 months.
32992         * modules/utime: Remove file.
32993         * lib/utime.c: Remove file.
32994         * m4/utime.m4: Remove file.
32995         * m4/utimes-null.m4: Remove file.
32996         * doc/posix-functions/utime.texi (utime): Remove reference to
32997         the module.  Move the sole "fixed by gnulib" item into the
32998         "problems not fixed by Gnulib" list.
32999         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33000
33001 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33002
33003         * modules/exit (License): Relax license to LGPLv2+.
33004         (Status): Mark as obsolete.
33005         * NEWS: Mention deprecated 'exit' module.
33006         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33007         of now obsolete 'exit'.
33008
33009 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33010
33011         fts-lgpl: remove unused module
33012         * modules/fts-lgpl: Remove.
33013         * MODULES.html.sh (func_all_modules): Adjust.
33014         * check-module (find_included_lib_files): Adjust.
33015         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33016
33017 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33018
33019         copy-acl: enhance Solaris ACL error handling
33020         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33021         * lib/set-mode-acl.c (qset_acl): Likewise.
33022
33023 2010-03-02  Bruno Haible  <bruno@clisp.org>
33024
33025         spawn: Don't override the system defined values on FreeBSD 8.
33026         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33027         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33028         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33029         if HAVE_POSIX_SPAWN is 1.
33030         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33031
33032 2010-03-01  Bruno Haible  <bruno@clisp.org>
33033
33034         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33035         regarding Automake.
33036
33037 2010-02-25  Bruno Haible  <bruno@clisp.org>
33038
33039         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33040         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33041         setting, not afterwards.
33042         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33043
33044 2010-02-24  Eric Blake  <eblake@redhat.com>
33045
33046         bootstrap, git-version-gen: use timestamp
33047         * build-aux/git-version-gen (scriptversion): Force UTC.
33048         * build-aux/bootstrap (scriptversion): New variable.
33049
33050         bootstrap: allow older git
33051         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33052         older than 1.6.4.  Requested by the libvirt project.
33053
33054 2010-02-23  Eric Blake  <eblake@redhat.com>
33055
33056         warn-on-use: work with old autoconf
33057         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33058         AS_VAR semantics of autoconf 2.60.
33059         Reported by Bruno Haible.
33060
33061         bootstrap: improve some comments
33062         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33063         clarification comments.
33064
33065         gettimeofday: provide correct function
33066         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33067         when replacement is declared, otherwise provide gettimeofday.
33068         Reported by Michael Goffioul.
33069
33070 2010-02-23  Jim Meyering  <meyering@redhat.com>
33071
33072         lib-ignore: relax license to "unlimited", not LGPLv2+
33073         * modules/lib-ignore (License): Relax to "unlimited".
33074
33075 2010-02-23  Jim Meyering  <meyering@redhat.com>
33076
33077         lib-ignore: relax license to LGPLv2+
33078         * modules/lib-ignore (License): Relax to LGPLv2+.
33079
33080 2010-02-22  Eric Blake  <eblake@redhat.com>
33081
33082         lseek: avoid bash 3.2 broken pipe bug
33083         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33084         warning from bash 3.2.
33085         Reported by Ben Pfaff, with analysis from Bruno Haible.
33086
33087         bootstrap: support non-FSF copyright holder
33088         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33089         bootstrap.conf override of COPYRIGHT_HOLDER.
33090         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33091
33092         bootstrap: interoperate with gettext 0.14.1
33093         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33094
33095         bootstrap: allow for alternate submodule location
33096         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33097         hardcoding submodule location.
33098         (gnulib_mk): Allow direct use of Makefile.am.
33099
33100         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33101         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33102         rather than reconfiguring where the submodule points.
33103
33104         gettimeofday: restore support for platforms that lack function
33105         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33106         replacement if function is missing.
33107         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33108         * modules/sys_time (Makefile.am): Substitute it.
33109         * lib/sys_time.in.h (gettimeofday): Check it.
33110         Reported by Michael Goffioul.
33111
33112 2010-02-21  Bruno Haible  <bruno@clisp.org>
33113
33114         * lib/stdio.in.h (obstack_printf): Fix typo.
33115
33116 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33117
33118         vc-list-files: use bzr ls's -R option
33119         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33120         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33121
33122 2010-02-21  Jim Meyering  <meyering@redhat.com>
33123
33124         init.sh: fix EXEEXT shims to work also for names like test-prog
33125         * tests/init.sh: Re-exec a better shell, when needed.
33126         If the current shell lacks support for posix $(...), an init.sh-using
33127         test will now try to find a shell that supports that.  If EXEEXT is
33128         nonempty, we also require support for hyphen-in-alias-name and shell
33129         substitutions like ${var#glob}.  Failure to find such a shell results
33130         in a skipped test.
33131
33132 2010-02-21  Bruno Haible  <bruno@clisp.org>
33133
33134         Really work around around "broken pipe" error message from bash 3.2.
33135         * gnulib-tool (func_reset_sigpipe): Remove function.
33136         (echo): In bash 3.2, define to a function that uses printf.
33137         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33138
33139 2010-02-20  Bruno Haible  <bruno@clisp.org>
33140
33141         Restore support for automake 1.9.6 with autoconf 2.61.
33142         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33143         Reported by James Youngman <jay@gnu.org>.
33144
33145 2010-02-20  Bruno Haible  <bruno@clisp.org>
33146
33147         Improve *printf warning condition.
33148         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33149         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33150         and the function is overridden due to SIGPIPE emulation.
33151
33152 2010-02-20  Bruno Haible  <bruno@clisp.org>
33153
33154         * lib/stdio.in.h: Tweak comments.
33155
33156 2010-02-19  Bruno Haible  <bruno@clisp.org>
33157
33158         Make it easier to find modules. New gnulib-tool option '--find'.
33159         * gnulib-tool: New option --find.
33160         (func_usage): Document it.
33161         (func_sanitize_modulelist): New function, extracted from
33162         func_all_modules.
33163         (func_all_modules): Invoke it.
33164         * doc/gnulib-tool.texi (Which modules?): New node.
33165
33166 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33167
33168         * lib/sys_select.in.h: Provide select replacement even if
33169         sys/select.h exists on a system, for Interix.
33170
33171 2010-02-18  Jim Meyering  <meyering@redhat.com>
33172
33173         init.sh: don't use $(...) just yet
33174         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33175         to accommodate e.g., Solaris' /bin/sh.
33176
33177 2010-02-17  Bruno Haible  <bruno@clisp.org>
33178
33179         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33180         Reported by Ludovic Courtès <ludo@gnu.org>.
33181
33182 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33183
33184         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33185         linking with -lintl.
33186
33187 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33188
33189         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33190         if not provided by the system's netdb.h.  Reported by
33191         ludo@gnu.org (Ludovic Courtès).
33192
33193 2010-02-15  Jim Meyering  <meyering@redhat.com>
33194
33195         init.sh: improve portability and efficiency
33196         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33197         "dummy" in a for loop.
33198         Use '!', not '^' to select the complement of a character set used
33199         in a "case" statement.
33200         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33201         Suggestions from Eric Blake.
33202
33203         init.sh: automatically accommodate programs with the .exe suffix
33204         Automatically arrange for an invocation of "prog" to execute the
33205         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33206         may use the simpler "prog", yet still work when built on a system
33207         that requires specifying the added suffix.
33208         Do this by constructing a function named "prog" that invokes
33209         "prog.exe" for each .exe file in selected directories.
33210         * tests/init.sh (find_exe_basenames_): New function.
33211         (create_exe_shim_functions_): New function.
33212         (path_prepend_): Use it.
33213
33214         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33215         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33216         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33217
33218 2010-02-14  Jim Meyering  <meyering@redhat.com>
33219
33220         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33221         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33222         (sc_prohibit_hash_pjw_without_use): New rule.
33223
33224         maint.mk: allow the default upload destination dir to be overridden
33225         * top/maint.mk (upload_dest_dir_): Define with a default that
33226         preserves the status quo.
33227         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33228         Reported by Peter Simons.
33229
33230         maint.mk: prohibit inclusion of "hash.h" without_use
33231         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33232
33233 2010-02-10  Jim Meyering  <meyering@redhat.com>
33234
33235         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33236         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33237
33238 2010-02-09  Eric Blake  <ebb9@byu.net>
33239         and Bruno Haible  <bruno@clisp.org>
33240
33241         obstack-printf-posix: ensure declaration
33242         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33243         extracted from gl_FUNC_OBSTACK_PRINTF.
33244         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33245         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33246         Likewise.
33247         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33248         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33249         0.
33250
33251 2010-02-08  Bruno Haible  <bruno@clisp.org>
33252
33253         gnulib-tool: Fix typo in 2010-02-07 commit.
33254         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33255         Reported by Eric Blake.
33256
33257 2010-02-07  Bruno Haible  <bruno@clisp.org>
33258
33259         gnulib-tool: Fix up caching patches.
33260         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33261         option --no-cache. Use associative arrays when supported by the shell.
33262         (sed_comments): New variable.
33263         (modcache): Renamed from do_cache.
33264         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33265         abbreviate unnecessarily.
33266         (have_associative): New variable.
33267         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33268         way also for ksh and zsh.
33269         (func_init_sed_convert_to_cache_statements): New function, extracted
33270         from func_cache_lookup_module. Add support for associative arrays.
33271         Don't set the c_MODULE_cached variable here. Ignore all lines before
33272         the first field header. Remove only the final newline, not all trailing
33273         newlines. Support empty fields correctly. Limit the use of 'eval' to
33274         assignments.
33275         (func_get_description, func_get_status, func_get_notice,
33276         func_get_applicability, func_get_filelist, func_get_dependencies,
33277         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33278         func_get_automake_snippet, func_get_include_directive,
33279         func_get_link_directive, func_get_license, func_get_maintainer):
33280         Update documentation. List the unoptimized code first. Add support for
33281         associative arrays. Limit the use of 'eval' to assignments.
33282         (func_get_applicability): Undo stylistic pessimisations.
33283         (func_get_automake_snippet, func_get_include_directive): Reduce code
33284         duplication.
33285         (func_modules_transitive_closure, func_modules_add_dummy,
33286         func_modules_notice, func_modules_to_filelist, func_add_file,
33287         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33288         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33289         func_create_testdir, func_create_megatestdir): Update documentation.
33290
33291 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33292
33293         * gnulib-tool (func_cache_lookup_module): Store the module name
33294         belonging to the cache variable; error out if two different
33295         module names map to the same cache variable name.
33296
33297 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33298
33299         gnulib-tool: Make caching optional.
33300         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33301         Update matching short versions of --no-changelog.
33302         (func_usage): Update.
33303         (sed_extract_cache_prog): Renamed from ...
33304         (sed_extract_prog): ... this; revert to old extraction script.
33305         (func_get_description, func_get_status)
33306         (func_get_notice, func_get_applicability, func_get_filelist)
33307         (func_get_dependencies, func_get_autoconf_early_snippet)
33308         (func_get_autoconf_snippet, func_get_automake_snippet)
33309         (func_get_include_directive, func_get_link_directive)
33310         (func_get_license, func_get_maintainer): If $do_cache is false,
33311         use old, non-caching extraction scripts.
33312         Suggestion by Bruno Haible.
33313
33314 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33315
33316         gnulib-tool: cache module metainformation.
33317         * gnulib-tool (sed_extract_prog): Match newline before each
33318         header, and rewrite header to a shell variable suffix.
33319         (func_cache_var, func_cache_lookup_module): New functions,
33320         to turn a module name into a cache variable prefix, and to
33321         look up and cache module metainformation.
33322         (func_get_description, func_get_status)
33323         (func_get_notice, func_get_applicability, func_get_filelist)
33324         (func_get_dependencies, func_get_autoconf_early_snippet)
33325         (func_get_autoconf_snippet, func_get_automake_snippet)
33326         (func_get_include_directive, func_get_link_directive)
33327         (func_get_license, func_get_maintainer): Use
33328         func_cache_lookup_module.
33329
33330 2010-02-07  Bruno Haible  <bruno@clisp.org>
33331
33332         fnctl: Fix missing dependency.
33333         * modules/fcntl (Depends-on): Add getdtablesize.
33334         Reported by John W. Eaton <jwe@gnu.org>.
33335
33336 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33337
33338         Argp: fix recognition of short alias options.
33339
33340         * lib/argp-parse.c (convert_options): Fix improper use of
33341         `|' between character values.
33342         * tests/test-argp.c (group1_option): New alias option
33343         --read (-r).
33344         (group1_parser): Special handling for 'r'.
33345         (test15): New test case.
33346         (test_fun): Add test15.
33347         * tests/test-argp-2.sh: Update expected --help and --usage
33348         outputs.
33349
33350 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33351
33352         * tests/test-argp.c: Fix indentation.
33353
33354 2010-02-04  Eric Blake  <ebb9@byu.net>
33355
33356         gettimeofday: expose type of second argument
33357         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33358         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33359         * tests/test-gettimeofday.c: Use it to silence warning.
33360         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33361         the issue.
33362
33363 2010-02-03  Jim Meyering  <meyering@redhat.com>
33364
33365         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33366         * lib/regcomp.c (TYPE_SIGNED): Define.
33367         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33368
33369         regcomp.c: avoid a new -Wshadow warning
33370         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33371
33372 2010-02-01  Jim Meyering  <meyering@redhat.com>
33373
33374         removing useless parentheses in cpp #define directives
33375         For motivation, see commit c0221df4, "define STREQ(a,b)
33376         consistently, removing useless parentheses"
33377         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33378         * lib/mountlist.c (MNT_IGNORE): Likewise.
33379         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33380
33381 2010-02-01  Eric Blake  <ebb9@byu.net>
33382
33383         sys_time: use link-warning
33384         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33385         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33386         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33387         * modules/sys_time (Depends-on): Add warn-on-use.
33388         (Makefile.am): Always build replacement.
33389         (configure.ac): Update substitutions.
33390         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33391         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33392         bother with SYS_TIME_H.
33393         * modules/gettimeofday (configure.ac): Declare indicator.
33394         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33395         in use.
33396
33397         closein-tests: silence compiler warning
33398         * tests/test-closein.c (main): Ignore fread result.
33399         * modules/closein-tests (Depends-on): Add ignore-value.
33400
33401         tests: silence warning about system return
33402         * tests/test-areadlink-with-size.c (main): Ignore system result.
33403         * tests/test-areadlink.c (main): Likewise.
33404         * tests/test-areadlinkat-with-size.c (main): Likewise.
33405         * tests/test-areadlinkat.c (main): Likewise.
33406         * tests/test-canonicalize-lgpl.c (main): Likewise.
33407         * tests/test-canonicalize.c (main): Likewise.
33408         * tests/test-chown.c (main): Likewise.
33409         * tests/test-fchownat.c (main): Likewise.
33410         * tests/test-fdutimensat.c (main): Likewise.
33411         * tests/test-fstatat.c (main): Likewise.
33412         * tests/test-futimens.c (main): Likewise.
33413         * tests/test-lchown.c (main): Likewise.
33414         * tests/test-link.c (main): Likewise.
33415         * tests/test-linkat.c (main): Likewise.
33416         * tests/test-lstat.c (main): Likewise.
33417         * tests/test-mkdir.c (main): Likewise.
33418         * tests/test-mkdirat.c (main): Likewise.
33419         * tests/test-mkfifo.c (main): Likewise.
33420         * tests/test-mkfifoat.c (main): Likewise.
33421         * tests/test-mknod.c (main): Likewise.
33422         * tests/test-readlink.c (main): Likewise.
33423         * tests/test-remove.c (main): Likewise.
33424         * tests/test-rename.c (main): Likewise.
33425         * tests/test-renameat.c (main): Likewise.
33426         * tests/test-rmdir.c (main): Likewise.
33427         * tests/test-symlink.c (main): Likewise.
33428         * tests/test-symlinkat.c (main): Likewise.
33429         * tests/test-unlink.c (main): Likewise.
33430         * tests/test-unlinkat.c (main): Likewise.
33431         * tests/test-utimens.c (main): Likewise.
33432         * tests/test-utimensat.c (main): Likewise.
33433         * modules/areadlink-tests (Depends-on): Add ignore-value.
33434         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33435         * modules/areadlinkat-tests (Depends-on): Likewise.
33436         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33437         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33438         * modules/canonicalize-tests (Depends-on): Likewise.
33439         * modules/chown-tests (Depends-on): Likewise.
33440         * modules/fdutimensat-tests (Depends-on): Likewise.
33441         * modules/futimens-tests (Depends-on): Likewise.
33442         * modules/lchown-tests (Depends-on): Likewise.
33443         * modules/link-tests (Depends-on): Likewise.
33444         * modules/linkat-tests (Depends-on): Likewise.
33445         * modules/lstat-tests (Depends-on): Likewise.
33446         * modules/mkdir-tests (Depends-on): Likewise.
33447         * modules/mkfifo-tests (Depends-on): Likewise.
33448         * modules/mkfifoat-tests (Depends-on): Likewise.
33449         * modules/mknod-tests (Depends-on): Likewise.
33450         * modules/openat-tests (Depends-on): Likewise.
33451         * modules/readlink-tests (Depends-on): Likewise.
33452         * modules/remove-tests (Depends-on): Likewise.
33453         * modules/rename-tests (Depends-on): Likewise.
33454         * modules/renameat-tests (Depends-on): Likewise.
33455         * modules/rmdir-tests (Depends-on): Likewise.
33456         * modules/symlink-tests (Depends-on): Likewise.
33457         * modules/symlinkat-tests (Depends-on): Likewise.
33458         * modules/unlink-tests (Depends-on): Likewise.
33459         * modules/utimens-tests (Depends-on): Likewise.
33460         * modules/utimensat-tests (Depends-on): Likewise.
33461
33462 2010-01-31  Bruno Haible  <bruno@clisp.org>
33463
33464         Perform the same test for many <math.h> functions.
33465         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33466         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33467         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33468         of gl_MATHFUNC.
33469         * modules/acos (configure.ac): Likewise.
33470         * modules/asin (configure.ac): Likewise.
33471         * modules/atan (configure.ac): Likewise.
33472         * modules/atan2 (configure.ac): Likewise.
33473         * modules/cbrt (configure.ac): Likewise.
33474         * modules/copysign (configure.ac): Likewise.
33475         * modules/cos (configure.ac): Likewise.
33476         * modules/cosh (configure.ac): Likewise.
33477         * modules/erf (configure.ac): Likewise.
33478         * modules/erfc (configure.ac): Likewise.
33479         * modules/exp (configure.ac): Likewise.
33480         * modules/fmod (configure.ac): Likewise.
33481         * modules/hypot (configure.ac): Likewise.
33482         * modules/j0 (configure.ac): Likewise.
33483         * modules/j1 (configure.ac): Likewise.
33484         * modules/jn (configure.ac): Likewise.
33485         * modules/lgamma (configure.ac): Likewise.
33486         * modules/log (configure.ac): Likewise.
33487         * modules/log10 (configure.ac): Likewise.
33488         * modules/log1p (configure.ac): Likewise.
33489         * modules/pow (configure.ac): Likewise.
33490         * modules/remainder (configure.ac): Likewise.
33491         * modules/sin (configure.ac): Likewise.
33492         * modules/sinh (configure.ac): Likewise.
33493         * modules/tan (configure.ac): Likewise.
33494         * modules/tanh (configure.ac): Likewise.
33495         * modules/y0 (configure.ac): Likewise.
33496         * modules/y1 (configure.ac): Likewise.
33497         * modules/yn (configure.ac): Likewise.
33498         Suggested by Paolo Bonzini.
33499
33500 2010-01-31  Bruno Haible  <bruno@clisp.org>
33501
33502         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33503
33504 2010-01-31  Bruno Haible  <bruno@clisp.org>
33505
33506         Work around getdelim() bug on FreeBSD 8.0.
33507         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33508         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33509         not work.
33510         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33511         is 1.
33512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33513         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33514         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33515         a non-zero size.
33516         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33517
33518 2010-01-31  Bruno Haible  <bruno@clisp.org>
33519
33520         Work around getline() bug on FreeBSD 8.0.
33521         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33522         and a non-zero size.
33523         * tests/test-getline.c (main): Likewise.
33524         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33525         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33526
33527 2010-01-28  Eric Blake  <ebb9@byu.net>
33528
33529         regex: fix build failure
33530         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33531         platforms.
33532
33533 2010-01-28  Jim Meyering  <meyering@redhat.com>
33534
33535         regex: do not ignore memory allocation failure
33536         * lib/regex_internal.c (create_cd_newstate): Detect
33537         re_node_set_init_copy failure.   Extracted from glibc commit
33538         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33539
33540         regex: sync more white-space changes from libc
33541         * lib/regex_internal.c: White-space only changes.
33542         * lib/regexec.c: Likewise.
33543
33544         regex: add many uses of __attribute_warn_unused_result__
33545         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33546         * lib/regexec.c: Likewise.
33547         Extracted from a messy glibc commit.
33548
33549         regcomp.c: spelling and merge-artifact from glibc
33550         * lib/regcomp.c: Merge remainder of glibc's
33551         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33552
33553         regcomp.c: sync white-space changes from glibc
33554         * lib/regcomp.c: Merge to accommodate white space
33555         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33556
33557         regcomp.c: do not ignore internal return values
33558         * lib/regcomp.c: Do not ignore internal return values.
33559         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33560         but without its white-space changes and spelling fixes.
33561
33562         regex_internal.h: define __attribute_warn_unused_result__
33563         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33564
33565         maint: add a syntax-check rule to check for vulnerable Makefile.in
33566         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33567
33568 2010-01-27  Jim Meyering  <meyering@redhat.com>
33569
33570         ncftpput-ftp: clean up spaces
33571         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33572         Remove trailing blanks.
33573
33574 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33575
33576         * build-aux/git-version-gen: Fix copyright statement.
33577         * build-aux/gnupload: Likewise.
33578         * tests/test-arcfour.c: Likewise.
33579         * tests/test-arctwo.c: Likewise.
33580         * tests/test-count-one-bits.c: Likewise.
33581         * tests/test-crc.c: Likewise.
33582         * tests/test-des.c: Likewise.
33583         * tests/test-gc-arcfour.c: Likewise.
33584         * tests/test-gc-arctwo.c: Likewise.
33585         * tests/test-gc-des.c: Likewise.
33586         * tests/test-gc-hmac-md5.c: Likewise.
33587         * tests/test-gc-hmac-sha1.c: Likewise.
33588         * tests/test-gc-md2.c: Likewise.
33589         * tests/test-gc-md4.c: Likewise.
33590         * tests/test-gc-md5.c: Likewise.
33591         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33592         * tests/test-gc-rijndael.c: Likewise.
33593         * tests/test-gc-sha1.c: Likewise.
33594         * tests/test-gc.c: Likewise.
33595         * tests/test-gethostname.c: Likewise.
33596         * tests/test-gettimeofday.c: Likewise.
33597         * tests/test-hash.c: Likewise.
33598         * tests/test-hmac-md5.c: Likewise.
33599         * tests/test-hmac-sha1.c: Likewise.
33600         * tests/test-md2.c: Likewise.
33601         * tests/test-md4.c: Likewise.
33602         * tests/test-md5.c: Likewise.
33603         * tests/test-memchr.c: Likewise.
33604         * tests/test-memchr2.c: Likewise.
33605         * tests/test-memcmp.c: Likewise.
33606         * tests/test-memmem.c: Likewise.
33607         * tests/test-memrchr.c: Likewise.
33608         * tests/test-rawmemchr.c: Likewise.
33609         * tests/test-read-file.c: Likewise.
33610         * tests/test-rijndael.c: Likewise.
33611         * tests/test-sockets.c: Likewise.
33612         * tests/test-strchrnul.c: Likewise.
33613         * tests/test-strstr.c: Likewise.
33614         * tests/test-strtod.c: Likewise.
33615         * build-aux/ncftpput-ftp: Likewise.
33616
33617 2010-01-26  Eric Blake  <ebb9@byu.net>
33618
33619         ignore-value: update recommended header name
33620         * modules/ignore-value (Include): Only use <> for headers that
33621         exist in glibc.
33622
33623 2010-01-26  Jim Meyering  <meyering@redhat.com>
33624
33625         test-userspec.c: avoid compiler warnings
33626         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33627         and "initialization discards qualifiers..." warnings.
33628         Put the first "uid" in its own scope, and make char* members "const".
33629
33630 2010-01-25  Bruno Haible  <bruno@clisp.org>
33631
33632         gnulib-tool: Make warning diagnostics consistent.
33633         * gnulib-tool (func_warning): New function.
33634         Use it everywhere where gnulib-tool produces output to stderr and it is
33635         not a fatal error.
33636
33637 2010-01-25  Bruno Haible  <bruno@clisp.org>
33638
33639         Fix test dependencies.
33640         * modules/xstrtol-tests (Depends-on): Add inttypes.
33641         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33642
33643 2010-01-25 Pádraig Brady <P@draigBrady.com>
33644
33645         syntax-check: detect incorrect boolean macro values in config.h
33646         * modules/maintainer-makefile (configure.ac): Parameterize the location
33647         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33648         The logic is from Eric Blake and the location indicated by Jim Meyering.
33649         Note the more natural CONFIG_HEADER name is prohibited by automake
33650         for backwards compatibility reasons.
33651         * top/maint.mk (sc_Wundef_boolean): New rule.
33652
33653 2010-01-25  Jim Meyering  <meyering@redhat.com>
33654
33655         bootstrap: detect MacOS 10.6's shasum, too
33656         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33657         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33658
33659 2010-01-23  Jim Meyering  <meyering@redhat.com>
33660
33661         xstrtoll: new module
33662         * modules/xstrtoll: New file.
33663         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33664         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33665         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33666         ./configure fails if you use this module and lack "long long".
33667         * modules/xstrtoll-tests: New module.
33668         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33669         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33670         new init.sh-based test framework.
33671
33672 2010-01-24  Bruno Haible  <bruno@clisp.org>
33673
33674         Tests for module 'yn'.
33675         * modules/yn-tests: New file.
33676         * tests/test-yn.c: New file.
33677
33678         Tests for module 'y1'.
33679         * modules/y1-tests: New file.
33680         * tests/test-y1.c: New file.
33681
33682         Tests for module 'y0'.
33683         * modules/y0-tests: New file.
33684         * tests/test-y0.c: New file.
33685
33686         Tests for module 'tanh'.
33687         * modules/tanh-tests: New file.
33688         * tests/test-tanh.c: New file.
33689
33690         Tests for module 'tan'.
33691         * modules/tan-tests: New file.
33692         * tests/test-tan.c: New file.
33693
33694         Tests for module 'sqrt'.
33695         * modules/sqrt-tests: New file.
33696         * tests/test-sqrt.c: New file.
33697
33698         Tests for module 'sinh'.
33699         * modules/sinh-tests: New file.
33700         * tests/test-sinh.c: New file.
33701
33702         Tests for module 'sin'.
33703         * modules/sin-tests: New file.
33704         * tests/test-sin.c: New file.
33705
33706         Tests for module 'rint'.
33707         * modules/rint-tests: New file.
33708         * tests/test-rint.c: New file.
33709
33710         Tests for module 'remainder'.
33711         * modules/remainder-tests: New file.
33712         * tests/test-remainder.c: New file.
33713
33714         Tests for module 'pow'.
33715         * modules/pow-tests: New file.
33716         * tests/test-pow.c: New file.
33717
33718         Tests for module 'nextafter'.
33719         * modules/nextafter-tests: New file.
33720         * tests/test-nextafter.c: New file.
33721
33722         Tests for module 'modf'.
33723         * modules/modf-tests: New file.
33724         * tests/test-modf.c: New file.
33725
33726         Tests for module 'logb'.
33727         * modules/logb-tests: New file.
33728         * tests/test-logb.c: New file.
33729
33730         Tests for module 'log1p'.
33731         * modules/log1p-tests: New file.
33732         * tests/test-log1p.c: New file.
33733
33734         Tests for module 'log10'.
33735         * modules/log10-tests: New file.
33736         * tests/test-log10.c: New file.
33737
33738         Tests for module 'log'.
33739         * modules/log-tests: New file.
33740         * tests/test-log.c: New file.
33741
33742         Tests for module 'lgamma'.
33743         * modules/lgamma-tests: New file.
33744         * tests/test-lgamma.c: New file.
33745
33746         Tests for module 'ldexp'.
33747         * modules/ldexp-tests: New file.
33748         * tests/test-ldexp.c: New file.
33749
33750         Tests for module 'jn'.
33751         * modules/jn-tests: New file.
33752         * tests/test-jn.c: New file.
33753
33754         Tests for module 'j1'.
33755         * modules/j1-tests: New file.
33756         * tests/test-j1.c: New file.
33757
33758         Tests for module 'j0'.
33759         * modules/j0-tests: New file.
33760         * tests/test-j0.c: New file.
33761
33762         Tests for module 'hypot'.
33763         * modules/hypot-tests: New file.
33764         * tests/test-hypot.c: New file.
33765
33766         Tests for module 'fmod'.
33767         * modules/fmod-tests: New file.
33768         * tests/test-fmod.c: New file.
33769
33770         Tests for module 'fabs'.
33771         * modules/fabs-tests: New file.
33772         * tests/test-fabs.c: New file.
33773
33774         Tests for module 'exp'.
33775         * modules/exp-tests: New file.
33776         * tests/test-exp.c: New file.
33777
33778         Tests for module 'erfc'.
33779         * modules/erfc-tests: New file.
33780         * tests/test-erfc.c: New file.
33781
33782         Tests for module 'erf'.
33783         * modules/erf-tests: New file.
33784         * tests/test-erf.c: New file.
33785
33786         Tests for module 'cosh'.
33787         * modules/cosh-tests: New file.
33788         * tests/test-cosh.c: New file.
33789
33790         Tests for module 'cos'.
33791         * modules/cos-tests: New file.
33792         * tests/test-cos.c: New file.
33793
33794         Tests for module 'copysign'.
33795         * modules/copysign-tests: New file.
33796         * tests/test-copysign.c: New file.
33797
33798         Tests for module 'cbrt'.
33799         * modules/cbrt-tests: New file.
33800         * tests/test-cbrt.c: New file.
33801
33802         Tests for module 'atan2'.
33803         * modules/atan2-tests: New file.
33804         * tests/test-atan2.c: New file.
33805
33806         Tests for module 'atan'.
33807         * modules/atan-tests: New file.
33808         * tests/test-atan.c: New file.
33809
33810         Tests for module 'asin'.
33811         * modules/asin-tests: New file.
33812         * tests/test-asin.c: New file.
33813
33814         Tests for module 'acos'.
33815         * modules/acos-tests: New file.
33816         * tests/test-acos.c: New file.
33817
33818 2010-01-24  Bruno Haible  <bruno@clisp.org>
33819
33820         Fix tests for common <math.h> functions.
33821         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33822         code snippet that references the function pointer, rather than merely
33823         calling the function. Substitute the FUNC_LIBM variable.
33824         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33825         * modules/acos (configure.ac): Likewise.
33826         * modules/asin (configure.ac): Likewise.
33827         * modules/atan (configure.ac): Likewise.
33828         * modules/atan2 (configure.ac): Likewise.
33829         * modules/cbrt (configure.ac): Likewise.
33830         * modules/copysign (configure.ac): Likewise.
33831         * modules/cos (configure.ac): Likewise.
33832         * modules/cosh (configure.ac): Likewise.
33833         * modules/erf (configure.ac): Likewise.
33834         * modules/erfc (configure.ac): Likewise.
33835         * modules/exp (configure.ac): Likewise.
33836         * modules/fabs (configure.ac): Likewise.
33837         * modules/fmod (configure.ac): Likewise.
33838         * modules/hypot (configure.ac): Likewise.
33839         * modules/j0 (configure.ac): Likewise.
33840         * modules/j1 (configure.ac): Likewise.
33841         * modules/jn (configure.ac): Likewise.
33842         * modules/ldexp (configure.ac): Likewise.
33843         * modules/lgamma (configure.ac): Likewise.
33844         * modules/log (configure.ac): Likewise.
33845         * modules/log10 (configure.ac): Likewise.
33846         * modules/log1p (configure.ac): Likewise.
33847         * modules/logb (configure.ac): Likewise.
33848         * modules/modf (configure.ac): Likewise.
33849         * modules/nextafter (configure.ac): Likewise.
33850         * modules/pow (configure.ac): Likewise.
33851         * modules/remainder (configure.ac): Likewise.
33852         * modules/rint (configure.ac): Likewise.
33853         * modules/sin (configure.ac): Likewise.
33854         * modules/sinh (configure.ac): Likewise.
33855         * modules/tan (configure.ac): Likewise.
33856         * modules/tanh (configure.ac): Likewise.
33857         * modules/y0 (configure.ac): Likewise.
33858         * modules/y1 (configure.ac): Likewise.
33859         * modules/yn (configure.ac): Likewise.
33860
33861 2010-01-24  Bruno Haible  <bruno@clisp.org>
33862
33863         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33864         * tests/test-acosl.c (x): New variable.
33865         (main): Store argument in x and fetch it from x.
33866         * tests/test-asinl.c (x): New variable.
33867         (main): Store argument in x and fetch it from x.
33868         * tests/test-atanl.c (x): New variable.
33869         (main): Store argument in x and fetch it from x.
33870         * tests/test-cosl.c (x): New variable.
33871         (main): Store argument in x and fetch it from x.
33872         * tests/test-expl.c (x): New variable.
33873         (main): Store argument in x and fetch it from x.
33874         * tests/test-logl.c (x): New variable.
33875         (main): Store argument in x and fetch it from x.
33876         * tests/test-sinl.c (x): New variable.
33877         (main): Store argument in x and fetch it from x.
33878         * tests/test-sqrtl.c (x): New variable.
33879         (main): Store argument in x and fetch it from x.
33880         * tests/test-tanl.c (x): New variable.
33881         (main): Store argument in x and fetch it from x.
33882
33883 2010-01-24  Bruno Haible  <bruno@clisp.org>
33884
33885         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33886         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33887         assignments to the initial TESTS_ENVIRONMENT.
33888         * doc/gnulib.texi (Unit test modules): Document it.
33889         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33890         TESTS_ENVIRONMENT.
33891         * modules/btowc-tests (Makefile.am): Likewise.
33892         * modules/c-stack-tests (Makefile.am): Likewise.
33893         * modules/c-strcase-tests (Makefile.am): Likewise.
33894         * modules/copy-file-tests (Makefile.am): Likewise.
33895         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33896         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33897         * modules/mbrtowc-tests (Makefile.am): Likewise.
33898         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33899         * modules/mbscasestr-tests (Makefile.am): Likewise.
33900         * modules/mbschr-tests (Makefile.am): Likewise.
33901         * modules/mbscspn-tests (Makefile.am): Likewise.
33902         * modules/mbsinit-tests (Makefile.am): Likewise.
33903         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33904         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33905         * modules/mbspbrk-tests (Makefile.am): Likewise.
33906         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33907         * modules/mbsrchr-tests (Makefile.am): Likewise.
33908         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33909         * modules/mbsspn-tests (Makefile.am): Likewise.
33910         * modules/mbsstr-tests (Makefile.am): Likewise.
33911         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33912         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33913         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33914         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33915         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33916         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33917         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33918         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33919         * modules/wcrtomb-tests (Makefile.am): Likewise.
33920         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33921         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33922         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33923         assignments from TESTS_ENVIRONMENT.
33924         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33925         augmentation.
33926         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33927         * modules/atexit-tests (Makefile.am): Likewise.
33928         * modules/binary-io-tests (Makefile.am): Likewise.
33929         * modules/closein-tests (Makefile.am): Likewise.
33930         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33931         * modules/exclude-tests (Makefile.am): Likewise.
33932         * modules/fflush-tests (Makefile.am): Likewise.
33933         * modules/fpending-tests (Makefile.am): Likewise.
33934         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33935         * modules/freadahead-tests (Makefile.am): Likewise.
33936         * modules/freadptr-tests (Makefile.am): Likewise.
33937         * modules/freadseek-tests (Makefile.am): Likewise.
33938         * modules/fseek-tests (Makefile.am): Likewise.
33939         * modules/fseeko-tests (Makefile.am): Likewise.
33940         * modules/ftell-tests (Makefile.am): Likewise.
33941         * modules/ftello-tests (Makefile.am): Likewise.
33942         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33943         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33944         * modules/lseek-tests (Makefile.am): Likewise.
33945         * modules/parse-duration-tests (Makefile.am): Likewise.
33946         * modules/perror-tests (Makefile.am): Likewise.
33947         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33948         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33949         * modules/pipe-tests (Makefile.am): Likewise.
33950         * modules/pread-tests (Makefile.am): Likewise.
33951         * modules/printf-posix-tests (Makefile.am): Likewise.
33952         * modules/select-tests (Makefile.am): Likewise.
33953         * modules/sigpipe-tests (Makefile.am): Likewise.
33954         * modules/tsearch-tests (Makefile.am): Likewise.
33955         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33956         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33957         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33958         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33959         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33960         * modules/version-etc-tests (Makefile.am): Likewise.
33961         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33962         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33963         * modules/xalloc-die-tests (Makefile.am): Likewise.
33964         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33965         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33966         * modules/xstrtol-tests (Makefile.am): Likewise.
33967         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33968         * modules/yesno-tests (Makefile.am): Likewise.
33969         Suggested by Jim Meyering.
33970
33971 2010-01-24  Bruno Haible  <bruno@clisp.org>
33972
33973         More documentation.
33974         * doc/gnulib.texi (Writing modules): New chapter.
33975         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33976         the new chapter.
33977
33978 2010-01-24  Jim Meyering  <meyering@redhat.com>
33979
33980         maint.mk: do not prepend "./" after filtering
33981         * top/maint.mk (_prepend_srcdir_prefix): New variable
33982         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33983         "./" when $(srcdir) is ".".
33984
33985         define STREQ(a,b) consistently, removing useless parentheses
33986         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33987         since the only risk is that "a" or "b" contains an unparenthesized
33988         comma, but if either did that, STREQ would have 3 or more arguments.
33989         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33990         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33991         * lib/hash-triple.c (STREQ): Likewise.
33992         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33993         * lib/getugroups.c (STREQ): Likewise.
33994
33995 2010-01-23  Jim Meyering  <meyering@redhat.com>
33996
33997         maint.mk: fix syntax-check in a non-srcdir build directory
33998         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33999         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34000
34001 2010-01-22  Jim Meyering  <meyering@redhat.com>
34002
34003         userspec: add unit tests
34004         * tests/test-userspec.c: New file.
34005         * modules/userspec-tests: Likewise.
34006
34007 2010-01-21  Jim Meyering  <meyering@redhat.com>
34008
34009         maint.mk: handle source file names containing "." robustly
34010         * top/maint.mk (_dot_escaped_srcdir): Define.
34011         (VC_LIST): Use it in LHS of sed substitution.
34012
34013 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34014
34015         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34016         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34017         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34018         from a non-srcdir build.
34019
34020 2010-01-20  Eric Blake  <ebb9@byu.net>
34021
34022         warn-on-use: use instead of link-warning
34023         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34024         * modules/unistd (Depends-on, Makefile.am): Likewise.
34025         * modules/arpa_inet (Depends-on): Replace link-warning with
34026         warn-on-use.
34027         (Makefile.am): Update rules accordingly.
34028         * modules/ctype (Depends-on, Makefile.am): Likewise.
34029         * modules/dirent (Depends-on, Makefile.am): Likewise.
34030         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34031         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34032         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34033         * modules/locale (Depends-on, Makefile.am): Likewise.
34034         * modules/math (Depends-on, Makefile.am): Likewise.
34035         * modules/search (Depends-on, Makefile.am): Likewise.
34036         * modules/signal (Depends-on, Makefile.am): Likewise.
34037         * modules/spawn (Depends-on, Makefile.am): Likewise.
34038         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34039         * modules/string (Depends-on, Makefile.am): Likewise.
34040         * modules/strings (Depends-on, Makefile.am): Likewise.
34041         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34042         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34043         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34044         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34045         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34046         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34047         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34048         * modules/wchar (Depends-on, Makefile.am): Likewise.
34049         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34050         should be poisoned.
34051         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34052         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34053         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34054         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34055         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34056         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34057         * m4/math_h.m4 (gl_MATH_H): Likewise.
34058         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34059         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34060         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34061         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34062         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34063         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34064         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34065         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34066         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34067         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34068         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34069         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34070         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34071         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34072         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34073         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34074         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34075         GL_LINK_WARNING.
34076         * lib/ctype.in.h: Likewise.
34077         * lib/dirent.in.h: Likewise.
34078         * lib/fcntl.in.h: Likewise.
34079         * lib/inttypes.in.h: Likewise.
34080         * lib/langinfo.in.h: Likewise.
34081         * lib/locale.in.h: Likewise.
34082         * lib/math.in.h: Likewise.
34083         * lib/search.in.h: Likewise.
34084         * lib/signal.in.h: Likewise.
34085         * lib/spawn.in.h: Likewise.
34086         * lib/stdio.in.h: Likewise.
34087         * lib/stdlib.in.h: Likewise.
34088         * lib/string.in.h: Likewise.
34089         * lib/strings.in.h: Likewise.
34090         * lib/sys_file.in.h: Likewise.
34091         * lib/sys_ioctl.in.h: Likewise.
34092         * lib/sys_select.in.h: Likewise.
34093         * lib/sys_socket.in.h: Likewise.
34094         * lib/sys_stat.in.h: Likewise.
34095         * lib/sys_times.in.h: Likewise.
34096         * lib/sys_utsname.in.h: Likewise.
34097         * lib/unistd.in.h: Likewise.
34098         * lib/wchar.in.h: Likewise.
34099
34100 2010-01-20  Bruno Haible  <bruno@clisp.org>
34101
34102         Avoid duplicate -lm.
34103         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34104         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34105         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34106         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34107         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34108         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34109         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34110         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34111         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34112         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34113         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34114         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34115         Reported by Paolo Bonzini.
34116
34117 2010-01-19  Bruno Haible  <bruno@clisp.org>
34118
34119         langinfo, nl_langinfo: Relicense under LGPLv2+.
34120         * modules/langinfo (License): Change to LGPLv2+.
34121         * modules/nl_langinfo (License): Likewise.
34122         Patch by David Lutterkort <lutter@redhat.com>.
34123
34124 2010-01-19  Bruno Haible  <bruno@clisp.org>
34125
34126         Avoid compilation error with cc on OSF/1 5.1.
34127         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34128         statement, not before.
34129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34130
34131 2010-01-18  Bruno Haible  <bruno@clisp.org>
34132
34133         Avoid a link error due to the __printf__ symbol.
34134         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34135         and 2.6.x.
34136         (__format__, __printf__): Remove definitions.
34137         * lib/argp-fmtstream.h: Likewise.
34138         * lib/argp.h: Likewise.
34139         * lib/error.h: Likewise.
34140         * lib/vasnprintf.h: Likewise.
34141         * lib/xprintf.h: Likewise.
34142         * lib/xvasprintf.h: Likewise.
34143         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34144
34145 2010-01-18  Bruno Haible  <bruno@clisp.org>
34146
34147         Tests for module 'tanl'.
34148         * modules/tanl-tests: New file.
34149         * tests/test-tanl.c: New file.
34150
34151         Tests for module 'sqrtl'.
34152         * modules/sqrtl-tests: New file.
34153         * tests/test-sqrtl.c: New file.
34154
34155         Tests for module 'sinl'.
34156         * modules/sinl-tests: New file.
34157         * tests/test-sinl.c: New file.
34158
34159         Tests for module 'logl'.
34160         * modules/logl-tests: New file.
34161         * tests/test-logl.c: New file.
34162
34163         Tests for module 'expl'.
34164         * modules/expl-tests: New file.
34165         * tests/test-expl.c: New file.
34166
34167         Tests for module 'cosl'.
34168         * modules/cosl-tests: New file.
34169         * tests/test-cosl.c: New file.
34170
34171         Tests for module 'atanl'.
34172         * modules/atanl-tests: New file.
34173         * tests/test-atanl.c: New file.
34174
34175         Tests for module 'asinl'.
34176         * modules/asinl-tests: New file.
34177         * tests/test-asinl.c: New file.
34178
34179         Tests for module 'acosl'.
34180         * modules/acosl-tests: New file.
34181         * tests/test-acosl.c: New file.
34182
34183         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34184         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34185         tanl): Use the standard gnulib idiom.
34186         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34187         * lib/sinl.c: Likewise.
34188         * lib/tanl.c: Don't include trigl.c.
34189         (kernel_tanl): Make static.
34190         * lib/sincosl.c: Include trigl.h first.
34191         * lib/trigl.c: Likewise.
34192         * m4/acosl.m4: New file.
34193         * m4/asinl.m4: New file.
34194         * m4/atanl.m4: New file.
34195         * m4/cosl.m4: New file.
34196         * m4/expl.m4: New file.
34197         * m4/logl.m4: New file.
34198         * m4/sinl.m4: New file.
34199         * m4/sqrtl.m4: New file.
34200         * m4/tanl.m4: New file.
34201         * m4/mathl.m4: Remove file.
34202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34203         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34204         Don't initialize GNULIB_MATHL.
34205         * modules/acosl: New file.
34206         * modules/asinl: New file.
34207         * modules/atanl: New file.
34208         * modules/cosl: New file.
34209         * modules/expl: New file.
34210         * modules/logl: New file.
34211         * modules/sinl: New file.
34212         * modules/sqrtl: New file.
34213         * modules/tanl: New file.
34214         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34215         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34216         substitute GNULIB_MATHL.
34217         * modules/mathl: Rewritten.
34218         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34219         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34220         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34221         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34222         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34223         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34224         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34225         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34226         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34227
34228 2010-01-18  Bruno Haible  <bruno@clisp.org>
34229
34230         sqrt: Make gl_FUNC_SQRT requirable.
34231         * m4/sqrt.m4: New file.
34232         * modules/sqrt (Files): Add it.
34233         (configure.ac): Invoke gl_FUNC_SQRT.
34234
34235 2010-01-18  Bruno Haible  <bruno@clisp.org>
34236
34237         New modules for common <math.h> functions.
34238         * m4/mathfunc.m4: New file.
34239         * modules/acos: New file.
34240         * modules/asin: New file.
34241         * modules/atan: New file.
34242         * modules/atan2: New file.
34243         * modules/cbrt: New file.
34244         * modules/copysign: New file.
34245         * modules/cos: New file.
34246         * modules/cosh: New file.
34247         * modules/erf: New file.
34248         * modules/erfc: New file.
34249         * modules/exp: New file.
34250         * modules/fabs: New file.
34251         * modules/fmod: New file.
34252         * modules/hypot: New file.
34253         * modules/j0: New file.
34254         * modules/j1: New file.
34255         * modules/jn: New file.
34256         * modules/ldexp: New file.
34257         * modules/lgamma: New file.
34258         * modules/log: New file.
34259         * modules/log10: New file.
34260         * modules/log1p: New file.
34261         * modules/logb: New file.
34262         * modules/modf: New file.
34263         * modules/nextafter: New file.
34264         * modules/pow: New file.
34265         * modules/remainder: New file.
34266         * modules/rint: New file.
34267         * modules/sin: New file.
34268         * modules/sinh: New file.
34269         * modules/sqrt: New file.
34270         * modules/tan: New file.
34271         * modules/tanh: New file.
34272         * modules/y0: New file.
34273         * modules/y1: New file.
34274         * modules/yn: New file.
34275         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34276         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34277         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34278         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34279         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34280         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34281         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34282         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34283         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34284         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34285         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34286         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34287         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34288         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34289         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34290         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34291         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34292         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34293         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34294         * doc/posix-functions/log.texi: Mention the 'log' module.
34295         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34296         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34297         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34298         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34299         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34300         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34301         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34302         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34303         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34304         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34305         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34306         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34307         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34308         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34309         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34310         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34311
34312 2010-01-18  Jim Meyering  <meyering@redhat.com>
34313
34314         ignore-value: relax license to LGPLv2+
34315         * modules/ignore-value (License): Relax to LGPLv2+.
34316
34317         getdate: don't leak when TZ contains two or more '"'s
34318         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34319         double quote in TZ after the first one.
34320
34321         readtokens: do not leak internal token_lengths buffer
34322         * lib/readtokens.c (readtokens): Free the local, lengths,
34323         when the supplied "token_lengths" parameter is NULL.
34324
34325 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34326
34327         Fix a couple of missing LIBTHREAD link failures on AIX.
34328         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34329         $(LIBTHREAD).
34330         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34331
34332         Link test-poll against INET_PTON_LIB.
34333         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34334         for inet_pton on Solaris 10.
34335
34336 2010-01-17  Bruno Haible  <bruno@clisp.org>
34337
34338         unistdio/*-sprintf: Fix typo in module description.
34339         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34340         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34341         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34342         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34343         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34344         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34345         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34347
34348 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34349
34350         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34351         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34352         variables in shell case patterns, for AIX and HP-UX ksh.
34353
34354         Split large sed scripts, for HP-UX sed.
34355         * modules/stdio: Split sed scripts around 50 sed commands,
34356         to avoid HP-UX limit of 99 commands, in the near future.
34357         * modules/string: Likewise.
34358         * modules/unistd: Likewise.
34359
34360         gnulib-tool: avoid writing in the current directory.
34361         * gnulib-tool (func_emit_lib_Makefile_am)
34362         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34363         not in the current directory, so concurrent gnulib-tool
34364         instances do not interfere.
34365
34366 2010-01-16  Jim Meyering  <meyering@redhat.com>
34367
34368         doc: update users.txt
34369         * users.txt: Add grep.
34370         (diffutils, gzip): Update URLs.
34371
34372 2010-01-12  Bruno Haible  <bruno@clisp.org>
34373
34374         posix_spawn: Avoid test failure on Cygwin.
34375         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34376         characters.
34377         Reported by Simon Josefsson.
34378
34379 2010-01-12  Bruno Haible  <bruno@clisp.org>
34380
34381         * tests/test-cond.c (main): When skipping the test, show the reason.
34382
34383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34384
34385         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34386
34387 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34388
34389         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34390         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34391
34392 2010-01-12  Eric Blake  <ebb9@byu.net>
34393
34394         build: guarantee AS_VAR_IF
34395         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34396         (gl_AS_VAR_IF): Move...
34397         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34398         Reported by Simon Josefsson.
34399
34400 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34401
34402         * lib/stdio.in.h: Fix typo.
34403
34404 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34405
34406         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34407         libgpg-error.
34408
34409 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34410
34411         * tests/test-xalloc-die.sh: Use $EXEEXT.
34412
34413 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34414             Bruno Haible  <bruno@clisp.org>
34415
34416         getlogin, getlogin_r: Avoid test failure.
34417         * tests/test-getlogin.c: Include <stdio.h>.
34418         (main): Skip the test when the function fails because stdin is not a
34419         tty.
34420         * tests/test-getlogin_r.c: Include <stdio.h>.
34421         (main): Skip the test when the function fails because stdin is not a
34422         tty.
34423
34424 2010-01-11  Eric Blake  <ebb9@byu.net>
34425
34426         tests: avoid more large file warnings
34427         * tests/test-fflush.c: Avoid warning about ftell use.
34428         * tests/test-fseek.c: Avoid warning about fseek use.
34429
34430 2010-01-10  Bruno Haible  <bruno@clisp.org>
34431
34432         nproc: Work better on Linux when /proc and /sys are not mounted.
34433         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34434         as lower bound when, on glibc/Linux systems,
34435         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34436         Suggested by Pádraig Brady <P@draigbrady.com>.
34437         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34438
34439         nproc: Refactor.
34440         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34441         extracted from num_processors.
34442         (num_processors): Call it.
34443
34444 2010-01-11  Jim Meyering  <meyering@redhat.com>
34445
34446         utimecmp: avoid new warning from upcoming gcc-4.5.0
34447         * lib/utimecmp.c (BILLION): Define using #define rather than an
34448         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34449
34450 2010-01-11  Eric Blake  <ebb9@byu.net>
34451
34452         math: add portability warnings for classification macros
34453         * modules/math (Depends-on): Add warn-on-use.
34454         (Makefile.am): Provide new substitutions.
34455         * m4/math_h.m4 (gl_MATH_H): Require inline.
34456         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34457         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34458         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34459         implement warnings.
34460
34461         unistd: warn on use of environ without module
34462         * modules/unistd (Depends-on): Add warn-on-use.
34463         (Makefile.am): Provide new substitutions.
34464         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34465         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34466
34467         stdio: warn on suspicious uses
34468         * modules/stdio (Depends-on): Add warn-on-use.
34469         (Makefile.am): Provide new substitutions.
34470         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34471         fseeko.
34472         * lib/stdio.in.h (gets): Always warn on use.
34473         (fseek, ftell): Adjust when warnings are issued, and honor
34474         _GL_NO_LARGE_FILES as a way to silence the warning.
34475         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34476         any warning about large file offsets.
34477         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34478         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34479         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34480         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34481         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34482         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34483         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34484         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34485
34486         warn-on-use: new module
34487         * modules/warn-on-use: New file.
34488         * build-aux/warn-on-use.h: Likewise.
34489         * m4/warn-on-use.m4: Likewise.
34490         * MODULES.html.sh (Support for building): Mention it.
34491
34492 2010-01-10  Bruno Haible  <bruno@clisp.org>
34493
34494         Tests for module 'unistr/u32-strdup'.
34495         * modules/unistr/u32-strdup-tests: New file.
34496         * tests/unistr/test-u32-strdup.c: New file.
34497
34498         Tests for module 'unistr/u16-strdup'.
34499         * modules/unistr/u16-strdup-tests: New file.
34500         * tests/unistr/test-u16-strdup.c: New file.
34501
34502         Tests for module 'unistr/u8-strdup'.
34503         * modules/unistr/u8-strdup-tests: New file.
34504         * tests/unistr/test-u8-strdup.c: New file.
34505         * tests/unistr/test-strdup.h: New file.
34506
34507         Tests for module 'unistr/u32-strncmp'.
34508         * modules/unistr/u32-strncmp-tests: New file.
34509         * tests/unistr/test-u32-strncmp.c: New file.
34510
34511         Tests for module 'unistr/u16-strncmp'.
34512         * modules/unistr/u16-strncmp-tests: New file.
34513         * tests/unistr/test-u16-strncmp.c: New file.
34514
34515         Tests for module 'unistr/u8-strncmp'.
34516         * modules/unistr/u8-strncmp-tests: New file.
34517         * tests/unistr/test-u8-strncmp.c: New file.
34518         * tests/unistr/test-strncmp.h: New file.
34519
34520         Tests for module 'unistr/u32-strcoll'.
34521         * modules/unistr/u32-strcoll-tests: New file.
34522         * tests/unistr/test-u32-strcoll.c: New file.
34523
34524         Tests for module 'unistr/u16-strcoll'.
34525         * modules/unistr/u16-strcoll-tests: New file.
34526         * tests/unistr/test-u16-strcoll.c: New file.
34527
34528         Tests for module 'unistr/u8-strcoll'.
34529         * modules/unistr/u8-strcoll-tests: New file.
34530         * tests/unistr/test-u8-strcoll.c: New file.
34531
34532         Tests for module 'unistr/u32-strcmp'.
34533         * modules/unistr/u32-strcmp-tests: New file.
34534         * tests/unistr/test-u32-strcmp.c: New file.
34535         * tests/unistr/test-u32-strcmp.h: New file.
34536
34537         Tests for module 'unistr/u16-strcmp'.
34538         * modules/unistr/u16-strcmp-tests: New file.
34539         * tests/unistr/test-u16-strcmp.c: New file.
34540         * tests/unistr/test-u16-strcmp.h: New file.
34541
34542         Tests for module 'unistr/u8-strcmp'.
34543         * modules/unistr/u8-strcmp-tests: New file.
34544         * tests/unistr/test-u8-strcmp.c: New file.
34545         * tests/unistr/test-u8-strcmp.h: New file.
34546         * tests/unistr/test-strcmp.h: New file.
34547
34548         Tests for module 'unistr/u32-strncat'.
34549         * modules/unistr/u32-strncat-tests: New file.
34550         * tests/unistr/test-u32-strncat.c: New file.
34551
34552         Tests for module 'unistr/u16-strncat'.
34553         * modules/unistr/u16-strncat-tests: New file.
34554         * tests/unistr/test-u16-strncat.c: New file.
34555
34556         Tests for module 'unistr/u8-strncat'.
34557         * modules/unistr/u8-strncat-tests: New file.
34558         * tests/unistr/test-u8-strncat.c: New file.
34559         * tests/unistr/test-strncat.h: New file.
34560
34561         Tests for module 'unistr/u32-strcat'.
34562         * modules/unistr/u32-strcat-tests: New file.
34563         * tests/unistr/test-u32-strcat.c: New file.
34564
34565         Tests for module 'unistr/u16-strcat'.
34566         * modules/unistr/u16-strcat-tests: New file.
34567         * tests/unistr/test-u16-strcat.c: New file.
34568
34569         Tests for module 'unistr/u8-strcat'.
34570         * modules/unistr/u8-strcat-tests: New file.
34571         * tests/unistr/test-u8-strcat.c: New file.
34572         * tests/unistr/test-strcat.h: New file.
34573
34574         Tests for module 'unistr/u32-stpncpy'.
34575         * modules/unistr/u32-stpncpy-tests: New file.
34576         * tests/unistr/test-u32-stpncpy.c: New file.
34577
34578         Tests for module 'unistr/u16-stpncpy'.
34579         * modules/unistr/u16-stpncpy-tests: New file.
34580         * tests/unistr/test-u16-stpncpy.c: New file.
34581
34582         Tests for module 'unistr/u8-stpncpy'.
34583         * modules/unistr/u8-stpncpy-tests: New file.
34584         * tests/unistr/test-u8-stpncpy.c: New file.
34585         * tests/unistr/test-stpncpy.h: New file.
34586
34587         Tests for module 'unistr/u32-strncpy'.
34588         * modules/unistr/u32-strncpy-tests: New file.
34589         * tests/unistr/test-u32-strncpy.c: New file.
34590
34591         Tests for module 'unistr/u16-strncpy'.
34592         * modules/unistr/u16-strncpy-tests: New file.
34593         * tests/unistr/test-u16-strncpy.c: New file.
34594
34595         Tests for module 'unistr/u8-strncpy'.
34596         * modules/unistr/u8-strncpy-tests: New file.
34597         * tests/unistr/test-u8-strncpy.c: New file.
34598         * tests/unistr/test-strncpy.h: New file.
34599
34600         Tests for module 'unistr/u32-stpcpy'.
34601         * modules/unistr/u32-stpcpy-tests: New file.
34602         * tests/unistr/test-u32-stpcpy.c: New file.
34603
34604         Tests for module 'unistr/u16-stpcpy'.
34605         * modules/unistr/u16-stpcpy-tests: New file.
34606         * tests/unistr/test-u16-stpcpy.c: New file.
34607
34608         Tests for module 'unistr/u8-stpcpy'.
34609         * modules/unistr/u8-stpcpy-tests: New file.
34610         * tests/unistr/test-u8-stpcpy.c: New file.
34611         * tests/unistr/test-stpcpy.h: New file.
34612
34613         Tests for module 'unistr/u32-strcpy'.
34614         * modules/unistr/u32-strcpy-tests: New file.
34615         * tests/unistr/test-u32-strcpy.c: New file.
34616
34617         Tests for module 'unistr/u16-strcpy'.
34618         * modules/unistr/u16-strcpy-tests: New file.
34619         * tests/unistr/test-u16-strcpy.c: New file.
34620
34621         Tests for module 'unistr/u8-strcpy'.
34622         * modules/unistr/u8-strcpy-tests: New file.
34623         * tests/unistr/test-u8-strcpy.c: New file.
34624         * tests/unistr/test-strcpy.h: New file.
34625
34626         Tests for module 'unistr/u32-strnlen'.
34627         * modules/unistr/u32-strnlen-tests: New file.
34628         * tests/unistr/test-u32-strnlen.c: New file.
34629
34630         Tests for module 'unistr/u16-strnlen'.
34631         * modules/unistr/u16-strnlen-tests: New file.
34632         * tests/unistr/test-u16-strnlen.c: New file.
34633
34634         Tests for module 'unistr/u8-strnlen'.
34635         * modules/unistr/u8-strnlen-tests: New file.
34636         * tests/unistr/test-u8-strnlen.c: New file.
34637         * tests/unistr/test-strnlen.h: New file.
34638
34639         Tests for module 'unistr/u32-strlen'.
34640         * modules/unistr/u32-strlen-tests: New file.
34641         * tests/unistr/test-u32-strlen.c: New file.
34642
34643         Tests for module 'unistr/u16-strlen'.
34644         * modules/unistr/u16-strlen-tests: New file.
34645         * tests/unistr/test-u16-strlen.c: New file.
34646
34647         Tests for module 'unistr/u8-strlen'.
34648         * modules/unistr/u8-strlen-tests: New file.
34649         * tests/unistr/test-u8-strlen.c: New file.
34650
34651         Tests for module 'unistr/u32-prev'.
34652         * modules/unistr/u32-prev-tests: New file.
34653         * tests/unistr/test-u32-prev.c: New file.
34654
34655         Tests for module 'unistr/u16-prev'.
34656         * modules/unistr/u16-prev-tests: New file.
34657         * tests/unistr/test-u16-prev.c: New file.
34658
34659         Tests for module 'unistr/u8-prev'.
34660         * modules/unistr/u8-prev-tests: New file.
34661         * tests/unistr/test-u8-prev.c: New file.
34662
34663         Tests for module 'unistr/u32-next'.
34664         * modules/unistr/u32-next-tests: New file.
34665         * tests/unistr/test-u32-next.c: New file.
34666
34667         Tests for module 'unistr/u16-next'.
34668         * modules/unistr/u16-next-tests: New file.
34669         * tests/unistr/test-u16-next.c: New file.
34670
34671         Tests for module 'unistr/u8-next'.
34672         * modules/unistr/u8-next-tests: New file.
34673         * tests/unistr/test-u8-next.c: New file.
34674
34675         Tests for module 'unistr/u32-strmbtouc'.
34676         * modules/unistr/u32-strmbtouc-tests: New file.
34677         * tests/unistr/test-u32-strmbtouc.c: New file.
34678
34679         Tests for module 'unistr/u16-strmbtouc'.
34680         * modules/unistr/u16-strmbtouc-tests: New file.
34681         * tests/unistr/test-u16-strmbtouc.c: New file.
34682
34683         Tests for module 'unistr/u8-strmbtouc'.
34684         * modules/unistr/u8-strmbtouc-tests: New file.
34685         * tests/unistr/test-u8-strmbtouc.c: New file.
34686
34687         Tests for module 'unistr/u32-strmblen'.
34688         * modules/unistr/u32-strmblen-tests: New file.
34689         * tests/unistr/test-u32-strmblen.c: New file.
34690
34691         Tests for module 'unistr/u16-strmblen'.
34692         * modules/unistr/u16-strmblen-tests: New file.
34693         * tests/unistr/test-u16-strmblen.c: New file.
34694
34695         Tests for module 'unistr/u8-strmblen'.
34696         * modules/unistr/u8-strmblen-tests: New file.
34697         * tests/unistr/test-u8-strmblen.c: New file.
34698
34699         Tests for module 'unistr/u32-cpy-alloc'.
34700         * modules/unistr/u32-cpy-alloc-tests: New file.
34701         * tests/unistr/test-u32-cpy-alloc.c: New file.
34702
34703         Tests for module 'unistr/u16-cpy-alloc'.
34704         * modules/unistr/u16-cpy-alloc-tests: New file.
34705         * tests/unistr/test-u16-cpy-alloc.c: New file.
34706
34707         Tests for module 'unistr/u8-cpy-alloc'.
34708         * modules/unistr/u8-cpy-alloc-tests: New file.
34709         * tests/unistr/test-u8-cpy-alloc.c: New file.
34710         * tests/unistr/test-cpy-alloc.h: New file.
34711
34712         Tests for module 'unistr/u32-mbsnlen'.
34713         * modules/unistr/u32-mbsnlen-tests: New file.
34714         * tests/unistr/test-u32-mbsnlen.c: New file.
34715
34716         Tests for module 'unistr/u16-mbsnlen'.
34717         * modules/unistr/u16-mbsnlen-tests: New file.
34718         * tests/unistr/test-u16-mbsnlen.c: New file.
34719
34720         Tests for module 'unistr/u8-mbsnlen'.
34721         * modules/unistr/u8-mbsnlen-tests: New file.
34722         * tests/unistr/test-u8-mbsnlen.c: New file.
34723
34724         Tests for module 'unistr/u32-chr'.
34725         * modules/unistr/u32-chr-tests: New file.
34726         * tests/unistr/test-u32-chr.c: New file.
34727
34728         Tests for module 'unistr/u16-chr'.
34729         * modules/unistr/u16-chr-tests: New file.
34730         * tests/unistr/test-u16-chr.c: New file.
34731
34732         Tests for module 'unistr/u8-chr'.
34733         * modules/unistr/u8-chr-tests: New file.
34734         * tests/unistr/test-u8-chr.c: New file.
34735         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34736
34737         Tests for module 'unistr/u32-cmp2'.
34738         * modules/unistr/u32-cmp2-tests: New file.
34739         * tests/unistr/test-u32-cmp2.c: New file.
34740
34741         Tests for module 'unistr/u16-cmp2'.
34742         * modules/unistr/u16-cmp2-tests: New file.
34743         * tests/unistr/test-u16-cmp2.c: New file.
34744
34745         Tests for module 'unistr/u8-cmp2'.
34746         * modules/unistr/u8-cmp2-tests: New file.
34747         * tests/unistr/test-u8-cmp2.c: New file.
34748         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34749
34750         Tests for module 'unistr/u32-cmp'.
34751         * modules/unistr/u32-cmp-tests: New file.
34752         * tests/unistr/test-u32-cmp.c: New file.
34753
34754         Tests for module 'unistr/u16-cmp'.
34755         * modules/unistr/u16-cmp-tests: New file.
34756         * tests/unistr/test-u16-cmp.c: New file.
34757
34758         Tests for module 'unistr/u8-cmp'.
34759         * modules/unistr/u8-cmp-tests: New file.
34760         * tests/unistr/test-u8-cmp.c: New file.
34761         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34762
34763         Tests for module 'unistr/u32-set'.
34764         * modules/unistr/u32-set-tests: New file.
34765         * tests/unistr/test-u32-set.c: New file.
34766
34767         Tests for module 'unistr/u16-set'.
34768         * modules/unistr/u16-set-tests: New file.
34769         * tests/unistr/test-u16-set.c: New file.
34770
34771         Tests for module 'unistr/u8-set'.
34772         * modules/unistr/u8-set-tests: New file.
34773         * tests/unistr/test-u8-set.c: New file.
34774         * tests/unistr/test-set.h: New file.
34775
34776         Tests for module 'unistr/u32-move'.
34777         * modules/unistr/u32-move-tests: New file.
34778         * tests/unistr/test-u32-move.c: New file.
34779
34780         Tests for module 'unistr/u16-move'.
34781         * modules/unistr/u16-move-tests: New file.
34782         * tests/unistr/test-u16-move.c: New file.
34783
34784         Tests for module 'unistr/u8-move'.
34785         * modules/unistr/u8-move-tests: New file.
34786         * tests/unistr/test-u8-move.c: New file.
34787         * tests/unistr/test-move.h: New file.
34788
34789         Tests for module 'unistr/u32-cpy'.
34790         * modules/unistr/u32-cpy-tests: New file.
34791         * tests/unistr/test-u32-cpy.c: New file.
34792
34793         Tests for module 'unistr/u16-cpy'.
34794         * modules/unistr/u16-cpy-tests: New file.
34795         * tests/unistr/test-u16-cpy.c: New file.
34796
34797         Tests for module 'unistr/u8-cpy'.
34798         * modules/unistr/u8-cpy-tests: New file.
34799         * tests/unistr/test-u8-cpy.c: New file.
34800         * tests/unistr/test-cpy.h: New file.
34801
34802 2010-01-09  Bruno Haible  <bruno@clisp.org>
34803
34804         Tests for module 'unistr/u32-uctomb'.
34805         * modules/unistr/u32-uctomb-tests: New file.
34806         * tests/unistr/test-u32-uctomb.c: New file.
34807
34808         Tests for module 'unistr/u16-uctomb'.
34809         * modules/unistr/u16-uctomb-tests: New file.
34810         * tests/unistr/test-u16-uctomb.c: New file.
34811
34812         Tests for module 'unistr/u8-uctomb'.
34813         * modules/unistr/u8-uctomb-tests: New file.
34814         * tests/unistr/test-u8-uctomb.c: New file.
34815
34816         Tests for module 'unistr/u32-mbtoucr'.
34817         * modules/unistr/u32-mbtoucr-tests: New file.
34818         * tests/unistr/test-u32-mbtoucr.c: New file.
34819
34820         Tests for module 'unistr/u16-mbtoucr'.
34821         * modules/unistr/u16-mbtoucr-tests: New file.
34822         * tests/unistr/test-u16-mbtoucr.c: New file.
34823
34824         Tests for module 'unistr/u8-mbtoucr'.
34825         * modules/unistr/u8-mbtoucr-tests: New file.
34826         * tests/unistr/test-u8-mbtoucr.c: New file.
34827
34828         Tests for module 'unistr/u32-mbtouc'.
34829         * modules/unistr/u32-mbtouc-tests: New file.
34830         * tests/unistr/test-u32-mbtouc.c: New file.
34831
34832         Tests for module 'unistr/u16-mbtouc'.
34833         * modules/unistr/u16-mbtouc-tests: New file.
34834         * tests/unistr/test-u16-mbtouc.c: New file.
34835
34836         Tests for module 'unistr/u8-mbtouc'.
34837         * modules/unistr/u8-mbtouc-tests: New file.
34838         * tests/unistr/test-u8-mbtouc.c: New file.
34839
34840         Tests for module 'unistr/u32-mbtouc-unsafe'.
34841         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34842         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34843         * tests/unistr/test-u32-mbtouc.h: New file.
34844
34845         Tests for module 'unistr/u16-mbtouc-unsafe'.
34846         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34847         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34848         * tests/unistr/test-u16-mbtouc.h: New file.
34849
34850         Tests for module 'unistr/u8-mbtouc-unsafe'.
34851         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34852         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34853         * tests/unistr/test-u8-mbtouc.h: New file.
34854
34855         Tests for module 'unistr/u32-mblen'.
34856         * modules/unistr/u32-mblen-tests: New file.
34857         * tests/unistr/test-u32-mblen.c: New file.
34858
34859         Tests for module 'unistr/u16-mblen'.
34860         * modules/unistr/u16-mblen-tests: New file.
34861         * tests/unistr/test-u16-mblen.c: New file.
34862
34863         Tests for module 'unistr/u8-mblen'.
34864         * modules/unistr/u8-mblen-tests: New file.
34865         * tests/unistr/test-u8-mblen.c: New file.
34866
34867         Tests for module 'unistr/u32-to-u16'.
34868         * modules/unistr/u32-to-u16-tests: New file.
34869         * tests/unistr/test-u32-to-u16.c: New file.
34870
34871         Tests for module 'unistr/u32-to-u8'.
34872         * modules/unistr/u32-to-u8-tests: New file.
34873         * tests/unistr/test-u32-to-u8.c: New file.
34874
34875         Tests for module 'unistr/u16-to-u32'.
34876         * modules/unistr/u16-to-u32-tests: New file.
34877         * tests/unistr/test-u16-to-u32.c: New file.
34878
34879         Tests for module 'unistr/u16-to-u8'.
34880         * modules/unistr/u16-to-u8-tests: New file.
34881         * tests/unistr/test-u16-to-u8.c: New file.
34882
34883         Tests for module 'unistr/u8-to-u32'.
34884         * modules/unistr/u8-to-u32-tests: New file.
34885         * tests/unistr/test-u8-to-u32.c: New file.
34886
34887         Tests for module 'unistr/u8-to-u16'.
34888         * modules/unistr/u8-to-u16-tests: New file.
34889         * tests/unistr/test-u8-to-u16.c: New file.
34890
34891         Tests for module 'unistr/u32-check'.
34892         * modules/unistr/u32-check-tests: New file.
34893         * tests/unistr/test-u32-check.c: New file.
34894
34895         Tests for module 'unistr/u16-check'.
34896         * modules/unistr/u16-check-tests: New file.
34897         * tests/unistr/test-u16-check.c: New file.
34898
34899         Tests for module 'unistr/u8-check'.
34900         * modules/unistr/u8-check-tests: New file.
34901         * tests/unistr/test-u8-check.c: New file.
34902
34903         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34904         (category_equals): New function.
34905         (main): Add more tests.
34906         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34907
34908         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34909
34910 2010-01-10  Bruno Haible  <bruno@clisp.org>
34911
34912         unistr/u*-strcoll: Try harder to distinguish different strings.
34913         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34914         compare s1 and s2 to see if they are different.
34915
34916 2010-01-10  Bruno Haible  <bruno@clisp.org>
34917
34918         unistr/u*-stpncpy: Fix the return value.
34919         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34920         description of the return value consistent with stpncpy in glibc.
34921         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34922         written non-NUL unit.
34923
34924 2010-01-10  Bruno Haible  <bruno@clisp.org>
34925
34926         unistr/u*-next: Add missing dependencies.
34927         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34928         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34929         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34930
34931 2010-01-10  Bruno Haible  <bruno@clisp.org>
34932
34933         unistr/u8-mbsnlen: Fix return value for incomplete character.
34934         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34935         u8_mblen.
34936         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34937         Remove unistr/u8-mblen.
34938         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34939         u16_mblen.
34940         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34941         Remove unistr/u16-mblen.
34942
34943 2010-01-10  Bruno Haible  <bruno@clisp.org>
34944
34945         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34946         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34947         Reported by Brian Gough <bjg@gnu.org> and
34948         Chris Clayton <chris2553@googlemail.com> via
34949         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34950
34951 2010-01-09  Bruno Haible  <bruno@clisp.org>
34952
34953         unistr/u16-to-u32: Reject invalid input.
34954         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34955         u16_mbtouc.
34956         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34957         Remove unistr/u16-mbtouc.
34958
34959         unistr/u16-to-u8: Reject invalid input.
34960         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34961         u16_mbtouc.
34962         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34963         Remove unistr/u16-mbtouc.
34964
34965         unistr/u8-to-u32: Reject invalid input.
34966         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34967         u8_mbtouc.
34968         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34969         Remove unistr/u8-mbtouc.
34970
34971         unistr/u8-to-u16: Reject invalid input.
34972         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34973         u8_mbtouc.
34974         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34975         Remove unistr/u8-mbtouc.
34976
34977 2010-01-09  Bruno Haible  <bruno@clisp.org>
34978
34979         Tests for module 'getlogin'.
34980         * modules/getlogin-tests: New file.
34981         * tests/test-getlogin.c: New file.
34982
34983         New module 'getlogin'.
34984         * lib/unistd.in.h (getlogin): New declaration.
34985         * lib/getlogin.c: New file.
34986         * m4/getlogin.m4: New file.
34987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34988         HAVE_GETLOGIN.
34989         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34990         HAVE_GETLOGIN.
34991         * modules/getlogin: New file.
34992         * doc/posix-functions/getlogin.texi: Mention the new module.
34993         Reported by John W. Eaton <jwe@gnu.org>.
34994
34995 2010-01-09  Bruno Haible  <bruno@clisp.org>
34996
34997         getlogin_r: Support for native Windows.
34998         * lib/getlogin_r.c: Include <windows.h>
34999         (getlogin_r): Implement for native Windows.
35000         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35001         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35002         via John W. Eaton <jwe@gnu.org>.
35003
35004 2010-01-09  Bruno Haible  <bruno@clisp.org>
35005
35006         getlogin_r: Small fixes.
35007         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35008         succeeds.
35009         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35010         before testing whether getlogin_r is declared. No need to set
35011         HAVE_DECL_GETLOGIN_R to 1.
35012         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35013
35014 2010-01-09  Bruno Haible  <bruno@clisp.org>
35015
35016         * lib/unistd.in.h (getlogin_r): Add comment.
35017
35018 2010-01-09  Bruno Haible  <bruno@clisp.org>
35019
35020         Tests for module 'getlogin_r'.
35021         * modules/getlogin_r-tests: New file.
35022         * tests/test-getlogin_r.c: New file.
35023
35024 2010-01-09  Jim Meyering  <meyering@redhat.com>
35025
35026         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35027         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35028         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35029
35030 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35031
35032         * lib/dup2.c (rpl_dup2): Improve comment.
35033
35034 2010-01-08  Eric Blake  <ebb9@byu.net>
35035
35036         maint.mk: allow packages to add makefile @@ exceptions
35037         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35038         (sc_makefile_check): Rename...
35039         (sc_makefile_at_at_check): ...to this, and use hook.
35040
35041         dup2: work around mingw bug
35042         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35043         Reported by Simon Josefsson.
35044
35045 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35046
35047         glob: Fix C++ compilation.
35048         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35049         C++.
35050
35051 2010-01-07  Bruno Haible  <bruno@clisp.org>
35052
35053         Fix indentation of wctype.in.h, broken since 2007-01-06.
35054         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35055
35056 2010-01-07  Bruno Haible  <bruno@clisp.org>
35057
35058         mbslen: Avoid collision with system function.
35059         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35060         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35061         * m4/mbslen.m4: New file.
35062         * modules/mbslen (Files): Add it.
35063         (configure.ac): Invoke gl_MBSLEN.
35064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35065         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35066         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35067         via Ian Beckwith <ianb@erislabs.net>.
35068
35069 2010-01-07  Bruno Haible  <bruno@clisp.org>
35070
35071         dirent: Document the last fix.
35072         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35073
35074 2010-01-07  Bruno Haible  <bruno@clisp.org>
35075
35076         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35077         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35078         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35079         va_list are defined.
35080         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35081         Reported by Eric Blake.
35082
35083 2010-01-07  Bruno Haible  <bruno@clisp.org>
35084
35085         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35086         * modules/xlist (Depends-on): Add 'list',
35087         * modules/xoset (Depends-on): Add 'oset'.
35088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35089
35090 2010-01-07  Bruno Haible  <bruno@clisp.org>
35091
35092         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35093         * doc/posix-functions/strncasecmp.texi: Likewise.
35094
35095 2010-01-07  Bruno Haible  <bruno@clisp.org>
35096
35097         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35098
35099 2010-01-07  John W. Eaton  <jwe@octave.org>
35100
35101         wctype: allow C++ use
35102         * lib/wctype.in.h: Add extern "C" block for C++.
35103
35104 2010-01-06  Eric Blake  <ebb9@byu.net>
35105
35106         maint.mk: detect incorrect GFDL usage
35107         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35108
35109 2010-01-06  Jim Meyering  <meyering@redhat.com>
35110         and Eric Blake  <ebb9@byu.net>
35111
35112         maint.mk: ignore multi-line copyright in NEWS
35113         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35114
35115 2010-01-06  Eric Blake  <ebb9@byu.net>
35116
35117         select: add missing dependency
35118         * modules/select-tests (Depends-on): Move sockets dependency...
35119         * modules/select (Depends-on): ...here.
35120         Reported by Ian Beckwith.
35121
35122         doc: regenerate INSTALL
35123         * doc/INSTALL: Reflect recent autoconf update.
35124         * doc/INSTALL.ISO: Likewise.
35125         * doc/INSTALL.UTF-8: Likewise.
35126
35127         pread: fix compilation on glibc
35128         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35129         Reported by Ralf Wildenhues.
35130
35131         dirent: fix test failure
35132         * lib/dirent.in.h (includes): Guarantee ino_t.
35133         Reported by Ralf Wildenhues.
35134
35135 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35136
35137         linkat, renameat: avoid bad free
35138         * lib/at-func2.c (at_func2): Fix typo.
35139         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35140
35141 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35142
35143         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35144         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35145         to avoid failure of symlink test later.
35146
35147 2010-01-06  Eric Blake  <ebb9@byu.net>
35148
35149         stdio, unistd: guarantee ssize_t
35150         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35151         2008 are exposed when needed.
35152         * lib/stdio.in.h (includes): Likewise.
35153         Reported by Ralf Wildenhues.
35154
35155 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35156
35157         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35158         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35159         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35160
35161 2010-01-06  Jim Meyering  <meyering@redhat.com>
35162
35163         readtokens: this module *does* require xalloc.h
35164         It uses only functions that were omitted by the old syntax-check rule.
35165         * lib/readtokens.c: Include "xalloc.h" once again.
35166         * modules/readtokens (Depends-on): Add xalloc.
35167         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35168
35169 2010-01-05  Eric Blake  <ebb9@byu.net>
35170
35171         maint: support 'make announcement' from a VPATH build
35172         * top/maint.mk (announcement): Look for correct NEWS file.
35173
35174 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35175
35176         utimens (fdutimens): ignore a negative FD, per contract
35177         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35178         when we have a valid file descriptor.  Otherwise, using a brand
35179         new glibc (with just-patched futimens that now fails with EBADF)
35180         would cause this function to fail with ENOSYS.
35181         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35182         See also http://bugzilla.redhat.com/552320.
35183
35184 2010-01-05  Eric Blake  <ebb9@byu.net>
35185
35186         strcase: document what it provides
35187         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35188         gnulib module.
35189         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35190         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35191
35192 2010-01-05  Jim Meyering  <meyering@redhat.com>
35193
35194         maint: remove useless inclusions of "xalloc.h"
35195         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35196         * lib/readtokens.c: Likewise.
35197         * lib/same.c: Likewise.
35198         * modules/getloadavg (Depends-on): Remove xalloc.
35199         * modules/readtokens: Likewise.
35200         * modules/same: Likewise.
35201
35202         maint.mk: include 4 more function names in alloca.h-checking regexp
35203         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35204         regexp.  Before, we would give a false-positive (saying alloca.h
35205         is included unnecessarily) when the only uses involved omitted symbols.
35206
35207         xalloc.h: use consistent formatting
35208         * lib/xalloc.h: Move declarations to start in the first column.
35209
35210 2010-01-05  Eric Blake  <ebb9@byu.net>
35211
35212         mkdir: avoid xalloc
35213         * lib/mkdir.c (includes): Drop unused header.
35214         Reported by John W. Eaton.
35215
35216 2010-01-04  Jim Meyering  <meyering@redhat.com>
35217
35218         nl_langinfo: avoid configure-time syntax error
35219         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35220         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35221         the empty string.  Don't let that provoke a shell syntax error.
35222
35223         regcomp, regexec, fnmatch: avoid array bounds read error
35224         * lib/regcomp.c (build_equiv_class): From glibc:
35225         Use only the low 24 bits of a findidx return value as an index
35226         into the weights array.  Patch by Ulrich Drepper:
35227         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35228         * lib/regexec.c (check_node_accept_bytes): Likewise.
35229         * lib/fnmatch_loop.c (FCT): Likewise.
35230
35231         regcomp: skip collseq lookup when there are no rules
35232         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35233         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35234
35235         regcomp: recognize ill-formed { } expressions
35236         * lib/regcomp.c (parse_dup_op): From glibc:
35237         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35238
35239         regcomp: fix typo in comment
35240         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35241         s/satisfy/satisfies/.
35242
35243         regcomp: sync from glibc: remove dead store
35244         * lib/regcomp.c (duplicate_node_closure): Remove useless
35245         search_duplicated_node call and dead store.
35246
35247         regcomp: sync from glibc; always use nl_langinfo
35248         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35249         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35250         * modules/regex (Depends-on): Add nl_langinfo.
35251
35252 2010-01-04  Eric Blake  <ebb9@byu.net>
35253
35254         fdopendir: fix configure test
35255         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35256
35257 2010-01-01  Bruno Haible  <bruno@clisp.org>
35258
35259         wchar: Remove unused configure check.
35260         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35261
35262 2010-01-01  Eric Blake  <ebb9@byu.net>
35263
35264         headers: make check of system header explicit
35265         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35266         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35267         ourselves.
35268         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35269         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35270         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35271         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35272         internals.
35273         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35274         missing.
35275         Suggested by Bruno Haible.
35276
35277 2010-01-01  Jim Meyering  <meyering@redhat.com>
35278
35279         ChangeLog: tweak to eliminate unnecessary copyright line
35280         * ChangeLog: Remove a copyright line that was mistakenly updated
35281         by today's update-copyright run.  Reported by Eric Blake.
35282
35283         test-update-copyright: don't let envvar setting cause test failure
35284         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35285
35286 2010-01-01  Bruno Haible  <bruno@clisp.org>
35287
35288         localename: Avoid gcc warning.
35289         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35290         function if it is not used.
35291
35292 2010-01-01  Jim Meyering  <meyering@redhat.com>
35293
35294         update nearly all FSF copyright year lists to include 2010
35295         Use the same procedure as for 2009, outlined in
35296         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35297
35298         version-etc: set COPYRIGHT_YEAR to 2010
35299         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35300
35301 2009-12-31  Eric Blake  <ebb9@byu.net>
35302
35303         doc: correct availability of cygwin 1.5.x getopt
35304         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35305         variables.
35306         * doc/posix-functions/opterr.texi (opterr): Likewise.
35307         * doc/posix-functions/optind.texi (optind): Likewise.
35308         * doc/posix-functions/optopt.texi (optopt): Likewise.
35309         * doc/posix-functions/tzname.texi (tzname): Likewise.
35310
35311         openat: update maintainer
35312         * modules/openat (Maintainer): Add myself.
35313
35314         utimens: avoid shadowing warning
35315         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35316         buffers into one, to avoid shadowing, as well as avoiding a
35317         redundant stat.
35318         Reported by Jim Meyering.
35319
35320         test-dup2: avoid compiler warning
35321         * tests/test-dup2.c (is_inheritable): Only define if used.
35322
35323 2010-01-01  Bruno Haible  <bruno@clisp.org>
35324
35325         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35326         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35327         defined, use wctomb instead of wcrtomb.
35328
35329 2010-01-01  Bruno Haible  <bruno@clisp.org>
35330
35331         iconv: Reject native Solaris iconv.
35332         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35333         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35334
35335 2009-12-31  Bruno Haible  <bruno@clisp.org>
35336
35337         * tests/test-signal.c (main): Remove test of 'SIG'.
35338
35339 2009-12-31  Bruno Haible  <bruno@clisp.org>
35340
35341         spawn: Fix incomplete fix.
35342         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35343         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35344         warnings for GNULIB_POSIXCHECK again.
35345         Reported by Eric Blake.
35346
35347 2009-12-31  Bruno Haible  <bruno@clisp.org>
35348
35349         Avoid namespace pollution on glibc systems.
35350         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35351         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35352         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35353         glibc systems.
35354
35355 2009-12-31  Bruno Haible  <bruno@clisp.org>
35356
35357         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35358         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35359         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35360         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35361         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35362         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35363         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35364
35365 2009-12-31  Bruno Haible  <bruno@clisp.org>
35366
35367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35368         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35369         afterwards.
35370
35371 2009-12-31  Bruno Haible  <bruno@clisp.org>
35372
35373         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35374         SYS_UTSNAME_H.
35375
35376 2009-12-31  Bruno Haible  <bruno@clisp.org>
35377
35378         spawn: Fix misapplied patch.
35379         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35380         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35381         warnings for GNULIB_POSIXCHECK.
35382
35383 2009-12-31  Bruno Haible  <bruno@clisp.org>
35384
35385         times: Update after sys_times changed.
35386         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35387         * modules/times (Files): Add it.
35388         (configure.ac): Invoke gl_FUNC_TIMES.
35389
35390 2009-12-31  Bruno Haible  <bruno@clisp.org>
35391
35392         Use AC_C_INLINE where necessary.
35393         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35394         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35395         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35396         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35397         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35398         * m4/mbiter.m4 (gl_MBITER): Likewise.
35399         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35400         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35401         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35402         * modules/u64 (configure.ac): Likewise.
35403
35404 2009-12-31  Bruno Haible  <bruno@clisp.org>
35405
35406         Use AC_C_INLINE instead of module 'inline' where possible.
35407         * modules/inline (Description): Clarify purpose.
35408         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35409         * modules/count-one-bits (Depends-on): Remove inline.
35410         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35411         * modules/openat (Depends-on): Remove inline.
35412         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35413         instead of depending on module 'inline'.
35414         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35415         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35416         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35417         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35418         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35419         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35420         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35421         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35422         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35423         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35424         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35425         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35426         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35427         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35428         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35429         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35430         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35431         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35432         Likewise.
35433         * modules/unictype/property-ascii-hex-digit (Depends-on,
35434         configure.ac): Likewise.
35435         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35436         configure.ac): Likewise.
35437         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35438         configure.ac): Likewise.
35439         * modules/unictype/property-bidi-block-separator (Depends-on,
35440         configure.ac): Likewise.
35441         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35442         configure.ac): Likewise.
35443         * modules/unictype/property-bidi-common-separator (Depends-on,
35444         configure.ac): Likewise.
35445         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35446         Likewise.
35447         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35448         configure.ac): Likewise.
35449         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35450         configure.ac): Likewise.
35451         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35452         configure.ac): Likewise.
35453         * modules/unictype/property-bidi-european-digit (Depends-on,
35454         configure.ac): Likewise.
35455         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35456         configure.ac): Likewise.
35457         * modules/unictype/property-bidi-left-to-right (Depends-on,
35458         configure.ac): Likewise.
35459         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35460         configure.ac): Likewise.
35461         * modules/unictype/property-bidi-other-neutral (Depends-on,
35462         configure.ac): Likewise.
35463         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35464         Likewise.
35465         * modules/unictype/property-bidi-segment-separator (Depends-on,
35466         configure.ac): Likewise.
35467         * modules/unictype/property-bidi-whitespace (Depends-on,
35468         configure.ac): Likewise.
35469         * modules/unictype/property-combining (Depends-on, configure.ac):
35470         Likewise.
35471         * modules/unictype/property-composite (Depends-on, configure.ac):
35472         Likewise.
35473         * modules/unictype/property-currency-symbol (Depends-on,
35474         configure.ac): Likewise.
35475         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35476         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35477         Likewise.
35478         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35479         configure.ac): Likewise.
35480         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35481         Likewise.
35482         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35483         Likewise.
35484         * modules/unictype/property-extender (Depends-on, configure.ac):
35485         Likewise.
35486         * modules/unictype/property-format-control (Depends-on, configure.ac):
35487         Likewise.
35488         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35489         Likewise.
35490         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35491         Likewise.
35492         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35493         Likewise.
35494         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35495         Likewise.
35496         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35497         Likewise.
35498         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35499         Likewise.
35500         * modules/unictype/property-id-start (Depends-on, configure.ac):
35501         Likewise.
35502         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35503         Likewise.
35504         * modules/unictype/property-ids-binary-operator (Depends-on,
35505         configure.ac): Likewise.
35506         * modules/unictype/property-ids-trinary-operator (Depends-on,
35507         configure.ac): Likewise.
35508         * modules/unictype/property-ignorable-control (Depends-on,
35509         configure.ac): Likewise.
35510         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35511         Likewise.
35512         * modules/unictype/property-join-control (Depends-on, configure.ac):
35513         Likewise.
35514         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35515         Likewise.
35516         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35517         Likewise.
35518         * modules/unictype/property-logical-order-exception (Depends-on,
35519         configure.ac): Likewise.
35520         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35521         Likewise.
35522         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35523         * modules/unictype/property-non-break (Depends-on, configure.ac):
35524         Likewise.
35525         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35526         Likewise.
35527         * modules/unictype/property-numeric (Depends-on, configure.ac):
35528         Likewise.
35529         * modules/unictype/property-other-alphabetic (Depends-on,
35530         configure.ac): Likewise.
35531         * modules/unictype/property-other-default-ignorable-code-point
35532         (Depends-on, configure.ac): Likewise.
35533         * modules/unictype/property-other-grapheme-extend (Depends-on,
35534         configure.ac): Likewise.
35535         * modules/unictype/property-other-id-continue (Depends-on,
35536         configure.ac): Likewise.
35537         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35538         Likewise.
35539         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35540         Likewise.
35541         * modules/unictype/property-other-math (Depends-on, configure.ac):
35542         Likewise.
35543         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35544         Likewise.
35545         * modules/unictype/property-paired-punctuation (Depends-on,
35546         configure.ac): Likewise.
35547         * modules/unictype/property-paragraph-separator (Depends-on,
35548         configure.ac): Likewise.
35549         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35550         Likewise.
35551         * modules/unictype/property-pattern-white-space (Depends-on,
35552         configure.ac): Likewise.
35553         * modules/unictype/property-private-use (Depends-on, configure.ac):
35554         Likewise.
35555         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35556         Likewise.
35557         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35558         Likewise.
35559         * modules/unictype/property-radical (Depends-on, configure.ac):
35560         Likewise.
35561         * modules/unictype/property-sentence-terminal (Depends-on,
35562         configure.ac): Likewise.
35563         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35564         Likewise.
35565         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35566         * modules/unictype/property-terminal-punctuation (Depends-on,
35567         configure.ac): Likewise.
35568         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35569         Likewise.
35570         * modules/unictype/property-unassigned-code-value (Depends-on,
35571         configure.ac): Likewise.
35572         * modules/unictype/property-unified-ideograph (Depends-on,
35573         configure.ac): Likewise.
35574         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35575         Likewise.
35576         * modules/unictype/property-variation-selector (Depends-on,
35577         configure.ac): Likewise.
35578         * modules/unictype/property-white-space (Depends-on, configure.ac):
35579         Likewise.
35580         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35581         Likewise.
35582         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35583         Likewise.
35584         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35585         Likewise.
35586         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35587         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35588         Likewise.
35589
35590 2009-12-31  Bruno Haible  <bruno@clisp.org>
35591
35592         Remove unnecessary AC_C_INLINE invocation.
35593         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35594         since 2009-08-21.
35595
35596 2009-12-31  Jim Meyering  <meyering@redhat.com>
35597
35598         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35599         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35600         With this change, we can all remove the gpg_key_ID = ... definition
35601         from our respective cfg.mk files.
35602
35603         maint.mk: create announcement template in ~/, not in /tmp
35604         * top/maint.mk (emit_upload_commands): Adjust.
35605         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35606         Remove temporary file, .ci-msg.
35607
35608 2009-12-31  Eric Blake  <ebb9@byu.net>
35609
35610         link-warning: always build headers with link warnings
35611         * modules/arpa_inet (Makefile.am): Always build replacement
35612         header.
35613         * modules/ctype (Makefile.am): Likewise.
35614         * modules/dirent (Makefile.am): Likewise.
35615         * modules/inttypes (Makefile.am): Likewise.
35616         * modules/langinfo (Makefile.am): Likewise.
35617         * modules/locale (Makefile.am): Likewise.
35618         * modules/spawn (Makefile.am): Likewise.
35619         * modules/sys_file (Makefile.am): Likewise.
35620         * modules/sys_ioctl (Makefile.am): Likewise.
35621         * modules/sys_select (Makefile.am): Likewise.
35622         * modules/sys_socket (Makefile.am): Likewise.
35623         * modules/sys_times (Makefile.am): Likewise.
35624         * modules/sys_utsname (Makefile.am): Likewise.
35625         * modules/sys_wait (Makefile.am): Likewise.
35626         * modules/wchar (Makefile.am): Likewise.
35627         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35628         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35629         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35630         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35631         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35632         Likewise.
35633         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35634         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35635         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35636         Likewise.
35637         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35638         Likewise.
35639         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35640         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35641         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35642         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35643         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35644         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35645         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35646         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35647         (gl_WCHAR_H_DEFAULTS): Likewise.
35648
35649 2009-12-31  Eric Blake  <ebb9@byu.net>
35650
35651         signal, spawn: use link warnings
35652         * lib/signal.in.h (sigset_t): Make unconditional.
35653         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35654         (sigpending, sigprocmask, sigaction): Add link warnings.
35655         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35656         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35657         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35658         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35659         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35660         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35661         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35662         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35663         (posix_spawn_file_actions_destroy)
35664         (posix_spawn_file_actions_addopen)
35665         (posix_spawn_file_actions_addclose)
35666         (posix_spawn_file_actions_adddup2): Likewise.
35667         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35668         * tests/test-signal.c (main): Enhance test.
35669
35670         spawn: improve wrapper support
35671         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35672         (gl_SPAWN_H_DEFAULTS): New defaults.
35673         * modules/spawn (Makefile.am): Substitute them.
35674         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35675         Only declare if missing or broken.
35676
35677         sys_times, sys_utsname: use include_next
35678         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35679         header.
35680         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35681         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35682         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35683         * modules/sys_times (Depends-on): Add include_next.
35684         (Makefile.am): Substitute additional values.
35685         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35686         * lib/sys_times.in.h (includes): Include native header, if
35687         available.
35688         * lib/sys_utsname.in.h (includes): Likewise.
35689         * tests/test-sys_times.c (main): Enhance test.
35690
35691         fdutimensat: revert prior patch
35692         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35693         utimens.h.
35694         Reported by Bruno Haible.
35695
35696 2009-12-30  Eric Blake  <ebb9@byu.net>
35697
35698         sys_wait: drop link-warning dependency
35699         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35700         link-warning efforts.
35701         * lib/sys_wait.in.h: Likewise.
35702
35703         fdutimensat: remove bogus dependency
35704         * modules/fdutimensat (Depends-on): Drop inline.
35705
35706         unistd: fix typo
35707         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35708
35709 2009-12-30  Bruno Haible  <bruno@clisp.org>
35710
35711         Fix compilation error with Solaris cc.
35712         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35713         * lib/unicase/u16-is-invariant.c: Likewise.
35714         * lib/unicase/u32-is-invariant.c: Likewise.
35715         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35716
35717 2009-12-30  Bruno Haible  <bruno@clisp.org>
35718
35719         Fix test crash.
35720         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35721         locales.
35722         Reported by Simon Josefsson <simon@josefsson.org>.
35723
35724 2009-12-30  Bruno Haible  <bruno@clisp.org>
35725
35726         Fix compilation error on most platforms.
35727         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35728         Reported by Simon Josefsson <simon@josefsson.org>
35729         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35730
35731 2009-12-30  Eric Blake  <ebb9@byu.net>
35732
35733         futimens, utimensat: work around ntfs-3g bug
35734         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35735         a ctime bug is present, and expand workaround to cover ntfs-3g.
35736         * lib/utimens.c (fdutimens, lutimens): Likewise.
35737         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35738         (validate_timespec): Adjust return value.
35739         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35740         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35741         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35742
35743 2009-12-29  Eric Blake  <ebb9@byu.net>
35744
35745         link-warning: make usage consistent
35746         * modules/ctype (Depends-on): Add link-warning.
35747         (Makefile.am): Update rules accordingly.
35748         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35749         * modules/locale (Depends-on, Makefile.am): Likewise.
35750         * modules/sys_file (Makefile.am): Likewise.
35751         * modules/getopt-posix (Makefile.am): Delete unused link warning
35752         efforts.
35753         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35754         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35755         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35756         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35757
35758         stdio: remove unused variables
35759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35761         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35762
35763         tests: test more substitute headers
35764         * modules/ctype-tests: New file.
35765         * modules/dirent-tests: Likewise.
35766         * modules/spawn-tests: Likewise.
35767         * modules/sys_file-tests: Likewise.
35768         * modules/sys_ioctl-tests: Likewise.
35769         * modules/sys_wait-tests: Likewise.
35770         * tests/test-ctype.c: Likewise.
35771         * tests/test-dirent.c: Likewise.
35772         * tests/test-spawn.c: Likewise.
35773         * tests/test-sys_file.c: Likewise.
35774         * tests/test-sys_ioctl.c: Likewise.
35775         * tests/test-sys_wait.c: Likewise.
35776         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35777         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35778         whether or not flock is in use.
35779
35780         tests: remove License section from module
35781         * modules/arpa_inet-tests: Remove unneeded section.
35782         * modules/byteswap-tests: Likewise.
35783         * modules/ceilf-tests: Likewise.
35784         * modules/ceill-tests: Likewise.
35785         * modules/crypto/des-tests: Likewise.
35786         * modules/crypto/gc-arcfour-tests: Likewise.
35787         * modules/crypto/gc-arctwo-tests: Likewise.
35788         * modules/crypto/gc-des-tests: Likewise.
35789         * modules/crypto/gc-hmac-md5-tests: Likewise.
35790         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35791         * modules/crypto/gc-md2-tests: Likewise.
35792         * modules/crypto/gc-md4-tests: Likewise.
35793         * modules/crypto/gc-md5-tests: Likewise.
35794         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35795         * modules/crypto/gc-rijndael-tests: Likewise.
35796         * modules/crypto/gc-sha1-tests: Likewise.
35797         * modules/crypto/gc-tests: Likewise.
35798         * modules/crypto/md2-tests: Likewise.
35799         * modules/crypto/md4-tests: Likewise.
35800         * modules/fcntl-h-tests: Likewise.
35801         * modules/floorf-tests: Likewise.
35802         * modules/floorl-tests: Likewise.
35803         * modules/frexp-nolibm-tests: Likewise.
35804         * modules/frexp-tests: Likewise.
35805         * modules/frexpl-nolibm-tests: Likewise.
35806         * modules/frexpl-tests: Likewise.
35807         * modules/getaddrinfo-tests: Likewise.
35808         * modules/inttypes-tests: Likewise.
35809         * modules/isfinite-tests: Likewise.
35810         * modules/isinf-tests: Likewise.
35811         * modules/ldexpl-tests: Likewise.
35812         * modules/locale-tests: Likewise.
35813         * modules/math-tests: Likewise.
35814         * modules/netdb-tests: Likewise.
35815         * modules/netinet_in-tests: Likewise.
35816         * modules/printf-frexp-tests: Likewise.
35817         * modules/printf-frexpl-tests: Likewise.
35818         * modules/priv-set-tests: Likewise.
35819         * modules/random_r-tests: Likewise.
35820         * modules/round-tests: Likewise.
35821         * modules/roundf-tests: Likewise.
35822         * modules/roundl-tests: Likewise.
35823         * modules/search-tests: Likewise.
35824         * modules/select-tests: Likewise.
35825         * modules/signal-tests: Likewise.
35826         * modules/stdbool-tests: Likewise.
35827         * modules/stddef-tests: Likewise.
35828         * modules/stdint-tests: Likewise.
35829         * modules/stdio-tests: Likewise.
35830         * modules/stdlib-tests: Likewise.
35831         * modules/string-tests: Likewise.
35832         * modules/strings-tests: Likewise.
35833         * modules/sys_select-tests: Likewise.
35834         * modules/sys_socket-tests: Likewise.
35835         * modules/sys_stat-tests: Likewise.
35836         * modules/sys_time-tests: Likewise.
35837         * modules/sys_utsname-tests: Likewise.
35838         * modules/sysexits-tests: Likewise.
35839         * modules/time-tests: Likewise.
35840         * modules/trunc-tests: Likewise.
35841         * modules/truncf-tests: Likewise.
35842         * modules/truncl-tests: Likewise.
35843         * modules/tsearch-tests: Likewise.
35844         * modules/unistd-tests: Likewise.
35845         * modules/wchar-tests: Likewise.
35846         * modules/wctype-tests: Likewise.
35847
35848         tests: fix license on several tests
35849         * tests/test-des.c: Update to GPLv3+.
35850         * tests/test-flock.c: Likewise.
35851         * tests/test-fsync.c: Likewise.
35852         * tests/test-futimens.h: Likewise.
35853         * tests/test-gc-arcfour.c: Likewise.
35854         * tests/test-gc-arctwo.c: Likewise.
35855         * tests/test-gc-des.c: Likewise.
35856         * tests/test-gc-hmac-md5.c: Likewise.
35857         * tests/test-gc-hmac-sha1.c: Likewise.
35858         * tests/test-gc-md2.c: Likewise.
35859         * tests/test-gc-md4.c: Likewise.
35860         * tests/test-gc-md5.c: Likewise.
35861         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35862         * tests/test-gc-rijndael.c: Likewise.
35863         * tests/test-gc-sha1.c: Likewise.
35864         * tests/test-gc.c: Likewise.
35865         * tests/test-getcwd.c: Likewise.
35866         * tests/test-link.c: Likewise.
35867         * tests/test-link.h: Likewise.
35868         * tests/test-lutimens.h: Likewise.
35869         * tests/test-md2.c: Likewise.
35870         * tests/test-md4.c: Likewise.
35871         * tests/test-mkdir.h: Likewise.
35872         * tests/test-rename.c: Likewise.
35873         * tests/test-rename.h: Likewise.
35874         * tests/test-safe-alloc.c: Likewise.
35875         * tests/test-utimens-common.h: Likewise.
35876         * tests/test-utimens.h: Likewise.
35877
35878         maint: sync license texts
35879         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35880         * doc/gpl-3.0.texi: Revert copyright year update.
35881         * doc/lgpl-3.0.texi: Likewise.
35882
35883 2009-12-29  Jim Meyering  <meyering@redhat.com>
35884
35885         update nearly all FSF copyright year lists to include 2009
35886         The files named by the following are exempted:
35887             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35888               test -f "$dst" && { echo "$dst"; continue; }
35889               test -d "$dst" || continue
35890               echo "$dst"/$(basename "$src")
35891             done > exempt
35892             git ls-files tests/unictype >> exempt
35893         In the remaining files, convert to all-interval notation if
35894         - there is already at least one year interval like 2000-2003
35895         - the file is maintained by me
35896         - the file is in lib/uni*/, where that style already prevails
35897         Otherwise, use update-copyright's default.
35898
35899 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35900         and Eric Blake  <ebb9@byu.net>
35901
35902         tests: don't require debug system() to pass
35903         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35904         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35905         * tests/test-unlink.h (test_unlink_func): Likewise.
35906         * tests/test-fstatat.c (main): ...into callers.
35907         * tests/test-lstat.c (main): Likewise.
35908         * tests/test-rmdir.c (main): Likewise.
35909         * tests/test-unlink.c (main): Likewise.
35910         * tests/test-unlinkat.c (main): Likewise.
35911         * tests/test-areadlink-with-size.c (main): Don't require a
35912         debug-only system call to pass, aiding cross-testing to mingw.
35913         * tests/test-areadlink.c (main): Likewise.
35914         * tests/test-areadlinkat-with-size.c (main): Likewise.
35915         * tests/test-areadlinkat.c (main): Likewise.
35916         * tests/test-canonicalize-lgpl.c (main): Likewise.
35917         * tests/test-canonicalize.c (main): Likewise.
35918         * tests/test-chown.c (main): Likewise.
35919         * tests/test-fchownat.c (main): Likewise.
35920         * tests/test-lchown.c (main): Likewise.
35921         * tests/test-fdutimensat.c (main): Likewise.
35922         * tests/test-futimens.c (main): Likewise.
35923         * tests/test-link.c (main): Likewise.
35924         * tests/test-linkat.c (main): Likewise.
35925         * tests/test-mkdir.c (main): Likewise.
35926         * tests/test-mkdirat.c (main): Likewise.
35927         * tests/test-mkfifo.c (main): Likewise.
35928         * tests/test-mkfifoat.c (main): Likewise.
35929         * tests/test-mknod.c (main): Likewise.
35930         * tests/test-readlink.c (main): Likewise.
35931         * tests/test-remove.c (main): Likewise.
35932         * tests/test-rename.c (main): Likewise.
35933         * tests/test-renameat.c (main): Likewise.
35934         * tests/test-symlink.c (main): Likewise.
35935         * tests/test-symlinkat.c (main): Likewise.
35936         * tests/test-utimens.c (main): Likewise.
35937         * tests/test-utimensat.c (main): Likewise.
35938
35939 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35940
35941         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35942         on $(UNUSED_PARAMETER_H) to avoid build failure.
35943
35944 2009-12-28  Jim Meyering  <meyering@redhat.com>
35945
35946         update-copyright: you may specify a max. line length other than 72
35947         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35948
35949         maint: use consistent FSF copyright line syntax
35950         * lib/posixtm.c: Add missing comma in FSF copyright line.
35951         * lib/posixtm.h: Likewise.
35952         * lib/getugroups.c: Add missing ", Inc.".
35953
35954         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35955         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35956         FSF copyright line.  Remove trailing blanks.
35957
35958 2009-12-28  Eric Blake  <ebb9@byu.net>
35959
35960         test-dup2: reduce dependencies
35961         * modules/cloexec (Configure.ac): Set witness.
35962         * modules/dup2-tests (Depends-on): Drop cloexec.
35963         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35964         not present.
35965         Suggested by Bruno Haible.
35966
35967 2009-12-26  Bruno Haible  <bruno@clisp.org>
35968
35969         Remove an unneeded dependency.
35970         * modules/fseterr (Depends-on): Remove dup2.
35971
35972 2009-12-26  Eric Blake  <ebb9@byu.net>
35973
35974         tests: use macros.h in more places
35975         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35976         (ASSERT_STREAM): Provide default of stderr.
35977         * tests/test-dirent-safer.c: Include macros.h, using alternate
35978         stream for assertions.
35979         * tests/test-dup-safer.c: Likewise.
35980         * tests/test-freopen-safer.c: Likewise.
35981         * tests/test-getopt.c: Likewise.
35982         * tests/test-openat-safer.c: Likewise.
35983         * tests/test-pipe.c: Likewise.
35984         * tests/test-popen-safer.c: Likewise.
35985         * modules/dirent-safer-tests (Files): Include macros.h.
35986         * modules/unistd-safer-tests (Files): Likewise.
35987         * modules/freopen-safer-tests (Files): Likewise.
35988         * modules/getopt-posix-tests (Files): Likewise.
35989         * modules/openat-safer-tests (Files): Likewise.
35990         * modules/pipe-tests (Files): Likewise.
35991
35992 2009-12-26  Bruno Haible  <bruno@clisp.org>
35993
35994         javacomp: Portability fix.
35995         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35996         that it also works on Solaris.
35997
35998 2009-12-26  Bruno Haible  <bruno@clisp.org>
35999
36000         localename: Fix storage allocation of gl_locale_name_thread's result.
36001         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36002         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36003         all platforms that have 'uselocale'.
36004         (gl_locale_name_thread_unsafe): New function, extracted from
36005         gl_locale_name_thread.
36006         (gl_locale_name_thread): Call struniq on all platforms that have
36007         'uselocale'.
36008         * tests/test-localename.c (test_locale_name_thread): Check that the
36009         resulting strings are permanently allocated.
36010         * modules/localename-tests (Depends-on): Add strdup.
36011
36012 2009-12-26  Bruno Haible  <bruno@clisp.org>
36013
36014         * tests/test-localename.c (categories): Fill in the strings.
36015
36016 2009-12-26  Jim Meyering  <meyering@redhat.com>
36017
36018         isdir: complete the removal of m4/isdir.m4
36019         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36020
36021         isdir: clean up, since at least grep still uses it
36022         * lib/isdir.c: Include "isdir.h".
36023         (S_ISDIR): Remove now-unneeded definition.
36024         * modules/isdir (Files): Add lib/isdir.h.
36025         * lib/isdir.h: New file, with declaration.
36026         * m4/isdir.m4: Remove file -- unneeded.
36027
36028 2009-12-25  Bruno Haible  <bruno@clisp.org>
36029
36030         selinux-h: Make generated .h files standalone.
36031         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36032         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36033         * lib/se-selinux.in.h: Likewise.
36034         * modules/selinux-h (Depends-on): Add unused-parameter.
36035         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36036         selinux/selinux.h and selinux/context.h.
36037         Suggested by Eric Blake.
36038
36039 2009-12-25  Bruno Haible  <bruno@clisp.org>
36040
36041         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36042         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36043         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36044         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36045         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36046
36047 2009-12-24  Bruno Haible  <bruno@clisp.org>
36048
36049         openat: Fix warning.
36050         * lib/openat-proc.c: Include <unistd.h>.
36051
36052 2009-12-24  Bruno Haible  <bruno@clisp.org>
36053
36054         New module 'unused-parameter'.
36055         * build-aux/unused-parameter.h: New file, extracted from earlier
36056         gnulib-common.m4.
36057         * modules/unused-parameter: New file.
36058         * lib/unistr.h: Include unused-parameter.h.
36059         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36060         _GL_UNUSED.
36061         * modules/unistr/base (Depends-on): Add unused-parameter.
36062
36063 2009-12-24  Bruno Haible  <bruno@clisp.org>
36064
36065         Add missing dependencies to 'extensions' module.
36066         * m4/extensions.m4: Add comment.
36067         * modules/accept4 (Depends-on): Add extensions.
36068         * modules/dup3 (Depends-on): Likewise.
36069         * modules/fcntl (Depends-on): Likewise.
36070         * modules/futimens (Depends-on): Likewise.
36071         * modules/mknod (Depends-on): Likewise.
36072         * modules/pipe2 (Depends-on): Likewise.
36073         * modules/stat-time (Depends-on): Likewise.
36074         * modules/strcasestr-simple (Depends-on): Likewise.
36075         * modules/strsignal (Depends-on): Likewise.
36076         * modules/utimensat (Depends-on): Likewise.
36077         * modules/localcharset (Depends-on): Likewise. Needed because of
36078         gl_FCNTL_O_FLAGS.
36079         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36080         AC_TYPE_MBSTATE_T.
36081         * modules/wcsnrtombs (Depends-on): Likewise.
36082         * modules/wcsrtombs (Depends-on): Likewise.
36083
36084 2009-12-24  Bruno Haible  <bruno@clisp.org>
36085
36086         binary-io: Avoid gcc warning due to SET_BINARY.
36087         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36088         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36089
36090 2009-12-24  Bruno Haible  <bruno@clisp.org>
36091
36092         Avoid future namespace pollution on glibc systems.
36093         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36094         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36095         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36096         glibc systems.
36097
36098 2009-12-24  Bruno Haible  <bruno@clisp.org>
36099
36100         Refactor common macros used in tests.
36101         * tests/macros.h: New file.
36102         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36103         and/or <stdlib.h>, if appropriate.
36104         (ASSERT, SIZEOF): Remove macros.
36105         * tests/test-areadlink-with-size.c: Likewise.
36106         * tests/test-areadlinkat.c: Likewise.
36107         * tests/test-areadlinkat-with-size.c: Likewise.
36108         * tests/test-argmatch.c: Likewise.
36109         * tests/test-argv-iter.c: Likewise.
36110         * tests/test-array-mergesort.c: Likewise.
36111         * tests/test-array_list.c: Likewise.
36112         * tests/test-array_oset.c: Likewise.
36113         * tests/test-avltree_list.c: Likewise.
36114         * tests/test-avltree_oset.c: Likewise.
36115         * tests/test-avltreehash_list.c: Likewise.
36116         * tests/test-base64.c: Likewise.
36117         * tests/test-binary-io.c: Likewise.
36118         * tests/test-bitrotate.c: Likewise.
36119         * tests/test-btowc.c: Likewise.
36120         * tests/test-byteswap.c: Likewise.
36121         * tests/test-c-ctype.c: Likewise.
36122         * tests/test-c-stack.c: Likewise.
36123         * tests/test-c-strcasecmp.c: Likewise.
36124         * tests/test-c-strcasestr.c: Likewise.
36125         * tests/test-c-strncasecmp.c: Likewise.
36126         * tests/test-c-strstr.c: Likewise.
36127         * tests/test-canonicalize-lgpl.c: Likewise.
36128         * tests/test-canonicalize.c: Likewise.
36129         * tests/test-carray_list.c: Likewise.
36130         * tests/test-ceilf1.c: Likewise.
36131         * tests/test-ceilf2.c: Likewise.
36132         * tests/test-ceill.c: Likewise.
36133         * tests/test-chown.c: Likewise.
36134         * tests/test-cloexec.c: Likewise.
36135         * tests/test-copy-acl.c: Likewise.
36136         * tests/test-copy-file.c: Likewise.
36137         * tests/test-count-one-bits.c: Likewise.
36138         * tests/test-dprintf-posix.c: Likewise.
36139         * tests/test-dup2.c: Likewise.
36140         * tests/test-dup3.c: Likewise.
36141         * tests/test-duplocale.c: Likewise.
36142         * tests/test-fbufmode.c: Likewise.
36143         * tests/test-fchdir.c: Likewise.
36144         * tests/test-fchownat.c: Likewise.
36145         * tests/test-fcntl-safer.c: Likewise.
36146         * tests/test-fcntl.c: Likewise.
36147         * tests/test-fdopendir.c: Likewise.
36148         * tests/test-fdutimensat.c: Likewise.
36149         * tests/test-fflush2.c: Likewise.
36150         * tests/test-file-has-acl.c: Likewise.
36151         * tests/test-filevercmp.c: Likewise.
36152         * tests/test-flock.c: Likewise.
36153         * tests/test-floorf1.c: Likewise.
36154         * tests/test-floorf2.c: Likewise.
36155         * tests/test-floorl.c: Likewise.
36156         * tests/test-fnmatch.c: Likewise.
36157         * tests/test-fopen.h: Likewise.
36158         * tests/test-fpending.c: Likewise.
36159         * tests/test-fprintf-posix.c: Likewise.
36160         * tests/test-fpurge.c: Likewise.
36161         * tests/test-freadable.c: Likewise.
36162         * tests/test-freadahead.c: Likewise.
36163         * tests/test-freading.c: Likewise.
36164         * tests/test-freadptr.c: Likewise.
36165         * tests/test-freadptr2.c: Likewise.
36166         * tests/test-freadseek.c: Likewise.
36167         * tests/test-freopen.c: Likewise.
36168         * tests/test-frexp.c: Likewise.
36169         * tests/test-frexpl.c: Likewise.
36170         * tests/test-fseek.c: Likewise.
36171         * tests/test-fseeko.c: Likewise.
36172         * tests/test-fstatat.c: Likewise.
36173         * tests/test-fstrcmp.c: Likewise.
36174         * tests/test-fsync.c: Likewise.
36175         * tests/test-ftell.c: Likewise.
36176         * tests/test-ftello.c: Likewise.
36177         * tests/test-func.c: Likewise.
36178         * tests/test-futimens.c: Likewise.
36179         * tests/test-fwritable.c: Likewise.
36180         * tests/test-fwriting.c: Likewise.
36181         * tests/test-getcwd.c: Likewise.
36182         * tests/test-getdate.c: Likewise.
36183         * tests/test-getdelim.c: Likewise.
36184         * tests/test-getdtablesize.c: Likewise.
36185         * tests/test-getgroups.c: Likewise.
36186         * tests/test-getline.c: Likewise.
36187         * tests/test-getndelim2.c: Likewise.
36188         * tests/test-glob.c: Likewise.
36189         * tests/test-hash.c: Likewise.
36190         * tests/test-i-ring.c: Likewise.
36191         * tests/test-iconv-utf.c: Likewise.
36192         * tests/test-iconv.c: Likewise.
36193         * tests/test-idpriv-drop.c: Likewise.
36194         * tests/test-idpriv-droptemp.c: Likewise.
36195         * tests/test-inet_ntop.c: Likewise.
36196         * tests/test-inet_pton.c: Likewise.
36197         * tests/test-isblank.c: Likewise.
36198         * tests/test-isfinite.c: Likewise.
36199         * tests/test-isinf.c: Likewise.
36200         * tests/test-isnan.c: Likewise.
36201         * tests/test-isnand.h: Likewise.
36202         * tests/test-isnanf.h: Likewise.
36203         * tests/test-isnanl.h: Likewise.
36204         * tests/test-lchown.c: Likewise.
36205         * tests/test-ldexpl.c: Likewise.
36206         * tests/test-link.c: Likewise.
36207         * tests/test-linkat.c: Likewise.
36208         * tests/test-linked_list.c: Likewise.
36209         * tests/test-linkedhash_list.c: Likewise.
36210         * tests/test-localename.c: Likewise.
36211         * tests/test-lseek.c: Likewise.
36212         * tests/test-lstat.c: Likewise.
36213         * tests/test-mbmemcasecmp.c: Likewise.
36214         * tests/test-mbmemcasecoll.c: Likewise.
36215         * tests/test-mbrtowc.c: Likewise.
36216         * tests/test-mbscasecmp.c: Likewise.
36217         * tests/test-mbscasestr1.c: Likewise.
36218         * tests/test-mbscasestr2.c: Likewise.
36219         * tests/test-mbscasestr3.c: Likewise.
36220         * tests/test-mbscasestr4.c: Likewise.
36221         * tests/test-mbschr.c: Likewise.
36222         * tests/test-mbscspn.c: Likewise.
36223         * tests/test-mbsinit.c: Likewise.
36224         * tests/test-mbsncasecmp.c: Likewise.
36225         * tests/test-mbsnrtowcs.c: Likewise.
36226         * tests/test-mbspbrk.c: Likewise.
36227         * tests/test-mbspcasecmp.c: Likewise.
36228         * tests/test-mbsrchr.c: Likewise.
36229         * tests/test-mbsrtowcs.c: Likewise.
36230         * tests/test-mbsspn.c: Likewise.
36231         * tests/test-mbsstr1.c: Likewise.
36232         * tests/test-mbsstr2.c: Likewise.
36233         * tests/test-mbsstr3.c: Likewise.
36234         * tests/test-memchr.c: Likewise.
36235         * tests/test-memchr2.c: Likewise.
36236         * tests/test-memcmp.c: Likewise.
36237         * tests/test-memmem.c: Likewise.
36238         * tests/test-memrchr.c: Likewise.
36239         * tests/test-mkdir.c: Likewise.
36240         * tests/test-mkdirat.c: Likewise.
36241         * tests/test-mkfifo.c: Likewise.
36242         * tests/test-mkfifoat.c: Likewise.
36243         * tests/test-mknod.c: Likewise.
36244         * tests/test-nanosleep.c: Likewise.
36245         * tests/test-nl_langinfo.c: Likewise.
36246         * tests/test-obstack-printf.c: Likewise.
36247         * tests/test-open.c: Likewise.
36248         * tests/test-openat.c: Likewise.
36249         * tests/test-pipe-filter-gi1.c: Likewise.
36250         * tests/test-pipe-filter-gi2-main.c: Likewise.
36251         * tests/test-pipe-filter-ii1.c: Likewise.
36252         * tests/test-pipe-filter-ii2-main.c: Likewise.
36253         * tests/test-pipe2.c: Likewise.
36254         * tests/test-popen.h: Likewise.
36255         * tests/test-posixtm.c: Likewise.
36256         * tests/test-pread.c: Likewise.
36257         * tests/test-printf-frexp.c: Likewise.
36258         * tests/test-printf-frexpl.c: Likewise.
36259         * tests/test-printf-posix.c: Likewise.
36260         * tests/test-priv-set.c: Likewise.
36261         * tests/test-quotearg.c: Likewise.
36262         * tests/test-random_r.c: Likewise.
36263         * tests/test-rawmemchr.c: Likewise.
36264         * tests/test-rbtree_list.c: Likewise.
36265         * tests/test-rbtree_oset.c: Likewise.
36266         * tests/test-rbtreehash_list.c: Likewise.
36267         * tests/test-readlink.c: Likewise.
36268         * tests/test-remove.c: Likewise.
36269         * tests/test-rename.c: Likewise.
36270         * tests/test-renameat.c: Likewise.
36271         * tests/test-rmdir.c: Likewise.
36272         * tests/test-round1.c: Likewise.
36273         * tests/test-roundf1.c: Likewise.
36274         * tests/test-roundl.c: Likewise.
36275         * tests/test-safe-alloc.c: Likewise.
36276         * tests/test-sameacls.c: Likewise.
36277         * tests/test-set-mode-acl.c: Likewise.
36278         * tests/test-setenv.c: Likewise.
36279         * tests/test-sigaction.c: Likewise.
36280         * tests/test-signbit.c: Likewise.
36281         * tests/test-sleep.c: Likewise.
36282         * tests/test-snprintf-posix.c: Likewise.
36283         * tests/test-snprintf.c: Likewise.
36284         * tests/test-sprintf-posix.c: Likewise.
36285         * tests/test-stat-time.c: Likewise.
36286         * tests/test-stat.c: Likewise.
36287         * tests/test-strcasestr.c: Likewise.
36288         * tests/test-strchrnul.c: Likewise.
36289         * tests/test-strerror.c: Likewise.
36290         * tests/test-striconv.c: Likewise.
36291         * tests/test-striconveh.c: Likewise.
36292         * tests/test-striconveha.c: Likewise.
36293         * tests/test-strsignal.c: Likewise.
36294         * tests/test-strstr.c: Likewise.
36295         * tests/test-strtod.c: Likewise.
36296         * tests/test-strverscmp.c: Likewise.
36297         * tests/test-symlink.c: Likewise.
36298         * tests/test-symlinkat.c: Likewise.
36299         * tests/test-trunc1.c: Likewise.
36300         * tests/test-trunc2.c: Likewise.
36301         * tests/test-truncf1.c: Likewise.
36302         * tests/test-truncf2.c: Likewise.
36303         * tests/test-truncl.c: Likewise.
36304         * tests/test-uname.c: Likewise.
36305         * tests/test-unlink.c: Likewise.
36306         * tests/test-unlinkat.c: Likewise.
36307         * tests/test-unsetenv.c: Likewise.
36308         * tests/test-usleep.c: Likewise.
36309         * tests/test-utimens.c: Likewise.
36310         * tests/test-utimensat.c: Likewise.
36311         * tests/test-vasnprintf-posix.c: Likewise.
36312         * tests/test-vasnprintf-posix2.c: Likewise.
36313         * tests/test-vasnprintf.c: Likewise.
36314         * tests/test-vasprintf-posix.c: Likewise.
36315         * tests/test-vasprintf.c: Likewise.
36316         * tests/test-vdprintf-posix.c: Likewise.
36317         * tests/test-vfprintf-posix.c: Likewise.
36318         * tests/test-vprintf-posix.c: Likewise.
36319         * tests/test-vsnprintf-posix.c: Likewise.
36320         * tests/test-vsnprintf.c: Likewise.
36321         * tests/test-vsprintf-posix.c: Likewise.
36322         * tests/test-wcrtomb.c: Likewise.
36323         * tests/test-wcsnrtombs.c: Likewise.
36324         * tests/test-wcsrtombs.c: Likewise.
36325         * tests/test-wctype.c: Likewise.
36326         * tests/test-wcwidth.c: Likewise.
36327         * tests/test-xfprintf-posix.c: Likewise.
36328         * tests/test-xmemdup0.c: Likewise.
36329         * tests/test-xprintf-posix.c: Likewise.
36330         * tests/test-xvasprintf.c: Likewise.
36331         * tests/unicase/test-locale-language.c: Likewise.
36332         * tests/unicase/test-mapping-part1.h: Likewise.
36333         * tests/unicase/test-predicate-part1.h: Likewise.
36334         * tests/unicase/test-u8-casecmp.c: Likewise.
36335         * tests/unicase/test-u8-casecoll.c: Likewise.
36336         * tests/unicase/test-u8-casefold.c: Likewise.
36337         * tests/unicase/test-u8-is-cased.c: Likewise.
36338         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36339         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36340         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36341         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36342         * tests/unicase/test-u8-tolower.c: Likewise.
36343         * tests/unicase/test-u8-totitle.c: Likewise.
36344         * tests/unicase/test-u8-toupper.c: Likewise.
36345         * tests/unicase/test-u16-casecmp.c: Likewise.
36346         * tests/unicase/test-u16-casecoll.c: Likewise.
36347         * tests/unicase/test-u16-casefold.c: Likewise.
36348         * tests/unicase/test-u16-is-cased.c: Likewise.
36349         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36350         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36351         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36352         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36353         * tests/unicase/test-u16-tolower.c: Likewise.
36354         * tests/unicase/test-u16-totitle.c: Likewise.
36355         * tests/unicase/test-u16-toupper.c: Likewise.
36356         * tests/unicase/test-u32-casecmp.c: Likewise.
36357         * tests/unicase/test-u32-casecoll.c: Likewise.
36358         * tests/unicase/test-u32-casefold.c: Likewise.
36359         * tests/unicase/test-u32-is-cased.c: Likewise.
36360         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36361         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36362         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36363         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36364         * tests/unicase/test-u32-tolower.c: Likewise.
36365         * tests/unicase/test-u32-totitle.c: Likewise.
36366         * tests/unicase/test-u32-toupper.c: Likewise.
36367         * tests/unicase/test-ulc-casecmp.c: Likewise.
36368         * tests/unicase/test-ulc-casecoll.c: Likewise.
36369         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36370         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36371         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36372         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36373         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36374         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36375         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36376         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36377         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36378         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36379         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36380         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36381         * tests/unictype/test-bidi_byname.c: Likewise.
36382         * tests/unictype/test-bidi_name.c: Likewise.
36383         * tests/unictype/test-bidi_of.c: Likewise.
36384         * tests/unictype/test-bidi_test.c: Likewise.
36385         * tests/unictype/test-block_list.c: Likewise.
36386         * tests/unictype/test-block_of.c: Likewise.
36387         * tests/unictype/test-block_test.c: Likewise.
36388         * tests/unictype/test-categ_and.c: Likewise.
36389         * tests/unictype/test-categ_and_not.c: Likewise.
36390         * tests/unictype/test-categ_byname.c: Likewise.
36391         * tests/unictype/test-categ_name.c: Likewise.
36392         * tests/unictype/test-categ_none.c: Likewise.
36393         * tests/unictype/test-categ_of.c: Likewise.
36394         * tests/unictype/test-categ_or.c: Likewise.
36395         * tests/unictype/test-categ_test_withtable.c: Likewise.
36396         * tests/unictype/test-combining.c: Likewise.
36397         * tests/unictype/test-decdigit.c: Likewise.
36398         * tests/unictype/test-digit.c: Likewise.
36399         * tests/unictype/test-mirror.c: Likewise.
36400         * tests/unictype/test-numeric.c: Likewise.
36401         * tests/unictype/test-pr_byname.c: Likewise.
36402         * tests/unictype/test-pr_test.c: Likewise.
36403         * tests/unictype/test-predicate-part1.h: Likewise.
36404         * tests/unictype/test-scripts.c: Likewise.
36405         * tests/unictype/test-sy_c_ident.c: Likewise.
36406         * tests/unictype/test-sy_java_ident.c: Likewise.
36407         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36408         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36409         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36410         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36411         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36412         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36413         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36414         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36415         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36416         * tests/uninorm/test-compat-decomposition.c: Likewise.
36417         * tests/uninorm/test-composition.c: Likewise.
36418         * tests/uninorm/test-decomposing-form.c: Likewise.
36419         * tests/uninorm/test-decomposition.c: Likewise.
36420         * tests/uninorm/test-u8-nfc.c: Likewise.
36421         * tests/uninorm/test-u8-nfd.c: Likewise.
36422         * tests/uninorm/test-u8-nfkc.c: Likewise.
36423         * tests/uninorm/test-u8-nfkd.c: Likewise.
36424         * tests/uninorm/test-u8-normcmp.c: Likewise.
36425         * tests/uninorm/test-u8-normcoll.c: Likewise.
36426         * tests/uninorm/test-u16-nfc.c: Likewise.
36427         * tests/uninorm/test-u16-nfd.c: Likewise.
36428         * tests/uninorm/test-u16-nfkc.c: Likewise.
36429         * tests/uninorm/test-u16-nfkd.c: Likewise.
36430         * tests/uninorm/test-u16-normcmp.c: Likewise.
36431         * tests/uninorm/test-u16-normcoll.c: Likewise.
36432         * tests/uninorm/test-u32-nfc.c: Likewise.
36433         * tests/uninorm/test-u32-nfd.c: Likewise.
36434         * tests/uninorm/test-u32-nfkc.c: Likewise.
36435         * tests/uninorm/test-u32-nfkd.c: Likewise.
36436         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36437         * tests/uninorm/test-u32-normcmp.c: Likewise.
36438         * tests/uninorm/test-u32-normcoll.c: Likewise.
36439         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36440         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36441         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36442         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36443         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36444         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36445         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36446         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36447         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36448         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36449         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36450         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36451         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36452         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36453         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36454         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36455         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36456         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36457         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36458         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36459         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36460         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36461         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36462         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36463         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36464         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36465         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36466         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36467         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36468         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36469         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36470         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36471         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36472         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36473         * tests/uniwidth/test-u8-width.c: Likewise.
36474         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36475         * tests/uniwidth/test-u16-width.c: Likewise.
36476         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36477         * tests/uniwidth/test-u32-width.c: Likewise.
36478         * tests/uniwidth/test-uc_width.c: Likewise.
36479         * tests/uniwidth/test-uc_width2.c: Likewise.
36480         * modules/acl-tests (Files): Add tests/macros.h.
36481         * modules/areadlink-tests (Files): Likewise.
36482         * modules/areadlink-with-size-tests (Files): Likewise.
36483         * modules/areadlinkat-tests (Files): Likewise.
36484         * modules/areadlinkat-with-size-tests (Files): Likewise.
36485         * modules/argmatch-tests (Files): Likewise.
36486         * modules/argv-iter-tests (Files): Likewise.
36487         * modules/array-list-tests (Files): Likewise.
36488         * modules/array-mergesort-tests (Files): Likewise.
36489         * modules/array-oset-tests (Files): Likewise.
36490         * modules/avltree-list-tests (Files): Likewise.
36491         * modules/avltree-oset-tests (Files): Likewise.
36492         * modules/avltreehash-list-tests (Files): Likewise.
36493         * modules/base64-tests (Files): Likewise.
36494         * modules/binary-io-tests (Files): Likewise.
36495         * modules/bitrotate-tests (Files): Likewise.
36496         * modules/btowc-tests (Files): Likewise.
36497         * modules/byteswap-tests (Files): Likewise.
36498         * modules/c-ctype-tests (Files): Likewise.
36499         * modules/c-stack-tests (Files): Likewise.
36500         * modules/c-strcase-tests (Files): Likewise.
36501         * modules/c-strcasestr-tests (Files): Likewise.
36502         * modules/c-strstr-tests (Files): Likewise.
36503         * modules/canonicalize-lgpl-tests (Files): Likewise.
36504         * modules/canonicalize-tests (Files): Likewise.
36505         * modules/carray-list-tests (Files): Likewise.
36506         * modules/ceilf-tests (Files): Likewise.
36507         * modules/ceill-tests (Files): Likewise.
36508         * modules/chown-tests (Files): Likewise.
36509         * modules/cloexec-tests (Files): Likewise.
36510         * modules/copy-file-tests (Files): Likewise.
36511         * modules/count-one-bits-tests (Files): Likewise.
36512         * modules/dprintf-posix-tests (Files): Likewise.
36513         * modules/dup2-tests (Files): Likewise.
36514         * modules/dup3-tests (Files): Likewise.
36515         * modules/duplocale-tests (Files): Likewise.
36516         * modules/fbufmode-tests (Files): Likewise.
36517         * modules/fchdir-tests (Files): Likewise.
36518         * modules/fcntl-safer-tests (Files): Likewise.
36519         * modules/fcntl-tests (Files): Likewise.
36520         * modules/fdopendir-tests (Files): Likewise.
36521         * modules/fdutimensat-tests (Files): Likewise.
36522         * modules/fflush-tests (Files): Likewise.
36523         * modules/filevercmp-tests (Files): Likewise.
36524         * modules/flock-tests (Files): Likewise.
36525         * modules/floorf-tests (Files): Likewise.
36526         * modules/floorl-tests (Files): Likewise.
36527         * modules/fnmatch-tests (Files): Likewise.
36528         * modules/fopen-safer-tests (Files): Likewise.
36529         * modules/fopen-tests (Files): Likewise.
36530         * modules/fpending-tests (Files): Likewise.
36531         * modules/fprintf-posix-tests (Files): Likewise.
36532         * modules/fpurge-tests (Files): Likewise.
36533         * modules/freadable-tests (Files): Likewise.
36534         * modules/freadahead-tests (Files): Likewise.
36535         * modules/freading-tests (Files): Likewise.
36536         * modules/freadptr-tests (Files): Likewise.
36537         * modules/freadseek-tests (Files): Likewise.
36538         * modules/freopen-tests (Files): Likewise.
36539         * modules/frexp-nolibm-tests (Files): Likewise.
36540         * modules/frexp-tests (Files): Likewise.
36541         * modules/frexpl-nolibm-tests (Files): Likewise.
36542         * modules/frexpl-tests (Files): Likewise.
36543         * modules/fseek-tests (Files): Likewise.
36544         * modules/fseeko-tests (Files): Likewise.
36545         * modules/fstrcmp-tests (Files): Likewise.
36546         * modules/fsync-tests (Files): Likewise.
36547         * modules/ftell-tests (Files): Likewise.
36548         * modules/ftello-tests (Files): Likewise.
36549         * modules/func-tests (Files): Likewise.
36550         * modules/futimens-tests (Files): Likewise.
36551         * modules/fwritable-tests (Files): Likewise.
36552         * modules/fwriting-tests (Files): Likewise.
36553         * modules/getcwd-tests (Files): Likewise.
36554         * modules/getdate-tests (Files): Likewise.
36555         * modules/getdelim-tests (Files): Likewise.
36556         * modules/getdtablesize-tests (Files): Likewise.
36557         * modules/getgroups-tests (Files): Likewise.
36558         * modules/getline-tests (Files): Likewise.
36559         * modules/getndelim2-tests (Files): Likewise.
36560         * modules/glob-tests (Files): Likewise.
36561         * modules/hash-tests (Files): Likewise.
36562         * modules/i-ring-tests (Files): Likewise.
36563         * modules/iconv-tests (Files): Likewise.
36564         * modules/iconv_open-utf-tests (Files): Likewise.
36565         * modules/idpriv-drop-tests (Files): Likewise.
36566         * modules/idpriv-droptemp-tests (Files): Likewise.
36567         * modules/inet_ntop-tests (Files): Likewise.
36568         * modules/inet_pton-tests (Files): Likewise.
36569         * modules/isblank-tests (Files): Likewise.
36570         * modules/isfinite-tests (Files): Likewise.
36571         * modules/isinf-tests (Files): Likewise.
36572         * modules/isnan-tests (Files): Likewise.
36573         * modules/isnand-nolibm-tests (Files): Likewise.
36574         * modules/isnand-tests (Files): Likewise.
36575         * modules/isnanf-nolibm-tests (Files): Likewise.
36576         * modules/isnanf-tests (Files): Likewise.
36577         * modules/isnanl-nolibm-tests (Files): Likewise.
36578         * modules/isnanl-tests (Files): Likewise.
36579         * modules/lchown-tests (Files): Likewise.
36580         * modules/ldexpl-tests (Files): Likewise.
36581         * modules/link-tests (Files): Likewise.
36582         * modules/linkat-tests (Files): Likewise.
36583         * modules/linked-list-tests (Files): Likewise.
36584         * modules/linkedhash-list-tests (Files): Likewise.
36585         * modules/localename-tests (Files): Likewise.
36586         * modules/lseek-tests (Files): Likewise.
36587         * modules/lstat-tests (Files): Likewise.
36588         * modules/mbmemcasecmp-tests (Files): Likewise.
36589         * modules/mbmemcasecoll-tests (Files): Likewise.
36590         * modules/mbrtowc-tests (Files): Likewise.
36591         * modules/mbscasecmp-tests (Files): Likewise.
36592         * modules/mbscasestr-tests (Files): Likewise.
36593         * modules/mbschr-tests (Files): Likewise.
36594         * modules/mbscspn-tests (Files): Likewise.
36595         * modules/mbsinit-tests (Files): Likewise.
36596         * modules/mbsncasecmp-tests (Files): Likewise.
36597         * modules/mbsnrtowcs-tests (Files): Likewise.
36598         * modules/mbspbrk-tests (Files): Likewise.
36599         * modules/mbspcasecmp-tests (Files): Likewise.
36600         * modules/mbsrchr-tests (Files): Likewise.
36601         * modules/mbsrtowcs-tests (Files): Likewise.
36602         * modules/mbsspn-tests (Files): Likewise.
36603         * modules/mbsstr-tests (Files): Likewise.
36604         * modules/memchr-tests (Files): Likewise.
36605         * modules/memchr2-tests (Files): Likewise.
36606         * modules/memcmp-tests (Files): Likewise.
36607         * modules/memmem-tests (Files): Likewise.
36608         * modules/memrchr-tests (Files): Likewise.
36609         * modules/mkdir-tests (Files): Likewise.
36610         * modules/mkfifo-tests (Files): Likewise.
36611         * modules/mkfifoat-tests (Files): Likewise.
36612         * modules/mknod-tests (Files): Likewise.
36613         * modules/nanosleep-tests (Files): Likewise.
36614         * modules/nl_langinfo-tests (Files): Likewise.
36615         * modules/obstack-printf-tests (Files): Likewise.
36616         * modules/open-tests (Files): Likewise.
36617         * modules/openat-tests (Files): Likewise.
36618         * modules/pipe-filter-gi-tests (Files): Likewise.
36619         * modules/pipe-filter-ii-tests (Files): Likewise.
36620         * modules/pipe2-tests (Files): Likewise.
36621         * modules/popen-safer-tests (Files): Likewise.
36622         * modules/popen-tests (Files): Likewise.
36623         * modules/posixtm-tests (Files): Likewise.
36624         * modules/pread-tests (Files): Likewise.
36625         * modules/printf-frexp-tests (Files): Likewise.
36626         * modules/printf-frexpl-tests (Files): Likewise.
36627         * modules/printf-posix-tests (Files): Likewise.
36628         * modules/priv-set-tests (Files): Likewise.
36629         * modules/quotearg-tests (Files): Likewise.
36630         * modules/random_r-tests (Files): Likewise.
36631         * modules/rawmemchr-tests (Files): Likewise.
36632         * modules/rbtree-list-tests (Files): Likewise.
36633         * modules/rbtree-oset-tests (Files): Likewise.
36634         * modules/rbtreehash-list-tests (Files): Likewise.
36635         * modules/readlink-tests (Files): Likewise.
36636         * modules/remove-tests (Files): Likewise.
36637         * modules/rename-tests (Files): Likewise.
36638         * modules/renameat-tests (Files): Likewise.
36639         * modules/rmdir-tests (Files): Likewise.
36640         * modules/round-tests (Files): Likewise.
36641         * modules/roundf-tests (Files): Likewise.
36642         * modules/roundl-tests (Files): Likewise.
36643         * modules/safe-alloc-tests (Files): Likewise.
36644         * modules/setenv-tests (Files): Likewise.
36645         * modules/sigaction-tests (Files): Likewise.
36646         * modules/signbit-tests (Files): Likewise.
36647         * modules/sleep-tests (Files): Likewise.
36648         * modules/snprintf-posix-tests (Files): Likewise.
36649         * modules/snprintf-tests (Files): Likewise.
36650         * modules/sprintf-posix-tests (Files): Likewise.
36651         * modules/stat-tests (Files): Likewise.
36652         * modules/stat-time-tests (Files): Likewise.
36653         * modules/strcasestr-tests (Files): Likewise.
36654         * modules/strchrnul-tests (Files): Likewise.
36655         * modules/strerror-tests (Files): Likewise.
36656         * modules/striconv-tests (Files): Likewise.
36657         * modules/striconveh-tests (Files): Likewise.
36658         * modules/striconveha-tests (Files): Likewise.
36659         * modules/strsignal-tests (Files): Likewise.
36660         * modules/strstr-tests (Files): Likewise.
36661         * modules/strtod-tests (Files): Likewise.
36662         * modules/strverscmp-tests (Files): Likewise.
36663         * modules/symlink-tests (Files): Likewise.
36664         * modules/symlinkat-tests (Files): Likewise.
36665         * modules/trunc-tests (Files): Likewise.
36666         * modules/truncf-tests (Files): Likewise.
36667         * modules/truncl-tests (Files): Likewise.
36668         * modules/uname-tests (Files): Likewise.
36669         * modules/unicase/cased-tests (Files): Likewise.
36670         * modules/unicase/ignorable-tests (Files): Likewise.
36671         * modules/unicase/locale-language-tests (Files): Likewise.
36672         * modules/unicase/tolower-tests (Files): Likewise.
36673         * modules/unicase/totitle-tests (Files): Likewise.
36674         * modules/unicase/toupper-tests (Files): Likewise.
36675         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36676         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36677         * modules/unicase/u8-casefold-tests (Files): Likewise.
36678         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36679         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36680         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36681         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36682         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36683         * modules/unicase/u8-tolower-tests (Files): Likewise.
36684         * modules/unicase/u8-totitle-tests (Files): Likewise.
36685         * modules/unicase/u8-toupper-tests (Files): Likewise.
36686         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36687         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36688         * modules/unicase/u16-casefold-tests (Files): Likewise.
36689         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36690         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36691         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36692         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36693         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36694         * modules/unicase/u16-tolower-tests (Files): Likewise.
36695         * modules/unicase/u16-totitle-tests (Files): Likewise.
36696         * modules/unicase/u16-toupper-tests (Files): Likewise.
36697         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36698         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36699         * modules/unicase/u32-casefold-tests (Files): Likewise.
36700         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36701         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36702         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36703         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36704         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36705         * modules/unicase/u32-tolower-tests (Files): Likewise.
36706         * modules/unicase/u32-totitle-tests (Files): Likewise.
36707         * modules/unicase/u32-toupper-tests (Files): Likewise.
36708         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36709         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36710         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36711         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36712         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36713         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36714         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36715         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36716         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36717         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36718         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36719         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36720         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36721         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36722         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36723         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36724         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36725         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36726         * modules/unictype/block-list-tests (Files): Likewise.
36727         * modules/unictype/block-of-tests (Files): Likewise.
36728         * modules/unictype/block-test-tests (Files): Likewise.
36729         * modules/unictype/category-C-tests (Files): Likewise.
36730         * modules/unictype/category-Cc-tests (Files): Likewise.
36731         * modules/unictype/category-Cf-tests (Files): Likewise.
36732         * modules/unictype/category-Cn-tests (Files): Likewise.
36733         * modules/unictype/category-Co-tests (Files): Likewise.
36734         * modules/unictype/category-Cs-tests (Files): Likewise.
36735         * modules/unictype/category-L-tests (Files): Likewise.
36736         * modules/unictype/category-Ll-tests (Files): Likewise.
36737         * modules/unictype/category-Lm-tests (Files): Likewise.
36738         * modules/unictype/category-Lo-tests (Files): Likewise.
36739         * modules/unictype/category-Lt-tests (Files): Likewise.
36740         * modules/unictype/category-Lu-tests (Files): Likewise.
36741         * modules/unictype/category-M-tests (Files): Likewise.
36742         * modules/unictype/category-Mc-tests (Files): Likewise.
36743         * modules/unictype/category-Me-tests (Files): Likewise.
36744         * modules/unictype/category-Mn-tests (Files): Likewise.
36745         * modules/unictype/category-N-tests (Files): Likewise.
36746         * modules/unictype/category-Nd-tests (Files): Likewise.
36747         * modules/unictype/category-Nl-tests (Files): Likewise.
36748         * modules/unictype/category-No-tests (Files): Likewise.
36749         * modules/unictype/category-P-tests (Files): Likewise.
36750         * modules/unictype/category-Pc-tests (Files): Likewise.
36751         * modules/unictype/category-Pd-tests (Files): Likewise.
36752         * modules/unictype/category-Pe-tests (Files): Likewise.
36753         * modules/unictype/category-Pf-tests (Files): Likewise.
36754         * modules/unictype/category-Pi-tests (Files): Likewise.
36755         * modules/unictype/category-Po-tests (Files): Likewise.
36756         * modules/unictype/category-Ps-tests (Files): Likewise.
36757         * modules/unictype/category-S-tests (Files): Likewise.
36758         * modules/unictype/category-Sc-tests (Files): Likewise.
36759         * modules/unictype/category-Sk-tests (Files): Likewise.
36760         * modules/unictype/category-Sm-tests (Files): Likewise.
36761         * modules/unictype/category-So-tests (Files): Likewise.
36762         * modules/unictype/category-Z-tests (Files): Likewise.
36763         * modules/unictype/category-Zl-tests (Files): Likewise.
36764         * modules/unictype/category-Zp-tests (Files): Likewise.
36765         * modules/unictype/category-Zs-tests (Files): Likewise.
36766         * modules/unictype/category-and-not-tests (Files): Likewise.
36767         * modules/unictype/category-and-tests (Files): Likewise.
36768         * modules/unictype/category-byname-tests (Files): Likewise.
36769         * modules/unictype/category-name-tests (Files): Likewise.
36770         * modules/unictype/category-none-tests (Files): Likewise.
36771         * modules/unictype/category-of-tests (Files): Likewise.
36772         * modules/unictype/category-or-tests (Files): Likewise.
36773         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36774         * modules/unictype/combining-class-tests (Files): Likewise.
36775         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36776         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36777         * modules/unictype/ctype-blank-tests (Files): Likewise.
36778         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36779         * modules/unictype/ctype-digit-tests (Files): Likewise.
36780         * modules/unictype/ctype-graph-tests (Files): Likewise.
36781         * modules/unictype/ctype-lower-tests (Files): Likewise.
36782         * modules/unictype/ctype-print-tests (Files): Likewise.
36783         * modules/unictype/ctype-punct-tests (Files): Likewise.
36784         * modules/unictype/ctype-space-tests (Files): Likewise.
36785         * modules/unictype/ctype-upper-tests (Files): Likewise.
36786         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36787         * modules/unictype/decimal-digit-tests (Files): Likewise.
36788         * modules/unictype/digit-tests (Files): Likewise.
36789         * modules/unictype/mirror-tests (Files): Likewise.
36790         * modules/unictype/numeric-tests (Files): Likewise.
36791         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36792         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36793         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36794         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36795         Likewise.
36796         * modules/unictype/property-bidi-block-separator-tests (Files):
36797         Likewise.
36798         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36799         Likewise.
36800         * modules/unictype/property-bidi-common-separator-tests (Files):
36801         Likewise.
36802         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36803         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36804         Likewise.
36805         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36806         Likewise.
36807         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36808         Likewise.
36809         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36810         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36811         Likewise.
36812         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36813         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36814         Likewise.
36815         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36816         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36817         * modules/unictype/property-bidi-segment-separator-tests (Files):
36818         Likewise.
36819         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36820         * modules/unictype/property-byname-tests (Files): Likewise.
36821         * modules/unictype/property-combining-tests (Files): Likewise.
36822         * modules/unictype/property-composite-tests (Files): Likewise.
36823         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36824         * modules/unictype/property-dash-tests (Files): Likewise.
36825         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36826         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36827         Likewise.
36828         * modules/unictype/property-deprecated-tests (Files): Likewise.
36829         * modules/unictype/property-diacritic-tests (Files): Likewise.
36830         * modules/unictype/property-extender-tests (Files): Likewise.
36831         * modules/unictype/property-format-control-tests (Files): Likewise.
36832         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36833         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36834         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36835         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36836         * modules/unictype/property-hyphen-tests (Files): Likewise.
36837         * modules/unictype/property-id-continue-tests (Files): Likewise.
36838         * modules/unictype/property-id-start-tests (Files): Likewise.
36839         * modules/unictype/property-ideographic-tests (Files): Likewise.
36840         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36841         * modules/unictype/property-ids-trinary-operator-tests (Files):
36842         Likewise.
36843         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36844         * modules/unictype/property-iso-control-tests (Files): Likewise.
36845         * modules/unictype/property-join-control-tests (Files): Likewise.
36846         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36847         * modules/unictype/property-line-separator-tests (Files): Likewise.
36848         * modules/unictype/property-logical-order-exception-tests (Files):
36849         Likewise.
36850         * modules/unictype/property-lowercase-tests (Files): Likewise.
36851         * modules/unictype/property-math-tests (Files): Likewise.
36852         * modules/unictype/property-non-break-tests (Files): Likewise.
36853         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36854         * modules/unictype/property-numeric-tests (Files): Likewise.
36855         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36856         * modules/unictype/property-other-default-ignorable-code-point-tests
36857         (Files): Likewise.
36858         * modules/unictype/property-other-grapheme-extend-tests (Files):
36859         Likewise.
36860         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36861         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36862         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36863         * modules/unictype/property-other-math-tests (Files): Likewise.
36864         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36865         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36866         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36867         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36868         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36869         * modules/unictype/property-private-use-tests (Files): Likewise.
36870         * modules/unictype/property-punctuation-tests (Files): Likewise.
36871         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36872         * modules/unictype/property-radical-tests (Files): Likewise.
36873         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36874         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36875         * modules/unictype/property-space-tests (Files): Likewise.
36876         * modules/unictype/property-terminal-punctuation-tests (Files):
36877         Likewise.
36878         * modules/unictype/property-test-tests (Files): Likewise.
36879         * modules/unictype/property-titlecase-tests (Files): Likewise.
36880         * modules/unictype/property-unassigned-code-value-tests (Files):
36881         Likewise.
36882         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36883         * modules/unictype/property-uppercase-tests (Files): Likewise.
36884         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36885         * modules/unictype/property-white-space-tests (Files): Likewise.
36886         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36887         * modules/unictype/property-xid-start-tests (Files): Likewise.
36888         * modules/unictype/property-zero-width-tests (Files): Likewise.
36889         * modules/unictype/scripts-tests (Files): Likewise.
36890         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36891         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36892         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36893         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36894         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36895         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36896         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36897         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36898         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36899         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36900         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36901         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36902         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36903         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36904         * modules/uninorm/composition-tests (Files): Likewise.
36905         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36906         * modules/uninorm/decomposition-tests (Files): Likewise.
36907         * modules/uninorm/filter-tests (Files): Likewise.
36908         * modules/uninorm/nfc-tests (Files): Likewise.
36909         * modules/uninorm/nfd-tests (Files): Likewise.
36910         * modules/uninorm/nfkc-tests (Files): Likewise.
36911         * modules/uninorm/nfkd-tests (Files): Likewise.
36912         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36913         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36914         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36915         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36916         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36917         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36918         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36919         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36920         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36921         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36922         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36923         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36924         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36925         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36926         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36927         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36928         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36929         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36930         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36931         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36932         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36933         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36934         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36935         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36936         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36937         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36938         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36939         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36940         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36941         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36942         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36943         * modules/uniwidth/u8-width-tests (Files): Likewise.
36944         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36945         * modules/uniwidth/u16-width-tests (Files): Likewise.
36946         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36947         * modules/uniwidth/u32-width-tests (Files): Likewise.
36948         * modules/uniwidth/width-tests (Files): Likewise.
36949         * modules/unlink-tests (Files): Likewise.
36950         * modules/unsetenv-tests (Files): Likewise.
36951         * modules/usleep-tests (Files): Likewise.
36952         * modules/utimens-tests (Files): Likewise.
36953         * modules/utimensat-tests (Files): Likewise.
36954         * modules/vasnprintf-posix-tests (Files): Likewise.
36955         * modules/vasnprintf-tests (Files): Likewise.
36956         * modules/vasprintf-posix-tests (Files): Likewise.
36957         * modules/vasprintf-tests (Files): Likewise.
36958         * modules/vdprintf-posix-tests (Files): Likewise.
36959         * modules/vfprintf-posix-tests (Files): Likewise.
36960         * modules/vprintf-posix-tests (Files): Likewise.
36961         * modules/vsnprintf-posix-tests (Files): Likewise.
36962         * modules/vsnprintf-tests (Files): Likewise.
36963         * modules/vsprintf-posix-tests (Files): Likewise.
36964         * modules/wcrtomb-tests (Files): Likewise.
36965         * modules/wcsnrtombs-tests (Files): Likewise.
36966         * modules/wcsrtombs-tests (Files): Likewise.
36967         * modules/wctype-tests (Files): Likewise.
36968         * modules/wcwidth-tests (Files): Likewise.
36969         * modules/xmemdup0-tests (Files): Likewise.
36970         * modules/xprintf-posix-tests (Files): Likewise.
36971         * modules/xvasprintf-tests (Files): Likewise.
36972
36973 2009-12-24  Eric Blake  <ebb9@byu.net>
36974
36975         test-nanosleep: fix typo
36976         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36977         patch.
36978         Reported by Bruno Haible.
36979
36980 2009-12-24  Bruno Haible  <bruno@clisp.org>
36981
36982         Reduce namespace pollution on glibc systems.
36983         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36984         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36985         systems.
36986         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36987         <getopt.h> on glibc systems.
36988         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36989         systems.
36990         * lib/fcntl.c: Include <unistd.h> here instead.
36991
36992 2009-12-24  Bruno Haible  <bruno@clisp.org>
36993
36994         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36995
36996 2009-12-24  Eric Blake  <ebb9@byu.net>
36997
36998         tests: add signature checks
36999         * tests/signature.h (SIGNATURE_CHECK): New file.
37000         * modules/atexit-tests (Files): Use it.
37001         * modules/btowc-tests (Files): Likewise.
37002         * modules/canonicalize-lgpl-tests (Files): Likewise.
37003         * modules/ceilf-tests (Files): Likewise.
37004         * modules/ceill-tests (Files): Likewise.
37005         * modules/chown-tests (Files): Likewise.
37006         * modules/dprintf-posix-tests (Files): Likewise.
37007         * modules/dup2-tests (Files): Likewise.
37008         * modules/dup3-tests (Files): Likewise.
37009         * modules/duplocale-tests (Files): Likewise.
37010         * modules/fchdir-tests (Files): Likewise.
37011         * modules/fcntl-tests (Files): Likewise.
37012         * modules/fdopendir-tests (Files): Likewise.
37013         * modules/fflush-tests (Files): Likewise.
37014         * modules/flock-tests (Files): Likewise.
37015         * modules/floorf-tests (Files): Likewise.
37016         * modules/floorl-tests (Files): Likewise.
37017         * modules/fnmatch-tests (Files): Likewise.
37018         * modules/fopen-tests (Files): Likewise.
37019         * modules/fprintf-posix-tests (Files): Likewise.
37020         * modules/freopen-tests (Files): Likewise.
37021         * modules/frexp-nolibm-tests (Files): Likewise.
37022         * modules/frexp-tests (Files): Likewise.
37023         * modules/frexpl-nolibm-tests (Files): Likewise.
37024         * modules/frexpl-tests (Files): Likewise.
37025         * modules/fseek-tests (Files): Likewise.
37026         * modules/fseeko-tests (Files): Likewise.
37027         * modules/fsync-tests (Files): Likewise.
37028         * modules/ftell-tests (Files): Likewise.
37029         * modules/ftello-tests (Files): Likewise.
37030         * modules/futimens-tests (Files): Likewise.
37031         * modules/getaddrinfo-tests (Files): Likewise.
37032         * modules/getcwd-tests (Files): Likewise.
37033         * modules/getdelim-tests (Files): Likewise.
37034         * modules/getdtablesize-tests (Files): Likewise.
37035         * modules/getgroups-tests (Files): Likewise.
37036         * modules/gethostname-tests (Files): Likewise.
37037         * modules/getline-tests (Files): Likewise.
37038         * modules/getopt-posix-tests (Files): Likewise.
37039         * modules/gettimeofday-tests (Files): Likewise.
37040         * modules/glob-tests (Files): Likewise.
37041         * modules/iconv-tests (Files): Likewise.
37042         * modules/inet_ntop-tests (Files): Likewise.
37043         * modules/inet_pton-tests (Files): Likewise.
37044         * modules/isblank-tests (Files): Likewise.
37045         * modules/lchown-tests (Files): Likewise.
37046         * modules/ldexpl-tests (Files): Likewise.
37047         * modules/link-tests (Files): Likewise.
37048         * modules/linkat-tests (Files): Likewise.
37049         * modules/lseek-tests (Files): Likewise.
37050         * modules/lstat-tests (Files): Likewise.
37051         * modules/mbrtowc-tests (Files): Likewise.
37052         * modules/mbsinit-tests (Files): Likewise.
37053         * modules/mbsnrtowcs-tests (Files): Likewise.
37054         * modules/mbsrtowcs-tests (Files): Likewise.
37055         * modules/memchr-tests (Files): Likewise.
37056         * modules/memcmp-tests (Files): Likewise.
37057         * modules/memmem-tests (Files): Likewise.
37058         * modules/memrchr-tests (Files): Likewise.
37059         * modules/mkdir-tests (Files): Likewise.
37060         * modules/mkfifo-tests (Files): Likewise.
37061         * modules/mkfifoat-tests (Files): Likewise.
37062         * modules/mknod-tests (Files): Likewise.
37063         * modules/nanosleep-tests (Files): Likewise.
37064         * modules/nl_langinfo-tests (Files): Likewise.
37065         * modules/obstack-printf-tests (Files): Likewise.
37066         * modules/open-tests (Files): Likewise.
37067         * modules/openat-tests (Files): Likewise.
37068         * modules/perror-tests (Files): Likewise.
37069         * modules/pipe2-tests (Files): Likewise.
37070         * modules/poll-tests (Files): Likewise.
37071         * modules/popen-tests (Files): Likewise.
37072         * modules/posix_spawn-tests (Files): Likewise.
37073         * modules/posix_spawnp-tests (Files): Likewise.
37074         * modules/pread-tests (Files): Likewise.
37075         * modules/printf-posix-tests (Files): Likewise.
37076         * modules/pty-tests (Files): Likewise.
37077         * modules/random_r-tests (Files): Likewise.
37078         * modules/rawmemchr-tests (Files): Likewise.
37079         * modules/readlink-tests (Files): Likewise.
37080         * modules/remove-tests (Files): Likewise.
37081         * modules/rename-tests (Files): Likewise.
37082         * modules/renameat-tests (Files): Likewise.
37083         * modules/rmdir-tests (Files): Likewise.
37084         * modules/round-tests (Files): Likewise.
37085         * modules/roundf-tests (Files): Likewise.
37086         * modules/roundl-tests (Files): Likewise.
37087         * modules/select-tests (Files): Likewise.
37088         * modules/setenv-tests (Files): Likewise.
37089         * modules/sigaction-tests (Files): Likewise.
37090         * modules/sleep-tests (Files): Likewise.
37091         * modules/snprintf-posix-tests (Files): Likewise.
37092         * modules/snprintf-tests (Files): Likewise.
37093         * modules/sprintf-posix-tests (Files): Likewise.
37094         * modules/stat-tests (Files): Likewise.
37095         * modules/strcasestr-tests (Files): Likewise.
37096         * modules/strchrnul-tests (Files): Likewise.
37097         * modules/strerror-tests (Files): Likewise.
37098         * modules/strsignal-tests (Files): Likewise.
37099         * modules/strstr-tests (Files): Likewise.
37100         * modules/strtod-tests (Files): Likewise.
37101         * modules/strverscmp-tests (Files): Likewise.
37102         * modules/symlink-tests (Files): Likewise.
37103         * modules/symlinkat-tests (Files): Likewise.
37104         * modules/times-tests (Files): Likewise.
37105         * modules/trunc-tests (Files): Likewise.
37106         * modules/truncf-tests (Files): Likewise.
37107         * modules/truncl-tests (Files): Likewise.
37108         * modules/tsearch-tests (Files): Likewise.
37109         * modules/uname-tests (Files): Likewise.
37110         * modules/unlink-tests (Files): Likewise.
37111         * modules/unsetenv-tests (Files): Likewise.
37112         * modules/usleep-tests (Files): Likewise.
37113         * modules/utimensat-tests (Files): Likewise.
37114         * modules/vasprintf-tests (Files): Likewise.
37115         * modules/vdprintf-posix-tests (Files): Likewise.
37116         * modules/vfprintf-posix-tests (Files): Likewise.
37117         * modules/vprintf-posix-tests (Files): Likewise.
37118         * modules/vsnprintf-posix-tests (Files): Likewise.
37119         * modules/vsnprintf-tests (Files): Likewise.
37120         * modules/vsprintf-posix-tests (Files): Likewise.
37121         * modules/wcrtomb-tests (Files): Likewise.
37122         * modules/wcsnrtombs-tests (Files): Likewise.
37123         * modules/wcsrtombs-tests (Files): Likewise.
37124         * modules/wcwidth-tests (Files): Likewise.
37125         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37126         * tests/test-isinf.c (isinf): Likewise.
37127         * tests/test-isnan.c (isnan): Likewise.
37128         * tests/test-signbit.c (signbit): Likewise.
37129         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37130         declaration, either as macro or with correct signature.
37131         (select): Ensure function under test is declared with correct
37132         signature in correct header.
37133         * tests/test-atexit.c (atexit): Likewise.
37134         * tests/test-btowc.c (btowc): Likewise.
37135         * tests/test-canonicalize-lgpl.c (realpath)
37136         (canonicalize_file_name): Likewise.
37137         * tests/test-ceilf1.c (ceilf): Likewise.
37138         * tests/test-ceill.c (ceill): Likewise.
37139         * tests/test-chown.c (chown): Likewise.
37140         * tests/test-dprintf-posix.c (dprintf): Likewise.
37141         * tests/test-dup2.c (dup2): Likewise.
37142         * tests/test-dup3.c (dup3): Likewise.
37143         * tests/test-duplocale.c (duplocale): Likewise.
37144         * tests/test-fchdir.c (fchdir): Likewise.
37145         * tests/test-fchownat.c (fchownat): Likewise.
37146         * tests/test-fcntl.c (fcntl): Likewise.
37147         * tests/test-fdopendir.c (fdopendir): Likewise.
37148         * tests/test-fflush.c (fflush): Likewise.
37149         * tests/test-flock.c (flock): Likewise.
37150         * tests/test-floorf1.c (floorf): Likewise.
37151         * tests/test-floorl.c (floorl): Likewise.
37152         * tests/test-fnmatch.c (fnmatch): Likewise.
37153         * tests/test-fopen.c (fopen): Likewise.
37154         * tests/test-fprintf-posix.c (fprintf): Likewise.
37155         * tests/test-freopen.c (freopen): Likewise.
37156         * tests/test-frexp.c (frexp): Likewise.
37157         * tests/test-frexpl.c (frexpl): Likewise.
37158         * tests/test-fseek.c (fseek): Likewise.
37159         * tests/test-fseeko.c (fseeko): Likewise.
37160         * tests/test-fstatat.c (fstatat): Likewise.
37161         * tests/test-fsync.c (fsync): Likewise.
37162         * tests/test-ftell.c (ftell): Likewise.
37163         * tests/test-ftello.c (ftello): Likewise.
37164         * tests/test-futimens.c (futimens): Likewise.
37165         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37166         (gai_strerror): Likewise.
37167         * tests/test-getcwd.c (getcwd): Likewise.
37168         * tests/test-getdelim.c (getdelim): Likewise.
37169         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37170         * tests/test-getgroups.c (getgroups): Likewise.
37171         * tests/test-gethostname.c (gethostname): Likewise.
37172         * tests/test-getline.c (getline): Likewise.
37173         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37174         Likewise.
37175         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37176         * tests/test-glob.c (glob, globfree): Likewise.
37177         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37178         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37179         * tests/test-inet_pton.c (inet_pton): Likewise.
37180         * tests/test-isblank.c (isblank): Likewise.
37181         * tests/test-lchown.c (lchown): Likewise.
37182         * tests/test-ldexpl.c (ldexpl): Likewise.
37183         * tests/test-link.c (link): Likewise.
37184         * tests/test-linkat.c (linkat): Likewise.
37185         * tests/test-lseek.c (lseek): Likewise.
37186         * tests/test-lstat.c (lstat): Likewise.
37187         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37188         * tests/test-mbsinit.c (mbsinit): Likewise.
37189         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37190         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37191         * tests/test-memchr.c (memchr): Likewise.
37192         * tests/test-memcmp.c (memcmp): Likewise.
37193         * tests/test-memmem.c (memmem): Likewise.
37194         * tests/test-memrchr.c (memrchr): Likewise.
37195         * tests/test-mkdir.c (mkdir): Likewise.
37196         * tests/test-mkdirat.c (mkdirat): Likewise.
37197         * tests/test-mkfifo.c (mkfifo): Likewise.
37198         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37199         * tests/test-mknod.c (mknod): Likewise.
37200         * tests/test-nanosleep.c (nanosleep): Likewise.
37201         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37202         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37203         Likewise.
37204         * tests/test-open.c (open): Likewise.
37205         * tests/test-openat.c (openat): Likewise.
37206         * tests/test-perror.c (perror): Likewise.
37207         * tests/test-pipe2.c (pipe2): Likewise.
37208         * tests/test-poll.c (poll): Likewise.
37209         * tests/test-popen.c (popen, pclose): Likewise.
37210         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37211         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37212         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37213         (posix_spawn_file_actions_destroy)
37214         (posix_spawn_file_actions_addclose)
37215         (posix_spawn_file_actions_addopen)
37216         (posix_spawn_file_actions_adddup2): Likewise.
37217         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37218         * tests/test-pread.c (pread): Likewise.
37219         * tests/test-printf-posix.c (printf): Likewise.
37220         * tests/test-pty.c (openpty, forkpty): Likewise.
37221         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37222         (random_r): Likewise.
37223         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37224         * tests/test-readlink.c (readlink): Likewise.
37225         * tests/test-remove.c (remove): Likewise.
37226         * tests/test-rename.c (rename): Likewise.
37227         * tests/test-renameat.c (renameat): Likewise.
37228         * tests/test-rmdir.c (rmdir): Likewise.
37229         * tests/test-round1.c (round): Likewise.
37230         * tests/test-roundf1.c (roundf): Likewise.
37231         * tests/test-roundl.c (roundl): Likewise.
37232         * tests/test-setenv.c (setenv): Likewise.
37233         * tests/test-sigaction.c (sigaction): Likewise.
37234         * tests/test-sleep.c (sleep): Likewise.
37235         * tests/test-snprintf.c (snprintf): Likewise.
37236         * tests/test-sprintf-posix.c (sprintf): Likewise.
37237         * tests/test-stat.c (stat): Likewise.
37238         * tests/test-stpncpy.c (stpncpy): Likewise.
37239         * tests/test-strcasestr.c (strcasestr): Likewise.
37240         * tests/test-strchrnul.c (strchrnul): Likewise.
37241         * tests/test-strerror.c (strerror): Likewise.
37242         * tests/test-strsignal.c (strsignal): Likewise.
37243         * tests/test-strstr.c (strstr): Likewise.
37244         * tests/test-strtod.c (strtod): Likewise.
37245         * tests/test-strverscmp.c (strverscmp): Likewise.
37246         * tests/test-symlink.c (symlink): Likewise.
37247         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37248         * tests/test-times.c (times): Likewise.
37249         * tests/test-trunc1.c (trunc): Likewise.
37250         * tests/test-truncf1.c (truncf): Likewise.
37251         * tests/test-truncl.c (truncl): Likewise.
37252         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37253         Likewise.
37254         * tests/test-uname.c (uname): Likewise.
37255         * tests/test-unlink.c (unlink): Likewise.
37256         * tests/test-unlinkat.c (unlinkat): Likewise.
37257         * tests/test-unsetenv.c (unsetenv): Likewise.
37258         * tests/test-usleep.c (usleep): Likewise.
37259         * tests/test-utimensat.c (utimensat): Likewise.
37260         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37261         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37262         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37263         * tests/test-vprintf-posix.c (vprintf): Likewise.
37264         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37265         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37266         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37267         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37268         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37269         * tests/test-wcwidth.c (wcwidth): Likewise.
37270
37271         build: pull in conditional headers during GNULIB_POSIXCHECK
37272         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37273         definitions from any conditionally-included headers.
37274         * lib/stdlib.in.h (includes): Likewise.
37275         * lib/unistd.in.h (includes): Likewise.
37276
37277 2009-12-24  Bruno Haible  <bruno@clisp.org>
37278
37279         * tests/test-argv-iter.c: Include header file being tested immediately
37280         after config.h.
37281         * tests/test-base64.c: Likewise.
37282         * tests/test-flock.c: Likewise.
37283         * tests/test-fsync.c: Likewise.
37284         * tests/test-getdate.c: Likewise.
37285         * tests/test-getndelim2.c: Likewise.
37286         * tests/test-isfinite.c: Likewise.
37287         * tests/test-isinf.c: Likewise.
37288         * tests/test-strerror.c: Likewise.
37289         * tests/test-strsignal.c: Likewise.
37290
37291 2009-12-23  Eric Blake  <ebb9@byu.net>
37292
37293         unistd: work around cygwin bug
37294         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37295         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37296         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37297
37298 2009-12-23  Bruno Haible  <bruno@clisp.org>
37299
37300         localename: More tests.
37301         * tests/test-localename.c (SIZEOF): New macro.
37302         (categories): New variable.
37303         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37304         test_locale_name_default): Add test w.r.t. thread locale.
37305         (test_locale_name_thread): New function.
37306         (main): Invoke it.
37307
37308         localename: Make aware of thread locale.
37309         * lib/localename.h (gl_locale_name_thread): New declaration.
37310         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37311         behaviour with respect to thread locale.
37312         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37313         <langinfo.h>, glthread/lock.h.
37314         (SIZE_BITS): New macro.
37315         (string_hash): New function.
37316         (struct hash_node): New type.
37317         (HASH_TABLE_SIZE): New macro.
37318         (struniq_hash_table, struniq_lock): New variables.
37319         (struniq): New function.
37320         (gl_locale_name_thread): New function.
37321         (gl_locale_name): Invoke it.
37322         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37323         * modules/localename (Depends-on): Add lock.
37324         Reported by Mike Gran <spk121@yahoo.com>.
37325
37326 2009-12-23  Eric Blake  <ebb9@byu.net>
37327
37328         va-args: new module
37329         * modules/va-args: New file.
37330         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37331         * MODULES.html.sh (Core language properties): Mention it.
37332
37333         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37334         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37335         named alias for __attribute__((__unused__)).
37336         * lib/chown.c: Update client.
37337         * lib/fchmodat.c: Likewise.
37338         * lib/fts.c: Likewise.
37339         * lib/getdate.y: Likewise.
37340         * lib/getgroups.c: Likewise.
37341         * lib/getopt.c: Likewise.
37342         * lib/getugroups.c: Likewise.
37343         * lib/mkdir.c: Likewise.
37344         * lib/mkfifo.c: Likewise.
37345         * lib/mkfifoat.c: Likewise.
37346         * lib/mknod.c: Likewise.
37347         * lib/mknodat.c: Likewise.
37348         * lib/readlink.c: Likewise.
37349         * lib/se-context.in.h: Likewise.
37350         * lib/se-selinux.in.h: Likewise.
37351         * lib/sockets.c: Likewise.
37352         * lib/symlink.c: Likewise.
37353         * lib/symlinkat.c: Likewise.
37354         * lib/unicodeio.c: Likewise.
37355         * lib/unistr.h: Likewise.
37356         * tests/test-areadlink.c: Likewise.
37357         * tests/test-areadlinkat.c: Likewise.
37358         * tests/test-filenamecat.c: Likewise.
37359         * tests/test-fseeko.c: Likewise.
37360         * tests/test-ftello.c: Likewise.
37361         * tests/test-getdate.c: Likewise.
37362         * tests/test-getgroups.c: Likewise.
37363         * tests/test-gethostname.c: Likewise.
37364         * tests/test-quotearg.c: Likewise.
37365         * tests/test-version-etc.c: Likewise.
37366         * tests/test-xalloc-die.c: Likewise.
37367         * tests/test-xfprintf-posix.c: Likewise.
37368         * tests/test-xprintf-posix.c: Likewise.
37369         * tests/test-xvasprintf.c: Likewise.
37370
37371         tests: avoid compiler warnings
37372         * tests/test-fcntl.c (main): Delete unused parameters.
37373         * tests/test-freopen-safer.c (main): Likewise.
37374         * tests/test-xalloc-die.c (main): Mark unused parameters.
37375         * tests/test-fseeko.c (main): Likewise.
37376         * tests/test-ftello.c (main): Likewise.
37377         * tests/test-nanosleep.c (main): Avoid declaration warning.
37378         * tests/test-sleep.c (main): Likewise.
37379         * tests/test-unsetenv.c (main): Silence warning about string
37380         literal.
37381         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37382
37383 2009-12-23  Bruno Haible  <bruno@clisp.org>
37384
37385         * tests/test-localename.c (test_locale_name): New function, extracted
37386         from main. Also test mixed situations.
37387         (test_locale_name_posix, test_locale_name_environ,
37388         test_locale_name_default): New functions.
37389         (main): Invoke them all.
37390         * modules/localename-tests (configure.ac): Test for newlocale.
37391
37392 2009-12-23  Bruno Haible  <bruno@clisp.org>
37393
37394         unistd: Ensure getcwd gets declared before being overridden.
37395         * lib/unistd.in.h: Conditionally include <io.h>.
37396
37397 2009-12-22  Bruno Haible  <bruno@clisp.org>
37398
37399         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37400         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37401         (gl_WCHAR_H): Invoke it.
37402         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37403         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37404         Reported by Karl Berry <karl@freefriends.org>.
37405
37406 2009-12-22  Eric Blake  <ebb9@byu.net>
37407
37408         math, unistd: avoid redundant includes
37409         * lib/math.in.h (isnan): No need to re-include <math.h>.
37410         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37411
37412         getsubopt: work around cygwin bug
37413         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37414         avoid conflicting with system getsubopt.
37415         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37416         bug.
37417
37418         getopt: synchronize from glibc
37419         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37420         parameter order.  Adjust all callers.
37421         (_getopt_internal_r, main): Adjust quoting in error messages.
37422         Drop considerations for outdated POSIX 1003.2 error message.
37423         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37424         callers.
37425         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37426
37427         test-getopt: test stderr behavior
37428         * modules/getopt-posix-tests (Depends-on): Add dup2.
37429         * tests/test-getopt.c (ASSERT): Avoid stderr.
37430         (main): Move stderr to a temporary file.
37431         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37432         Instead, add parameter to inform caller if output occurred.
37433         (test_getopt): Adjust all existing tests to expect silence, and
37434         add new tests of leading ":".
37435         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37436         glibc shortcomings with leading "-:" or "+:" in optstring.
37437         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37438         Likewise.
37439         * doc/posix-functions/getopt.texi (getopt): Likewise.
37440
37441         test-getopt: enhance test
37442         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37443         supports optind=0.
37444         * tests/test-getopt.c (OPTIND_MIN): Move...
37445         * tests/test-getopt.h (OPTIND_MIN): ...here.
37446         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37447         Require that optind=0 works, since modern BSD supports it in
37448         addition to optreset, and since coreutils expects it.
37449         (test_getopt_long_only): New test.
37450         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37451         glibc shortcomings with 'W;', and enforcement of optind=0.
37452         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37453         Likewise.
37454
37455 2009-12-21  Bruno Haible  <bruno@clisp.org>
37456
37457         localename: Improvements for MacOS X and Cygwin.
37458         * lib/localename.h (gl_locale_name_environ): New declaration.
37459         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37460         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37461         (gl_locale_name_posix): Invoke it.
37462         (gl_locale_name_default): Add comments. Use Windows native API also on
37463         Cygwin.
37464
37465 2009-12-21  Bruno Haible  <bruno@clisp.org>
37466
37467         Update list of Win32 locale ids.
37468         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37469         (LANG_SAMI): Renamed from LANG_SAAMI.
37470         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37471         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37472         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37473         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37474         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37475         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37476         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37477         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37478         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37479         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37480         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37481         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37482         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37483         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37484         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37485         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37486         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37487         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37488         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37489         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37490         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37491         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37492         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37493         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37494         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37495         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37496         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37497         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37498         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37499         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37500         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37501         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37502         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37503         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37504         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37505         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37506         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37507         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37508         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37509         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37510         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37511         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37512         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37513         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37514         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37515         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37516         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37517         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37518         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37519         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37520         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37521         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37522         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37523         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37524         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37525         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37526         Add more languages and countries for Sami, Sorbian. Add more countries
37527         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37528         for Pashto. Change country for Syriac, Tswana.
37529
37530 2009-12-21  Eric Blake  <ebb9@byu.net>
37531
37532         test-utimens: avoid spurious failure
37533         * tests/test-chown.h (nap): Factor...
37534         * tests/nap.h: ...into new file.
37535         * tests/test-lchown.h (nap): Avoid duplication.
37536         * tests/test-utimens-common.h (nap): Use shared implementation,
37537         necessary on file systems with 1-second resolution.
37538         * modules/chown-tests (Files): Include new file.
37539         * modules/fdutimensat-tests (Files): Likewise.
37540         * modules/futimens-tests (Files): Likewise.
37541         * modules/lchown-tests (Files): Likewise.
37542         * modules/openat-tests (Files): Likewise.
37543         * modules/utimens-tests (Files): Likewise.
37544         * modules/utimensat-tests (Files): Likewise.
37545
37546 2009-12-19  Eric Blake  <ebb9@byu.net>
37547
37548         futimens, utimensat: work around Linux bug
37549         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37550         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37551         * lib/utimensat.c (rpl_utimensat): Work around it.
37552         * lib/futimens.c (rpl_futimens): Adjust comment.
37553
37554         utimens: work around Linux ctime bug
37555         * lib/utimens.c (detect_ctime_bug): New helper function.
37556         (update_timespec): Differentiate between workaround needed for
37557         this bug vs. what is needed for systems that lack utimensat.
37558         (fdutimens, lutimens): Work around bug.
37559
37560         utimens: check for ctime update
37561         * tests/test-utimens-common.h (check_ctime): Define.
37562         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37563         * tests/test-futimens.h (test_futimens): Likewise.
37564         * tests/test-lutimens.h (test_lutimens): Likewise.
37565         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37566         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37567
37568 2009-12-19  Bruno Haible  <bruno@clisp.org>
37569
37570         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37571         * tests/test-dprintf-posix2.sh: New file.
37572         * tests/test-dprintf-posix2.c: New file.
37573         * modules/dprintf-posix-tests (Files): Add them.
37574         (configure.ac): Check for getrlimit and setrlimit.
37575         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37576
37577 2009-12-19  Bruno Haible  <bruno@clisp.org>
37578
37579         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37580         * tests/test-fprintf-posix3.sh: New file.
37581         * tests/test-fprintf-posix3.c: New file.
37582         * modules/fprintf-posix-tests (Files): Add them.
37583         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37584
37585 2009-12-19  Eric Blake  <ebb9@byu.net>
37586
37587         dirfd: fix prototype
37588         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37589         * lib/dirfd.c (dirfd): Likewise.
37590
37591         canonicalize: reduce memory usage
37592         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37593         allocation to size.
37594         Reported by Solar Designer <solar@openwall.com>.
37595
37596 2009-12-19  Bruno Haible  <bruno@clisp.org>
37597
37598         New module attribute 'Applicability'.
37599         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37600         * gnulib-tool: New option --extract-applicability.
37601         (func_usage): Document it.
37602         (sed_extract_prog): Recognize it.
37603         (func_get_applicability): New function.
37604         (func_import): Generalize handling of 'link-warning' module.
37605         * modules/link-warning (Applicability): New section.
37606         * modules/arg-nonnull (Applicability): New section.
37607         Repoted by Simon Josefsson <simon@josefsson.org>.
37608
37609 2009-12-19  Bruno Haible  <bruno@clisp.org>
37610
37611         fflush: tweak
37612         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37613         * lib/fseeko.c (rpl_fseeko): Likewise.
37614
37615 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37616
37617         * lib/gl_list.h: Fix typo in comment.
37618
37619 2009-12-16  Eric Blake  <ebb9@byu.net>
37620
37621         fcntl: use to simplify other modules
37622         * modules/cloexec (Depends-on): Add fcntl.
37623         * modules/fchdir (Depends-on): Likewise.
37624         * modules/fd-safer-flag (Depends-on): Likewise.
37625         * modules/unistd-safer (Depends-on): Likewise.
37626         * modules/dup3 (configure.ac): Set module indicator.
37627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37628         missing.
37629         * lib/fchdir.c (_gl_register_dup): Fix comment.
37630         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37631         * lib/dup-safer.c (dup_safer): Likewise.
37632         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37633         * lib/dup3.c (dup3): Likewise.
37634         * tests/test-fchdir.c (main): Enhance test.
37635         Fixes a dup_cloexec bug reported by Ondřej Vašík.
37636
37637         fcntl: port portions of fcntl to mingw
37638         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37639         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37640         replacement for mingw.
37641         * modules/fcntl (Description): Update.
37642         (Depends-on): Add dup2.
37643         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37644         * modules/fcntl-h (Makefile.am): Substitute it.
37645         * lib/fcntl.in.h (fcntl): Update declaration.
37646         (F_DUPFD, F_GETFD): New macros, when needed.
37647         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37648         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37649         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37650         we now guarantee.
37651
37652         fcntl: work around cygwin bug in F_DUPFD
37653         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37654         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37655         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37656         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37657         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37658
37659         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37660         * modules/fcntl (Files): List new files.
37661         (configure.ac): Run a test.
37662         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37663         * lib/fcntl.c (rpl_fcntl): Likewise.
37664         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37665         (gl_FCNTL_H): Always replace fcntl.h.
37666         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37667         * lib/fcntl.in.h (fcntl): Declare replacement.
37668         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37669         needed, plus a witness.
37670         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37671         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37672         * tests/test-fcntl.c: New file.
37673         * modules/fcntl-tests: Likewise.
37674
37675         binary-io: avoid potential compilation warning
37676         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37677         directives.
37678
37679         fflush: avoid compilation error on NetBSD
37680         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37681         between off_t and fpos_t, since the latter is sometimes a struct.
37682         * lib/fseeko.c (rpl_fseeko): Likewise.
37683         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37684
37685 2009-12-15  Eric Blake  <ebb9@byu.net>
37686
37687         fcntl-h, stdio, sys_ioctl: fix declarations
37688         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37689         function must not take arguments.
37690         * lib/sys_ioctl.in.h (ioctl): Likewise.
37691         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37692         (open): Add a link warning.
37693
37694 2009-12-15  Jim Meyering  <meyering@redhat.com>
37695
37696         areadlink, areadlink-with-size: relax license to LGPLv2+
37697         * modules/areadlink (License): Relax to LGPLv2+.
37698         * modules/areadlink-with-size (License): Likewise.
37699
37700 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37701             Bruno Haible  <bruno@clisp.org>
37702
37703         *printf: Fix memory leak.
37704         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37705         * lib/vfprintf.c (vfprintf): Likewise.
37706         * lib/dprintf.c (dprintf): Likewise.
37707         * lib/vdprintf.c (vdprintf): Likewise.
37708
37709 2009-12-14  Eric Blake  <ebb9@byu.net>
37710
37711         accept4: adjust module dependencies
37712         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37713
37714         utimens: one more try at avoiding compiler warning
37715         * lib/utimens.c (lutimens): Lower scope of result.
37716
37717 2009-12-13  Bruno Haible  <bruno@clisp.org>
37718
37719         Move the malloc checking from module 'list' to new module 'xlist'.
37720         * modules/xlist: New file.
37721         * lib/gl_xlist.h: New file.
37722         * lib/gl_xlist.c: New file.
37723         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37724         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37725         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37726         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37727         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37728         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37729         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37730         gl_sortedlist_nx_add): New declarations.
37731         (struct gl_list_implementation): Rename and change methods accordingly.
37732         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37733         (gl_list_nx_create): Renamed from gl_list_create.
37734         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37735         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37736         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37737         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37738         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37739         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37740         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37741         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37742         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37743         gl_list_create_empty.
37744         (gl_list_nx_create): Renamed from gl_list_create.
37745         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37746         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37747         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37748         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37749         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37750         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37751         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37752         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37753         * lib/gl_array_list.c: Don't include xalloc.h.
37754         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37755         NULL upon out-of-memory.
37756         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37757         out-of-memory.
37758         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37759         Change return type to 'int'.
37760         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37761         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37762         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37763         upon out-of-memory.
37764         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37765         upon out-of-memory.
37766         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37767         upon out-of-memory.
37768         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37769         upon out-of-memory.
37770         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37771         out-of-memory.
37772         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37773         Update.
37774         (gl_array_list_implementation): Update.
37775         * lib/gl_carray_list.c: Don't include xalloc.h.
37776         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37777         Return NULL upon out-of-memory.
37778         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37779         out-of-memory.
37780         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37781         Change return type to 'int'.
37782         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37783         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37784         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37785         upon out-of-memory.
37786         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37787         upon out-of-memory.
37788         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37789         out-of-memory.
37790         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37791         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37792         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37793         Update.
37794         (gl_carray_list_implementation): Update.
37795         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37796         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37797         gl_linked_create_empty. Return NULL upon out-of-memory.
37798         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37799         out-of-memory.
37800         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37801         Change return type to 'int'. Return -1 upon out-of-memory.
37802         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37803         out-of-memory.
37804         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37805         upon out-of-memory.
37806         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37807         upon out-of-memory.
37808         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37809         NULL upon out-of-memory.
37810         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37811         upon out-of-memory.
37812         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37813         out-of-memory.
37814         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37815         Update.
37816         * lib/gl_linked_list.c: Don't include xalloc.h.
37817         (gl_linked_list_implementation): Update.
37818         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37819         (add_to_bucket): Change return type to 'int'.
37820         (gl_linkedhash_list_implementation): Update.
37821         * lib/gl_anytree_list1.h (free_subtree): New function.
37822         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37823         gl_tree_create_empty. Return NULL upon out-of-memory.
37824         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37825         Change return type to 'int'. Return -1 upon out-of-memory.
37826         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37827         out-of-memory.
37828         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37829         (gl_tree_remove_node): New function, moved here from
37830         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37831         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37832         Update.
37833         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37834         malloc, not xmalloc. Return NULL upon out-of-memory.
37835         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37836         out-of-memory.
37837         (gl_tree_remove_node_from_tree): New function, extracted from
37838         gl_tree_remove_node.
37839         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37840         upon out-of-memory.
37841         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37842         out-of-memory.
37843         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37844         upon out-of-memory.
37845         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37846         upon out-of-memory.
37847         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37848         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37849         not xmalloc. Return NULL upon out-of-memory.
37850         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37851         out-of-memory.
37852         (gl_tree_remove_node_from_tree): New function, extracted from
37853         gl_tree_remove_node.
37854         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37855         upon out-of-memory.
37856         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37857         out-of-memory.
37858         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37859         upon out-of-memory.
37860         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37861         upon out-of-memory.
37862         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37863         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37864         gl_anytree_list1.h before gl_anyavltree_list2.h.
37865         (gl_avltree_list_implementation): Update.
37866         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37867         gl_anytree_list1.h before gl_anyavltree_list2.h.
37868         (gl_rbtree_list_implementation): Update.
37869         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37870         Change return type to 'int'. Return -1 upon out-of-memory. Use
37871         __builtin_expect.
37872         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37873         (gl_avltreehash_list_implementation): Update.
37874         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37875         (gl_rbtreehash_list_implementation): Update.
37876         * modules/array-list (Depends-on): Remove xalloc.
37877         * modules/carray-list (Depends-on): Likewise.
37878         * modules/linked-list (Depends-on): Likewise.
37879         * modules/linkedhash-list (Depends-on): Likewise.
37880         * modules/avltree-list (Depends-on): Likewise.
37881         * modules/rbtree-list (Depends-on): Likewise.
37882         * modules/avltreehash-list (Depends-on): Likewise.
37883         * modules/rbtreehash-list (Depends-on): Likewise.
37884
37885         * modules/xsublist: New file.
37886         * lib/gl_xsublist.h: New file.
37887         * lib/gl_xsublist.c: New file.
37888         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37889         (gl_sublist_nx_create): New declaration.
37890         * lib/gl_sublist.c: Don't include xalloc.h.
37891         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37892         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37893         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37894         Change return type to 'int'. Return -1 upon out-of-memory.
37895         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37896         upon out-of-memory.
37897         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37898         NULL upon out-of-memory.
37899         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37900         upon out-of-memory.
37901         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37902         NULL upon out-of-memory.
37903         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37904         NULL upon out-of-memory.
37905         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37906         upon out-of-memory.
37907         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37908         (gl_sublist_list_implementation): Update.
37909         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37910         upon out-of-memory.
37911         * modules/sublist (Depends-on): Remove xalloc.
37912
37913         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37914         * tests/test-carray_list.c: Likewise.
37915         * tests/test-linked_list.c: Likewise.
37916         * tests/test-linkedhash_list.c: Likewise.
37917         * tests/test-avltree_list.c: Likewise.
37918         * tests/test-rbtree_list.c: Likewise.
37919         * tests/test-avltreehash_list.c: Likewise.
37920         * tests/test-rbtreehash_list.c: Likewise.
37921         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37922         * modules/carray-list-tests (Makefile.am): Likewise.
37923         * modules/linked-list-tests (Makefile.am): Likewise.
37924         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37925         * modules/avltree-list-tests (Makefile.am): Likewise.
37926         * modules/rbtree-list-tests (Makefile.am): Likewise.
37927         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37928         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37929
37930         * NEWS: Mention the changes.
37931
37932         * lib/clean-temp.c: Include gl_xlist.h.
37933         * modules/clean-temp (Depends-on): Add xlist.
37934
37935         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37936         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37937
37938         * tests/test-array_oset.c: Include gl_xlist.h.
37939         * modules/array-oset-tests (Depends-on): Add xlist.
37940
37941         Reported by José E. Marchesi <jemarch@gnu.org>.
37942
37943 2009-12-13  Bruno Haible  <bruno@clisp.org>
37944
37945         Move the malloc checking from module 'oset' to new module 'xoset'.
37946         * modules/xoset: New file.
37947         * lib/gl_xoset.h: New file.
37948         * lib/gl_xoset.c: New file.
37949         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37950         declarations.
37951         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37952         (struct gl_oset_implementation): Rename and change methods accordingly.
37953         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37954         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37955         'int'. Mark as __warn_unused_result__.
37956         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37957         gl_oset_create_empty.
37958         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37959         'int'.
37960         * lib/gl_array_oset.c: Don't include xalloc.h.
37961         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37962         malloc, not xmalloc.
37963         (grow): Change return type to 'int'. Don't call xalloc_die.
37964         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37965         to 'int'.
37966         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37967         'int'.
37968         (gl_array_oset_implementation): Update.
37969         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37970         gl_tree_create_empty.
37971         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37972         'int'.
37973         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37974         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37975         xmalloc.
37976         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37977         not xmalloc.
37978         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37979         xmalloc.
37980         (gl_avltree_oset_implementation): Update.
37981         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37982         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37983         xmalloc.
37984         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37985         not xmalloc.
37986         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37987         xmalloc.
37988         (gl_rbtree_oset_implementation): Update.
37989         * modules/array-oset (Depends-on): Remove xalloc.
37990         * modules/avltree-oset (Depends-on): Likewise.
37991         * modules/rbtree-oset (Depends-on): Likewise.
37992         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37993         * tests/test-avltree_oset.c: Likewise.
37994         * tests/test-rbtree_oset.c: Likewise.
37995         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37996         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37997         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37998         * NEWS: Mention the change.
37999
38000 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38001
38002         maint.mk: allow a project to override release-prep commands
38003         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38004         commands into a new rule.
38005         (release-prep): New rule.
38006         (release-prep-hook): New overridable variable.
38007
38008 2009-12-13  Bruno Haible  <bruno@clisp.org>
38009
38010         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38011
38012 2009-12-13  Jim Meyering  <meyering@redhat.com>
38013
38014         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38015         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38016
38017 2009-12-12  Bruno Haible  <bruno@clisp.org>
38018
38019         duplocale: Tweak.
38020         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38021
38022 2009-12-12  Karl Berry  <karl@gnu.org>
38023
38024         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38025
38026 2009-12-12  Bruno Haible  <bruno@clisp.org>
38027
38028         * m4/po.m4: Undo incorrect untabification.
38029
38030 2009-12-12  Bruno Haible  <bruno@clisp.org>
38031
38032         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38033         * modules/c-strtod (Depends-on): Add locale.
38034         * modules/c-strtold (Depends-on): Likewise.
38035
38036 2009-12-12  Bruno Haible  <bruno@clisp.org>
38037
38038         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38039
38040 2009-12-11  Eric Blake  <ebb9@byu.net>
38041
38042         setenv: relax requirement in light of POSIX ruling
38043         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38044         not NULL.
38045         * tests/test-setenv.c (main): Relax test.
38046         * tests/test-unsetenv.c (main): Likewise.
38047         * doc/posix-functions/setenv.texi (setenv): Document this.
38048         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38049
38050 2009-12-11  Bruno Haible  <bruno@clisp.org>
38051
38052         New module 'fd-safer-flag'.
38053         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38054         * lib/dup-safer.c (dup_safer_flag): Remove function.
38055         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38056         * lib/fd-safer.c (fd_safer_flag): Remove function.
38057         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38058         * modules/cloexec (configure.ac): Drop indicator macro.
38059         * modules/fd-safer-flag: New file.
38060         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38061         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38062         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38063
38064 2009-12-11  Bruno Haible  <bruno@clisp.org>
38065
38066         Tests for module 'nl_langinfo'.
38067         * modules/nl_langinfo-tests: New file.
38068         * tests/test-nl_langinfo.sh: New file.
38069         * tests/test-nl_langinfo.c: New file.
38070
38071         New module 'nl_langinfo'.
38072         * lib/nl_langinfo.c: New file.
38073         * m4/nl_langinfo.m4: New file.
38074         * modules/nl_langinfo: New file.
38075         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38076
38077 2009-12-11  Bruno Haible  <bruno@clisp.org>
38078
38079         Tests for module 'langinfo'.
38080         * modules/langinfo-tests: New file.
38081         * tests/test-langinfo.c: New file.
38082
38083         New module 'langinfo'.
38084         * lib/langinfo.in.h: New file.
38085         * m4/langinfo_h.m4: New file.
38086         * modules/langinfo: New file.
38087         * doc/posix-headers/langinfo.texi: Mention the new module.
38088
38089 2009-12-11  Bruno Haible  <bruno@clisp.org>
38090
38091         * lib/config.charset: Untabify.
38092
38093 2009-12-11  Bruno Haible  <bruno@clisp.org>
38094
38095         * modules/unistd-safer (configure.ac): Drop indicator macro.
38096
38097 2009-12-11  Bruno Haible  <bruno@clisp.org>
38098
38099         Move pipe2-safer code to its own file.
38100         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38101         * lib/pipe-safer.c (pipe2_safer): Remove function.
38102         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38103         (Makefile.am): Add it to lib_SOURCES.
38104
38105 2009-12-10  Bruno Haible  <bruno@clisp.org>
38106
38107         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38108
38109 2009-12-10  Bruno Haible  <bruno@clisp.org>
38110
38111         Declare which arguments expect non-NULL values, for GCC and clang.
38112         * build-aux/arg-nonnull.h: New file.
38113         * modules/arg-nonnull: New file.
38114         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38115         (inet_ntop, inet_pton): Use it.
38116         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38117         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38118         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38119         (open, openat): Use it.
38120         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38121         (fnmatch): Use it.
38122         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38123         (getopt, getopt_long, getopt_long_only): Use it.
38124         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38125         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38126         Use it.
38127         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38128         (iconv_open): Use it.
38129         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38130         (strtoimax, strtoumax): Use it.
38131         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38132         (duplocale): Use it.
38133         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38134         (frexp, frexpl): Use it.
38135         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38136         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38137         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38138         (tsearch, tfind, tdelete, twalk): Use it.
38139         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38140         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38141         sigpending): Use it.
38142         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38143         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38144         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38145         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38146         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38147         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38148         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38149         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38150         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38151         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38152         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38153         Use it.
38154         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38155         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38156         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38157         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38158         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38159         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38160         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38161         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38162         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38163         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38164         strtoull, unsetenv): Use it.
38165         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38166         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38167         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38168         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38169         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38170         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38171         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38172         (strcasecmp, strncasecmp): Use it.
38173         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38174         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38175         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38176         rpl_setsockopt): Use it.
38177         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38178         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38179         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38180         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38181         (gettimeofday): Use it.
38182         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38183         (times): Use it.
38184         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38185         (uname): Use it.
38186         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38187         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38188         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38189         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38190         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38191         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38192         unlinkat, write): Use it.
38193         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38194         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38195         * lib/argv-iter.h: Include arg-nonnull.h.
38196         (_ATTRIBUTE_NONNULL_): Remove macro.
38197         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38198         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38199         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38200         optimization.
38201         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38202         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38203         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38204         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38205         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38206         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38207         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38208         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38209         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38210         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38211         * modules/dirent (Depends-on): Add arg-nonnull.
38212         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38213         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38214         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38215         * modules/fnmatch (Depends-on): Add arg-nonnull.
38216         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38217         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38218         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38219         * modules/glob (Depends-on): Add arg-nonnull.
38220         (Makefile.am): Insert arg-nonnull.h into glob.h.
38221         * modules/iconv_open (Depends-on): Add arg-nonnull.
38222         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38223         * modules/inttypes (Depends-on): Add arg-nonnull.
38224         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38225         * modules/locale (Depends-on): Add arg-nonnull.
38226         (Makefile.am): Insert arg-nonnull.h into locale.h.
38227         * modules/math (Depends-on): Add arg-nonnull.
38228         (Makefile.am): Insert arg-nonnull.h into math.h.
38229         * modules/netdb (Depends-on): Add arg-nonnull.
38230         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38231         * modules/search (Depends-on): Add arg-nonnull.
38232         (Makefile.am): Insert arg-nonnull.h into search.h.
38233         * modules/signal (Depends-on): Add arg-nonnull.
38234         (Makefile.am): Insert arg-nonnull.h into signal.h.
38235         * modules/spawn (Depends-on): Add arg-nonnull.
38236         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38237         * modules/stdio (Depends-on): Add arg-nonnull.
38238         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38239         * modules/stdlib (Depends-on): Add arg-nonnull.
38240         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38241         * modules/string (Depends-on): Add arg-nonnull.
38242         (Makefile.am): Insert arg-nonnull.h into string.h.
38243         * modules/strings (Depends-on): Add arg-nonnull.
38244         (Makefile.am): Insert arg-nonnull.h into strings.h.
38245         * modules/sys_socket (Depends-on): Add arg-nonnull.
38246         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38247         * modules/sys_stat (Depends-on): Add arg-nonnull.
38248         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38249         * modules/sys_time (Depends-on): Add arg-nonnull.
38250         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38251         * modules/sys_times (Depends-on): Add arg-nonnull.
38252         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38253         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38254         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38255         * modules/time (Depends-on): Add arg-nonnull.
38256         (Makefile.am): Insert arg-nonnull.h into time.h.
38257         * modules/unistd (Depends-on): Add arg-nonnull.
38258         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38259         * modules/wchar (Depends-on): Add arg-nonnull.
38260         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38261         * modules/argv-iter (Depends-on): Add arg-nonnull.
38262         * tests/test-canonicalize.c (null_ptr): New function.
38263         (main): Use it.
38264         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38265         (main): Use it.
38266         * tests/test-memmem.c (null_ptr): New function.
38267         (main): Use it.
38268         Reported by Jim Meyering.
38269
38270 2009-12-10  Bruno Haible  <bruno@clisp.org>
38271
38272         Use spaces for indentation, not tabs.
38273         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38274         * m4/*.m4: Untabify.
38275         * build-aux/*.h: Untabify.
38276         * tests/**/*.[hc]: Untabify.
38277         * README: New section "Indent with spaces, not TABs", based on
38278         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38279         * NEWS: Mention the change.
38280
38281 2009-12-10  Bruno Haible  <bruno@clisp.org>
38282
38283         pty test: Fix link error.
38284         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38285         test_pty_LDADD.
38286
38287 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38288
38289         * modules/pty: New file.
38290         * modules/pty-tests: New file.
38291         * m4/pty.m4: New file.
38292         * tests/test-pty.c: New file.
38293         * doc/glibc-headers/pty.texi: Modified.
38294         * doc/glibc-functions/forkpty.texi: Modified.
38295         * doc/glibc-functions/openpty.texi: Modified.
38296
38297 2009-12-10  Bruno Haible  <bruno@clisp.org>
38298
38299         Avoid syntax error in C++ mode.
38300         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38301
38302 2009-12-10  Bruno Haible  <bruno@clisp.org>
38303
38304         Use sed with option -e.
38305         * gnulib-tool (func_version, func_emit_copyright_notice,
38306         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38307         option -e to sed.
38308         * modules/link-warning (Makefile.am): Likewise.
38309
38310 2009-12-10  Jim Meyering  <meyering@redhat.com>
38311
38312         mgetgroups: do not write bytes beyond end of malloc'd buffer
38313         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38314         username, we call getgroups with a one-element-shorter buffer,
38315         but still told it the length was original, max_n_groups.
38316
38317 2009-12-09  Eric Blake  <ebb9@byu.net>
38318
38319         cloexec: relax license
38320         * modules/cloexec (Maintainer): Add myself.
38321         (License): Use LGPL, not GPL.
38322
38323         link-warning: optimize generation
38324         * modules/link-warning (Makefile.am): Reduce process usage.
38325
38326 2009-12-09  Bruno Haible  <bruno@clisp.org>
38327
38328         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38329         workaround was added on 2009-11-17.
38330
38331 2009-12-09  Jim Meyering  <meyering@redhat.com>
38332             Bruno Haible  <bruno@clisp.org>
38333
38334         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38335         * modules/link-warning (Makefile.am): Make the comment-removing sed
38336         command more robust in the face of bootstrap-prepended comment lines.
38337
38338 2009-12-09  Bruno Haible  <bruno@clisp.org>
38339
38340         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38341         most one group.
38342
38343 2009-12-09  Simon Josefsson <simon@josefsson.org>
38344             Bruno Haible  <bruno@clisp.org>
38345
38346         * build-aux/link-warning.h: Add copyright notice.
38347         * modules/link-warning (Makefile.am): Generate link-warning.h from
38348         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38349         * NEWS: Mention change in link-warning module.
38350         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38351         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38352         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38353         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38354         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38355         * modules/math (Makefile.am): Add dependency to math.h.
38356         * modules/search (Makefile.am): Add dependency to search.h.
38357         * modules/signal (Makefile.am): Add dependency to signal.h.
38358         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38359         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38360         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38361         * modules/string (Makefile.am): Add dependency to string.h.
38362         * modules/strings (Makefile.am): Add dependency to strings.h.
38363         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38364         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38365         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38366         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38367         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38368         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38369         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38370         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38371         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38372
38373 2009-12-09  Bruno Haible  <bruno@clisp.org>
38374
38375         fchdir: Optimize away rpl_fstat when possible.
38376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38377         REPLACE_OPEN_DIRECTORY.
38378         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38379
38380 2009-12-09  Bruno Haible  <bruno@clisp.org>
38381
38382         * lib/fchdir.c: Update comment.
38383
38384 2009-12-09  Bruno Haible  <bruno@clisp.org>
38385
38386         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38387
38388 2009-12-08  Eric Blake  <ebb9@byu.net>
38389
38390         fchdir: avoid memory leak on re-registration.
38391         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38392
38393 2009-12-08  Jim Meyering  <meyering@redhat.com>
38394
38395         init.sh: avoid Solaris 10 /bin/sh portability problem
38396         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38397         sourced script:
38398           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38399           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38400           bar
38401         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38402         and two tests used that idiom.
38403         * tests/init.sh: Update suggested usage comments.
38404         (path_prepend_): New function, to be used in place
38405         of the --src-path=DIR option.
38406         (setup_): Move PATH-prepending code into path_prepend_.
38407         * tests/test-pread.sh: Adapt to new usage.
38408         * tests/test-xalloc-die.sh: Likewise.
38409
38410 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38411
38412         * doc/gnulib.texi (Glibc pty.h): Add.
38413         * doc/glibc-functions/forkpty.texi: Add.
38414         * doc/glibc-functions/openpty.texi: Add.
38415         Suggested by Bruno Haible.
38416
38417 2009-12-08  Eric Blake  <ebb9@byu.net>
38418
38419         fchdir: fix logic bugs
38420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38421         * tests/test-fchdir.c (main): Enhance test.
38422         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38423         is in use.
38424
38425         dup2: fix logic bugs
38426         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38427         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38428         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38429         exists.
38430         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38431
38432 2009-12-07  Eric Blake  <ebb9@byu.net>
38433
38434         unlink: fix m4 detection
38435         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38436
38437         unistd-safer: add unit test
38438         * modules/unistd-safer-tests: New file.
38439         * tests/test-dup-safer.c: Likewise.
38440         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38441         * tests/test-dup2.c (setmode): Likewise.
38442         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38443
38444         cloexec: preserve text vs. binary across dup_cloexec
38445         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38446         mode.
38447         * modules/dup2-tests (Depends-on): Add binary-io.
38448         * modules/cloexec-tests (Depends-on): Likewise.
38449         * tests/test-dup2.c (setmode, is_mode): New helpers.
38450         (main): Add tests that translation mode is preserved.
38451         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38452         Reported by Bruno Haible.
38453
38454         mgetgroups: reduce duplicate listings
38455         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38456         resulting array.
38457         * tests/test-chown.h (test_chown): Simplify client.
38458         * tests/test-lchown.h (test_lchown): Likewise.
38459
38460 2009-12-06  Bruno Haible  <bruno@clisp.org>
38461
38462         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38463         value.
38464
38465 2009-12-06  Bruno Haible  <bruno@clisp.org>
38466
38467         * lib/progname.c: Include stdio.h, stdlib.h.
38468         (set_program_name): Reject a NULL argument.
38469
38470 2009-12-05  Eric Blake  <ebb9@byu.net>
38471
38472         pipe2-safer: new module
38473         * modules/pipe2-safer: New file.
38474         * lib/unistd-safer.h (pipe2_safer): New prototype.
38475         * lib/unistd--.h (pipe2): New wrapper.
38476         * lib/pipe-safer.c (pipe2_safer): New function.
38477         * modules/pipe (Depends-on): Add pipe2-safer.
38478         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38479
38480         stdlib-safer: preserve cloexec flag for mkostemp[s]
38481         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38482         fd_safer_flag.
38483
38484         unistd-safer: allow preservation of cloexec status via flag
38485         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38486         prototypes.
38487         * lib/dup-safer.c (dup_safer_flag): New function.
38488         * lib/fd-safer.c (fd_safer_flag): Likewise.
38489         * modules/cloexec (configure.ac): Set witness.
38490
38491         test-dup2: enhance test
38492         * modules/dup2-tests (Depends-on): Add cloexec.
38493         * tests/test-dup2.c (main): Enhance test.
38494
38495         cloexec: add dup_cloexec
38496         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38497         header and comments.
38498         * lib/cloexec.c (set_cloexec_flag): Add comments.
38499         (dup_cloexec): New function, with mingw implementation borrowed
38500         from...
38501         * lib/w32spawn.h (dup_noinherit): ...here.
38502         * modules/execute (Depends-on): Add cloexec.
38503         * modules/pipe (Depends-on): Likewise.
38504         * modules/cloexec (Depends-on): Add dup2.
38505         * modules/cloexec-tests (Files): New file.
38506         * tests/test-cloexec.c: Likewise.
38507
38508         test-xalloc-die: fix test for mingw
38509         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38510         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38511         directory and .exe suffix off argv[0] output.
38512
38513         test-fseeko: fix test for mingw
38514         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38515         than undefining fseek, so test will pass on mingw.
38516
38517 2009-12-05  Bruno Haible  <bruno@clisp.org>
38518
38519         * lib/progname.h (set_program_name): Clarify specification.
38520         * lib/progname.c (set_program_name): Likewise.
38521         Reported by Jim Meyering.
38522
38523 2009-12-05  Jim Meyering  <meyering@redhat.com>
38524
38525         maint.mk: backslash-escape parens in default regexp
38526         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38527         backslash-escape the literal parentheses.
38528
38529         maint.mk: news-date-check: use grep -E
38530         * top/maint.mk (today): Define a Make variable, not a...
38531         (news-date-check): ...shell variable.
38532         (news-date-regexp): Use the Make variable.
38533         Use grep's -E option.  Change the failing diagnostic to mention
38534         the variable, $(news-date-regexp).
38535
38536 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38537
38538         maintainer-makefile: allow customization of NEWS entry format
38539         * top/maint.mk (news-date-regexp): New overridable variable.
38540         (news-date-check): Use it.
38541
38542 2009-12-04  Eric Blake  <ebb9@byu.net>
38543
38544         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38545         * lib/mgetgroups.h (xgetgroups): New prototype.
38546         * lib/mgetgroups.c (xgetgroups): New wrapper.
38547         (mgetgroups): Handle ENOSYS.
38548         * modules/mgetgroups (Depends-on): Add realloc.
38549         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38550
38551         mgetgroups: avoid argument promotion issues with -1
38552         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38553         for invalid gid_t.
38554         * tests/test-chown.h (getegid, test_chown): Likewise.
38555         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38556
38557 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38558
38559         exclude: Fix header file problems.
38560         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38561
38562 2009-12-01  Jim Meyering  <meyering@redhat.com>
38563
38564         fts: fts_open: do not let an empty string cause immediate failure
38565         This is required in support of GNU rm, for which the command
38566         "rm A '' B" must process and remove both A and B, in spite of
38567         the empty string argument.
38568         * lib/fts.c (fts_open): Do not let the presence of an empty string
38569         cause fts_open to fail immediately.  Most fts-using tools must be
38570         able to process all arguments, in order, and can be expected to
38571         diagnose such arguments themselves.
38572
38573 2009-11-30  Eric Blake  <ebb9@byu.net>
38574
38575         utimens: fix compilation error
38576         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38577         Declare variable at right scope.
38578
38579 2009-11-29  Jim Meyering  <meyering@redhat.com>
38580
38581         bootstrap: handle perl-5.11's changed --version output
38582         * build-aux/bootstrap (get_version): Handle perl separately,
38583         since perl-5.11's --version output is different.
38584
38585 2009-11-28  Jim Meyering  <meyering@redhat.com>
38586
38587         userspec: depend on the inttostr module, too
38588         * modules/userspec (Depends-on): Add inttostr.
38589
38590         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38591         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38592         number of MAXUID when it evaluates to (uid_t) -1.
38593         Likewise for group ID.  Reported by Matt McCutchen in
38594         <http://savannah.gnu.org/bugs/?28113>
38595
38596         userspec: reformat to use spaces, not TABs
38597         * lib/userspec.c: Expand TABs to spaces.
38598         Add Emacs' "indent-tabs-mode: nil" hint.
38599
38600 2009-11-27  Eric Blake  <ebb9@byu.net>
38601
38602         getopt-gnu: flush out another BSD bug
38603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38604         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38605         flush out BSD bug.
38606         * tests/test-getopt.h (test_getopt): End lists with NULL.
38607         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38608         (test_getopt_long_posix): Enhance test.
38609         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38610         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38611         getopt-gnu.
38612         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38613         Likewise.
38614
38615 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38616
38617         * modules/idpriv-droptemp-tests (Notice): Fix text.
38618
38619 2009-11-27  Jim Meyering  <meyering@redhat.com>
38620
38621         test-xalloc-die: avoid spurious failure due to libtool argv difference
38622         In a libtool-enabled project, this test would fail due to a difference
38623         in the emitted program name, e.g.,
38624         -test-xalloc-die: memory exhausted
38625         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38626         Use program to avoid that.
38627         * modules/xalloc-die-tests (Depends-on): Add progname.
38628         * tests/test-xalloc-die.c: Include progname.h".
38629         (program_name): Remove decl.
38630         (main): Call set_program_name.
38631         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38632
38633 2009-11-26  Richard Jones  <rjones@redhat.com>
38634
38635         w32sock: leave win32 error in place.
38636         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38637
38638 2009-11-26  Eric Blake  <ebb9@byu.net>
38639
38640         init.sh: suggest to use skip_ and fail_ functions in comments
38641         * tests/init.sh: Add a sentence.
38642
38643 2009-11-25  Bruno Haible  <bruno@clisp.org>
38644
38645         init.sh: add documentation in comments
38646         * tests/init.sh: Add some developer and user documentation.
38647
38648 2009-11-26  Jim Meyering  <meyering@redhat.com>
38649
38650         init.sh: accommodate even those who specify bogus srcdir manually
38651         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38652         configure-time tests to be sanitized, so that there is no need to
38653         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38654         (with no double quotes) suffices.  However, since tests may be
38655         invoked manually, and since you may explicitly set srcdir to the
38656         name of a directory containing spaces, do quote its uses here.
38657         * tests/test-pread.sh: Likewise.
38658         Suggested by Bruno Haible.
38659
38660         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38661         * tests/test-pread.sh: Write no data into the pipe, because
38662         test-pread actually reads none.  This avoids a diagnostic,
38663         "bash: echo: write error: Broken pipe", that arises in the unusual
38664         event something is ignoring SIGPIPE, and might be interpreted
38665         as some sort of failure.  Reported by Bruno Haible.
38666
38667 2009-11-25  Jim Meyering  <meyering@redhat.com>
38668
38669         test-pread: cover failure with ESPIPE and EINVAL
38670         * tests/test-pread.c (main): Test for failure, too.
38671         * tests/test-pread.sh: Invoke with stdin on a pipe.
38672         Suggested by Eric Blake.
38673
38674         pread: improvement and fix
38675         * modules/pread (Depends-on): Depend on lseek, for portability to
38676         e.g., mingw.  Suggested by Eric Blake.
38677         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38678
38679         unistd.in.h: correct declaration of pread
38680         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38681         Reported by Richard W.M. Jones.
38682
38683         test-pread.sh: distribute the test script
38684         * modules/pread-tests (Files): Include test-pread.sh.
38685
38686         test-pread.sh: clean up
38687         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38688         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38689         That is unnecessary, since it's always ".".
38690         Suggestion from Eric Blake.
38691
38692         test-pread.sh: make executable
38693         * tests/test-pread.sh: Set executable bit.
38694         Reported by Eric Blake.
38695
38696         correct typo in test-pread.sh
38697         * tests/test-pread.sh: Add #! line.
38698
38699         test pread
38700         * tests/test-pread.c: New file.
38701         * tests/test-pread.sh: Likewise.
38702         * modules/pread-tests: Likewise.
38703
38704         pread: new module
38705         * modules/pread: New file.
38706         * lib/unistd.in.h (pread): Define/declare.
38707         * lib/pread.c (pread): New file.
38708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38709         * modules/unistd (Makefile.am): Substitute witnesses.
38710         * doc/posix-functions/pread.texi (pread): Update.
38711         * MODULES.html.sh: Add pread.
38712
38713 2009-11-25  Jim Meyering  <meyering@redhat.com>
38714
38715         tests/init.sh: new file to be used via most *.sh tests
38716         * tests/init.sh: New file.
38717
38718 2009-11-25  Eric Blake  <ebb9@byu.net>
38719
38720         utimens: work around older Linux failure with symlinks
38721         * lib/utimens.c (lutimensat_works_really): New variable.
38722         (fdutimens, lutimens): Use it to manage kernels that support
38723         nanosecond times on files, but not on symlinks.
38724         Reported by Ondřej Vašík.
38725
38726         utimes: fix configure grammar
38727         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38728
38729 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38730
38731         regex: Fix fastmap for multibyte character ranges.
38732         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38733         characters when a multibyte character range is included.
38734
38735 2009-11-22  Andy Wingo  <wingo@pobox.com>
38736
38737         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38738         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38739
38740 2009-11-24  Bruno Haible  <bruno@clisp.org>
38741
38742         doc: Most *_l functions exist in MacOS X 10.5.
38743         * doc/posix-functions/duplocale.texi: Update platforms list.
38744         * doc/posix-functions/freelocale.texi: Likewise.
38745         * doc/posix-functions/newlocale.texi: Likewise.
38746         * doc/posix-functions/uselocale.texi: Likewise.
38747         * doc/posix-functions/isalnum_l.texi: Likewise.
38748         * doc/posix-functions/isalpha_l.texi: Likewise.
38749         * doc/posix-functions/isblank_l.texi: Likewise.
38750         * doc/posix-functions/iscntrl_l.texi: Likewise.
38751         * doc/posix-functions/isdigit_l.texi: Likewise.
38752         * doc/posix-functions/isgraph_l.texi: Likewise.
38753         * doc/posix-functions/islower_l.texi: Likewise.
38754         * doc/posix-functions/isprint_l.texi: Likewise.
38755         * doc/posix-functions/ispunct_l.texi: Likewise.
38756         * doc/posix-functions/isspace_l.texi: Likewise.
38757         * doc/posix-functions/isupper_l.texi: Likewise.
38758         * doc/posix-functions/iswalnum_l.texi: Likewise.
38759         * doc/posix-functions/iswalpha_l.texi: Likewise.
38760         * doc/posix-functions/iswblank_l.texi: Likewise.
38761         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38762         * doc/posix-functions/iswctype_l.texi: Likewise.
38763         * doc/posix-functions/iswdigit_l.texi: Likewise.
38764         * doc/posix-functions/iswgraph_l.texi: Likewise.
38765         * doc/posix-functions/iswlower_l.texi: Likewise.
38766         * doc/posix-functions/iswprint_l.texi: Likewise.
38767         * doc/posix-functions/iswpunct_l.texi: Likewise.
38768         * doc/posix-functions/iswspace_l.texi: Likewise.
38769         * doc/posix-functions/iswupper_l.texi: Likewise.
38770         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38771         * doc/posix-functions/isxdigit_l.texi: Likewise.
38772         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38773         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38774         * doc/posix-functions/strcoll_l.texi: Likewise.
38775         * doc/posix-functions/strfmon_l.texi: Likewise.
38776         * doc/posix-functions/strftime_l.texi: Likewise.
38777         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38778         * doc/posix-functions/strxfrm_l.texi: Likewise.
38779         * doc/posix-functions/tolower_l.texi: Likewise.
38780         * doc/posix-functions/toupper_l.texi: Likewise.
38781         * doc/posix-functions/towctrans_l.texi: Likewise.
38782         * doc/posix-functions/towlower_l.texi: Likewise.
38783         * doc/posix-functions/towupper_l.texi: Likewise.
38784         * doc/posix-functions/wcscoll_l.texi: Likewise.
38785         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38786         * doc/posix-functions/wctrans_l.texi: Likewise.
38787         * doc/posix-functions/wctype_l.texi: Likewise.
38788         * doc/glibc-functions/strptime_l.texi: Likewise.
38789         * doc/glibc-functions/strtod_l.texi: Likewise.
38790         * doc/glibc-functions/strtof_l.texi: Likewise.
38791         * doc/glibc-functions/strtol_l.texi: Likewise.
38792         * doc/glibc-functions/strtold_l.texi: Likewise.
38793         * doc/glibc-functions/strtoll_l.texi: Likewise.
38794         * doc/glibc-functions/strtoul_l.texi: Likewise.
38795         * doc/glibc-functions/strtoull_l.texi: Likewise.
38796         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38797         * doc/glibc-functions/wcstod_l.texi: Likewise.
38798         * doc/glibc-functions/wcstof_l.texi: Likewise.
38799         * doc/glibc-functions/wcstol_l.texi: Likewise.
38800         * doc/glibc-functions/wcstold_l.texi: Likewise.
38801         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38802         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38803         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38804
38805 2009-11-24  Bruno Haible  <bruno@clisp.org>
38806
38807         duplocale: Fix logic bug.
38808         * lib/duplocale.c: Don't include <langinfo.h>.
38809         (_NL_LOCALE_NAME): Remove macro.
38810         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38811         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38812
38813 2009-11-23  Jim Meyering  <meyering@redhat.com>
38814
38815         test-update-copyright: don't hard-code /usr/bin/perl
38816         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38817         perl to print the current year.  Gilles Espinasse reported that
38818         the replaced use of perl was hard-coded as /usr/bin/perl.
38819
38820 2009-11-23  Bruno Haible  <bruno@clisp.org>
38821
38822         duplocale: Add support for glibc 2.3.x.
38823         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38824
38825 2009-11-22  Bruno Haible  <bruno@clisp.org>
38826
38827         vasnprintf: Tiny optimization.
38828         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38829         MacOS X.
38830
38831 2009-11-22  Bruno Haible  <bruno@clisp.org>
38832
38833         Tests for module 'duplocale'.
38834         * modules/duplocale-tests: New file.
38835         * tests/test-duplocale.c: New file.
38836
38837         New module 'duplocale'.
38838         * m4/duplocale.m4: New file.
38839         * lib/locale.in.h (duplocale): New declaration.
38840         * lib/duplocale.c: New file.
38841         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38842         gl_LOCALE_H_DEFAULTS): New macros.
38843         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38844         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38845         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38846         REPLACE_DUPLOCALE.
38847         * modules/duplocale: New file.
38848         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38849
38850 2009-11-22  Bruno Haible  <bruno@clisp.org>
38851
38852         * modules/locale-tests (configure.ac): Test for newlocale function.
38853         * tests/test-locale.c: When the system has extended locale functions,
38854         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38855
38856         locale: Make locale_t available when possible.
38857         * lib/locale.in.h: Include <xlocale.h> when it exists.
38858         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38859         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38860         * modules/locale (Depends-on): Add extensions.
38861         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38862         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38863
38864 2009-11-22  Bruno Haible  <bruno@clisp.org>
38865
38866         Add comments.
38867         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38868         invocation.
38869         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38870         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38871         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38872
38873 2009-11-22  Bruno Haible  <bruno@clisp.org>
38874
38875         error: account for the possibility of freopen (stdout).
38876         * lib/error.c: Include <unistd.h>.
38877         (flush_stdout): New function, extracted from error and error_at_line.
38878         Determine stdout's fd dynamically.
38879         (error, error_at_line): Invoke flush_stdout.
38880         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38881         * modules/error (Depends-on): Add unistd.
38882
38883 2009-11-22  Bruno Haible  <bruno@clisp.org>
38884
38885         diffseq: Add comment.
38886         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38887
38888 2009-11-22  Jim Meyering  <meyering@redhat.com>
38889
38890         c-stack: avoid defining an unused static function
38891         * lib/c-stack.c (find_stack_direction): Do not define this function
38892         when it will not be used.
38893
38894         diffseq: avoid spurious gcc warnings
38895         * lib/diffseq.h (IF_LINT2): Define.
38896         (compareseq): Use it to initialize two members of "part".
38897         This avoids two used-uninitialized warnings.
38898
38899 2009-11-21  Jim Meyering  <meyering@redhat.com>
38900
38901         c-stack: avoid "ignoring return value of `write'" warning
38902         * lib/c-stack.c: Include "ignore-value.h".
38903         (die): Explicitly ignore each write return value.
38904         * modules/c-stack (Depends-on): Add ignore-value.
38905
38906 2009-11-21  Bruno Haible  <bruno@clisp.org>
38907
38908         diffseq: reduce scope of variable 'best'.
38909         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38910         variable, earlier used for two different purposes.
38911
38912 2009-11-21  Jim Meyering  <meyering@redhat.com>
38913
38914         diffseq: remove useless assignment to "best"
38915         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38916         assignment.  At that point "best" is already guaranteed to be zero.
38917
38918 2009-11-20  Eric Blake  <ebb9@byu.net>
38919
38920         build: mention ftp redirector in release announcements
38921         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38922         values that used to come from cfg.mk; mention FTP redirect URL.
38923         * build-aux/announce-gen: Mention the mirror list.
38924         Suggested by Karl Berry.
38925
38926         nanosleep: improve port to mingw
38927         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38929         LIB_NANOSLEEP, but only when needed.
38930         * modules/select (Link): Document LIBSOCKET.
38931         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38932         enough.
38933
38934         nanosleep: work around cygwin bug
38935         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38936         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38937         bug.
38938         (getnow): Delete, not needed.
38939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38940         LIB_CLOCK_GETTIME.
38941         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38942         clock-time, gettime.
38943         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38944         bug.
38945         * modules/nanosleep-tests: New test.
38946         * tests/test-nanosleep.c: New file.
38947
38948         sleep: work around cygwin bug
38949         * lib/sleep.c (rpl_sleep): Work around the bug.
38950         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38951         (gl_PREREQ_SLEEP): Delete unused macro.
38952         * modules/sleep (Depends-on): Add verify.
38953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38954         * modules/unistd (Makefile.am): Substitute witness.
38955         * lib/unistd.in.h (sleep): Update prototype.
38956         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38957         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38958         * modules/sleep-tests (Depends-on): Check for alarm.
38959
38960 2009-11-20  Jim Meyering  <meyering@redhat.com>
38961
38962         maint.mk: improve sc_prohibit_magic_number_exit
38963         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38964         so it does not match uses like System.exit(1).
38965         Add comments showing how to correct all offenders.
38966
38967 2009-11-19  Eric Blake  <ebb9@byu.net>
38968
38969         xalloc-die-tests: add missing library
38970         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38971
38972         test-xvasprintf: silence compiler warnings
38973         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38974         empty string from gcc.
38975
38976 2009-11-19  Jim Meyering  <meyering@redhat.com>
38977
38978         xfreopen: new module, from coreutils
38979         * modules/xfreopen: New module.
38980         * lib/xfreopen.c: New file.
38981         * lib/xfreopen.h: New file.
38982         * MODULES.html.sh (File stream based Input/Output"): Add it.
38983
38984 2009-11-19  Eric Blake  <ebb9@byu.net>
38985
38986         manywarnings: depend on warnings
38987         * modules/manywarnings (Depends-on): Add warnings.
38988
38989         build: avoid compiler warnings
38990         * lib/select.c (rpl_select): Delete unused variable.
38991         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38992
38993 2009-11-18  Eric Blake  <ebb9@byu.net>
38994
38995         tests: avoid false negative with --with-packager
38996         * tests/test-version-etc.sh: Discard packager information.
38997         * tests/test-argp-version-etc-1.sh: Likewise.
38998         Reported by Mike Frysinger.
38999
39000         utimens: fix regression on Solaris
39001         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39002         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39003         can only change fd timestamps via futimesat.  Instead, use an
39004         additional witness macro to avoid BSD bug.
39005         Reported by Jim Meyering.
39006
39007 2009-11-17  Eric Blake  <ebb9@byu.net>
39008
39009         usleep: use it to simplify tests
39010         * modules/stat-time-tests (Depends-on): Add usleep.
39011         (configure.ac): Drop usleep check.
39012         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39013         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39014         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39015         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39016         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39017         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39018         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39019         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39020         Likewise.
39021         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39022         * tests/test-lchown.h (nap): Likewise.
39023         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39024         * tests/test-stat-time.c (nap): Likewise.
39025         * tests/test-utimens-common.h (nap): Update comments.
39026
39027         usleep: new module
39028         * modules/usleep: New file.
39029         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39030         * lib/usleep.c (usleep): Likewise.
39031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39032         * modules/unistd (Makefile.am): Substitute witnesses.
39033         * lib/unistd.in.h (usleep): Add declaration.
39034         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39035         * MODULES.html.sh (Date and time): Likewise.
39036         * modules/usleep-tests (Depends-on): New test.
39037         * tests/test-usleep.c: New file.
39038
39039         chown: work around OpenBSD bug
39040         * lib/chown.c (rpl_chown): Work around the bug.
39041         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39042         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39043         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39044         * modules/chown (Depends-on): Add stdbool.
39045         * modules/lchown (Depends-on): Likewise.
39046         * doc/posix-functions/chown.texi (chown): Document the bug.
39047         * doc/posix-functions/lchown.texi (lchown): Likewise.
39048         * tests/test-lchown.h (test_chown): Relax test.
39049
39050         mkstemp: avoid conflict with C++ keyword template
39051         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39052         * lib/mkostemp.c (mkostemp): Likewise.
39053         * lib/mkostemps.c (mkostemps): Likewise.
39054         * lib/mkstemp.c (mkstemp): Likewise.
39055         * lib/mkstemps.c (mkstemps): Likewise.
39056
39057         xalloc-die-tests: optimize
39058         * tests/test-xalloc-die.sh: Reduce number of processes.
39059
39060 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39061
39062         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39063         patch from ludo@gnu.org (Ludovic Courtès).
39064
39065 2009-11-17  Jim Meyering  <meyering@redhat.com>
39066
39067         version-etc: use proper license string
39068         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39069         * modules/version-etc-fsf: Likewise.
39070
39071 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39072
39073         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39074         printed to stdout.  Deal with EOL differences.
39075
39076 2009-11-17  Eric Blake  <ebb9@byu.net>
39077
39078         unsetenv: work around Solaris bug
39079         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39080         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39081         Reported by Jim Meyering.
39082
39083         vasnprintf: avoid compiler warnings
39084         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39085         variables.
39086         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39087
39088 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39089
39090         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39091         settings since xalloc-die is no longer the self test,
39092         xalloc-die.sh is.
39093
39094 2009-11-17  Jim Meyering  <meyering@redhat.com>
39095
39096         test-xalloc-die.sh: make the code agree with the commit log
39097         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39098         at the end, just in case you happen to have a test-xalloc-die
39099         program in some other PATH directory.
39100
39101         test-xalloc-die.sh: fix a portability bug
39102         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39103         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39104         Otherwise, argv[0] (as often seen in diagnostics) would be too
39105         system-dependent, sometimes with, and sometimes without the leading "./".
39106
39107         version-etc-fsf: relax license to LGPLv3+
39108         * modules/version-etc-fsf (License): Relax license.
39109
39110 2009-11-16  Eric Blake  <ebb9@byu.net>
39111
39112         xalloc-die-tests: avoid printing null pointer
39113         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39114         shell script.
39115         * tests/test-xalloc-die.c (program_name): Declare.
39116         * tests/test-xalloc-die.sh (tmpfiles): New file.
39117
39118         setenv, unsetenv: work around various bugs
39119         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39120         (setenv) [HAVE_SETENV]: Work around bugs.
39121         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39122         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39123         for bugs.
39124         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39125         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39127         * modules/stdlib (Makefile.am): Update substitutions.
39128         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39129         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39130         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39131         * modules/setenv-tests: New test.
39132         * modules/unsetenv-tests: Likewise.
39133         * tests/test-setenv.c: New file.
39134         * tests/test-unsetenv.c: Likewise.
39135
39136 2009-11-16  Jim Meyering  <meyering@redhat.com>
39137
39138         version-etc: relax license to LGPLv3+
39139         * modules/version-etc (License): Relax license.
39140
39141         better AC_REQUIRE expanded-before-required-warning avoidance
39142         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39143         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39144         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39145         which is no longer needed.
39146
39147 2009-11-16  Eric Blake  <ebb9@byu.net>
39148
39149         test-freading: clean up temporary file
39150         * tests/test-freading.c (main): Remove file on success, and use
39151         ASSERT more liberally.
39152         Reported by Jim Meyering.
39153
39154 2009-11-16  Jim Meyering  <meyering@redhat.com>
39155
39156         avoid new AC_REQUIRE expanded-before-required warnings
39157         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39158         merely using it.
39159         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39160         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39161
39162 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39163
39164         * tests/test-xalloc-die.c: New file.
39165         * modules/xalloc-die-tests: New file.
39166         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39167         XFAIL_TESTS so it can be appended by modules.
39168
39169 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39170
39171         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39172         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39173
39174 2009-11-14  Eric Blake  <ebb9@byu.net>
39175
39176         fnmatch: avoid compiler warning
39177         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39178         to silence compiler warning about mismatch signedness in ?:.
39179         Reported by Robert Millan.
39180
39181         intprops: add double-inclusion guard
39182         * lib/intprops.h: Allow idempotent includes.
39183         Suggested by Bruce Korb.
39184
39185         openat: detect Solaris fchownat bug
39186         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39187         penalizing glibc chownat when only lchownat is broken.
39188         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39189         trailing slash bugs.
39190         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39191         * modules/openat-tests (Files): Include more files.
39192         (Depends-on): Add mgetgroups, sleep, stat-time.
39193         (configure.ac): Add additional checks.
39194         (Makefile.am): Build new test.
39195         * tests/test-fchownat.c: New file.
39196
39197         lchown: detect Solaris and FreeBSD bug
39198         * lib/lchown.c (rpl_lchown): Work around bug.
39199         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39201         * modules/unistd (Makefile.am): Populate it.
39202         * lib/unistd.in.h (lchown): Update declaration.
39203         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39204         * modules/lchown-tests: New file.
39205         * tests/test-lchown.h (test_lchown): Likewise.
39206         * tests/test-lchown.c (main): Likewise.
39207
39208         chown: detect Solaris and FreeBSD bug
39209         * lib/chown.c (rpl_chown): Work around bug.
39210         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39211         (gl_PREREQ_CHOWN): Delete.
39212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39213         * modules/unistd (Makefile.am): Populate it.
39214         * lib/unistd.in.h (chown): Update declaration.
39215         * lib/lchown.c (chown): Update client.
39216         * modules/lchown (Depends-on): Add lstat.
39217         * doc/posix-functions/chown.texi (chown): Document the bug.
39218         * doc/posix-functions/getgroups.texi (getgroups): Document
39219         getgroups pitfall.
39220         * modules/chown-tests: New file.
39221         * tests/test-chown.h (test_chown): Likewise.
39222         * tests/test-chown.c (main): Likewise.
39223
39224 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39225
39226         gnulib-tool: correctly detect absence of m4 directories
39227         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39228
39229 2009-11-14  Jim Meyering  <meyering@redhat.com>
39230
39231         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39232         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39233
39234 2009-11-14  John W. Eaton  <jwe@gnu.org>
39235
39236         strftime.h: wrap function declaration in extern "C" block
39237         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39238
39239 2009-11-13  Eric Blake  <ebb9@byu.net>
39240
39241         getgroups: avoid compiler warning
39242         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39243
39244         getgroups: work around FreeBSD bug
39245         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39246         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39247         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39248         * tests/test-getgroups.c (main): Fix buffer overrun.
39249
39250         getgroups: avoid compilation failure
39251         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39252         * modules/getgroups (Depends-on): Add stdint.
39253
39254 2009-11-13  Jim Meyering  <meyering@redhat.com>
39255
39256         test-getgroups: avoid compilation failure
39257         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39258
39259 2009-11-13  Eric Blake  <ebb9@byu.net>
39260
39261         mgetgroups: new module, taken from coreutils
39262         * modules/mgetgroups: New file.
39263         * lib/mgetgroups.h: Likewise.
39264         * lib/mgetgroups.c (mgetgroups): Likewise.
39265         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39266         * MODULES.html.sh (Users and groups): Mention it.
39267
39268         getgroups: don't expose GETGROUPS_T to user
39269         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39270         an element at a time if GETGROUPS_T is wrong size.
39271         * lib/getugroups.h (getugroups): Change signature.
39272         * lib/unistd.in.h (getgroups): Likewise.
39273         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39274         signature needs fixing.
39275         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39276         AC_TYPE_GETGROUPS.
39277         * modules/group-member (Depends-on): Add getgroups.
39278         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39279         (group_member): Rely on getgroups replacement.
39280         * lib/getugroups.c (getugroups): Use gid_t.
39281         * tests/test-getgroups.c (main): Likewise.
39282         * NEWS: Mention the signature change.
39283         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39284         problem with signature.
39285         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39286         GETGROUPS_T is still useful for setgroups.
39287
39288         getgroups, getugroups: provide stubs for mingw
39289         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39290         * lib/getugroups.c (getugroups): Likewise.
39291         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39292         function.  Modernize replacement scheme.
39293         (gl_PREREQ_GETGROUPS): Delete.
39294         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39295         * modules/getgroups (configure.ac): Declare witness.
39296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39297         * modules/unistd (Depends-on): Substitute witness.
39298         * lib/unistd.in.h (getgroups): Declare replacement.
39299
39300         getgroups: avoid calling exit
39301         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39302         drop xalloc.
39303         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39304         dependencies.
39305         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39306         exiting, in the rare case of malloc failure.
39307
39308         getgroups: fix logic error
39309         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39310         has more than 20 groups.
39311         * modules/getgroups-tests: New test.
39312         * tests/test-getgroups.c: New file.
39313
39314 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39315
39316         * tests/test-base64.c: Improve.
39317
39318 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39319
39320         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39321         Blake <ebb9@byu.net>.
39322
39323 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39324
39325         * tests/test-xvasprintf.c: Add %s%s related checks.
39326
39327 2009-11-12  Eric Blake  <ebb9@byu.net>
39328
39329         version-etc: match standards.texi style
39330         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39331         and use <> only for URLs.
39332
39333 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39334
39335         fts: do not fail on a submount during traversal
39336         * lib/fts.c (fts_build): Read the stat info again after opening
39337         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39338         Original report at http://bugzilla.redhat.com/501848.
39339
39340 2009-11-12  Jim Meyering  <meyering@redhat.com>
39341
39342         bootstrap: sync from coreutils
39343         * build-aux/bootstrap (bootstrap_epilogue): New function.
39344         Use git_modules_config in one more place.  This make bootstrap's
39345         --gnulib-srcdir option more useful for testing.
39346
39347         bootstrap: generalize autoheader check
39348         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39349         AC_CONFIG_HEADERS.
39350
39351 2009-11-11  Eric Blake  <ebb9@byu.net>
39352
39353         mkfifoat: use new modules for Solaris and BSD bugs
39354         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39355         * lib/mkfifoat.c (mknodat): Split...
39356         * lib/mknodat.c (mknodat): ...into new file.
39357         * modules/mkfifoat (Files): Ship new file.
39358         (Depends-on): Add mkfifo, mknod.
39359         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39360         (Depends-on): Add symlink.
39361         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39362         redundant with test_mkfifo.h.
39363         (do_mkfifoat, do_mknodat): New helpers.
39364
39365         mknod: new module
39366         * modules/mknod: New file.
39367         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39368         * lib/mknod.c (mknod): Likewise.
39369         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39370         defaults.
39371         * modules/sys_stat (Makefile.am): Substitute them.
39372         * lib/sys_stat.in.h (mknod): Declare replacement.
39373         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39374         Document it.
39375         * doc/posix-functions/mknod.texi (mknod): Likewise.
39376         * modules/mknod-tests: New test.
39377         * tests/test-mknod.c: Likewise.
39378
39379         mkfifo: new module
39380         * modules/mkfifo: New file.
39381         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39382         * lib/mkfifo.c (mkfifo): Likewise.
39383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39384         defaults.
39385         * modules/sys_stat (Makefile.am): Substitute them.
39386         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39387         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39388         Document it.
39389         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39390         * modules/mkfifo-tests: New test.
39391         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39392         from test-mkfifoat.c.
39393         * tests/test-mkfifo.c: New file.
39394
39395         readlink: detect FreeBSD bug
39396         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39397         slash on symlink.
39398         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39399         * tests/test-readlink.h (test_readlink): Enhance test.
39400
39401         symlink: detect FreeBSD bug
39402         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39403         slash on symlink.
39404         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39405         * tests/test-symlink.h (test_symlink): Enhance test.
39406
39407 2009-11-10  Eric Blake  <ebb9@byu.net>
39408
39409         link: detect FreeBSD bug
39410         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39411         symlink.
39412         * doc/posix-functions/link.texi (link): Document the bug.
39413         * tests/test-link.h (test_link): Enhance test.
39414         * tests/test-linkat.c (main): Update caller.
39415
39416         unlink, remove: detect FreeBSD bug
39417         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39418         slash on symlink.
39419         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39420         * doc/posix-functions/remove.texi (remove): Likewise.
39421         * tests/test-unlink.h (test_unlink): Enhance test.
39422         * tests/test-remove.c (main): Likewise.
39423
39424 2009-11-09  Eric Blake  <ebb9@byu.net>
39425
39426         rename: detect FreeBSD bug
39427         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39428         slash on symlink.
39429         * modules/renameat-tests (Depends-on): Add filenamecat.
39430         * tests/test-rename.h (test_rename): Allow one more errno.
39431         * tests/test-renameat.c (main): Likewise.
39432         * doc/posix-functions/rename.texi (rename): Document the bug.
39433
39434         open: detect FreeBSD bug
39435         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39436         symlink.
39437         * doc/posix-functions/open.texi (open): Document the bug.
39438         * doc/posix-functions/utimes.texi (utimes): Likewise.
39439         * tests/test-open.h (test_open): Add parameters, and test symlink
39440         handling.
39441         * tests/test-open.c (main): Adjust caller.
39442         * tests/test-fcntl-safer.c (main): Likewise.
39443         * modules/open-tests (Depends-on): Add stdbool, symlink.
39444         * modules/fcntl-safer-tests (Depends-on): Likewise.
39445         * tests/test-openat.c (main): Add test-open tests.
39446
39447         stat: detect FreeBSD bug
39448         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39449         symlink.
39450         * doc/posix-functions/stat.texi (stat): Document the bug.
39451         * tests/test-stat.h (test_stat_func): Add argument.
39452         * tests/test-stat.c (main): Adjust caller.
39453         * tests/test-fstatat.c (main): Likewise.
39454         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39455         Reported by Jim Meyering.
39456
39457 2009-11-09  James Youngman  <jay@gnu.org>
39458
39459         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39460         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39461
39462 2009-11-08  Jim Meyering  <meyering@redhat.com>
39463
39464         utimens: remove invalid futimesat call
39465         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39466         It used the file descriptor of the target file as the DIR_FD
39467         parameter and NULL as the file name.  That caused failure with
39468         errno == EFAULT on FreeBSD-8.0-rc2
39469
39470 2009-11-07  Eric Blake  <ebb9@byu.net>
39471
39472         fflush, freadseek: use fseeko, not fseek
39473         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39474         (clear_ungetc_buffer): Avoid potential problems on large files.
39475         * lib/freadseek.c (freadseek): Likewise.
39476         * modules/freadseek (Depends-on): Add fseeko.
39477         * modules/fseek (configure.ac): Set a witness.
39478         * tests/test-fflush.c (main): Use fseeko.
39479         * tests/test-fpurge.c (fseek): Disable link warning.
39480         * tests/test-freadable.c (fseek): Likewise.
39481         * tests/test-freading.c (fseek): Likewise.
39482         * tests/test-fseeko.c (fseek): Likewise.
39483         * tests/test-ftell.c (fseek): Likewise.
39484         * tests/test-ftello.c (fseek): Likewise.
39485         * tests/test-fwritable.c (fseek): Likewise.
39486         * tests/test-fwriting.c (fseek): Likewise.
39487
39488 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39489
39490         * modules/memchr (Depends-on): Drop getpagesize dependency.
39491
39492 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39493
39494         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39495         Reported by Ludovic Courtès.
39496         * build-aux/pmccabe2html: Improve example usage.
39497         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39498
39499 2009-11-06  Jim Meyering  <meyering@redhat.com>
39500
39501         do-release-commit-and-tag: New module.
39502         Automate the release-commit and tag process.
39503         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39504         * modules/do-release-commit-and-tag: New file.
39505         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39506
39507 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39508
39509         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39510         because test-select.c uses inet_pton.
39511
39512 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39513
39514         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39515         GETADDRINFO_LIB.  Bump serial number.
39516         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39517         Suggested by Eric Blake <ebb9@byu.net>.
39518
39519 2009-11-05  Eric Blake  <ebb9@byu.net>
39520
39521         strtod: detect darwin bug
39522         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39523         Reported by Leo Davis.
39524
39525         freopen-safer: new module
39526         * modules/freopen-safer: New module.
39527         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39528         * lib/freopen-safer.c (freopen_safer): New file.
39529         * lib/stdio-safer.h (freopen_safer): New declaration.
39530         * lib/stdio--.h (freopen): New override.
39531         * MODULES.html.sh (File stream based Input/Output): Mention it.
39532         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39533         freopen-safer module.
39534         * doc/posix-functions/stderr.texi (stderr): Likewise.
39535         * doc/posix-functions/stdin.texi (stdin): Likewise.
39536         * doc/posix-functions/stdout.texi (stdout): Likewise.
39537         * modules/freopen-safer-tests: New test.
39538         * tests/test-reopen-safer.c: New file.
39539
39540 2009-11-05  Jim Meyering  <meyering@redhat.com>
39541
39542         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39543         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39544
39545 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39546
39547         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39548
39549 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39550
39551         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39552
39553 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39554
39555         Fix link error.
39556         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39557         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39558
39559 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39560
39561         * tests/test-func.c: Also test value of __func__.
39562
39563 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39564
39565         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39566         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39567
39568 2009-11-05  Bruno Haible  <bruno@clisp.org>
39569
39570         Fix link error.
39571         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39572         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39573         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39574
39575 2009-11-05  Bruno Haible  <bruno@clisp.org>
39576
39577         Tests for module 'inet_pton'.
39578         * modules/inet_pton-tests: New file.
39579         * tests/test-inet_pton.c: New file.
39580
39581 2009-11-05  Bruno Haible  <bruno@clisp.org>
39582
39583         Tests for module 'inet_ntop'.
39584         * modules/inet_ntop-tests: New file.
39585         * tests/test-inet_ntop.c: New file.
39586
39587 2009-11-04  Eric Blake  <ebb9@byu.net>
39588
39589         stdlib-safer: wrap all mkstemp variants
39590         * modules/mkostemp (configure.ac): Set witness.
39591         * modules/mkostemps (configure.ac): Likewise.
39592         * modules/mkstemps (configure.ac): Likewise.
39593         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39594         (mkstemps_safer): Wrap more functions.
39595         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39596         wrapping.
39597         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39598         (mkstemps_safer): Implement the wrappers.
39599
39600         mkstemps, mkostemps: new modules
39601         * modules/mkostemps: New module.
39602         * modules/mkstemps: Likewise.
39603         * lib/mkostemps.c (mkostemps): New file.
39604         * lib/mkstemps.c (mkstemps): Likewise.
39605         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39606         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39608         * modules/stdlib (Makefile.am): Substitute them.
39609         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39610         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39611         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39612         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39613         * MODULES.html.sh (File system functions): Mention them.
39614
39615         tempname: resync from glibc
39616         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39617         same values for __GT_FILE as glibc.  Abort even when assertions
39618         are disabled.
39619         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39620         match its value otherwise.  Allow idempotent inclusion.
39621         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39622         * lib/mkostemp.c (mkostemp): Likewise.
39623         * lib/mkstemp.c (mkstemp): Likewise.
39624         * lib/tmpfile.c (tmpfile): Likewise.
39625         * NEWS: Document this.
39626
39627         utimens: fix use of futimens on older Linux
39628         * lib/utimens.c (fdutimens): Use updated, rather than original,
39629         timespec to avoid bug in older Linux kernel.
39630         Reported by Simon Josefsson.
39631
39632 2009-11-04  Bruno Haible  <bruno@clisp.org>
39633
39634         Make num_processors more flexible and consistent.
39635         * lib/nproc.h (enum nproc_query): New type.
39636         (num_processors): Add a 'query' argument.
39637         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39638         (num_processors): Add a 'query' argument. Test the value of the
39639         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39640         mingw, count the number of CPUs available for the current process.
39641         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39642         Check for sched_getaffinity and sched_getaffinity_np.
39643         * modules/nproc (Depends-on): Add c-ctype, extensions.
39644         * NEWS: Mention the change.
39645
39646 2009-11-03  Bruno Haible  <bruno@clisp.org>
39647
39648         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39649
39650 2009-11-03  Jim Meyering  <meyering@redhat.com>
39651
39652         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39653         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39654         if it is defined.
39655
39656 2009-11-02  Eric Blake  <ebb9@byu.net>
39657
39658         mktime, timegm: share common declaration
39659         * lib/mktime-internal.h: New file.
39660         * lib/mktime.c: Use it rather than open-coding a declaration.
39661         * lib/timegm.c: Likewise.
39662         * modules/mktime (Files): Ship it.
39663         * modules/timegm (Files): Likewise.
39664         Suggested by Bruno Haible.
39665
39666         test-update-copyright: update test to match script changes
39667         * tests/test-update-copyright.sh: Avoid hard-coding perl
39668         location.  Don't update *.bak created by earlier runs.
39669
39670 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39671             Simon Josefsson  <simon@josefsson.org>
39672             Bruno Haible  <bruno@clisp.org>
39673
39674         Fix link error on Solaris 8.
39675         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39676         also in libnsl. Define also INET_PTON_LIB.
39677         * modules/inet_pton (Link): New section.
39678
39679 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39680             Bruno Haible  <bruno@clisp.org>
39681
39682         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39683         * modules/inet_ntop (Link): New section.
39684         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39685
39686 2009-11-02  Eric Blake  <ebb9@byu.net>
39687
39688         maint: avoid compiler warnings in m4 macros
39689         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39690         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39691
39692 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39693
39694         * m4/pmccabe2html.m4: Remove file.
39695         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39696         function.  Change maintainer.
39697         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39698         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39699         Courtès).
39700
39701 2009-10-31  Eric Blake  <ebb9@byu.net>
39702
39703         fseeko: fix m4 regression
39704         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39705         regression from 2009-10-27.
39706         Reported by Ralf Wildenhues.
39707
39708 2009-10-31  Jim Meyering  <meyering@redhat.com>
39709
39710         inttostr: aesthetics and improved (compile-time) safety
39711         Define inttype_is_signed rather than inttype_is_unsigned,
39712         since the sole use is via "#if inttype_is_signed".
39713         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39714         inttype_is_unsigned.
39715         * lib/offtostr.c (inttype_is_signed): Likewise.
39716         * lib/uinttostr.c (inttype_is_signed): Likewise.
39717         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39718         * lib/inttostr.c (inttostr): Use verify to cross-check the
39719         inttype_is_signed value and the signedness of the actual type.
39720         * modules/inttostr (Depends-on): Add verify.
39721
39722 2009-10-30  Eric Blake  <ebb9@byu.net>
39723
39724         build: avoid compiler warnings
39725         * lib/fchmodat.c (lchmod): Mark unused variables.
39726         * lib/getopt.c (_getopt_initialize): Likewise.
39727         * lib/mktime.c (__mktime_internal): Provide prototype.
39728         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39729         older gcc that do not understand #pragma GCC diagnostic.
39730         * lib/uinttostr.c (inttype_is_unsigned): Define.
39731         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39732
39733 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39734
39735         stat: fix compilation on AIX
39736         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39737         only see struct stat64.
39738
39739 2009-10-30  Eric Blake  <ebb9@byu.net>
39740
39741         exclude: make more robust
39742         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39743         rather than masking a coding bug.
39744         Suggested by Bruno Haible.
39745
39746 2009-10-30  Jim Meyering  <meyering@redhat.com>
39747
39748         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39749         Rather than putting #!/usr/bin/perl on the first line,
39750         start with a variant of what's recommended by "man perlrun" that
39751         invokes the first "perl" program from your shell's search path.
39752         * build-aux/gitlog-to-changelog: Replace #!... as above.
39753         Add a "Local Variables" perl mode setting.
39754         Prompted by a patch from Ludovic Courtès.
39755         Improved by Eric Blake.
39756         * build-aux/useless-if-before-free: Likewise.
39757         * build-aux/announce-gen: Likewise.
39758         * build-aux/update-copyright: Likewise.
39759
39760 2009-10-29  Eric Blake  <ebb9@byu.net>
39761
39762         filenamecat-lgpl: adjust clients
39763         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39764         filenamecat.
39765         * modules/renameat (Depends-on): Likewise.
39766
39767         filenamecat: split into filenamecat-lgpl
39768         * modules/filenamecat-lgpl: New module.
39769         * modules/filenamecat (Files): Move library-safe files into
39770         filenamecat-lgpl.
39771         (Depends-on): Add filenamecat-lgpl.
39772         (configure.ac): Declare witness.
39773         * lib/filenamecat.h (file_name_concat): Only declare when using
39774         GPL module.
39775         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39776         Move...
39777         * lib/filenamecat-lgpl.c: ...into new file.
39778         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39779         (gl_FILE_NAME_CONCAT): Use it.
39780         * MODULES.html.sh (File system functions): Mention new module.
39781
39782         argp: avoid memory leak
39783         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39784         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39785         base_name, since the latter malloc()s and can call exit().
39786         Leak introduced 2006-07-03.
39787
39788         dirname-lgpl: adjust clients that don't need full dirname
39789         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39790         * modules/filenamecat (Depends-on): Likewise.
39791         * modules/linkat (Depends-on): Likewise.
39792         * modules/mkancesdirs (Depends-on): Likewise.
39793         * modules/mkdir (Depends-on): Likewise.
39794         * modules/openat (Depends-on): Likewise.
39795         * modules/savewd (Depends-on): Likewise.
39796         * modules/rename (Depends-on): Likewise.
39797         (License): Relax license.
39798         * modules/mkdir-tests (Depends-on): Drop progname.
39799         (Makefile.am): Delete unneeded LDADD.
39800         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39801
39802         dirname: split into dirname-lgpl
39803         * modules/dirname-lgpl: New module.
39804         * modules/dirname (Files): Move library-safe files into
39805         dirname-lgpl.
39806         (Depends-on): Add dirname-lgpl.
39807         (configure.ac): Declare witness.
39808         * modules/double-slash-root (License): Relax license.
39809         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39810         module.
39811         * lib/dirname.c (dir_len, mdir_name): Move...
39812         * lib/dirname-lgpl.c: ...into new file.
39813         * lib/basename.c (last_component, base_len): Move...
39814         * lib/basename-lgpl.c: ...into new file.
39815         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39816         (gl_DIRNAME): Use it.
39817         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39818         Mention new module.
39819         * modules/dirname-tests (Depends-on): Add progname.
39820         * tests/test-dirname.c (program_name): Delete.
39821
39822         mkdir: make safe for libraries
39823         * modules/mkdir (Depends-on): Drop xalloc.
39824         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39825         exit.
39826
39827         tests: avoid some compiler warnings
39828         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39829         literals.
39830         * tests/test-memchr.c (main): Avoid type mismatch.
39831         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39832         * tests/test-base64.c (main): Likewise.
39833         * tests/test-getdelim.c (main): Likewise.
39834         * tests/test-gethostname.c (main): Likewise.
39835         * tests/test-getline.c (main): Likewise.
39836         * tests/test-netinet_in.c (main): Likewise.
39837         * tests/test-select.c (open_server_socket, main): Likewise.
39838         * tests/test-select-stdin.c (main): Likewise.
39839         * tests/test-sockets.c (main): Likewise.
39840         * tests/test-strsignal.c (main): Likewise.
39841         * tests/test-sys_select.c (main): Likewise.
39842         * tests/test-sys_socket.c (main): Likewise.
39843         * tests/test-u64.c (main): Likewise.
39844         * tests/test-xfprintf-posix.c (main): Likewise.
39845         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39846
39847         sockets: avoid compiler warning
39848         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39849
39850         maint: detect usage(1) and other suspicious exits
39851         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39852
39853 2009-10-29  Jim Meyering  <meyering@redhat.com>
39854
39855         timespec: long-to-int truncation could make timespec_cmp malfunction
39856         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39857         a multiple of 2^32 nanoseconds as no difference.
39858
39859 2009-10-28  Jim Meyering  <meyering@redhat.com>
39860
39861         fprintftime: wrap macro code argument in "do {...} while(0)"
39862         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39863         cpy macro must be a statement that can be followed by a semicolon.
39864         Now that the else clause contains a comment and is hence longer
39865         than one line, I require curly braces.  That in turn requires
39866         that we wrap this code block in the standard do...while(0).
39867
39868         fprintftime: remove stray semicolon from previous change
39869         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39870
39871         fprintftime: avoid a warning about ignored fwrite return value
39872         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39873         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39874         that is unsafe.
39875         * modules/fprintftime (Depends-on): Add ignore-value.
39876
39877         exclude: avoid an unwarranted warning
39878         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39879
39880 2009-10-27  Eric Blake  <ebb9@byu.net>
39881
39882         fseek: avoid compilation failure when fflush is replaced
39883         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39884         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39885         module is in use.
39886         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39887         module is not in use; since REPLACE_FSEEK worked otherwise.
39888         (GNULIB_FTELLO): Likewise for ftell.
39889         Reported by Ian Beckwith and others.
39890
39891 2009-10-27  Bruno Haible  <bruno@clisp.org>
39892
39893         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39894         Reported by Jim Meyering.
39895
39896 2009-10-27  Jim Meyering  <jim@meyering.net>
39897             Bruno Haible  <bruno@clisp.org>
39898
39899         Avoid warning despite dropping the return value of fwrite.
39900         * lib/unicodeio.c: Include ignore-value.h.
39901         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39902         * modules/unicodeio (Depends-on): Add ignore-value.
39903
39904 2009-10-26  Eric Blake  <ebb9@byu.net>
39905
39906         areadlinkat: fix fallback path
39907         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39908         pointer and zero.
39909
39910 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39911
39912         Use a better IO block size for modern systems
39913         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39914         * lib/md2.c: Likewise.
39915         * lib/md4.c: Likewise.
39916         * lib/md5.c: Likewise.
39917         * lib/sha1.c: Likewise.
39918         * lib/sha256.c: Likewise.
39919         * lib/sha512.c: Likewise.
39920
39921 2009-10-22  Eric Blake  <ebb9@byu.net>
39922
39923         tests: avoid several compiler warnings
39924         * tests/test-getcwd.c (main): Avoid buffer underflow.
39925         * tests/test-getdate.c (main): String literals are not safe with
39926         putenv, so use setenv.  Declare unused argument.
39927         * modules/getdate-tests (Depends-on): Add setenv.
39928         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39929         problems with string literals in char *.
39930         * tests/test-hash.c (main): Avoid shadowing declaration.
39931         (insert_new): Treat string literals as char const *.
39932         * tests/test-getopt.h (test_getopt): Likewise.
39933         (getopt_loop): Alter types to minimize casting elsewhere.
39934         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39935         (test_getopt_long_posix): Likewise.
39936         (do_getopt_long): Add wrapper to minimize casting.
39937         * tests/test-atexit.c (clear_temp_file): Use void.
39938         * tests/test-areadlink-with-size.c (main): Declare unused
39939         arguments.
39940         * tests/test-areadlink.c (main): Likewise.
39941         * tests/test-areadlinkat-with-size.c (main): Likewise.
39942         * tests/test-areadlinkat.c (main): Likewise.
39943         * tests/test-canonicalize-lgpl.c (main): Likewise.
39944         * tests/test-canonicalize.c (main): Likewise.
39945         * tests/test-dirent-safer.c (main): Likewise.
39946         * tests/test-dirname.c (main): Likewise.
39947         * tests/test-dup2.c (main): Likewise.
39948         * tests/test-fchdir.c (main): Likewise.
39949         * tests/test-fcntl-h.c (main): Likewise.
39950         * tests/test-fcntl-safer.c (main): Likewise.
39951         * tests/test-fdopendir.c (main): Likewise.
39952         * tests/test-fdutimensat.c (main): Likewise.
39953         * tests/test-fflush.c (main): Likewise.
39954         * tests/test-filenamecat.c (main): Likewise.
39955         * tests/test-filevercmp.c (main): Likewise.
39956         * tests/test-fopen-safer.c (main): Likewise.
39957         * tests/test-fopen.c (main): Likewise.
39958         * tests/test-fpending.c (main): Likewise.
39959         * tests/test-fpurge.c (main): Likewise.
39960         * tests/test-freading.c (main): Likewise.
39961         * tests/test-fstatat.c (main): Likewise.
39962         * tests/test-fsync.c (main): Likewise.
39963         * tests/test-futimens.c (main): Likewise.
39964         * tests/test-getndelim2.c (main): Likewise.
39965         * tests/test-gettimeofday.c (main): Likewise.
39966         * tests/test-getopt.c (main): Likewise.
39967         * tests/test-i-ring.c (main): Likewise.
39968         * tests/test-inttypes.c (main): Likewise.
39969         * tests/test-link.c (main): Likewise.
39970         * tests/test-lstat.c (main): Likewise.
39971         * tests/test-math.c (main): Likewise.
39972         * tests/test-md5.c (main): Likewise.
39973         * tests/test-memchr2.c (main): Likewise.
39974         * tests/test-memrchr.c (main): Likewise.
39975         * tests/test-mkdir.c (main): Likewise.
39976         * tests/test-mkdirat.c (main): Likewise.
39977         * tests/test-mkfifoat.c (main): Likewise.
39978         * tests/test-open.c (main): Likewise.
39979         * tests/test-openat-safer.c (main): Likewise.
39980         * tests/test-openat.c (main): Likewise.
39981         * tests/test-quotearg.c (main): Likewise.
39982         * tests/test-rawmemchr.c (main): Likewise.
39983         * tests/test-readlink.c (main): Likewise.
39984         * tests/test-remove.c (main): Likewise.
39985         * tests/test-rename.c (main): Likewise.
39986         * tests/test-renameat.c (main): Likewise.
39987         * tests/test-rmdir.c (main): Likewise.
39988         * tests/test-sha1.c (main): Likewise.
39989         * tests/test-signal.c (main): Likewise.
39990         * tests/test-sigaction.c (main): Likewise.
39991         * tests/test-stat.c (main): Likewise.
39992         * tests/test-stat-time.c (main): Likewise.
39993         * tests/test-stddef.c (main): Likewise.
39994         * tests/test-stdint.c (main): Likewise.
39995         * tests/test-stdio.c (main): Likewise.
39996         * tests/test-stdlib.c (main): Likewise.
39997         * tests/test-strchrnul.c (main): Likewise.
39998         * tests/test-strerror.c (main): Likewise.
39999         * tests/test-string.c (main): Likewise.
40000         * tests/test-strtod.c (main): Likewise.
40001         * tests/test-strverscmp.c (main): Likewise.
40002         * tests/test-symlink.c (main): Likewise.
40003         * tests/test-symlinkat.c (main): Likewise.
40004         * tests/test-sys_stat.c (main): Likewise.
40005         * tests/test-sys_time.c (main): Likewise.
40006         * tests/test-time.c (main): Likewise.
40007         * tests/test-unistd.c (main): Likewise.
40008         * tests/test-unlink.c (main): Likewise.
40009         * tests/test-unlinkat.c (main): Likewise.
40010         * tests/test-utimens.c (main): Likewise.
40011         * tests/test-utimensat.c (main): Likewise.
40012         * tests/test-version-etc.c (main): Likewise.
40013         * tests/test-wchar.c (main): Likewise.
40014         * tests/test-wctype.c (main): Likewise.
40015         * tests/test-xprintf-posix.c (main): Likewise.
40016         * tests/test-posixtm.c (main): Likewise.
40017         (STREQ): Delete unused macro.
40018         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40019         shadowed variables.
40020         * tests/test-memchr.c (main): Likewise.
40021
40022 2009-10-21  Eric Blake  <ebb9@byu.net>
40023
40024         areadlinkat: avoid failure on older glibc
40025         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40026         rather than mis-comparing 0 against FUNC_RESULT of char*.
40027
40028 2009-10-21  Bruno Haible  <bruno@clisp.org>
40029
40030         * modules/stpncpy (License): Relicense under LGPLv2+.
40031         Reported by David Lutterkort <lutter@redhat.com>.
40032
40033 2009-10-20  Eric Blake  <ebb9@byu.net>
40034
40035         utimensat: work around Solaris 9 bug
40036         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40037         has trailing slash bugs.
40038         * tests/test-lutimens.h (test_lutimens): Enhance test.
40039         * tests/test-utimens.h (test_utimens): Likewise.
40040         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40041         * doc/posix-functions/utimes.texi (utimes): Likewise.
40042         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40043         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40044         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40045         * doc/posix-functions/futimens.texi (futimens): Likewise.
40046
40047         fdutimensat: new module
40048         * modules/fdutimensat: New file.
40049         * lib/fdutimensat.c (fdutimensat): Likewise.
40050         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40051         * MODULES.html.sh (File system functions): Mention module.
40052         * modules/fdutimensat-tests: New test.
40053         * tests/test-fdutimensat.c: Likewise.
40054
40055         doc: regenerate INSTALL
40056         * doc/INSTALL: Reflect recent autoconf update.
40057         * doc/INSTALL.ISO: Likewise.
40058         * doc/INSTALL.UTF-8: Likewise.
40059
40060 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40061
40062         acl: warn if ACL support is not detected
40063         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40064
40065 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40066
40067         * lib/nproc.h: Add extern "C" block for C++.
40068
40069 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40070             Bruno Haible  <bruno@clisp.org>
40071
40072         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40073         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40074         * doc/posix-functions/isalpha.texi: Likewise.
40075         * doc/posix-functions/isblank.texi: Likewise.
40076         * doc/posix-functions/iscntrl.texi: Likewise.
40077         * doc/posix-functions/isdigit.texi: Likewise.
40078         * doc/posix-functions/isgraph.texi: Likewise.
40079         * doc/posix-functions/islower.texi: Likewise.
40080         * doc/posix-functions/isprint.texi: Likewise.
40081         * doc/posix-functions/ispunct.texi: Likewise.
40082         * doc/posix-functions/isspace.texi: Likewise.
40083         * doc/posix-functions/isupper.texi: Likewise.
40084         * doc/posix-functions/isxdigit.texi: Likewise.
40085
40086 2009-10-18  Bruno Haible  <bruno@clisp.org>
40087
40088         Tests for module 'isblank'.
40089         * modules/isblank-tests: New file.
40090         * tests/test-isblank.c: New file.
40091
40092         New module 'isblank'.
40093         * lib/isblank.c: New file.
40094         * m4/isblank.m4: New file.
40095         * modules/isblank: New file.
40096         * doc/posix-functions/isblank.texi: Mention the new module.
40097
40098 2009-10-18  Bruno Haible  <bruno@clisp.org>
40099
40100         New module 'ctype'.
40101         * lib/ctype.in.h: New file.
40102         * m4/ctype.m4: New file.
40103         * modules/ctype: New file.
40104         * doc/posix-headers/ctype.texi: Mention the new module.
40105
40106 2009-10-18  Jim Meyering  <meyering@redhat.com>
40107
40108         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40109         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40110         right after its initialization, rather than farther down.
40111         Keeping these in close proximity makes it easier to ensure
40112         that each such variable is initialized.  E.g.,
40113
40114             LIB_CLOCK_GETTIME=
40115             AC_SUBST([LIB_CLOCK_GETTIME])
40116
40117         This change also increments these serial numbers.
40118         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40119         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40121
40122 2009-10-18  Bruno Haible  <bruno@clisp.org>
40123
40124         Don't let environment variables perturb build.
40125         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40126         (gl_PREREQ_GETHRXTIME): ... not here.
40127
40128 2009-10-18  Bruno Haible  <bruno@clisp.org>
40129
40130         Avoid symlink attack in localcharset module.
40131         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40132         (O_NOFOLLOW): Define fallback.
40133         (get_charset_aliases): Don't open the file if it is a symbolic link.
40134         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40135         gl_FCNTL_H.
40136         (gl_FCNTL_H): Require it.
40137         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40138         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40139         Reported by Fergal Glynn <fglynn@veracode.com>.
40140
40141 2009-10-18  Bruno Haible  <bruno@clisp.org>
40142
40143         Implement nproc for mingw.
40144         * lib/nproc.c: Include <windows.h>
40145         (num_processors): On native Windows platforms, try GetSystemInfo.
40146
40147 2009-10-18  Bruno Haible  <bruno@clisp.org>
40148
40149         Implement nproc for IRIX.
40150         * lib/nproc.c: Include <sys/sysmp.h>.
40151         (num_processors): On IRIX systems, try sysmp.
40152         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40153
40154 2009-10-18  Bruno Haible  <bruno@clisp.org>
40155
40156         Implement nproc for HP-UX.
40157         * lib/nproc.c: Include <sys/pstat.h>
40158         (num_processors): On HP-UX systems, try pstat_getdynamic.
40159         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40160         pstat_getdynamic.
40161
40162 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40163             Bruno Haible  <bruno@clisp.org>
40164
40165         Implement nproc for NetBSD, OpenBSD.
40166         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40167         (ARRAY_SIZE): New macro.
40168         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40169         * m4/nproc.m4: New file.
40170         * modules/nproc (Files): Add m4/nproc.m4.
40171         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40172         (Makefile.am): Instead, augment lib_SOURCES.
40173
40174 2009-10-18  Bruno Haible  <bruno@clisp.org>
40175
40176         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40177         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40178         sys/param.h.
40179
40180 2009-10-16  Eric Blake  <ebb9@byu.net>
40181
40182         utimensat: new module
40183         * modules/utimensat: New file.
40184         * lib/utimensat.c (utimensat): Likewise.
40185         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40186         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40187         so we can work around Linux bugs.
40188         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40189         * modules/sys_stat (Makefile.am): Substitute them.
40190         * lib/sys_stat.in.h (utimensat): Declare it.
40191         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40192         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40193         * modules/utimensat-tests: New test.
40194         * tests/test-utimensat.c: Likewise.
40195
40196         utimens: let lutimens work on non-symlinks
40197         * lib/utimens.c (lutimens): Fall back to utimens rather than
40198         failing with ENOSYS, when file is not a symlink.
40199         (utimens): Reduce redirection.
40200         * tests/test-lutimens.h (test_lutimens): Update test to cover
40201         non-symlinks.
40202         * tests/test-utimens.h (test_utimens): Update test to cover
40203         symlinks.
40204         * tests/test-utimens.c (main): Update caller.
40205
40206         utimens: cache whether utimensat syscall works
40207         * lib/utimens.c (utimensat_works_really): New cache variable.
40208         (fdutimens, lutimens): Use it to avoid failing syscall.
40209
40210         test-stat-time, test-utimens: improve portability
40211         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40212         ext4 on alpha, and for cygwin.
40213         * tests/test-utimens-common.h: New file.
40214         (nap): Factor delays into single function.
40215         * tests/test-lutimens.h (test_lutimens): Use new header.
40216         * tests/test-futimens.h (test_futimens): Likewise.
40217         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40218         timestamps to occur from same machine, as was done previously for
40219         test_utimens.
40220         * modules/utimens-tests (Files): Ship new file.
40221         * modules/futimens-tests (Files): Likewise.
40222         Reported in part by Jim Meyering.
40223
40224         sys_stat: sort replacement declarations
40225         * lib/sys_stat.in.h: Sort declarations.
40226         * lib/futimens.c (futimens): Fix typo.
40227
40228 2009-10-15  Jim Meyering  <meyering@redhat.com>
40229
40230         don't let environment settings perturb build
40231         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40232         could cause a configure-time and/or build-time malfunction.
40233         Typically, a configure-time function-in-library test is performed
40234         via code like this:
40235
40236           LIB_VAR=
40237           AC_SUBST([LIB_VAR])
40238           prefix_saved_LIBS=$LIBS
40239             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40240                        [test "$ac_cv_search_FUNC" = "none required" ||
40241                         LIB_VAR=$ac_cv_search_FUNC])
40242           LIBS=$prefix_saved_LIBS
40243
40244         However, in each of the files affected by this change, the LIB_VAR=
40245         initialization was omitted.  Thus, when set in the environment, its
40246         value would propagate into generated Makefiles when FUNC is not found
40247         in LIB_NAME.
40248         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40249         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40251
40252 2009-10-14  Eric Blake  <ebb9@byu.net>
40253
40254         fchdir: avoid infinite recursion in mingw
40255         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40256         recursing.
40257
40258         test-stat-time: port to mingw
40259         * tests/test-stat-time.c (force_unlink): Return a value.
40260         (test_ctime) [W32]: Fix compilation error.
40261         (nap): Don't call usleep with too large an argument.  Use
40262         force_unlink.
40263         * doc/pastposix-functions/usleep.texi (usleep): Document the
40264         portability issue.
40265
40266 2009-10-13  Jim Meyering  <meyering@redhat.com>
40267
40268         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40269         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40270         * modules/pipe-filter-ii: Likewise.
40271         * modules/sys_socket-tests: Likewise.
40272         * modules/tsearch-tests: Likewise.
40273         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40274         (check): Depend on it.
40275
40276 2009-10-12  Eric Blake  <ebb9@byu.net>
40277
40278         utimens-tests: port to NFS file systems
40279         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40280         comparisons to avoid spurious failures from timestamp drift
40281         between NFS machines.
40282
40283 2009-10-12  Eric Blake  <ebb9@byu.net>
40284
40285         stat-time-tests: minor cleanups
40286         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40287         * tests/test-stat-time.c (nap): Separate assignment from call.
40288         Suggested by Paolo Bonzini and Bruno Haible.
40289
40290         sys_stat: guarantee struct timespec
40291         * lib/sys_stat.in.h (includes): Always include <time.h>
40292         * modules/sys_stat (Depends-on): Add time.
40293         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40294         mode_t permission values.
40295         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40296         get at subsecond timestamps.
40297
40298 2009-10-10  Eric Blake  <ebb9@byu.net>
40299
40300         futimens: new module
40301         * modules/futimens: New file.
40302         * lib/futimens.c (futimens): Likewise.
40303         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40304         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40305         we can work around Linux bugs.
40306         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40307         * modules/sys_stat (Makefile.am): Substitute them.
40308         * lib/sys_stat.in.h (futimens): Declare it.
40309         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40310         * doc/posix-functions/futimens.texi (futimens): Likewise.
40311         * modules/futimens-tests: New test.
40312         * tests/test-futimens.c: Likewise.
40313
40314         utimens: introduce fdutimens
40315         * lib/utimens.h (fdutimens): New prototype.
40316         * lib/utimens.c (gl_futimens): Move guts...
40317         (fdutimens): ...to new interface.
40318         * tests/test-utimens.c (do_fdutimens): Use it.
40319
40320         utimens: add UTIME_NOW and UTIME_OMIT support
40321         * lib/utimens.c (validate_timespec, update_timespec): New helper
40322         functions.
40323         (gl_futimens, lutimens): Use them.
40324         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40325         stdbool, sys_stat.
40326         (Link): Mention resulting library dependency.
40327         * modules/utimecmp (Link): Likewise.
40328         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40329         (Makefile.am): Pick up library dependency.
40330         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40331         definition.
40332         * tests/test-sys_stat.c: Test the definitions.
40333         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40334         * NEWS: Document library dependency.
40335
40336         utimecmp: support symlink timestamps
40337         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40338         hashing when possible.  Use pathconf when available.
40339         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40340         * modules/utimecmp (Depends-on): Add lstat.
40341
40342         utimens: add lutimens interface
40343         * lib/utimens.c (lutimens): New function.
40344         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40345         * lib/utimens.h (lutimens): Declare new interface.
40346         * tests/test-utimens.c (main): Enhance test.
40347         * tests/test-lutimens.h (test_lutimens): New file.
40348         * modules/utimens-tests (Files): Distribute it.
40349         (Depends-on): Add symlink.
40350         (configure.ac): Check for usleep.
40351
40352         utimens: validate futimens usage
40353         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40354         fewer syscalls on failure later on.  Avoid compiler warning on
40355         mingw.
40356         * modules/utimens (Depends-on): Add dup2.
40357
40358         utimens: add test
40359         * modules/utimens-tests: New test.
40360         * tests/test-utimens.h: New file.
40361         * tests/test-futimens.h: Likewise.
40362         * tests/test-utimens.c: Likewise.
40363
40364         doc: mention timestamp portability issues
40365         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40366         instead.
40367         * doc/posix-functions/utime.texi (utime): Likewise.
40368         * doc/posix-functions/utimes.texi (utimes): Likewise.
40369         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40370         instead.
40371         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40372         module.
40373         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40374         Mention weakness with symlink timestamps.
40375         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40376         to utimensat/futimens instead.
40377         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40378
40379         test-dup2: enhance test
40380         * tests/test-dup2.c (main): Also check AT_FDCWD.
40381
40382         test-stat-time: avoid more spurious failures
40383         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40384         xfs; and avoid race if the two timestamps cross quantization edge.
40385
40386         relocatable: prefer 'file system' over 'filesystem'
40387         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40388         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40389         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40390         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40391         * lib/relocatable.c (compute_curr_prefix): Likewise.
40392
40393 2009-10-10  Jim Meyering  <meyering@redhat.com>
40394
40395         stat-time-tests: check for the usleep function
40396         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40397
40398 2009-10-10  Bruno Haible  <bruno@clisp.org>
40399
40400         * modules/xnanosleep: Put the Link section after the Include section.
40401
40402 2009-10-09  Eric Blake  <ebb9@byu.net>
40403
40404         dup2: work around FreeBSD 6.1 bug
40405         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40406         * doc/posix-functions/dup2.texi (dup2): Document it.
40407         Reported by Nelson H. F. Beebe and Jim Meyering.
40408
40409         test-stat-time: port to buggy NFS clients
40410         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40411         (test_ctime): Also skip test if mtime and ctime are skewed.
40412
40413         maint: prefer 'file system' over 'filesystem'
40414         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40415         * doc/posix-functions/lstat.texi (lstat): Likewise.
40416         * lib/file-has-acl.c (file_has_acl): Likewise.
40417         * lib/fwriteerror.c [TEST]: Likewise.
40418         * tests/test-areadlink.h (test_areadlink): Likewise.
40419         * tests/test-areadlinkat-with-size.c (main): Likewise.
40420         * tests/test-areadlinkat.c (main): Likewise.
40421         * tests/test-canonicalize-lgpl.c (main): Likewise.
40422         * tests/test-canonicalize.c (main): Likewise.
40423         * tests/test-fstatat.c (main): Likewise.
40424         * tests/test-linkat.c (main): Likewise.
40425         * tests/test-lstat.h (test_lstat_func): Likewise.
40426         * tests/test-mkdir.h (test_mkdir): Likewise.
40427         * tests/test-readlink.h (test_readlink): Likewise.
40428         * tests/test-remove.c (main): Likewise.
40429         * tests/test-rename.h (test_rename): Likewise.
40430         * tests/test-renameat.c (main): Likewise.
40431         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40432         * tests/test-symlink.h (test_symlink): Likewise.
40433         * tests/test-symlinkat.c (main): Likewise.
40434         * tests/test-unlink.h (test_unlink_func): Likewise.
40435         * tests/test-unlinkat.c (main): Likewise.
40436
40437         maint: make realtime library usage explicit
40438         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40439         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40440         * modules/settime (Link): Likewise.
40441         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40442
40443         test-stat-time: speed up execution
40444         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40445         warning on mingw.
40446         (nap): New helper function.
40447         (prepare_test): Use it to reduce sleep time.
40448         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40449         execution.
40450         * modules/stat-time-tests (configure.ac): Check for usleep.
40451
40452 2009-10-09  Jim Meyering  <meyering@redhat.com>
40453
40454         selinux-h: always use getfilecon wrappers
40455         * lib/getfilecon.c: New file.
40456         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40457         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40458         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40459         (fgetfilecon): Provide a stub.
40460         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40461         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40462         file unconditionally.
40463         When <selinux/selinux.h> is found, arrange to use wrappers.
40464         * modules/selinux-h (Files): Add getfilecon.c.
40465         (Makefile.am): Substitute include-next-related bits
40466         into the now-always-generated selinux/selinux.h file.
40467         * doc/glibc-functions/lgetfilecon.texi: New file.
40468         * doc/glibc-functions/fgetfilecon.texi: New file.
40469         * doc/glibc-functions/getfilecon.texi: New file.
40470         * doc/glibc-functions/getfilecon-desc.texi: New file.
40471         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40472         which to pull in the new files.
40473         * MODULES.html.sh (Misc): Add selinux-h.
40474
40475 2009-10-08  Jim Meyering  <meyering@redhat.com>
40476
40477         unistd: fix comment typo
40478         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40479
40480 2009-10-08  Eric Blake  <ebb9@byu.net>
40481
40482         areadlink: use SIZE_MAX consistently
40483         * modules/areadlink (Depends-on): Add stdint.
40484         * modules/areadlink-with-size (Depends-on): Likewise.
40485         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40486         gives NULL; drop sys/types, since unistd gives size_t; and add
40487         stdint for SIZE_MAX.
40488         (SIZE_MAX): Rely on headers.
40489         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40490         and add stdint.
40491         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40492         (SIZE_MAX): Likewise.
40493         (INITIAL_BUF_SIZE): Turn into enum.
40494         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40495
40496 2009-10-08  Jim Meyering  <meyering@redhat.com>
40497
40498         areadlinkat: avoid compilation failure
40499         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40500         Fix typo in comment.
40501
40502 2009-10-07  Eric Blake  <ebb9@byu.net>
40503
40504         areadlinkat-with-size: new module
40505         * modules/areadlinkat-with-size: New module.
40506         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40507         * lib/areadlink.h (areadlinkat): Declare it.
40508         * MODULES.html.sh (File system functions): Mention it.
40509         * modules/areadlinkat-with-size-tests: New test.
40510         * tests/test-areadlinkat-with-size.c: New file.
40511
40512         xreadlinkat: new module
40513         * modules/xreadlinkat: New module.
40514         * lib/xreadlinkat.c (xreadlinkat): New file.
40515         * lib/xreadlink.h (xreadlinkat): Declare it.
40516         * MODULES.html.sh (File system functions): Mention it.
40517
40518         areadlinkat: new module
40519         * lib/at-func.c (FUNC_FAIL): New define.
40520         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40521         * modules/areadlinkat: New module.
40522         * lib/linkat.c (areadlinkat): Move...
40523         * lib/areadlinkat.c (areadlinkat): ...to new file.
40524         * lib/areadlink.h (areadlinkat): Declare it.
40525         * modules/linkat (Depends-on): Add areadlinkat.
40526         * MODULES.html.sh (File system functions): Mention it.
40527         * modules/areadlinkat-tests: New test.
40528         * tests/test-areadlinkat.c: New file.
40529
40530         areadlink, areadlink-with-size: add tests
40531         * modules/areadlink-tests: New test.
40532         * modules/areadlink-with-size-tests: Likewise.
40533         * tests/test-areadlink.h: New file.
40534         * tests/test-areadlink.c: Likewise.
40535         * tests/test-areadlink-with-size.c: Likewise.
40536
40537         maint: minor cleanups
40538         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40539         _UNUSED_PARAMETER_ instead.
40540         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40541         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40542         * modules/linkat-tests (Files): Distribute test-link.h.
40543
40544         openat, utimens: whitespace cleanup
40545         * lib/openat.c: Prefer space throughout, rather than mix of 8
40546         spaces vs. tabs.
40547         * lib/at-func.c: Likewise.
40548         * lib/utimens.c: Likewise.
40549
40550         openat: avoid using wrong fd
40551         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40552         working directory chooses same fd.
40553         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40554
40555         mkdir, mkdirat: fix cygwin 1.5.x bug
40556         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40557         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40558         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40559         bug.
40560         (gl_PREREQ_MKDIR): Delete unused macro.
40561         * modules/mkdir (Files): Track file rename.
40562         (configure.ac): Update macro name.
40563         * modules/openat (Depends-on): Add mkdir.
40564         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40565
40566         mkdir, mkdirat: add tests
40567         * modules/mkdir-tests: New test.
40568         * tests/test-mkdir.h: New file.
40569         * tests/test-mkdir.c: Likewise.
40570         * tests/test-mkdirat.c: Likewise.
40571         * modules/openat-tests (Files): Add new files.
40572         (Makefile.am): Run new test.
40573
40574 2009-10-06  Eric Blake  <ebb9@byu.net>
40575
40576         doc: tweak *at function documentation
40577         * doc/posix-functions/faccessat.texi (faccessat): Mention
40578         known issue with replacement.
40579         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40580         * doc/posix-functions/linkat.texi (linkat): Likewise.
40581         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40582         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40583         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40584         * doc/posix-functions/renameat.texi (renameat): Likewise.
40585         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40586
40587         openat: fix GNU/Hurd bug in unlinkat
40588         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40589         broken.
40590         * doc/posix-functions/unlink.texi (unlink): Document this.
40591         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40592
40593         fdopendir: fix GNU/Hurd bug
40594         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40595         allowing non-directory fds.
40596         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40597         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40598         * modules/dirent (Makefile.am): Substitute it.
40599         * lib/dirent.in.h (fdopendir): Declare replacement.
40600         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40601         * tests/test-fdopendir.c (main): Test something other than
40602         /dev/null, since on Hurd that behaves like a directory.
40603
40604         test-symlink: port to GNU/Hurd
40605         * tests/test-symlink.h (test_symlink): Relax expected errno.
40606
40607         doc: tweak more cygwin information
40608         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40609         now compatible with glibc.
40610         * doc/posix-functions/getopt.texi (getopt): Likewise.
40611
40612         getopt-gnu: add another test
40613         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40614         guarantee behavior relied on by m4.
40615         * tests/test-getopt.c (main): Use it.
40616         * modules/getopt-posix-tests (Depends-on): Add setenv.
40617         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40618
40619         getopt: fix compilation on darwin
40620         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40621         include.
40622         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40623         Reported by Ludovic Courtès.
40624
40625 2009-10-06  Bruno Haible  <bruno@clisp.org>
40626
40627         * modules/size_max (Description): Discourage its use.
40628         Reported by Simon Josefsson.
40629
40630 2009-10-06  Jim Meyering  <meyering@redhat.com>
40631
40632         linkat: avoid compilation failure
40633         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40634
40635 2009-10-05  Eric Blake  <ebb9@byu.net>
40636
40637         linkat: support Linux 2.6.17
40638         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40639         linkat on Linux, but allow cache variable override.
40640         * lib/linkat.c (rpl_linkat): Define override.
40641         * modules/linkat (Depends-on): Add symlinkat.
40642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40643         * modules/unistd (Makefile.am): Substitute it.
40644         * lib/unistd.in.h (linkat): Declare replacement.
40645         Reported by Pádraig Brady.
40646
40647         quotearg: port test to systems with C.UTF-8 locale
40648         * tests/test-quotearg.c (struct result_strings): Add another
40649         member, differentiating between C.ASCII and C.UTF-8 handling.
40650         (compare_strings): Add parameter.
40651         (main): Adjust all callers.
40652
40653         getopt: avoid clash with FreeBSD _getopt_internal
40654         * lib/getopt.in.h (_getopt_internal): Override the name.
40655         * lib/getopt_int.h (includes): Pick up any overrides.
40656         Reported by Reuben Thomas.
40657
40658         hash: allow C89 compilation
40659         * lib/hash.c (check_tuning): Move declaration before statement.
40660         Reported by Reuben Thomas.
40661
40662 2009-10-05  Karl Berry  <karl@gnu.org>
40663
40664         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40665
40666 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40667             Bruno Haible  <bruno@clisp.org>
40668
40669         * lib/uname.c (uname): Use a table-driven algorithm to compute
40670         Windows NT versions.
40671
40672 2009-10-04  Bruno Haible  <bruno@clisp.org>
40673
40674         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40675         program_invocation_short_name.
40676         * modules/progname (configure.ac): Test for presence of
40677         program_invocation_short_name.
40678         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40679
40680 2009-10-04  Bruno Haible  <bruno@clisp.org>
40681
40682         * lib/progname.c (set_program_name): Fix comment.
40683         Reported by Jim Meyering.
40684
40685 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40686             Bruno Haible  <bruno@clisp.org>
40687
40688         * lib/uname.c: Include <string.h>.
40689         (uname): Do only one call to GetVersionEx in the common case.
40690
40691 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40692             Bruno Haible  <bruno@clisp.org>
40693
40694         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40695         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40696         (uname): Add support for Windows CE and various non-x86 CPU types.
40697
40698 2009-10-03  Bruno Haible  <bruno@clisp.org>
40699
40700         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40701         invocation to tests/configure.ac.
40702         Reported by Ian Beckwith <ianb@erislabs.net>.
40703
40704 2009-10-02  Eric Blake  <ebb9@byu.net>
40705
40706         fchdir: avoid compiler warning
40707         * lib/fchdir.c (canonicalize_file_name)
40708         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40709
40710         test-open: support mingw errno values
40711         * tests/test-open.h (test_open): Relax test.
40712         * tests/test-fopen.h (test_fopen): Likewise.
40713         * tests/test-openat-safer.c (main): Likewise.
40714
40715         open: fix opening directory on mingw
40716         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40717
40718         test-open: on GNU/Hurd, /dev/null is a directory
40719         * tests/test-fopen.h (main): Rename...
40720         (test_fopen): ...to this.  Use a guaranteed non-directory when
40721         confirming open behavior on trailing slash.
40722         * tests/test-openat-safer.c (main): Likewise.
40723         * tests/test-open.h (main): Likewise....
40724         (test_open): ...to this.
40725         * tests/test-fopen.c (main): Adjust caller.
40726         * tests/test-fopen-safer.c (main): Likewise.
40727         * tests/test-open.c (main): Likewise.
40728         * tests/test-fcntl-safer.c (main): Likewise.
40729         Reported by Samuel Thibault.
40730
40731         rename, fchdir: don't ignore chdir failure
40732         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40733         * lib/rename.c (rpl_rename) [W32]: Likewise.
40734         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40735         an empty destination directory if source cannot be renamed,
40736         although there is still possibility for failure.
40737         * doc/posix-functions/rename.texi (rename): Document the race.
40738         Reported by Jim Meyering.
40739
40740         maint: cleanup whitespace in recent commits
40741         * lib/rename.c (rpl_rename): Remove tabs.
40742         * tests/test-link.h (test_link): Likewise.
40743         * lib/fchdir.c (get_name): Likewise.
40744         Reported by Jim Meyering.
40745
40746 2009-10-02  Ben Pfaff  <blp@gnu.org>
40747
40748         relocatable-prog-wrapper: Add missing dependency on
40749         double-slash-root.
40750         * modules/relocatable-prog-wrapper: Add dependency.
40751         Reported by Ian Beckwith <ianb@erislabs.net>.
40752
40753 2009-10-02  Eric Blake  <ebb9@byu.net>
40754
40755         renameat: fix Solaris bugs
40756         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40757         needed fixing.
40758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40759         * modules/stdio (Makefile.am): Substitute it.
40760         * lib/stdio.in.h (renameat): Declare replacement.
40761         * lib/renameat.c (rpl_renameat): Implement fix.
40762
40763         renameat: new module
40764         * modules/renameat: New file.
40765         * lib/renameat.c (renameat): Likewise.
40766         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40768         * modules/stdio (Makefile.am): Substitute them.
40769         * lib/stdio.in.h (renameat): Declare it.
40770         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40771         * doc/posix-functions/renameat.texi (renameat): Likewise.
40772         * modules/renameat-tests: New test.
40773         * tests/test-renameat.c: Likewise.
40774
40775         rename: fix mingw bugs
40776         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40777         directory overwrite bugs.
40778
40779         rename: fix another cygwin 1.5 bug
40780         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40781         checks.
40782         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40783         unnecessary cygwin workarounds.  Also work around bug with moving
40784         full directory onto an empty one.
40785         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40786
40787         rename-dest-slash: merge into rename module
40788         * modules/rename-dest-slash (Status): Mark obsolete.
40789         (Depends-on): Add rename.
40790         (Files): Let rename do it all.
40791         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40792         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40793         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40794         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40795         * lib/rename.c (rpl_rename): Update comments.
40796
40797         rename: fix cygwin 1.5.x bugs
40798         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40799         * lib/rename.c (rpl_rename): Work around them.
40800         * modules/rename (Depends-on): Add same-inode.
40801
40802         rename: fix Solaris 10 bug
40803         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40804         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40805         was the only bug.
40806
40807         rename: fix Solaris 9 bug
40808         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40809         on non-directory.  Avoid calling exit.
40810         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40811         strdup.
40812         * modules/rename-tests (Depends-on): Drop lstat.
40813         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40814         (gl_PREREQ_RENAME): Delete unused macro.
40815
40816         rename-dest-slash: fix NetBSD bug
40817         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40818         links.
40819         * modules/rename-dest-slash (Depends-on): Add same-inode.
40820
40821         rename-tests: new test, exposes several platform bugs
40822         * modules/rename-tests: New file.
40823         * tests/test-rename.h: Likewise.
40824         * tests/test-rename.c: Likewise.
40825         * doc/posix-functions/rename.texi (rename): Improve documentation,
40826         including bugs that will eventually be fixed in gnulib.
40827
40828 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40829
40830         * lib/uname.c: Include <stdlib.h>
40831         (uname): Assume version info is available.
40832
40833 2009-10-02  Jim Meyering  <meyering@redhat.com>
40834
40835         gnu-web-doc-update: correct --help output
40836         * build-aux/gnu-web-doc-update: Make --help output relevant.
40837
40838         gnu-web-doc-update: add standard options
40839         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40840
40841         gnu-web-doc-update: New module.
40842         Use this script to automatically update the on-line web documentation
40843         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40844         * modules/gnu-web-doc-update: New file, from coreutils.
40845         * build-aux/gnu-web-doc-update: New script.
40846
40847 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40848
40849         link: LoadLibrary is not needed.
40850         * lib/link.c: Use GetModuleHandle.
40851
40852 2009-10-01  Eric Blake  <ebb9@byu.net>
40853
40854         getopt: bump serial number
40855         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40856         change.
40857
40858         tests: tighten link, rmdir, and remove tests
40859         * tests/test-link.h (includes): No need to use <config.h> here.
40860         Clean up if directory hard link was created, otherwise test for
40861         trailing '.'.
40862         * tests/test-linkat.c (main): Simplify.
40863         * tests/test-remove.c (main): Enhance test for trailing '.'.
40864         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40865
40866 2009-10-01  Jim Meyering  <meyering@redhat.com>
40867
40868         maint.mk: requiring "make major" was annoying, for a "minor" release.
40869         What is intended is "stable", to contrast with alpha and beta,
40870         so require "make stable", not "make major".
40871         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40872         (get_tool_versions): Likewise.
40873         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40874
40875 2009-09-30  Ben Pfaff  <blp@gnu.org>
40876
40877         Fix broken build of replacement for Windows tmpfile().
40878         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40879         flags argument added along with the 'mkostemp' module.
40880
40881 2009-09-28  Bruno Haible  <bruno@clisp.org>
40882
40883         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40884         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40885         to 'remove_elt'.
40886         (gl_list_remove): Update.
40887         * lib/gl_list.c (gl_list_remove): Update.
40888         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40889         to 'remove_elt'.
40890         (gl_oset_remove): Update.
40891         * lib/gl_list.c (gl_oset_remove): Update.
40892         Reported by Eric Blake.
40893
40894 2009-09-28  Eric Blake  <ebb9@byu.net>
40895
40896         doc: mention yet more cygwin 1.7 status
40897         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40898         cygwin.
40899         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40900         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40901
40902         argp: fix test failure
40903         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40904         that are not upper-case.  Pass correct range to tolower.
40905
40906 2009-09-27  Jim Meyering  <meyering@redhat.com>
40907
40908         test-yesno: work around sparc-dash here-document infelicity
40909         Without this change, the literal \177 byte in a here document
40910         would make dash 0.5.5.1-3 access uninitialized memory.
40911         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40912         Instead, use a marker, "@", and filter through tr to create the desired
40913         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40914
40915 2009-09-27  Bruno Haible  <bruno@clisp.org>
40916
40917         Disable untested support for new flavours of ACLs on AIX.
40918         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40919         progress.
40920         * lib/set-mode-acl.c (qset_acl): Likewise.
40921
40922 2008-12-07  Bruno Haible  <bruno@clisp.org>
40923
40924         Add support for new flavours of ACLs on AIX. (Untested.)
40925         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40926         (file_has_acl): Add support for newer AIX.
40927         * lib/set-mode-acl.c (qset_acl): Likewise.
40928         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40929         Rainer Tammer <tammer@tammer.net>.
40930
40931 2009-09-26  Eric Blake  <ebb9@byu.net>
40932
40933         argp: fix compilation of getopt
40934         * lib/getopt.in.h (includes): Use different guard than glibc.
40935         Reported by Sergey Poznyakoff.
40936
40937         doc: mention more cygwin 1.7 status
40938         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40939         bug.
40940         * doc/posix-functions/execl.texi (execl): Likewise.
40941         * doc/posix-functions/execle.texi (execle): Likewise.
40942         * doc/posix-functions/execlp.texi (execlp): Likewise.
40943         * doc/posix-functions/execv.texi (execv): Likewise.
40944         * doc/posix-functions/execve.texi (execve): Likewise.
40945         * doc/posix-functions/execvp.texi (execvp): Likewise.
40946         * doc/glibc-functions/canonicalize_file_name.texi
40947         (canonicalize_file_name): Cygwin 1.7 now provides this.
40948         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40949         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40950         on AT_SYMLINK_NOFOLLOW.
40951
40952 2009-09-24  Eric Blake  <ebb9@byu.net>
40953
40954         test-linkat: make test more robust
40955         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40956
40957         getopt: fix inclusion guards for cygwin
40958         * modules/getopt-posix (Depends-on): Add include-next.
40959         (Makefile.am): Substitute more items in replacement header.
40960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40961         <getopt.h>.
40962         * lib/getopt.in.h (includes): Use split inclusion guard, and
40963         prefer <getopt.h> over include <unistd.h> when one is present.
40964         (option): Also override name of 'struct option'.
40965
40966         same-inode: revert prior change; it is not yet ready
40967         * NEWS: Undo mention of this change.
40968         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40969         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40970         * lib/cycle-check.c (cycle_check): Likewise.
40971         * lib/same.c (same_name): Likewise.
40972         * lib/at-func2.c (at_func2): Likewise.
40973
40974 2009-09-23  Eric Blake  <ebb9@byu.net>
40975
40976         linkat: new module
40977         * modules/linkat: New file.
40978         * lib/at-func2.c (at_func2): Likewise.
40979         * lib/linkat.c (linkat): Likewise.
40980         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40981         * lib/openat-priv.h (at_func2): Add declaration.
40982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40983         * modules/unistd (Makefile.am): Substitute them.
40984         * lib/unistd.in.h (linkat): Declare it.
40985         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40986         * doc/posix-functions/linkat.texi (linkat): Likewise.
40987         * doc/posix-functions/link.texi (link): Tweak wording.
40988         * tests/test-link.c (main): Move guts...
40989         * tests/test-link.h (test_link): ...into new file.
40990         * modules/linkat-tests: New test.
40991         * tests/test-linkat.c: Likewise.
40992         * modules/link-tests (Files): Ship new file.
40993         (Depends-on): Add stdbool.
40994
40995         dirname: add library-safe mdir_name
40996         * lib/dirname.h (mdir_name): New prototype.
40997         * lib/dirname.c (dir_name): Move guts...
40998         (mdir_name): ...to new function that avoids xalloc_die.
40999
41000         fchdir: another mingw fix
41001         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41002         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41003         on mingw (where it has not yet been ported), and make it optional
41004         elsewhere.
41005         (_gl_register_fd): Use it.
41006
41007         same-inode: make SAME_INODE tri-state, to port to mingw
41008         * NEWS: Mention this change.
41009         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41010         st_ino always being 0.
41011         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41012         * lib/cycle-check.c (cycle_check): Likewise.
41013         * lib/same.c (same_name): Likewise.
41014
41015         lstat: avoid mingw compilation error
41016         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41017         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41018         lstat ourselves.
41019         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41020         was adequate.
41021         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41022         the checks for lstat.
41023         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41024
41025         link: fix test failure on Solaris 9
41026         * lib/link.c (rpl_link): Don't assume link will catch bogus
41027         trailing slash on source.
41028
41029         test-symlinkat: enhance test
41030         * tests/test-readlink.c (main): Move guts...
41031         * tests/test-readlink.h (test_readlink): ...into new file.
41032         * tests/test-symlink.c (main): Move guts...
41033         * tests/test-symlink.h (test_symlink): ...into new file.
41034         * tests/test-symlinkat.c (main): Use new files for further
41035         coverage.
41036         (do_symlink, do_readlink): New helper functions.
41037         * modules/symlink-tests (Files): Ship new file.
41038         (Depends-on): Add stdbool.
41039         * modules/readlink-tests (Files): Ship new file.
41040         (Depends-on): Add stdbool.
41041         * modules/symlinkat-tests (Files): Use new files.
41042
41043 2009-09-23  Eric Blake  <ebb9@byu.net>
41044
41045         readlink: document portability issue with symlink length
41046         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41047         systems have bogus st_size on symlinks, and mention the
41048         areadlink-with-size module.
41049         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41050         * doc/posix-functions/readlink.texi (readlink): Mention the
41051         areadlink module, and ERANGE failure.
41052         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41053         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41054
41055         readlink: fix Solaris 9 bug with trailing slash
41056         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41057         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41058         * doc/posix-functions/readlink.texi (readlink): Document this.
41059         * modules/readlink-tests: New test.
41060         * tests/test-readlink.c: Likewise.
41061
41062         readlink: fix cygwin 1.5.x bug with return type
41063         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41064         * lib/unistd.in.h (readlink): Use ssize_t.
41065         * lib/readlink.c (readlink): Likewise.
41066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41067         * modules/unistd (Makefile.am): Substitute it.
41068         * lib/unistd.in.h (readlink): Declare replacement.
41069         * doc/posix-functions/readlink.texi (readlink): Document this.
41070
41071         symlink: use throughout gnulib
41072         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41073         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41074         symlink is not used.
41075         * modules/symlinkat (Depends-on): Add symlink.
41076         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41077         * modules/canonicalize-tests (Depends-on): Likewise.
41078         * modules/lstat-tests (Depends-on): Likewise.
41079         * modules/openat-tests (Depends-on): Likewise.
41080         * modules/remove-tests (Depends-on): Likewise.
41081         * modules/rmdir-tests (Depends-on): Likewise.
41082         * modules/unlink-tests (Depends-on): Likewise.
41083         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41084         * tests/test-canonicalize.c (symlink): Likewise.
41085         * tests/test-fstatat.c (symlink): Likewise.
41086         * tests/test-lstat.c (symlink): Likewise.
41087         * tests/test-remove.c (symlink): Likewise.
41088         * tests/test-rmdir.c (symlink): Likewise.
41089         * tests/test-unlink.c (symlink): Likewise.
41090         * tests/test-unlinkat.c (symlink): Likewise.
41091
41092         symlink: new module, for Solaris 9 bug
41093         * modules/symlink: New file.
41094         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41095         * lib/symlink.c: Likewise.
41096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41097         * modules/unistd (Makefile.am): Substitute them.
41098         * lib/unistd.in.h (symlink): Declare replacement.
41099         * MODULES.html.sh (File system functions): Mention it.
41100         * doc/posix-functions/symlink.texi (symlink): Likewise.
41101         * modules/symlink-tests: New test.
41102         * tests/test-symlink.c: Likewise.
41103
41104 2009-09-23  Bruno Haible  <bruno@clisp.org>
41105
41106         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41107         when needed.
41108         Test case: gnulib-tool --import --with-tests atexit inttypes.
41109         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41110
41111 2009-09-23  Bruno Haible  <bruno@clisp.org>
41112
41113         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41114         subcommand, not in a subshell.
41115
41116 2009-09-22  Eric Blake  <ebb9@byu.net>
41117
41118         unistd: sort replacement declarations
41119         * lib/unistd.in.h: Sort declarations.
41120
41121         open, openat: minor optimization
41122         * lib/open.c (open): If open succeeded, len is non-zero.
41123         * lib/openat.c (rpl_openat): Likewise.
41124
41125         link-follow: ensure correct result
41126         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41127         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41128         distinguish between possible failures.
41129
41130 2009-09-21  Eric Blake  <ebb9@byu.net>
41131
41132         fts: avoid compiler warning
41133         * lib/fts.c (dirent_inode_sort_may_be_useful)
41134         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41135
41136 2009-09-19  Bruno Haible  <bruno@clisp.org>
41137
41138         * lib/progreloc.c (canonicalize_file_name): New declaration.
41139
41140 2009-09-19  Eric Blake  <ebb9@byu.net>
41141
41142         link: fix quoting
41143         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41144
41145         openat: fix openat bugs on Solaris 9
41146         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41147         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41148         * modules/openat (Depends-on): Add open.
41149         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41150         * modules/fcntl-h (Makefile.am): Substitute it.
41151         * lib/fcntl.in.h (openat): Declare replacement.
41152         * doc/posix-functions/openat.texi (openat): Document this.
41153
41154         openat: move fstatat and unlinkat into correct files
41155         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41156         compiled.
41157         * lib/openat.c (fstatat, unlinkat): Move...
41158         * lib/fstatat.c (fstatat): ...into correct files.
41159         * lib/unlinkat.c (unlinkat): Likewise.
41160
41161         openat: fix unlinkat bugs on Solaris 9
41162         * lib/unlinkat.c (unlinkat): New file.
41163         * modules/openat (Depends-on): Add unlink.
41164         (Files): Distribute it.
41165         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41166         trailing slash behavior is broken.
41167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41168         * modules/unistd (Makefile.am): Substitute it.
41169         * lib/unistd.in.h (unlinkat): Declare replacement.
41170         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41171
41172         openat: fix fstatat bugs on Solaris 9
41173         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41174         stat.
41175         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41176
41177         test-unlinkat: enhance test, to expose Solaris 9 bug
41178         * tests/test-unlink.c (main): Factor guts...
41179         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41180         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41181         * tests/test-rmdir.c (main): Adjust caller.
41182         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41183         (unlinker): New helper function.
41184         (rmdirat): Enhance check.
41185         * modules/rmdir-tests (Depends-on): Add stdbool.
41186         * modules/unlink-tests (Depends-on): Likewise.
41187         (Files): Add test-unlink.h.
41188         * modules/openat-tests (Files): Likewise.
41189         (Depends-on): Add unlinkdir.
41190
41191         test-fstatat: new test, to expose Solaris 9 bugs
41192         * tests/test-stat.c (main): Factor guts...
41193         * tests/test-stat.h (test_stat_func): ...into new file.
41194         * tests/test-lstat.c (main): Factor guts...
41195         * tests/test-lstat.h (test_lstat_func): ...into new file.
41196         * tests/test-fstatat.c: New file.
41197         * modules/stat-tests (Files): Add test-stat.h.
41198         * modules/lstat-tests (Files): Add test-lstat.h.
41199         (Depends-on): Add stdbool.
41200         * modules/openat-tests (Depends-on): Add pathmax.
41201         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41202         (Makefile.am): Run new test.
41203
41204         remove: new module, for mingw and Solaris 9 bugs
41205         * modules/remove: New file.
41206         * lib/remove.c: Likewise.
41207         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41209         * modules/stdio (Makefile.am): Use them.
41210         * lib/stdio.in.h (remove): Declare replacement.
41211         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41212         * doc/posix-functions/remove.texi (remove): Likewise.
41213         * modules/remove-tests: New test.
41214         * tests/test-remove.c: Likewise.
41215
41216         unlink: new module, for Solaris 9 bug
41217         * modules/unlink: New file.
41218         * lib/unlink.c: Likewise.
41219         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41221         * modules/unistd (Makefile.am): Use them.
41222         * lib/unistd.in.h (stat): Declare replacement.
41223         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41224         * doc/posix-functions/unlink.texi (unlink): Likewise.
41225         * modules/unlink-tests: New test.
41226         * tests/test-unlink.c: Likewise.
41227
41228         lstat: fix Solaris 9 bug
41229         * lib/lstat.c (lstat): Also check for trailing slash on
41230         non-symlink, non-directories.  Use stat module to simplify logic.
41231         * doc/posix-functions/lstat.texi (lstat): Document it.
41232         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41233         (configure.ac): Check for symlink.
41234         * tests/test-lstat.c (main): Add more tests.
41235
41236         stat: add as dependency to other modules
41237         * modules/chown (Depends-on): Add stat.
41238         * modules/euidaccess (Depends-on): Likewise.
41239         * modules/fchdir (Depends-on): Likewise.
41240         * modules/isdir (Depends-on): Likewise.
41241         * modules/link (Depends-on): Likewise.
41242         * modules/lstat (Depends-on): Likewise.
41243         * modules/mkdir-p (Depends-on): Likewise.
41244         * modules/modechange (Depends-on): Likewise.
41245         * modules/open (Depends-on): Likewise.
41246         * modules/readlink (Depends-on): Likewise.
41247         * modules/same (Depends-on): Likewise.
41248
41249         stat: fix Solaris 9 bug
41250         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41251         slash.
41252         * lib/stat.c (rpl_stat): Work around it.
41253         * doc/posix-functions/stat.texi (stat): Update documentation.
41254
41255         stat: new module, for mingw bug
41256         * modules/stat: New file.
41257         * lib/stat.c: Likewise.
41258         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41259         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41260         * modules/sys_stat (Makefile.am): Use them.
41261         * lib/sys_stat.in.h (stat): Declare replacement.
41262         * lib/openat.c (fstatat): Deal with lstat and stat being function
41263         macros.
41264         * modules/openat (Depends-on): Add inline.
41265         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41266         * doc/posix-functions/stat.texi (stat): Likewise.
41267         * modules/stat-tests: New test.
41268         * tests/test-stat.c: Likewise.
41269
41270 2009-09-19  Jim Meyering  <meyering@redhat.com>
41271
41272         syntax-check: detect unnecessary inclusion of canonicalize.h
41273         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41274
41275 2009-09-19  Eric Blake  <ebb9@byu.net>
41276
41277         canonicalize-lgpl: adjust clients to use correct header
41278         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41279         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41280         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41281         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41282         * lib/progreloc.c (includes): Likewise.
41283
41284 2009-09-19  Jim Meyering  <meyering@redhat.com>
41285
41286         test-posixtm.c: correct a comment
41287         * tests/test-posixtm.c: Correct first-line comment.
41288         Spotted by Eric Blake.
41289
41290 2009-09-16  Jim Meyering  <meyering@redhat.com>
41291
41292         posixtm-tests: make T const-correct; add a test case
41293         * tests/test-posixtm.c (T): Declare const.
41294         Add a test for -(2^31+1).
41295         Remove useless can-succeed-only-in-2002 test.
41296
41297         posixtm-tests: adjust the sole failing test
41298         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41299         expected output matches what mktime now produces.  Cross-checked via
41300         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41301
41302         posixtm: move #ifdef'd tests into a new module
41303         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41304         * tests/test-posixtm.c: ... this new file.
41305         * modules/posixtm-tests: New module.
41306
41307 2009-09-19  Eric Blake  <ebb9@byu.net>
41308
41309         openat: simplify use of at-func.c
41310         * lib/at-func.c (includes): Include prerequisites here, to
41311         simplify requirements on client files.
41312         * lib/openat-priv.h: Add double-inclusion guard.
41313         * lib/faccessat.c (includes): Simplify.
41314         * lib/fchmodat.c (includes): Likewise.
41315         * lib/fchownat.c (includes): Likewise.
41316         * lib/mkdirat.c (includes): Likewise.
41317         * lib/mkfifoat.c (includes): Likewise.
41318         * lib/symlinkat.c (includes): Likewise.
41319
41320         openat: allow return of fd 0
41321         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41322         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41323         unistd-safer.
41324         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41325         <fcntl.h>; this module does not leak fds.
41326         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41327         must be allowed to return 0, leaving openat_safer to add the
41328         safety.
41329         (openat_permissive): Avoid writing to just-opened fd 2 if
41330         restoring the current directory fails.
41331         * lib/openat-die.c (openat_restore_fail): Add comment.
41332         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41333         (save_cwd): Guarantee safe fd, but without use of open_safer.
41334         * tests/test-openat.c: New test.
41335         * modules/openat-tests (Files, Makefile.am): Distribute and build
41336         new file.
41337
41338         relocatable-prog-wrapper: fix build
41339         * modules/relocatable-prog-wrapper (Files): Update name of
41340         canonicalize m4 file, broken on 2009-09-17.
41341         Reported by emad hajjar <aleppos@hotmail.com>.
41342
41343 2009-09-19  Bruno Haible  <bruno@clisp.org>
41344
41345         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41346         * lib/safe-alloc.c: Likewise.
41347         Reported by Ian Beckwith <ianb@erislabs.net>.
41348
41349 2009-09-18  Bruno Haible  <bruno@clisp.org>
41350
41351         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41352         Reported by <erobles@sensacd.com.mx>.
41353
41354 2009-09-17  Eric Blake  <ebb9@byu.net>
41355
41356         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41357         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41358         slashes when checking if last component is missing.
41359         * tests/test-canonicalize.c (main): Test this.
41360
41361         canonicalize, canonicalize-lgpl: honor // if distinct from /
41362         * modules/canonicalize (Files): Add double-slash-root.m4.
41363         * modules/canonicalize-lgpl (Files): Likewise.
41364         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41365         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41366         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41367         fallback definition.
41368         (canonicalize_filename_mode): Use it to protect //.
41369         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41370         (__realpath): Likewise.
41371         * tests/test-canonicalize.c (main): Test this.
41372         * tests/test-canonicalize-lgpl.c (main): Likewise.
41373         * modules/canonicalize-tests (Depends-on): Add same-inode.
41374         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41375
41376         canonicalize-lgpl: fix glibc bug with trailing slash
41377         * m4/canonicalize-lgpl.m4: Move contents...
41378         * m4/canonicalize.m4: ...here.
41379         (gl_CANONICALIZE_LGPL): Factor realpath check...
41380         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41381         glibc 2.3.5 bug, fixed 2005-04-27.
41382         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41383         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41384         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41385         * modules/canonicalize-lgpl (Files): Manage file rename.
41386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41387         * modules/stdlib (Makefile.am): Substitute witness.
41388         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41389         is needed.
41390         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41391         replacement is required.
41392         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41393         * doc/glibc-functions/canonicalize_file_name.texi
41394         (canonicalize_file_name): Document this.
41395         * doc/posix-functions/realpath.texi (realpath): Likewise.
41396
41397         canonicalize-lgpl: reject non-directory with trailing slash
41398         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41399         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41400         catches failures in glibc 2.3.5.
41401         * tests/test-canonicalize.c (main): Likewise.
41402
41403         canonicalize-lgpl: use native realpath if it works
41404         * lib/canonicalize-lgpl.c (realpath): Guard with
41405         FUNC_REALPATH_WORKS.
41406         * lib/stdlib.in.h (realpath): Make declaration optional based on
41407         HAVE_REALPATH.
41408         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41409         native realpath works.
41410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41411         * modules/stdlib (Makefile.am): Substitute witness.
41412
41413         canonicalize, canonicalize-lgpl: use <stdlib.h>
41414         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41415         (Include): Mention <stdlib.h>.
41416         (configure.ac): Mention functions we provide.
41417         * modules/canonicalize (configure.ac): Likewise.
41418         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41419         realpath if canonicalize_file_name is missing.
41420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41421         * modules/stdlib (Makefile.am): Substitute witnesses.
41422         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41423         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41424         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41425         * NEWS: Document this.
41426         * doc/glibc-functions/canonicalize_file_name.texi
41427         (canonicalize_file_name): Likewise.
41428         * doc/posix-functions/realpath.texi (realpath): Likewise.
41429         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41430
41431         test-canonicalize: consolidate into single C program
41432         * tests/test-canonicalize.sh: Delete; move setup into...
41433         * tests/test-canonicalize.c (main): ...the program, making it
41434         easier to run in debugger.  Add some tests.
41435         * modules/canonicalize-tests (Files): Remove unused file.
41436         (Depends-on): Add progname.
41437         (configure.ac, Makefile.am): Simplify.
41438
41439         test-canonicalize-lgpl: consolidate into single C program
41440         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41441         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41442         easier to run in debugger.  Add some tests.
41443         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41444         (configure.ac, Makefile.am): Simplify.
41445
41446         canonicalize: avoid resolvepath
41447         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41448         unnecessary checks.
41449         * lib/canonicalize.c (includes): Simplify.
41450         (canonicalize_file_name): Drop resolvepath implementation.
41451         * modules/canonicalize (Depends-on): Drop filenamecat.
41452
41453         canonicalize: don't lose errno
41454         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41455         over calls to free.
41456
41457         canonicalize: simplify errno handling
41458         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41459         assignment.
41460
41461         canonicalize, canonicalize-lgpl: update module dependencies
41462         * modules/canonicalize (Depends-on): Add extensions, lstat,
41463         pathmax, stdlib.
41464         (Files): Drop pathmax.h.
41465         (configure.ac): Adjust macro name.
41466         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41467         lstat, stdlib, sys_stat.
41468         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41469         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41470         extensions.
41471         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41472         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41473         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41474         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41475         declaration, if available.
41476         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41477         we can rely on the readlink module.
41478         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41479         (includes): Use <unistd.h> unconditionally.
41480
41481 2009-09-17  Eric Blake  <ebb9@byu.net>
41482
41483         maint: make Include sections of modules consistent
41484         * modules/alloca: Use only header name; no need to list #include.
41485         * modules/alloca-opt: Likewise.
41486         * modules/arpa_inet: Likewise.
41487         * modules/canon-host: Likewise.
41488         * modules/configmake: Likewise.
41489         * modules/dirent: Likewise.
41490         * modules/eealloc: Likewise.
41491         * modules/environ: Likewise.
41492         * modules/fchdir: Likewise.
41493         * modules/fcntl: Likewise.
41494         * modules/fcntl-h: Likewise.
41495         * modules/gethrxtime: Likewise.
41496         * modules/gettime: Likewise.
41497         * modules/ignore-value: Likewise.
41498         * modules/inet_ntop: Likewise.
41499         * modules/inet_pton: Likewise.
41500         * modules/inttypes: Likewise.
41501         * modules/isnand-nolibm: Likewise.
41502         * modules/isnanf-nolibm: Likewise.
41503         * modules/mbchar: Likewise.
41504         * modules/mbfile: Likewise.
41505         * modules/mbiter: Likewise.
41506         * modules/mbuiter: Likewise.
41507         * modules/netdb: Likewise.
41508         * modules/netinet_in: Likewise.
41509         * modules/nproc: Likewise.
41510         * modules/pagealign_alloc: Likewise.
41511         * modules/poll: Likewise.
41512         * modules/printf-frexp: Likewise.
41513         * modules/pthread: Likewise.
41514         * modules/putenv: Likewise.
41515         * modules/random_r: Likewise.
41516         * modules/relocatable-prog: Likewise.
41517         * modules/search: Likewise.
41518         * modules/select: Likewise.
41519         * modules/selinux-h: Likewise.
41520         * modules/settime: Likewise.
41521         * modules/signal: Likewise.
41522         * modules/size_max: Likewise.
41523         * modules/socklen: Likewise.
41524         * modules/ssize_t: Likewise.
41525         * modules/stdarg: Likewise.
41526         * modules/stdbool: Likewise.
41527         * modules/stddef: Likewise.
41528         * modules/stdint: Likewise.
41529         * modules/stdio: Likewise.
41530         * modules/stdlib: Likewise.
41531         * modules/string: Likewise.
41532         * modules/strings: Likewise.
41533         * modules/sys_file: Likewise.
41534         * modules/sys_ioctl: Likewise.
41535         * modules/sys_select: Likewise.
41536         * modules/sys_socket: Likewise.
41537         * modules/sys_stat: Likewise.
41538         * modules/sys_time: Likewise.
41539         * modules/sys_times: Likewise.
41540         * modules/sys_utsname: Likewise.
41541         * modules/sys_wait: Likewise.
41542         * modules/sysexits: Likewise.
41543         * modules/time: Likewise.
41544         * modules/times: Likewise.
41545         * modules/tmpfile: Likewise.
41546         * modules/trim: Likewise.
41547         * modules/unistd: Likewise.
41548         * modules/wchar: Likewise.
41549         * modules/wctype: Likewise.
41550
41551 2009-09-17  Bruno Haible  <bruno@clisp.org>
41552
41553         Make getdate.y compile on QNX and NetBSD 5 / i386.
41554         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41555         TIME_T_FITS_IN_LONG_INT.
41556         * lib/getdate.y (long_time_t): New type.
41557         (relative_time): Change type of 'seconds' field to long_time_t.
41558         (get_date): Update types of local variables. Check against overflow
41559         during conversion from long_time_t to time_t.
41560         Reported by Matt Kraai <kraai@ftbfs.org>
41561         and Hasso Tepper <hasso@netbsd.org>.
41562
41563 2009-09-17  Bruno Haible  <bruno@clisp.org>
41564
41565         * modules/COPYING: Update copyright years.
41566         * modules/README: Likeiwse.
41567         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41568         Reported by Ian Beckwith <ianb@erislabs.net>.
41569
41570 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41571
41572         * users.txt: Update references for gnuit package.
41573
41574 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41575
41576         * m4/getdelim.m4: Fix typo in copyright line.
41577
41578 2009-09-17  Bruno Haible  <bruno@clisp.org>
41579
41580         * lib/atoll.c: Use the standard header with GPL copyright.
41581         * lib/argz.in.h: Likewise.
41582         * lib/glob.c: Likewise.
41583         * lib/glob-libc.h: Likewise.
41584         * lib/random_r.c: Likewise.
41585         * lib/siglist.h: Likewise.
41586         * lib/strsignal.c: Likewise.
41587         Reported by Ian Beckwith <ianb@erislabs.net>.
41588
41589 2009-09-17  Eric Blake  <ebb9@byu.net>
41590
41591         rmdir: ensure correct dependency order
41592         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41593
41594 2009-09-17  Bruno Haible  <bruno@clisp.org>
41595
41596         Disable assertion that fails on NetBSD 5 / i386.
41597         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41598         Reported by Sam Steingold <sds@gnu.org>
41599         and Hasso Tepper <hasso@netbsd.org>.
41600
41601 2009-09-16  Eric Blake  <ebb9@byu.net>
41602
41603         unlinkdir: port to mingw
41604         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41605         on which no one can unlink a directory.
41606
41607         stdlib: sort witness names
41608         * modules/stdlib (Makefile.am): Sort replacements.
41609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41610         * lib/stdlib.in.h: Likewise.
41611
41612         parse-duration-tests: avoid link failure
41613         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41614         LIBINTL.
41615         Reported by Tom G. Christensen.
41616
41617         openat-tests: ensure unlinkat behaves like rmdir
41618         * tests/test-rmdir.c (main): Factor guts...
41619         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41620         * modules/rmdir-tests (Files): Ship new file.
41621         * modules/openat-tests: New test.
41622         * tests/test-unlinkat.c: Likewise.
41623
41624         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41625         * modules/rmdir-errno (Status, Notice): Now obsolete.
41626
41627         rmdir: work around cygwin 1.5.x and mingw bugs
41628         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41629         * lib/rmdir.c (rmdir): Work around it.
41630         * modules/rmdir (Status, Notice): No longer obsolete.
41631         (Files): Add dos.m4.
41632         (Depends-on): Add unistd.
41633         (configure.ac): Set witnesses.
41634         (License): Relax to LGPLv2+.
41635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41636         * modules/unistd (Makefile.am): Substitute witnesses.
41637         * lib/unistd.in.h (rmdir): Declare replacement.
41638         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41639         * modules/rmdir-tests: New tests.
41640         * tests/test-rmdir.c: Likewise.
41641
41642 2009-09-15  Eric Blake  <ebb9@byu.net>
41643
41644         fchdir: improve use of replacement functions
41645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41646         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41647         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41648         REPLACE_CLOSEDIR.
41649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41650         * modules/sys_stat (Makefile.am): Substitute correct witness.
41651         * modules/dirent (Makefile.am): Likewise.
41652         * modules/unistd (Makefile.am): Likewise.
41653         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41654         * lib/unistd.in.h (dup): Likewise.
41655         * lib/sys_stat.in.h (fstat): Likewise.
41656
41657         maint: ignore gnulib-tool temp files
41658         * .gitignore: Ignore files created during gnulib-tool --test.
41659
41660 2009-09-13  Jim Meyering  <meyering@redhat.com>
41661
41662         posixtm: don't reject a time that specify "60" as the number of seconds
41663         * lib/posixtm.c (posixtime): The code to reject invalid dates
41664         would also reject a time specified with the .60 suffix.
41665         But POSIX allows that, in order to accommodate leap seconds.
41666         So don't reject it.
41667         (main): Adjust tests accordingly.
41668         * modules/posixtm (Depends-on): Add stpcpy.
41669
41670 2009-09-11  Jim Meyering  <meyering@redhat.com>
41671
41672         announce-gen: include [$release_type] in emitted Subject:
41673         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41674         e.g., [stable] in the emitted Subject: line.
41675
41676 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41677
41678         Remove obsolete macros from several modules.
41679         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41680         obsolete Autoconf macros with their modern counterparts.
41681         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41682         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41684         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41685         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41686         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41688         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41689         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41690         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41691         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41692         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41693         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41694         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41695         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41696         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41697         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41698         * m4/time_r.m4 (gl_TIME_R): Likewise.
41699         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41700         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41701         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41702
41703         Fix copyright header in build-aux scripts.
41704         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41705         recommendation.
41706         * build-aux/ncftpput-ftp: Likewise.
41707         * build-aux/update-copyright: Likewise.
41708
41709 2009-09-09  Eric Blake  <ebb9@byu.net>
41710
41711         test-link: allow Linux choice of errno
41712         * tests/test-link.c (main): Relax test for alternate error.
41713
41714         strndup: fix improper m4 caching
41715         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41716         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41717         (gl_PREREQ_STRNDUP): Delete.
41718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41719         * modules/string (Makefile.am): Substitute it.
41720         * lib/string.in.h (strndup): Modernize prototype.
41721
41722         getcwd: port to mingw
41723         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41724         different from the POSIX assumptions made throughout the getcwd
41725         module; fortunately, the mingw getcwd does not need replacement.
41726         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41727         * modules/getcwd-tests: New test.
41728         * tests/test-getcwd.c: Likewise.
41729
41730         link: fix platform bugs
41731         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41732         * lib/link.c (link): Work around them.  Fix related mingw bug.
41733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41734         * modules/unistd (Makefile.am): Substitute it.
41735         * lib/unistd.in.h (link): Declare replacement.
41736         * doc/posix-functions/link.texi (link): Document this.
41737         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41738
41739         test-link: consolidate into single C program, test more cases
41740         * tests/test-link.sh: Delete.
41741         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41742         at least Cygwin and Solaris.
41743         * modules/link-tests (Files): Remove unused file.
41744         (Depends-on): Add errno, sys_stat.
41745         (Makefile.am): Simplify.
41746
41747 2009-09-08  Bruno Haible  <bruno@clisp.org>
41748
41749         Work around towlower, towupper bug on mingw.
41750         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41751         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41752         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41753         * doc/posix-functions/towupper.texi: Likewise.
41754         Reported by Eric Blake.
41755
41756 2009-09-08  Jim Meyering  <meyering@redhat.com>
41757
41758         build: don't try to run autoheader if we don't use it
41759         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41760         is not used in configure.ac.
41761
41762 2009-09-08  Eric Blake  <ebb9@byu.net>
41763
41764         euidaccess: fix compilation error
41765         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41766
41767         rawmemchr: relax license
41768         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41769         okay.
41770         Reported by Jim Meyering.
41771
41772         mkfifoat: new module
41773         * modules/mkfifoat: New file.
41774         * lib/mkfifoat.c: Likewise.
41775         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41777         * modules/sys_stat (Makefile.am): Use them.
41778         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41779         * MODULES.html.sh (File system functions): Mention module.
41780         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41781         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41782         * modules/mkfifoat-tests: New test.
41783         * tests/test-mkfifoat.c: Likewise.
41784
41785         strchrnul: relax license
41786         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41787         okay.
41788         Reported by Jim Meyering.
41789
41790 2009-09-08  Eric Blake  <ebb9@byu.net>
41791
41792         fstatat: fix compilation on Solaris
41793         * lib/fstatat.c (includes): Add fcntl.h.
41794         Reported by Pádraig Brady.
41795
41796 2009-09-07  Eric Blake  <ebb9@byu.net>
41797
41798         rename: modernize replacement
41799         * modules/rename (Depends-on): Add stdio.
41800         (configure.ac): Declare witness.
41801         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41802         stdio take care of replacement.
41803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41804         * modules/stdio (Makefile.am): Substitute them.
41805         * lib/stdio.in.h (rename): Declare replacement.
41806         * lib/rename.c (includes): Allow cross-compilation to non-windows
41807         machines.
41808         * doc/posix-functions/rename.texi (rename): Improve
41809         documentation.
41810
41811         stdio: sort witness names
41812         * modules/stdio (Makefile.am): Sort replacements.
41813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41814         * lib/stdio.in.h: Likewise.
41815
41816         getcwd: minor cleanups
41817         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41818         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41819
41820         openat: provide more convenience names
41821         * modules/faccessat (configure.ac): Add C witness.
41822         * lib/unistd.in.h (readlinkat): Fix typo.
41823         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41824         convenience wrappers.
41825         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41826         wrappers in syntax checks.
41827
41828 2009-09-06  Eric Blake  <ebb9@byu.net>
41829
41830         doc: fix comments in recent patches
41831         * lib/faccessat.c: Mention correct function.
41832         * lib/fchmodat.c: Likewise.
41833         * lib/fchownat.c: Likewise.
41834         * lib/symlinkat.c: Likewise.
41835         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41836         constants.
41837
41838         faccessat, symlinkat: continue cleanup of previous patch
41839         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41840         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41841         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41843         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41844         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41845         set.
41846
41847 2009-09-06  Bruno Haible  <bruno@clisp.org>
41848
41849         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41850         (fstatat): Declare if GNULIB_FSTATAT is set.
41851         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41852         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41853         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41854         * modules/fcntl-h (Files): Remove m4/openat.m4.
41855         * modules/sys_stat (Files): Remove m4/openat.m4.
41856         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41857         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41858         * modules/unistd (Files): Remove m4/openat.m4.
41859         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41860         GNULIB_OPENAT.
41861         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41862         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41863         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41864         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41865         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41866         gl_OPENAT_DEFAULTS.
41867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41868         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41869         Don't require gl_OPENAT_DEFAULTS.
41870         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41871         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41872         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41873         (gl_OPENAT_DEFAULTS): Remove macro.
41874
41875 2009-09-06  Bruno Haible  <bruno@clisp.org>
41876
41877         * modules/openat (configure.ac): Remove unneeded witness.
41878
41879 2009-09-06  Bruno Haible  <bruno@clisp.org>
41880
41881         Set errno to ENOSYS when a function is entirely unsupported.
41882         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41883         EOPNOTSUPP.
41884         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41885         * modules/chown (Depends-on): Remove errno.
41886
41887 2009-09-06  Bruno Haible  <bruno@clisp.org>
41888
41889         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41890
41891 2009-09-06  Bruno Haible  <bruno@clisp.org>
41892
41893         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41894
41895 2009-09-06  Ben Pfaff  <blp@gnu.org>
41896             Bruno Haible  <bruno@clisp.org>
41897
41898         Work around a glibc bug in strtok_r.
41899         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41900         Undefine if UNDEFINE_STRTOK_R is set.
41901         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41903         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41904         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41905         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41906         UNDEFINE_STRTOK_R.
41907         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41908
41909 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41910
41911         exclude: minor fix
41912         * lib/exclude.c: Include wctype.h
41913
41914 2009-09-06  Akim Demaille  <demaille@gostai.com>
41915
41916         bootstrap: improve error message
41917         * build-aux/bootstrap (find_tool): Upon failure, report the list
41918         of candidates.
41919         Honor the initial value of the envvar.
41920
41921 2009-09-05  Eric Blake  <ebb9@byu.net>
41922
41923         symlinkat: new module
41924         * modules/symlinkat: New file.
41925         * lib/symlinkat.c: Likewise.
41926         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41928         * modules/unistd (Makefile.am): Use them.
41929         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41930         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41931         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41932         * MODULES.html.sh (File system functions): Mention module.
41933         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41934         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41935         * modules/symlinkat-tests: New test.
41936         * tests/test-symlinkat.c: Likewise.
41937
41938         test-openat-safer: add more checks
41939         * tests/test-openat-safer.c (main): Check more code paths.
41940
41941 2009-09-05  Jim Meyering  <meyering@redhat.com>
41942
41943         syntax-check: detect unnecessary inclusion of openat.h
41944         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41945
41946 2009-09-05  Bruno Haible  <bruno@clisp.org>
41947
41948         Support towlower, towupper.
41949         * doc/posix-functions/towlower.texi: Mention module wctype.
41950         * doc/posix-functions/towupper.texi: Likewise.
41951         * lib/wctype.in.h (towlower, towupper): New functions.
41952         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41953         (ASSERT): New macro.
41954         (e): New variable.
41955         (main): Test also towlower, towupper. Test WEOF argument.
41956         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41957
41958 2009-09-05  Bruno Haible  <bruno@clisp.org>
41959
41960         Fix conversion behaviour when the input is invalid.
41961         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41962         mark occurring in first pass of indirect conversion.
41963         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41964         input.
41965         Found by clang's static analyzer.
41966
41967 2009-09-05  Bruno Haible  <bruno@clisp.org>
41968
41969         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41970         where direct conversion is possible.
41971
41972 2009-09-04  Eric Blake  <ebb9@byu.net>
41973
41974         openat: fail with ENOENT on empty name
41975         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41976         buffer.
41977
41978         link-follow: fix logic bug in prior patch
41979         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41980         reversed sense of yes and no in prior patch.  Avoid confusing
41981         compilation failure with desired semantics.
41982
41983         link-follow: accommodate mingw and cross-compilation
41984         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41985         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41986         cross-compilation results to -1, to make linkat easier to
41987         implement when cross-compiling.  Trivially support mingw.
41988         * modules/link-follow (configure.ac): Call new name.
41989         * NEWS: Mention this.
41990
41991 2009-09-03  Eric Blake  <ebb9@byu.net>
41992
41993         faccessat: compile replacement
41994         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41995         needed.
41996
41997         fts: fix compilation error
41998         * lib/fts.c (includes): Re-add "openat.h", for
41999         openat_needs_fchdir.
42000
42001         faccessat: new module
42002         * modules/faccessat: New file.
42003         * lib/faccessat.c: Likewise.
42004         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42006         * modules/unistd (Makefile.am): Use it.
42007         * lib/unistd.in.h (faccessat): Declare it.
42008         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42009         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42010         * MODULES.html.sh (File system functions): Mention it.
42011         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42012         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42013
42014         euidaccess: prefer POSIX over non-standard implementation
42015         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42016         * lib/euidaccess.c (euidaccess): Use it if available.
42017
42018         openat: make template easier to use
42019         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42020         AT_FUNC_F2 to be undefined.
42021         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42022         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42023         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42024         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42025         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42026         Likewise.
42027         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42028         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42029         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42030         Likewise.
42031
42032         openat: declare in POSIX headers
42033         * NEWS: Mention this.
42034         * modules/openat (configure.ac): Declare witnesses.
42035         (Depends-on): Add fcntl-h, sys_stat, unistd.
42036         (Include): Mention correct headers.
42037         * modules/fcntl-h (Depends-on): Add link-warning.
42038         (Files): Add openat.m4.
42039         (Makefile.am): Substitute witnesses.
42040         * modules/sys_stat (Files, Makefile.am): Likewise.
42041         * modules/unistd (Files, Makefile.am): Likewise.
42042         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42043         (gl_OPENAT_DEFAULTS): New macro.
42044         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42046         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42047         (SYS_STAT_H): Remove unused variable.
42048         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42049         * lib/fcntl--.h (includes): Remove unneeded header.
42050         * lib/openat-safer.c (includes): Likewise.
42051         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42052         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42053         appropriate headers.
42054         (__OPENAT_PREFIX): Delete.
42055         * lib/fcntl.in.h (openat): Provide declaration.
42056         (AT_FDCWD): Fix Solaris bug.
42057         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42058         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42059         * lib/fchmodat.c (includes):  Adjust to find declaration.
42060         * lib/fchownat.c (includes): Likewise.
42061         * lib/mkdirat.c (includes): Likewise.
42062         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42063         still visible.
42064
42065 2009-09-02  Eric Blake  <ebb9@byu.net>
42066
42067         errno: use consistently
42068         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42069         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42070         * lib/canonicalize.c (ELOOP): Likewise.
42071         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42072         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42073         * lib/lchown.c (EOPNOTSUPP): Likewise.
42074         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42075         * lib/savewd.c (ESTALE): Likewise.
42076         * lib/settime.c (ENOSYS): Likewise.
42077         * lib/utimens.c (ENOSYS): Likewise.
42078         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42079         * lib/chdir-safer.c (ELOOP): Likewise.
42080         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42081         * modules/c-stack (Depends-on): Add errno.
42082         * modules/canonicalize (Depends-on): Likewise.
42083         * modules/chdir-safer (Depends-on): Likewise.
42084         * modules/fdopendir (Depends-on): Likewise.
42085         * modules/inet_ntop (Depends-on): Likewise.
42086         * modules/inet_pton (Depends-on): Likewise.
42087         * modules/lchown (Depends-on): Likewise.
42088         * modules/openat (Depends-on): Likewise.
42089         * modules/savewd (Depends-on): Likewise.
42090         * modules/settime (Depends-on): Likewise.
42091         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42092
42093         fts: avoid leaking fds
42094         * modules/fts (Depends-on): Add cloexec.
42095         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42096         flag.
42097
42098         fts: make directory fds more robust
42099         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42100         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42101
42102         backupfile, chdir-long, fts, savedir: make safer
42103         * lib/backupfile.c (includes): Use "dirent--.h", since
42104         numbered_backup can write to stderr during readdir.
42105         * lib/savedir.c (includes): Likewise.
42106         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42107         emulation can write to stderr on failure.
42108         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42109         * lib/getcwd.c: Document why opendir_safer is unused.
42110         * lib/glob.c: Likewise.
42111         * lib/scandir.c: Likewise.
42112         * lib/openat-proc.c: Likewise, for open_safer.
42113         * modules/backupfile (Depends-on): Add dirent-safer.
42114         * modules/savedir (Depends-on): Likewise.
42115         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42116         * modules/chdir-long (Depends-on): Add openat-safer.
42117
42118         openat-safer: new module
42119         * modules/openat-safer: New file.
42120         * lib/openat-safer.c: Likewise.
42121         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42122         * lib/fcntl-safer.h (openat_safer): Declare.
42123         * lib/fcntl--.h (openat): Override.
42124         * MODULES.html.sh (File descriptor based I/O): Mention it.
42125         * lib/openat.h: Add double-inclusion guards.
42126         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42127         "fcntl--.h", so we can implement openat.
42128         * modules/openat-safer-tests: New test.
42129         * tests/test-openat-safer.c: New file.
42130
42131         dirent-safer: new module
42132         * modules/dirent-safer: New file.
42133         * lib/dirent--.h: Likewise.
42134         * lib/dirent-safer.h: Likewise.
42135         * lib/opendir-safer.c: Likewise.
42136         * m4/dirent-safer.m4: Likewise.
42137         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42138         * modules/dirent-safer-tests: New test.
42139         * tests/test-dirent-safer.c: New file.
42140         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42141
42142         fdopendir: optimize on mingw
42143         * lib/unistd.in.h (_gl_directory_name): New prototype.
42144         * lib/fchdir.c (_gl_directory_name): Implement it.
42145         (fchdir): Use it to simplify implementation.
42146         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42147         fchdir, when available, to avoid calling [f]chdir().
42148
42149         fdopendir: split into its own module
42150         * lib/openat.c (fdopendir): Move...
42151         * lib/fdopendir.c: ...into new file.
42152         * modules/fdopendir: New module.
42153         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42154         * modules/openat (Depends-on): Add fdopendir.
42155         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42156         fdopendir here.
42157         * modules/savedir (Depends-on): Only need fdopendir, not full
42158         openat.
42159         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42160         * lib/openat.h (fdopendir): Drop prototype.
42161         * lib/dirent.in.h (fdopendir): Provide prototype.
42162         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42163         * modules/dirent (Makefile.am): Substitute them.
42164         * MODULES.html.sh (File system functions): Mention it.
42165         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42166         * modules/fdopendir-tests: New file.
42167         * tests/test-fdopendir.c: Likewise.
42168
42169         fchdir: use more consistent macro convention
42170         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42171         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42172         REPLACE_FCHDIR, rather than relying on config.h macros.
42173         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42174         inside a single make-time REPLACE_FCHDIR block, rather than using
42175         the config.h FCHDIR_REPLACEMENT.
42176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42177         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42178         Manage fstat replacement.
42179         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42180         REPLACE_FCHDIR.
42181         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42182         (Makefile.am): Substitute REPLACE_FCHDIR.
42183         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42184         FCHDIR_REPLACEMENT.
42185         * lib/dup-safer.c (dup_safer): Likewise.
42186         * lib/dup2.c (rpl_dup2): Likewise.
42187         * lib/dup3.c (rpl_dup3): Likewise.
42188         * lib/open.c (rpl_open): Likewise.
42189
42190         fchdir: simplify error handling, and support dup3
42191         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42192         stdbool, malloc-posix, realloc-posix.
42193         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42194         (ensure_dirs_slot): Return false on allocation failure.
42195         (rpl_dup2): Delete.
42196         (_gl_register_dup): New function.
42197         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42198         (_gl_register_fd): Close fd on allocation failure.
42199         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42200         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42201         prototype.
42202         (rpl_dup2_fchdir): Delete prototype.
42203         * lib/open.c (open): Update caller.
42204         * lib/dup2.c (dup2): Track fchdir metadata.
42205         * lib/dup3.c (dup3): Likewise.
42206         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42208
42209 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42210
42211         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42212         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42213         don't pass arguments to AC_OUTPUT.
42214
42215 2009-09-02  Bruno Haible  <bruno@clisp.org>
42216
42217         * modules/mkdtemp (License): Relicense under LGPLv2+.
42218         Reported by Paolo Bonzini.
42219
42220 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42221
42222         Replace uses of obsolete autoconf macros in Jim's modules.
42223         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42224         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42225         can evoke a warning from autoconf when run with -Wobsolete
42226         enabled.  They were declared obsolete for good reasons (see
42227         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42228         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42229         should not continue using the deprecated macros.
42230         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42231         obsolete Autoconf macros with modern counterparts.
42232         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42233         * m4/dos.m4 (gl_AC_DOS): Likewise.
42234         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42235         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42236         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42237         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42238         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42239         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42240         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42241         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42242         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42243         Likewise.
42244         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42245         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42246         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42247         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42248         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42249         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42250
42251 2009-09-01  Eric Blake  <ebb9@byu.net>
42252
42253         fchdir: fix off-by-one bug in previous patch
42254         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42255         (_gl_unregister_fd): Delete useless if.
42256
42257 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42258
42259         maint.mk: sort the list of syntax-check rules
42260         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42261         easier to get a sense of progress when the rules are run sequentially
42262         and take a long time.
42263
42264 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42265
42266         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42267         * modules/netinet_in: Likewise.
42268         * modules/sys_file: Likewise.
42269         * modules/sys_ioctl: Likewise.
42270         * modules/sys_select: Likewise.
42271         * modules/sys_socket: Likewise.
42272         * modules/sys_stat: Likewise.
42273         * modules/sys_time: Likewise.
42274         * modules/sys_times: Likewise.
42275         * modules/sys_utsname: Likewise.
42276         * modules/sys_wait: Likewise.
42277
42278 2009-09-01  Jim Meyering  <meyering@redhat.com>
42279
42280         fts: help ensure that return values are not ignored
42281         * lib/fts_.h (__GNUC_PREREQ): Define.
42282         (__attribute_warn_unused_result__): Define.
42283         (fts_children, fts_close, fts_open, fts_read): Declare with
42284         __attribute_warn_unused_result__.
42285
42286         fts: fts_close now fails also when closing a dir file descriptor fails
42287         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42288         and propagate to caller, along with errno.
42289
42290         announce-gen: correct formatting in --help output
42291         * build-aux/announce-gen (usage): Move the one-line description in
42292         --help output "up", to where it belongs, just after Usage:.
42293
42294 2009-08-31  Eric Blake  <ebb9@byu.net>
42295
42296         fchdir: port to mingw
42297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42298         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42299         opened, then use a substitute.
42300         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42301         replacement.
42302         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42303         (_gl_register_fd): No need to check stat if open already filters
42304         all directories.
42305         (fchdir): Fix error condition to match POSIX.
42306         * modules/fchdir (Depends-on): Add sys_stat.
42307         * doc/posix-functions/open.texi (open): Document the limitation.
42308         * modules/fchdir-tests: New file.
42309         * tests/test-fchdir.c: Likewise.
42310
42311         canonicalize: allow cross-testing from cygwin to mingw
42312         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42313         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42314         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42315         Likewise.
42316         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42317         target does not support symlinks.
42318         * tests/test-canonicalize-lgpl.sh: Likewise.
42319
42320         chown: avoid compilation warning on mingw
42321         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42322         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42323         mingw.
42324         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42325         * modules/chown (Depends-on): Add errno.
42326
42327 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42328
42329         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42330         command.
42331
42332 2009-08-31  Jim Meyering  <meyering@redhat.com>
42333
42334         canonicalize: remove useless initialization
42335         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42336         initialization of local, "end".
42337
42338 2009-08-30  Bruno Haible  <bruno@clisp.org>
42339
42340         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42341         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42342         ENOSYS.
42343
42344 2009-08-30  Bruno Haible  <bruno@clisp.org>
42345
42346         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42347         /usr/xpg4/bin/tr when it exists.
42348         * tests/test-pipe-filter-gi1.sh: Likewise.
42349
42350 2009-08-30  Bruno Haible  <bruno@clisp.org>
42351
42352         Work around deficient /usr/bin/id program on Solaris.
42353         * tests/test-file-has-acl.sh (ID): New variable.
42354         * tests/test-set-mode-acl.sh (ID): Likewise.
42355         * tests/test-copy-acl.sh (ID): Likewise.
42356         * tests/test-copy-file.sh (ID): Likewise.
42357
42358 2009-08-30  Bruno Haible  <bruno@clisp.org>
42359
42360         New module 'xstriconveh'.
42361         * lib/xstriconveh.h: New file.
42362         * lib/xstriconveh.c: New file.
42363         * modules/xstriconveh: New file.
42364
42365 2009-08-30  Bruno Haible  <bruno@clisp.org>
42366
42367         Make it easier to use mem_cd_iconveh.
42368         * lib/striconveh.h (iconveh_t): New type.
42369         (iconveh_open, iconveh_close): New declarations.
42370         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42371         with a single 'const iconveh_t *' argument.
42372         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42373         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42374         with a single 'const iconveh_t *' argument.
42375         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42376         * tests/test-striconveh.c (main): Update.
42377         * NEWS: Mention the change.
42378
42379 2009-08-30  Bruno Haible  <bruno@clisp.org>
42380
42381         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42382         problem.
42383
42384 2009-08-30  Bruno Haible  <bruno@clisp.org>
42385
42386         Work around iconv_open problem on Solaris.
42387         * lib/iconv_open-solaris.gperf: New file.
42388         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42389         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42390         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42391         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42392         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42393         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42394
42395 2009-08-29  Jim Meyering  <meyering@redhat.com>
42396
42397         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42398         * top/maint.mk (cvs-check): Remove target; it was just an alias
42399         to the better-named vc-diff-check.
42400         (maintainer-distcheck): Remove rule.  It was used only from
42401         the (alpha/beta/major) target, and all of its commands but one
42402         were coreutils-specific.
42403         (vc-dist): Remove rule.
42404         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42405         Run vc-diff-check, not vc-dist.
42406         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42407
42408 2009-08-27  Bruno Haible  <bruno@clisp.org>
42409
42410         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42411         of 0.
42412
42413 2009-08-27  Bruno Haible  <bruno@clisp.org>
42414
42415         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42416         compilers.
42417         * doc/func.texi: Document the SunPRO C bug.
42418
42419 2009-08-27  Bruno Haible  <bruno@clisp.org>
42420
42421         Fix link error on Solaris.
42422         * tests/test-parse-duration.c (xstrdup): Remove function.
42423
42424 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42425
42426         ignore-value: handle pointer types, too
42427         * lib/ignore-value.h (__attribute__): Remove definition.
42428         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42429         of a more concise and more-often effective "(void) i" statement.
42430         (ignore_ptr): New function to suppress warnings from functions that
42431         return pointers, and to make it explicit that one function doesn't
42432         handle all cases.
42433
42434 2009-08-25  Bruno Haible  <bruno@clisp.org>
42435
42436         dup2: work around a Linux bug.
42437         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42438         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42439         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42440         Reported by Simon Josefsson.
42441
42442 2009-08-25  Jim Meyering  <meyering@redhat.com>
42443
42444         libguestfs uses gnulib
42445         * users.txt: Add libguestfs.
42446
42447 2009-08-24  Eric Blake  <ebb9@byu.net>
42448
42449         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42450         * lib/pipe2.c (includes): Add binary-io.h.
42451         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42452
42453 2009-08-24  Bruno Haible  <bruno@clisp.org>
42454
42455         Tolerate declared but missing accept4 syscall.
42456         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42457         available.
42458         * lib/sys_socket.in.h (accept4): If the function is already present,
42459         override it.
42460         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42461         * modules/accept4 (Makefile.am): Compile accept4.c always.
42462         Reported by Paolo Bonzini and Eric Blake.
42463
42464 2009-08-23  Bruno Haible  <bruno@clisp.org>
42465
42466         New module 'accept4'.
42467         * lib/sys_socket.in.h (accept4): New declaration.
42468         * lib/accept4.c: New file.
42469         * m4/accept4.m4: New file.
42470         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42471         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42472         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42473         HAVE_ACCEPT4.
42474         * modules/accept4: New file.
42475         * doc/glibc-functions/accept4.texi: Mention the new module.
42476
42477 2009-08-24  Jim Meyering  <meyering@redhat.com>
42478
42479         progname: also set global program_invocation_name, when possible
42480         Before this change, a libtool-enabled program that calls glibc's
42481         error function would report the program name as
42482         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42483         * modules/progname (configure.ac): Check for a declaration of
42484         program_invocation_name.
42485         * lib/progname.c:  Include <errno.h>.
42486         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42487         Set program_invocation_name.
42488
42489 2009-08-23  Bruno Haible  <bruno@clisp.org>
42490
42491         * lib/dup3.c: Include <string.h>.
42492
42493 2009-08-23  Bruno Haible  <bruno@clisp.org>
42494
42495         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42496         * lib/pipe2.c (pipe2): Likewise.
42497         Suggested by Eric Blake.
42498
42499 2009-08-23  Bruno Haible  <bruno@clisp.org>
42500
42501         Tolerate declared but missing dup3 syscall.
42502         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42503         * lib/unistd.in.h (dup3): If the function is already present,
42504         override it.
42505         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42506         * modules/dup3 (Makefile.am): Compile dup3.c always.
42507         Reported by Paolo Bonzini.
42508
42509 2009-08-23  Bruno Haible  <bruno@clisp.org>
42510
42511         Tolerate declared but missing pipe2 syscall.
42512         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42513         available.
42514         * lib/unistd.in.h (pipe2): If the function is already present,
42515         override it.
42516         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42517         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42518         Reported by Paolo Bonzini.
42519
42520 2009-08-23  Bruno Haible  <bruno@clisp.org>
42521
42522         * lib/pipe2.c (pipe2): Move #ifs inside function.
42523
42524 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42525
42526         quotearg: document limitations of quote_these_too
42527         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42528         those limitations are created.
42529         * lib/quotearg.h (set_char_quoting): Document that digits and
42530         letters that are special after backslash are not permitted.
42531         (quotearg_char): Cross-reference set_char_quoting documentation.
42532
42533 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42534
42535         quotearg: implement custom_quoting_style
42536         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42537         right_quote fields.
42538         (set_custom_quoting): New public function.
42539         (quotearg_buffer_restyled): Add left_quote and right_quote
42540         arguments, handle them very much like locale quoting, and update
42541         all uses.
42542         (quotearg_n_custom): New public function.
42543         (quotearg_n_custom_mem): New public function.
42544         (quotearg_custom): New public function.
42545         (quotearg_custom_mem): New public function.
42546         * lib/quotearg.h: Prototype and document new public functions.
42547         (enum quoting_style): For escape_quoting_style and
42548         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42549         ignored even though they're otherwise like c_quoting_style.
42550         Add custom_quoting_style member and document with comparison to
42551         clocale_quoting_style.
42552         * tests/test-quotearg.c (custom_quotes): New array.
42553         (custom_results): New array.
42554         (main): Extend to test custom quoting.
42555
42556 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42557
42558         quotearg: fix right quote escaping when it's in quote_these_too
42559         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42560         quote, be sure to prepend only one backslash.
42561         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42562         (main): Test it.
42563
42564 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42565
42566         quotearg-tests: test escaping of embedded locale quotes
42567         * tests/test-quotearg.c (struct result_strings): Add member for
42568         new input.
42569         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42570         (inputs): Add new input.
42571         (results_g): Add expected results.
42572         (flag_results): Likewise.
42573         (locale_results): Likewise.
42574         (compare_strings): Check those.
42575
42576 2009-08-23  Bruno Haible  <bruno@clisp.org>
42577
42578         Tests for module 'dup3'.
42579         * modules/dup3-tests: New file.
42580         * tests/test-dup3.c: New file.
42581
42582         New module 'dup3'.
42583         * lib/unistd.in.h (dup3): New declaration.
42584         * lib/dup3.c: New file.
42585         * m4/dup3.m4: New file.
42586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42587         HAVE_DUP3.
42588         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42589         * modules/dup3: New file.
42590         * doc/glibc-functions/dup3.texi: Mention the new module.
42591
42592 2009-08-23  Bruno Haible  <bruno@clisp.org>
42593
42594         Tweak the dup2 test.
42595         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42596         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42597         the test file is still empty. Fix argument order of lseek.
42598
42599 2009-08-23  Bruno Haible  <bruno@clisp.org>
42600
42601         Avoid test link errors when the modules getopt-gnu, gettext are used.
42602         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42604
42605 2009-08-23  Bruno Haible  <bruno@clisp.org>
42606
42607         Fix getdtablesize() on mingw.
42608         * lib/getdtablesize.c (getdtablesize): Implement differently.
42609         * lib/unistd.in.h (getdtablesize): Improve comment.
42610
42611 2009-08-23  Bruno Haible  <bruno@clisp.org>
42612
42613         New module 'mkostemp'.
42614         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42615         * lib/stdlib.in.h (mksotemp): New declaration.
42616         * lib/mkostemp.c: New file, from glibc with modifications.
42617         * lib/tempname.h (GT_FILE): Remove outdated comment.
42618         (gen_tempname): Add flags argument.
42619         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42620         (__GT_FILE): Map to 1.
42621         (small_open, large_open): Remove macros.
42622         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42623         * lib/mkstemp.c (mkstemp): Update.
42624         * lib/mkdtemp.c (mkdtemp): Likewise.
42625         * m4/mkostemp.m4: New file.
42626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42627         HAVE_MKOSTEMP.
42628         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42629         HAVE_MKOSTEMP.
42630         * modules/mkostemp: New file, based on modules/mkstemp.
42631         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42632         * NEWS: Mention the change.
42633
42634 2009-08-23  Bruno Haible  <bruno@clisp.org>
42635
42636         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42637         Reported by Eric Blake.
42638
42639 2009-08-23  Bruno Haible  <bruno@clisp.org>
42640
42641         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42642         Reported by Eric Blake.
42643
42644 2009-08-23  Bruno Haible  <bruno@clisp.org>
42645
42646         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42647         * modules/pipe2 (Depends-on): Likewise.
42648
42649 2009-08-23  Eric Blake  <ebb9@byu.net>
42650
42651         fcntl-h: add O_TTY_INIT support
42652         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42653         * tests/test-fcntl-h.c (o): Test it.
42654         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42655
42656         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42657         * modules/fcntl: Move <fcntl.h> header replacement...
42658         * modules/fcntl-h: ...to new name, so as not to collide with
42659         like-named function.
42660         * tests/test-fcntl.c: Rename...
42661         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42662         * modules/fcntl-tests: Rename...
42663         * modules/fcntl-h-tests: ...to this.  Update test file name.
42664         * modules/chdir-long (Depends-on): Update clients.
42665         * modules/chdir-safer (Depends-on): Likewise.
42666         * modules/fcntl-safer (Depends-on): Likewise.
42667         * modules/fts (Depends-on): Likewise.
42668         * modules/mkancesdirs (Depends-on): Likewise.
42669         * modules/mkdir-p (Depends-on): Likewise.
42670         * modules/open (Depends-on): Likewise.
42671         * modules/savewd (Depends-on): Likewise.
42672         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42673         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42674
42675 2009-08-22  Bruno Haible  <bruno@clisp.org>
42676
42677         * modules/binary-io (License): Relicense under LGPL.
42678         * modules/pipe2 (License): Likewise.
42679
42680 2009-08-22  Bruno Haible  <bruno@clisp.org>
42681
42682         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42683         return value.
42684         * lib/pipe-filter-gi.c (filter_init): Likewise.
42685         Reported by Eric Blake.
42686
42687 2009-08-22  Bruno Haible  <bruno@clisp.org>
42688
42689         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42690         * modules/pipe (Depends-on): Add pipe2.
42691
42692 2009-08-22  Bruno Haible  <bruno@clisp.org>
42693
42694         Tests for module 'pipe2'.
42695         * modules/pipe2-tests: New file.
42696         * tests/test-pipe2.c: New file.
42697
42698         New module 'pipe2'.
42699         * lib/unistd.in.h (pipe2): New declaration.
42700         * lib/pipe2.c: New file.
42701         * m4/pipe2.m4: New file.
42702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42703         HAVE_PIPE2.
42704         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42705         * modules/pipe2: New file.
42706         * doc/glibc-functions/pipe2.texi: Mention the new module.
42707
42708 2009-08-22  Bruno Haible  <bruno@clisp.org>
42709
42710         Reference some new glibc functions.
42711         * doc/glibc-functions/accept4.texi: New file.
42712         * doc/glibc-functions/dup3.texi: New file.
42713         * doc/glibc-functions/mkostemp.texi: New file.
42714         * doc/glibc-functions/pipe2.texi: New file.
42715         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42716         (Glibc sys/socket.h): Refer to accept4.
42717         (Glibc unistd.h): Refer to dup3, pipe2.
42718         Reported by Eric Blake.
42719
42720 2009-08-22  Jim Meyering  <meyering@redhat.com>
42721             Bruno Haible  <bruno@clisp.org>
42722
42723         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42724         This makes it so packages using automake-1.11's silent-rules option
42725         can print e.g., a single "GEN    configmake.h" line, rather than
42726         the 30+ statements that perform the job.  If you want to see the
42727         actual commands, you can still run "make V=1".
42728         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42729         so that make output is abbreviated when those variables are defined
42730         appropriately.
42731         * modules/argz: Likewise.
42732         * modules/arpa_inet: Likewise.
42733         * modules/byteswap: Likewise.
42734         * modules/configmake: Likewise.
42735         * modules/dirent: Likewise.
42736         * modules/errno: Likewise.
42737         * modules/fcntl: Likewise.
42738         * modules/float: Likewise.
42739         * modules/fnmatch: Likewise.
42740         * modules/getopt-posix: Likewise.
42741         * modules/glob: Likewise.
42742         * modules/iconv_open: Likewise.
42743         * modules/inttypes: Likewise.
42744         * modules/localcharset: Likewise.
42745         * modules/locale: Likewise.
42746         * modules/math: Likewise.
42747         * modules/netdb: Likewise.
42748         * modules/netinet_in: Likewise.
42749         * modules/poll: Likewise.
42750         * modules/posix_spawnp-tests: Likewise.
42751         * modules/sched: Likewise.
42752         * modules/search: Likewise.
42753         * modules/selinux-h: Likewise.
42754         * modules/signal: Likewise.
42755         * modules/spawn: Likewise.
42756         * modules/stdarg: Likewise.
42757         * modules/stdbool: Likewise.
42758         * modules/stddef: Likewise.
42759         * modules/stdint: Likewise.
42760         * modules/stdio: Likewise.
42761         * modules/stdlib: Likewise.
42762         * modules/string: Likewise.
42763         * modules/strings: Likewise.
42764         * modules/sys_file: Likewise.
42765         * modules/sys_ioctl: Likewise.
42766         * modules/sys_select: Likewise.
42767         * modules/sys_socket: Likewise.
42768         * modules/sys_stat: Likewise.
42769         * modules/sys_time: Likewise.
42770         * modules/sys_times: Likewise.
42771         * modules/sys_utsname: Likewise.
42772         * modules/sys_wait: Likewise.
42773         * modules/sysexits: Likewise.
42774         * modules/time: Likewise.
42775         * modules/unistd: Likewise.
42776         * modules/wchar: Likewise.
42777         * modules/wctype: Likewise.
42778
42779 2009-08-22  Jim Meyering  <meyering@redhat.com>
42780
42781         announce-gen: detect write failure
42782         * build-aux/announce-gen: Add Coda at end.
42783         Remove equivalent-but-more-verbose block at top.
42784
42785 2009-08-19  Akim Demaille  <demaille@gostai.com>
42786
42787         bootstrap: --help to stdout.
42788         * bootstrap (usage): Don't send --help to stderr.
42789         Use a here doc instead of a long string.
42790
42791 2009-08-21  Eric Blake  <ebb9@byu.net>
42792
42793         test-popen-safer: split from test-popen
42794         * tests/test-popen.c (main): Move...
42795         * tests/test-popen.h: ...into new file.
42796         * tests/test-popen-safer2.c: New file.
42797         * modules/popen-tests (Files): Add test-popen.h.
42798         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42799         Suggested by Bruno Haible.
42800
42801         test-fcntl-safer: split from test-open
42802         * tests/test-open.c (main): Move...
42803         * tests/test-open.h: ...into new file.
42804         * tests/test-fcntl-safer.c: New file.
42805         * modules/open-tests (Files): Add test-open.h.
42806         * modules/fcntl-safer-tests: New file.
42807         Suggested by Bruno Haible.
42808
42809         test-fopen-safer: split from test-fopen
42810         * tests/test-fopen.c (main): Move...
42811         * tests/test-fopen.h: ...into new file.
42812         * tests/test-fopen-safer.c: New file.
42813         * modules/fopen-tests (Files): Add test-fopen.h.
42814         * modules/fopen-safer-tests: New file.
42815         Suggested by Bruno Haible.
42816
42817 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42818
42819         popen-safer: test O_CLOEXEC at run-time.
42820         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42821
42822 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42823
42824         fcntl: move more flags to the header
42825         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42826         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42827         * lib/fcntl.in.h: Do both things here.
42828
42829 2009-08-21  Jim Meyering  <meyering@redhat.com>
42830
42831         consistently remove $@-t before redirecting to it
42832         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42833         * modules/alloca-opt: Likewise.
42834         * modules/byteswap: Likewise.
42835         * modules/fnmatch: Likewise.
42836         * modules/getopt-posix: Likewise.
42837         * modules/glob: Likewise.
42838         * modules/poll: Likewise.
42839         * modules/posix_spawnp-tests: Likewise.
42840         * modules/sys_socket: Likewise.
42841         * modules/sysexits: Likewise.
42842
42843 2009-08-21  Eric Blake  <ebb9@byu.net>
42844
42845         popen: simplify access to original popen
42846         * lib/popen.c (rpl_popen): No need to worry about popen being a
42847         macro.
42848         Reported by Bruno Haible.
42849
42850 2009-08-20  Eric Blake  <ebb9@byu.net>
42851
42852         build: avoid some compiler warnings
42853         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42854         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42855         type.
42856         (new_exclude_segment, excluded_file_pattern_p)
42857         (excluded_file_name_p): Reduce scope.
42858         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42859         old-style declaration.
42860
42861 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42862
42863         * tests/test-exclude1.sh: Handle Windows EOL.
42864         * tests/test-exclude2.sh: Likewise.
42865         * tests/test-exclude3.sh: Likewise.
42866         * tests/test-exclude4.sh: Likewise.
42867         * tests/test-exclude5.sh: Likewise.
42868         * tests/test-exclude6.sh: Likewise.
42869         * tests/test-exclude7.sh: Likewise.
42870
42871 2009-08-19  Akim Demaille  <demaille@gostai.com>
42872
42873         bootstrap: find sha1sum when named gsha1sum.
42874         * bootstrap (find_tool): New.
42875         ($SHA1SUM): New.
42876         Use it.
42877
42878 2009-08-20  Jim Meyering  <meyering@redhat.com>
42879
42880         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42881         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42882         expression that converts "." in a file name to "\." in the resulting
42883         regexp.  Start with a dummy statement, so that prior shell variable
42884         definitions are expanded portably.  Reported by Simon Josefsson.
42885
42886 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42887
42888         Fix polling for writeability of a screen buffer.
42889         * lib/poll.c: Distinguish input and screen buffers for the
42890         Win32 implementation.
42891         * lib/select.c: Likewise.
42892
42893 2009-08-19  Eric Blake  <ebb9@byu.net>
42894
42895         popen-safer: prevent popen from clobbering std descriptors
42896         * modules/popen-safer: New file.
42897         * lib/popen-safer.c: Likewise.
42898         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42899         * lib/stdio--.h (popen): Provide override.
42900         * lib/stdio-safer.h (popen_safer): Provide declaration.
42901         * tests/test-popen.c (includes): Partially test this.
42902         * modules/popen-safer-tests: New file, for more tests.
42903         * tests/test-popen-safer.c: Likewise.
42904         * MODULES.html.sh (file stream based Input/Output): Mention it.
42905
42906         tests: test some of the *-safer modules
42907         * modules/fopen-safer (Depends-on): Add fopen.
42908         * modules/fcntl-safer (Depends-on): Add fcntl.
42909         * modules/stdlib-safer (Depends-on): Add stdlib.
42910         (configure.ac): Set indicator.
42911         * modules/unistd-safer (configure.ac): Likewise.
42912         * modules/tmpfile-safer (configure.ac): Likewise.
42913         (Depends-on): Add tmpfile.
42914         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42915         active.
42916         * tests/test-fopen.c (includes): Test safer versions when they are
42917         in use.
42918         * tests/test-open.c (includes): Likewise.
42919
42920         popen: fix cygwin 1.5 bug when stdin closed
42921         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42922         * modules/popen: New file.
42923         * modules/popen-tests: Likewise.
42924         * tests/test-popen.c: Likewise.
42925         * m4/popen.m4: Likewise.
42926         * lib/popen.c: Likewise.
42927         * lib/stdio.in.h (popen): New declaration.
42928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42929         * modules/stdio (Makefile.am): Likewise.
42930         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42931
42932 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42933
42934         maint.mk: give full control over update-copyright exclusions
42935         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42936         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42937         (update-copyright): Don't force inclusion of top-level
42938         ChangeLog.  Don't force exclusion of all COPYING files, but make
42939         them the default exclusion instead.
42940
42941 2009-08-16  Bruno Haible  <bruno@clisp.org>
42942
42943         Fix test failures on Solaris 10.
42944         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42945         tests when Solaris iconv() is used.
42946         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42947         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42948         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42949         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42950         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42951
42952 2009-08-16  Bruno Haible  <bruno@clisp.org>
42953
42954         Fix test failures on Solaris 10.
42955         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42956         'tr' program and pass it as first argument.
42957         * tests/test-pipe-filter-gi1.sh: Likewise.
42958         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42959         program as first argument.
42960         * tests/test-pipe-filter-gi1.c (main): Likewise.
42961
42962 2009-08-16  Eric Blake  <ebb9@byu.net>
42963
42964         fpurge: fix previous commits
42965         * modules/fpurge (Makefile.am): Make replacement conditional,
42966         partially reverting 2007-04-29 change; missed in previous
42967         attempt.
42968         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42969         is missing.
42970
42971 2009-08-16  Bruno Haible  <bruno@clisp.org>
42972
42973         Clarify fpurge's effect on the file position.
42974         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42975         * tests/test-fpurge.c (main): Make a second pass for checking the file
42976         position.
42977
42978 2009-08-16  Bruno Haible  <bruno@clisp.org>
42979
42980         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42981         declaration of fpurge is missing.
42982         * tests/test-fpurge.c (main): Check that the file has not more contents
42983         than expected. Close the file before removing it.
42984
42985 2009-08-15  Eric Blake  <ebb9@byu.net>
42986
42987         fpurge: don't wrap working cygwin implementation
42988         * lib/fpurge.c (fpurge): Fix comment typo.
42989         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42990         1.7 to avoid replacement.
42991         * tests/test-fpurge.c (main): Enhance test.
42992
42993 2009-08-15  Eric Blake  <ebb9@byu.net>
42994         and Jim Meyering  <meyering@redhat.com>
42995
42996         test-update-copyright: skip if perl is insufficient
42997         * tests/test-update-copyright.sh: Failure to run maintainer tool
42998         should not cause testsuite failure on cygwin 1.5.
42999
43000 2009-08-14  Eric Blake  <ebb9@byu.net>
43001
43002         doc: mention more functions added in cygwin 1.7.0
43003         * doc/posix-headers/limits.texi (limits.h): Update for recent
43004         cygwin additions.
43005         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43006         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43007         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43008         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43009         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43010
43011 2009-08-14  Eric Blake  <ebb9@byu.net>
43012
43013         maint.mk: simplify update-copyright rule
43014         * top/maint.mk (update-copyright-local): Delete, and document how
43015         to do it in cfg.mk instead.
43016         (update-copyright-exclude-regexp): Delete, and document how to do
43017         it in .x-update-copyright instead.
43018         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43019         exclude ChangeLog.
43020
43021 2009-08-14  Bruno Haible  <bruno@clisp.org>
43022
43023         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43024
43025 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43026
43027         maint.mk: support update-copyright-env
43028         * top/maint.mk (update-copyright-env): Define place-holder.
43029         (update-copyright): Expand $(update-copyright-env) before
43030         invoking update-copyright.
43031
43032 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43033
43034         update-copyright: implement forced reformatting
43035         * build-aux/update-copyright: Implement and document
43036         UPDATE_COPYRIGHT_FORCE.
43037         * tests/test-update-copyright.sh: Test it.
43038
43039 2009-08-14  Eric Blake  <ebb9@byu.net>
43040         and Bruno Haible  <bruno@clisp.org>
43041
43042         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43043         * tests/test-locale.c: Revert previous patch related to NULL.
43044         * tests/test-stdio.c: Likewise.
43045         * tests/test-stdlib.c: Likewise.
43046         * tests/test-string.c: Likewise.
43047         * tests/test-unistd.c: Likewise.
43048         * modules/time-tests (Depends-on): Add verify.
43049         * modules/wchar-tests (Depends-on): Likewise.
43050         * tests/test-time.c: Test for NULL compliance.
43051         * tests/test-wchar.c: Likewise.
43052         * modules/locale (Depends-on): Add stddef.
43053         * modules/stdio (Depends-on): Likewise.
43054         * modules/stdlib (Depends-on): Likewise.
43055         * modules/string (Depends-on): Likewise.
43056         * modules/time (Depends-on): Likewise.
43057         * modules/unistd (Depends-on): Likewise.
43058         * modules/wchar (Depends-on): Likewise.
43059         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43060         * lib/stdlib.in.h (includes): Likewise.
43061         * lib/string.in.h (includes): Likewise.
43062         * lib/time.in.h (includes): Likewise.
43063         * lib/unistd.in.h (includes): Likewise.
43064         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43065         replaced.
43066         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43067         * m4/stddef_h.m4: New file.
43068         * modules/stddef: Likewise.
43069         * lib/stddef.in.h: Likewise.
43070         * modules/stddef-tests: Likewise.
43071         * tests/test-stddef.c: Likewise.
43072         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43073         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43074         * doc/posix-headers/locale.texi (locale.h): Likewise.
43075         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43076         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43077         * doc/posix-headers/string.texi (string.h): Likewise.
43078         * doc/posix-headers/time.texi (time.h): Likewise.
43079         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43080         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43081
43082 2009-08-14  Eric Blake  <ebb9@byu.net>
43083
43084         doc: improve git diff of texinfo files
43085         * .gitattributes: Add rule for *.texi files, with hint on how to
43086         use it.
43087         Copied from m4, and based on a report by Bruno Haible.
43088
43089 2009-08-14  Bruno Haible  <bruno@clisp.org>
43090
43091         Disable multithread support by default on Cygwin 1.5.x for real.
43092         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43093
43094 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43095
43096         update-copyright: much ado about intervals
43097         * build-aux/update-copyright: Implement and document
43098         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43099         of copyright year intervals.
43100         Also, document UPDATE_COPYRIGHT_YEAR.
43101         * tests/test-update-copyright.sh: Test it.
43102
43103         update-copyright: convert 2-digit to 4-digit years
43104         * build-aux/update-copyright: Implement and document.
43105         * tests/test-update-copyright.sh: Update.
43106
43107 2009-08-14  Jim Meyering  <meyering@redhat.com>
43108
43109         test-exclude: avoid coreutils "make check" failure
43110         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43111         just as in test-argmatch.c.
43112
43113 2009-08-13  Eric Blake  <ebb9@byu.net>
43114
43115         test-dup2: fix bad assumption
43116         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43117         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43118
43119         test-version-etc: fix CRLF portability issue
43120         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43121         recognize \r.
43122         * tests/test-argp-version-etc-1.sh: Likewise.
43123
43124         getopt: update client modules
43125         * modules/argp (Depends-on): Use getopt-gnu.
43126         * modules/git-merge-changelog (Depends-on): Likewise.
43127         * modules/long-options (Depends-on): Likewise.
43128         * modules/xstrtol (Depends-on): Likewise.
43129
43130 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43131
43132         * tests/test-version-etc.sh: Don't fail on different
43133         project/version.  Don't fail on CRLF differences.  Rewrite to use
43134         multiple -e instead of multiple sed forks, suggested by Eric Blake
43135         <ebb9@byu.net>.
43136         * tests/test-argp-version-etc-1.sh: Likewise.
43137
43138 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43139
43140         * tests/test-version-etc.sh: Don't fail on different
43141         project/version.
43142
43143 2009-08-12  Bruno Haible  <bruno@clisp.org>
43144
43145         Tests for modules 'getopt-posix', 'getopt-gnu'.
43146         * modules/getopt-posix-tests: New file.
43147         * tests/test-getopt.c: New file.
43148         * tests/test-getopt.h: New file.
43149         * tests/test-getopt_long.h: New file.
43150
43151         New modules 'getopt-posix', 'getopt-gnu'.
43152         * modules/getopt-gnu: New file, renamed from modules/getopt.
43153         * modules/getopt-posix: New file.
43154         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43155         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43156         (gl_GETOPT): Remove macro.
43157         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43158         Disable the test against BSD systems that declare optreset. Test
43159         against mingw bug. Test against lack of support of optional arguments
43160         on many platforms.
43161         * doc/glibc-headers/getopt.texi: Update module name and list of
43162         relevant platforms.
43163         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43164         'getopt-gnu' and more portability problems.
43165         * NEWS: Mention the changes.
43166
43167 2009-08-12  Bruno Haible  <bruno@clisp.org>
43168
43169         Ensure that optarg etc. get declared by <unistd.h>.
43170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43171         AC_USE_SYSTEM_EXTENSIONS.
43172         * modules/getopt (Depends-on): Add 'extensions'.
43173
43174 2009-08-12  Bruno Haible  <bruno@clisp.org>
43175
43176         Avoid test link errors.
43177         * modules/pipe-filter-ii-tests (Makefile.am): Define
43178         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43179         * modules/pipe-filter-gi-tests (Makefile.am): Define
43180         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43181         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43182
43183 2009-08-12  Bruno Haible  <bruno@clisp.org>
43184
43185         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43186         gl_GETOPT_SUBSTITUTE before.
43187         (gl_GETOPT): Use it.
43188         * m4/argp.m4 (gl_ARGP): Update.
43189         Reported by Sergey Poznyakoff.
43190
43191         * m4/getopt.m4: Reorder macros.
43192         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43193         (gl_GETOPT_SUBSTITUTE): Remove macro.
43194
43195 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43196
43197         Minor improvement in gitlog-to-changelog
43198
43199         * build-aux/gitlog-to-changelog: New option `--format' makes
43200         output format string configurable.
43201
43202 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43203
43204         Optimize exclude: use hash tables for non-wildcard patterns.
43205
43206         * lib/exclude.c: Include hash.h and mbuiter.h
43207         (struct exclude_pattern, exclude_segment): New data types.
43208         (struct exclude): Rewrite.
43209         (fnmatch_pattern_has_wildcards): New function.
43210         (new_exclude_segment, free_exclude_segment): New functions.
43211         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43212         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43213         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43214         * modules/exclude: Depend on hash and mbuiter.
43215
43216         * modules/exclude-tests: New file.
43217         * tests/test-exclude.c: New file.
43218         * tests/test-exclude1.sh: New file.
43219         * tests/test-exclude2.sh: New file.
43220         * tests/test-exclude3.sh: New file.
43221         * tests/test-exclude4.sh: New file.
43222         * tests/test-exclude5.sh: New file.
43223         * tests/test-exclude6.sh: New file.
43224         * tests/test-exclude7.sh: New file.
43225
43226 2009-08-12  Bruno Haible  <bruno@clisp.org>
43227
43228         Ensure that getopt() gets declared by <unistd.h>.
43229         * lib/unistd.in.h: Conditionally include getopt.h.
43230         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43231         Set GNULIB_UNISTD_H_GETOPT.
43232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43233         GNULIB_UNISTD_H_GETOPT.
43234         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43235
43236 2009-08-12  Bruno Haible  <bruno@clisp.org>
43237
43238         Clarify logic.
43239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43240         gl_replace_getopt instead of GETOPT_H.
43241
43242 2009-08-12  Bruno Haible  <bruno@clisp.org>
43243
43244         * m4/getopt.m4: Add comments.
43245
43246 2009-08-12  Bruno Haible  <bruno@clisp.org>
43247
43248         Disable multithread support by default on Cygwin 1.5.x.
43249         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43250         set gl_use_threads=no if not specified otherwise.
43251
43252 2009-08-11  Bruno Haible  <bruno@clisp.org>
43253
43254         Avoid compilation error on NetBSD 5.0.
43255         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43256         * tests/test-stdio.c: Likewise.
43257         * tests/test-stdlib.c: Likewise.
43258         * tests/test-string.c: Likewise.
43259         * tests/test-unistd.c: Likewise.
43260         Reported by Greg Troxel <gdt@ir.bbn.com>
43261         at <https://savannah.gnu.org/support/?106973>.
43262
43263 2009-08-11  Bruno Haible  <bruno@clisp.org>
43264
43265         * modules/dup2-tests (Depends-on): Remove close.
43266
43267         Undo 2009-07-19 commit.
43268         * modules/acl-tests (Depends-on): Remove close.
43269         * modules/binary-io-tests (Depends-on): Likewise.
43270         * modules/closein-tests (Depends-on): Likewise.
43271         * modules/flock-tests (Depends-on): Likewise.
43272         * modules/fsync-tests (Depends-on): Likewise.
43273         * modules/lseek-tests (Depends-on): Likewise.
43274         * modules/pipe-tests (Depends-on): Likewise.
43275         * modules/posix_spawn-tests (Depends-on): Likewise.
43276         * modules/posix_spawnp-tests (Depends-on): Likewise.
43277         * modules/stat-time-tests (Depends-on): Likewise.
43278         * modules/yesno-tests (Depends-on): Likewise.
43279
43280 2009-08-10  Bruno Haible  <bruno@clisp.org>
43281
43282         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43283
43284 2009-08-10  Bruno Haible  <bruno@clisp.org>
43285
43286         Fix a gcc warning.
43287         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43288
43289 2009-08-10  Bruno Haible  <bruno@clisp.org>
43290
43291         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43292         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43293         not only the first time.
43294         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43295         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43296         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43297         is 1, not only the the first time.
43298
43299 2009-08-10  Bruno Haible  <bruno@clisp.org>
43300
43301         Make it possible to use module 'gethostname' without module 'close'.
43302         * lib/unistd.in.h (close): Evoke a link error only if
43303         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43305         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43306         * modules/unistd (Makefile.am): Substitute
43307         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43308         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43309         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43310         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43311         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43312         * modules/sys_ioctl (Makefile.am): Substitute
43313         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43314         * modules/socket (configure.ac): On native Windows, set
43315         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43316         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43317         Reported by Sam Steingold <sds@gnu.org>.
43318
43319 2009-08-10  Bruno Haible  <bruno@clisp.org>
43320
43321         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43322         * modules/ioctl (configure.ac): Likewise.
43323
43324 2009-08-10  Bruno Haible  <bruno@clisp.org>
43325
43326         Avoid collision between gnulib wrapper and libintl wrapper.
43327         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43328         already defined in intl/printf.c.
43329         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43330         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43331
43332 2009-08-09  Bruno Haible  <bruno@clisp.org>
43333
43334         Make <sys/select.h> really self-contained, also on Solaris 10.
43335         * lib/sys_select.in.h: Include <string.h>.
43336         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43337         Solaris 10 problem.
43338         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43339         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43340         Reported by Jim Meyering.
43341
43342 2009-08-09  Bruno Haible  <bruno@clisp.org>
43343
43344         Avoid warnings from 'aclocal' that are due to a use of macro name
43345         AM_XGETTEXT_OPTION that is not defined in automake.
43346         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43347         automake.
43348         * modules/error (configure.ac): Likewise.
43349         * modules/propername (configure.ac): Likewise.
43350         * modules/vasprintf (configure.ac): Likewise.
43351         * modules/verror (configure.ac): Likewise.
43352         * modules/xprintf (configure.ac): Likewise.
43353         * modules/xvasprintf (configure.ac): Likewise.
43354
43355 2009-08-08  Bruno Haible  <bruno@clisp.org>
43356
43357         Avoid compilation error in C++ mode.
43358         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43359         Reported by Sam Steingold <sds@gnu.org>.
43360
43361 2009-08-08  Bruno Haible  <bruno@clisp.org>
43362
43363         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43364         for the various Unix platforms.
43365         * doc/posix-headers/limits.texi: Update platforms list regarding
43366         HOST_NAME_MAX.
43367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43368
43369 2009-08-07  Jim Meyering  <meyering@redhat.com>
43370
43371         selinux-at: fix typo in a comment
43372         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43373         Spotted by Paolo Bonzini.
43374
43375         selinux-at: remove redundant m4 code, add documentation
43376         * modules/selinux-at (configure.ac): Remove redundant code.
43377         LIB_SELINUX is already set via the dependent module, selinux-h.
43378         (Include): Add quotes around selinux-at.h.
43379         * lib/selinux-at.h: Add documentation.
43380         Reported by Bruno Haible in
43381         http://marc.info/?l=gnulib-bug&m=124958988300749
43382
43383 2009-08-07  Bruno Haible  <bruno@clisp.org>
43384
43385         Avoid link error on MacOS X 10.3 and 10.4.
43386         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43387         on non-ELF systems.
43388         * lib/argp-pv.c (argp_program_version): Likewise.
43389         Reported by Simon Josefsson.
43390
43391 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43392
43393         * tests/test-version-etc.sh: Use $EXEEXT.
43394
43395 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43396
43397         update-copyright: update documentation to point to maint.mk
43398         * build-aux/update-copyright: Here.
43399
43400 2009-08-06  Jim Meyering  <meyering@redhat.com>
43401
43402         maint.mk: support update-copyright-local
43403         * top/maint.mk (update-copyright-local): Define place-holder.
43404         (update-copyright): Depend on $(update-copyright-local).
43405
43406 2009-08-06  Jim Meyering  <meyering@redhat.com>
43407
43408         selinux-at: new module
43409         Initially written for coreutils, this module will soon be
43410         used by findutils, too.
43411         * MODULES.html.sh [Misc]: Add selinux-at.
43412         * lib/selinux-at.h: New file, from coreutils.
43413         * lib/selinux-at.c: Likewise.
43414         * modules/selinux-at: Likewise.
43415         (License): Change from LGPL to GPL, since it depends
43416         on the GPL'd openat module.
43417
43418         doc: update README
43419         * README: Remove references to cogito.
43420         Remove cvs-repo-updating instructions from 2007.
43421         Don't imply that CVS is better if you have limited disk space.
43422
43423 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43424
43425         update-copyright: support C-style comments
43426         * build-aux/update-copyright: Implement and document.
43427         * tests/test-update-copyright.sh: Test.
43428
43429 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43430
43431         update-copyright: support omitted "(C)"
43432         * build-aux/update-copyright: Implement and document.  Also,
43433         allow variable whitespace before "(C)".
43434         * tests/test-update-copyright.sh: Test.
43435
43436 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43437
43438         update-copyright: don't trip on non-FSF copyright statements
43439         * build-aux/update-copyright: Fix so that the first correctly
43440         formatted FSF copyright statement is recognized no matter what
43441         appears before it.  Update documentation.
43442         * tests/test-update-copyright.sh: Test that.
43443
43444 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43445
43446         update-copyright: clean up code a little
43447         * build-aux/update-copyright: Append "_re" to the name of any
43448         variable holding a regular expression.
43449         Replace "old" and "new" with "stmt" in variable names.
43450         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43451         handled correctly.
43452         Format code more consistently.
43453
43454 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43455
43456         update-copyright-tests: improve portability
43457         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43458         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43459
43460 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43461
43462         update-copyright: support @copyright{} and &copy;
43463         * build-aux/update-copyright: Implement and document.
43464         * tests/test-update-copyright.sh: Test.
43465
43466 2009-08-04  Jim Meyering  <meyering@redhat.com>
43467
43468         update-copyright-tests: correctly test EOL=\r\n handling
43469         * tests/test-update-copyright.sh: Put \r at the end of some lines
43470         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43471
43472         maint.mk: make update-copyright exclusion list more configurable
43473         * top/maint.mk (update-copyright): Default to excluding COPYING,
43474         but allow an override, in case someone does want to update that file.
43475
43476         maint.mk: don't update copyright date in COPYING
43477         * top/maint.mk (update-copyright): Exclude COPYING.
43478
43479         maint.mk: add a copyright-updating rule
43480         * top/maint.mk (update-copyright): New rule.
43481         Derived from coreutils/Makefile.am.
43482
43483         update-copyright: rename some variables
43484         * build-aux/update-copyright: Rename a few variables for clarity.
43485         Tweak syntax.  List Joel E. Denny as coauthor.
43486
43487 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43488
43489         update-copyright: fix bug for 2-digit last year and add tests
43490         * build-aux/update-copyright: Fix bug.
43491         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43492         specified.
43493         * modules/update-copyright-tests: New
43494         * tests/test-update-copyright.sh: New.
43495
43496 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43497
43498         update-copyright: handle leading tabs in line prefix
43499         * build-aux/update-copyright: Count leading tabs as 8 spaces
43500         when computing margin.  This helps with the formatting of
43501         ChangeLogs, for example.
43502         Fix documentation a little.
43503
43504 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43505
43506         update-copyright: support EOL=\r\n
43507         * build-aux/update-copyright: Implement that.
43508
43509 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43510
43511         update-copyright: automatically format copyright statements
43512         * build-aux/update-copyright: Implement that.
43513         Also, be a little more predictable and safer by always failing
43514         when the full copyright format is not perfectly recognized as an
43515         unbroken whole.  Discussed at
43516         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43517         Rewrite documentation.
43518
43519 2009-08-03  Bruno Haible  <bruno@clisp.org>
43520
43521         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43522
43523 2009-08-02  Bruno Haible  <bruno@clisp.org>
43524
43525         Tests for module 'uname'.
43526         * modules/uname-tests: New file.
43527         * tests/test-uname.c: New file.
43528
43529         New module 'uname'.
43530         * lib/uname.c: New file.
43531         * m4/uname.m4: New file.
43532         * modules/uname: New file.
43533         * doc/posix-functions/uname.texi: Mention the new module.
43534
43535 2009-08-02  Bruno Haible  <bruno@clisp.org>
43536
43537         Tests for module 'sys_utsname'.
43538         * modules/sys_utsname-tests: New file.
43539         * tests/test-sys_utsname.c: New file.
43540
43541         New module 'sys_utsname'.
43542         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43543         * m4/sys_utsname_h.m4: New file.
43544         * modules/sys_utsname: New file.
43545         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43546
43547 2009-08-02  Bruno Haible  <bruno@clisp.org>
43548
43549         Implicitly initialize the sockets library.
43550         * lib/gethostname.c: Include sockets.h.
43551         (rpl_gethostname): Invoke gl_sockets_startup.
43552         * lib/socket.c: Include sockets.h.
43553         (rpl_socket): Invoke gl_sockets_startup.
43554         * modules/gethostname (Depends-on): Add sockets.
43555         * modules/socket (Depends-on): Likewise.
43556         * tests/test-poll.c: Don't include sockets.h.
43557         (main): Don't invoke gl_sockets_startup.
43558         * tests/test-select.c: Don't include sockets.h.
43559         (main): Don't invoke gl_sockets_startup.
43560
43561 2009-08-02  Bruno Haible  <bruno@clisp.org>
43562
43563         Allow multiple calls to gl_sockets_startup.
43564         * lib/sockets.c (initialized_sockets_version): New variable.
43565         (gl_sockets_startup): Do nothing if already called for this or a higher
43566         version.
43567         (gl_sockets_cleanup): Reset initialized_sockets_version.
43568
43569 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43570
43571         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43572         different project/version.
43573
43574 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43575             Bruno Haible  <bruno@clisp.org>
43576
43577         Tests for module 'pipe-filter-gi'.
43578         * modules/pipe-filter-gi-tests: New file.
43579         * tests/test-pipe-filter-gi1.sh: New file.
43580         * tests/test-pipe-filter-gi1.c: New file.
43581         * tests/test-pipe-filter-gi2.sh: New file.
43582         * tests/test-pipe-filter-gi2-main.c: New file.
43583         * tests/test-pipe-filter-gi2-child.c: New file.
43584
43585         New module 'pipe-filter-gi'.
43586         * lib/pipe-filter-gi.c: New file.
43587         * modules/pipe-filter-gi: New file.
43588
43589 2009-08-02  Bruno Haible  <bruno@clisp.org>
43590             Paolo Bonzini  <bonzini@gnu.org>
43591
43592         Tests for module 'pipe-filter-ii'.
43593         * modules/pipe-filter-ii-tests: New file.
43594         * tests/test-pipe-filter-ii1.sh: New file.
43595         * tests/test-pipe-filter-ii1.c: New file.
43596         * tests/test-pipe-filter-ii2.sh: New file.
43597         * tests/test-pipe-filter-ii2-main.c: New file.
43598         * tests/test-pipe-filter-ii2-child.c: New file.
43599
43600         New module 'pipe-filter-ii'.
43601         * lib/pipe-filter.h: New file.
43602         * lib/pipe-filter-ii.c: New file.
43603         * lib/pipe-filter-aux.h: New file.
43604         * modules/pipe-filter-ii: New file.
43605
43606 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43607
43608         * lib/gc-libgcrypt.c: Change copyright to FSF.
43609         * lib/gc-gnulib.c: Likewise.
43610
43611 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43612
43613         * lib/gethostname.c: Include limits.h.
43614
43615 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43616             Bruno Haible  <bruno@clisp.org>
43617
43618         Ensure HOST_NAME_MAX as part of the gethostname module.
43619         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43620         define also HOST_NAME_MAX.
43621         * tests/test-gethostname.c: Include <limits.h>.
43622         (main): Check also HOST_NAME_MAX.
43623         * doc/posix-headers/limits.texi: Document the mingw problem.
43624
43625 2009-08-02  Bruno Haible  <bruno@clisp.org>
43626
43627         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43628         Add comments.
43629
43630 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43631
43632         * lib/gethostname.c: Add Windows wrapper.
43633         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43634         * modules/gethostname: Depend on sys_socket & errno, for also
43635         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43636         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43637
43638 2009-07-31  Jim Meyering  <meyering@redhat.com>
43639
43640         getloadavg: fix symbol name in comment
43641         * lib/getloadavg.c: Correct a typo I introduced when adding
43642         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43643         Matt Kraai spotted the problem.
43644
43645 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43646
43647         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43648         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43649         code also if ! defined N_NAME_POINTER.
43650         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43651         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43652         but the n_name member is a 12-byte array.
43653
43654 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43655
43656         update-copyright: generalize comment handling
43657         * build-aux/update-copyright: Handle copyright statements
43658         within more comment styles.
43659         Document usage.
43660         Report any file with an external copyright holder or parse failure.
43661
43662 2009-07-29  Jim Meyering  <meyering@redhat.com>
43663
43664         mktime: correct setting of REPLACE_MKTIME
43665         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43666
43667         update-copyright: new module
43668         * modules/update-copyright: New file.
43669         * build-aux/update-copyright: New file.
43670         * MODULES.html.sh (maint+release support): Add update-copyright.
43671
43672 2009-07-27  Bruno Haible  <bruno@clisp.org>
43673
43674         Fix compilation error when <ctime> is used and mktime is replaced.
43675         * lib/time.in.h (mktime): New declaration.
43676         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43677         REPLACE_MKTIME instead of defining mktime in config.h.
43678         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43679         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43680         Reported by Ross McFarland <rwmcfa1@neces.com>.
43681
43682 2009-07-27  Bruno Haible  <bruno@clisp.org>
43683
43684         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43685         Reported by Matt Kraai <mkraai@beckman.com>.
43686
43687 2009-07-25  Jim Meyering  <meyering@redhat.com>
43688
43689         maint.mk: avoid warnings about missing files
43690         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43691         diagnostic when .prev-version does not exist.
43692         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43693         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43694         nonexistent cfg.mk.
43695         Suggestions from Simon Josefsson.
43696
43697 2009-07-25  Bruno Haible  <bruno@clisp.org>
43698
43699         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43700         defined as macros. Needed on QNX 6.4.1.
43701         Reported by Matt Kraai <mkraai@beckman.com>.
43702
43703 2009-07-23  Jim Meyering  <meyering@redhat.com>
43704
43705         maint.mk: invoke "make dist" with a working value of XZ_OPT
43706         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43707
43708 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43709
43710         Make fseeko.c compile on QNX.
43711         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43712
43713 2009-07-22  Peter Simons  <simons@cryp.to>
43714
43715         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43716         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43717         * lib/md4.h: Likewise.
43718         * lib/md5.h: Likewise.
43719         * lib/sha1.h: Likewise.
43720         * lib/sha256.h: Likewise.
43721         * lib/sha512.h: Likewise.
43722
43723         tests-sha1: don't assign literal string to 'char *' variable
43724         * tests/test-sha1.c (main): Declare locals with "const" to match
43725         attributes of the right hand side.
43726
43727 2009-07-21  Eric Blake  <ebb9@byu.net>
43728
43729         dup2: fix more mingw problems
43730         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43731         fd to itself.
43732         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43733         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43734         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43735         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43736         care of mingw bugs.
43737
43738 2009-07-21  Jim Meyering  <meyering@redhat.com>
43739
43740         vc-list-files: avoid failure when /bin/sh is dash
43741         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43742         On some Debian based systems, /bin/sh is a symlink to dash, and running
43743         this command would omit the "/" following each 'tests' prefix:
43744           dash -x build-aux/vc-list-files -C . tests
43745         That is because bash and dash work differently:
43746           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43747           bash ok
43748           dash odd
43749
43750 2009-07-21  Eric Blake  <ebb9@byu.net>
43751
43752         dup2-tests: test previous patch
43753         * modules/dup2-tests: New file.
43754         * tests/test-dup2.c: Likewise.
43755         * tests/test-open.c (main): Avoid unspecified behavior.
43756         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43757         test.
43758
43759         dup2: work around mingw and cygwin 1.5 bug
43760         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43762         * modules/unistd (Makefile.am): Substitute it.
43763         * lib/unistd.in.h (dup2): Declare the replacement.
43764         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43765         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43766         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43767         * modules/execute (Depends-on): Add dup2.
43768         * modules/fseterr (Depends-on): Likewise.
43769         * modules/pipe (Depends-on): Likewise.
43770         * modules/posix_spawn-internal (Depends-on): Likewise.
43771
43772 2009-07-21  Bruno Haible  <bruno@clisp.org>
43773
43774         * modules/.gitattributes: New file.
43775
43776 2009-07-20  Bruno Haible  <bruno@clisp.org>
43777
43778         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43779         (main): Use it.
43780
43781 2009-07-20  Eric Blake  <ebb9@byu.net>
43782
43783         test-pipe: make a bit more robust.
43784         * tests/test-pipe.c (myerr): Allow error messages regardless of
43785         what we do to stderr.
43786         (test_pipe): Rearrange to avoid deadlock.
43787         (child_main): Try a larger read, to ensure we avoided deadlock.
43788         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43789         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43790         if misused.
43791
43792 2009-07-19  Jim Meyering  <meyering@redhat.com>
43793
43794         fts: avoid false-positive cycle-detection
43795         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43796         for each new command line argument.
43797
43798 2009-07-19  Bruno Haible  <bruno@clisp.org>
43799
43800         Fix build error on mingw with the modules sys_select and unistd.
43801         * modules/acl-tests (Depends-on): Add close.
43802         * modules/binary-io-tests (Depends-on): Likewise.
43803         * modules/closein-tests (Depends-on): Likewise.
43804         * modules/flock-tests (Depends-on): Likewise.
43805         * modules/fsync-tests (Depends-on): Likewise.
43806         * modules/lseek-tests (Depends-on): Likewise.
43807         * modules/pipe-tests (Depends-on): Likewise.
43808         * modules/posix_spawn-tests (Depends-on): Likewise.
43809         * modules/posix_spawnp-tests (Depends-on): Likewise.
43810         * modules/stat-time-tests (Depends-on): Likewise.
43811         * modules/yesno-tests (Depends-on): Likewise.
43812
43813 2009-07-19  Bruno Haible  <bruno@clisp.org>
43814
43815         Unify conditionals.
43816         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43817         macros, not at the compiler macros.
43818         * lib/pipe.c: Likewise.
43819         * lib/execute.c: Likewise.
43820         * lib/spawni.c: Likewise.
43821
43822 2009-07-19  Bruno Haible  <bruno@clisp.org>
43823
43824         Fix handling of closed stdin/stdout/stderr on mingw.
43825         * lib/w32spawn.h: Include unistd.h.
43826         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43827         file descriptor with O_NOINHERIT flag.
43828         (fd_safer_noinherit): New function, based on fd-safer.c.
43829         (dup_safer_noinherit): New function, based on dup-safer.c.
43830         (undup_safer_noinherit): New function.
43831         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43832         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43833         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43834         instead of fd_safer.
43835         * tests/test-pipe.c: Include <windows.h>.
43836         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43837         result.
43838
43839         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43840         from main.
43841         (test_pipe): Pass an extra argument for disambiguation.
43842         (main): Invoke parent_main or child_main.
43843
43844         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43845         consistently.
43846
43847 2009-07-18  Eric Blake  <ebb9@byu.net>
43848
43849         test-pipe: fix mingw build
43850         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43851
43852 2009-07-18  Bruno Haible  <bruno@clisp.org>
43853
43854         * modules/pipe-tests (Makefile.am): Fix typo.
43855
43856 2009-07-18  Eric Blake  <ebb9@byu.net>
43857
43858         error: fix mingw build
43859         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43860         Reported by Bruno Haible.
43861
43862         error: avoid undefined use of stdout
43863         * lib/error.c (error, error_at_line): Check that fd 1 is open
43864         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43865         is handling faults and the close_stdout module wants to report the
43866         detection of closed stdout as an error.
43867
43868 2009-07-17  Eric Blake  <ebb9@byu.net>
43869
43870         pipe: be robust in face of closed fds
43871         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43872         should cause child to misbehave.
43873         * modules/pipe-tests: New module.
43874         * tests/test-pipe.c: New file.
43875         * tests/test-pipe.sh: New file.
43876         Reported by Akim Demaille.
43877
43878 2009-07-14  Bruno Haible  <bruno@clisp.org>
43879
43880         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43881         Reported by anonymous kc.
43882
43883 2009-07-07  Jim Meyering  <meyering@redhat.com>
43884
43885         maint.mk: don't look for translatable strings in *.m4 or *.mk
43886         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43887         when searching for translatable strings.
43888
43889 2009-07-05  Jim Meyering  <meyering@redhat.com>
43890
43891         remove superfluous parentheses in STREQ definition
43892         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43893         * lib/getugroups.c (STREQ): Likewise.
43894         * lib/fnmatch.c (STREQ): Likewise.
43895         Spotted by Bruno Haible.
43896
43897 2009-07-04  Jim Meyering  <meyering@redhat.com>
43898
43899         argv-iter: new module
43900         * MODULES.html.sh: Add argv-iter.
43901         * lib/argv-iter.c, lib/argv-iter.h: New files.
43902         * modules/argv-iter: New file.
43903         * modules/argv-iter-tests: New file.
43904         * tests/test-argv-iter.c: Test it.
43905
43906 2009-07-04  Bruno Haible  <bruno@clisp.org>
43907
43908         Fix assertion.
43909         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43910         contains more exact copies of a given entry than file2, leave the extra
43911         copies unpaired rather than aborting.
43912         Reported by Eric Blake.
43913
43914 2009-07-02  Bruno Haible  <bruno@clisp.org>
43915
43916         Speedup git-merge-changelog for git cherry-pick.
43917         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43918         (entries_mapping_get): New function, extracted from compute_mapping.
43919         (entries_mapping_reverse_get): New function.
43920         (compute_mapping): Add a 'full' argument. Return the result in a
43921         'struct entries_mapping'.
43922         (main): Update. Access the mappings through entries_mapping_get.
43923         Reported by Eric Blake.
43924
43925 2009-07-02  Bruno Haible  <bruno@clisp.org>
43926
43927         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43928         best_i.
43929
43930 2009-07-02  Bruno Haible  <bruno@clisp.org>
43931
43932         Speed up approximate search for matching ChangeLog entries.
43933         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43934         argument. Call fstrcmp_bounded instead of fstrcmp.
43935         (compute_mapping, try_split_merged_entry, main): Update callers.
43936
43937 2009-07-02  Bruno Haible  <bruno@clisp.org>
43938
43939         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43940
43941 2009-06-30  Bruno Haible  <bruno@clisp.org>
43942
43943         Reduce the number of uc_is_cased calls.
43944         * lib/unicase.h (casing_suffix_context_t): Add
43945         'first_char_except_ignorable' field.
43946         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43947         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43948         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43949         Update initializer.
43950         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43951         case-ignorable characters.
43952         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43953         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43954         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43955         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43956         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43957
43958 2009-06-30  Bruno Haible  <bruno@clisp.org>
43959
43960         Tests for module 'unicase/ignorable'.
43961         * modules/unicase/ignorable-tests: New file.
43962         * tests/unicase/test-ignorable.c: New file, generated by
43963         gen-uni-tables.
43964
43965         Tests for module 'unicase/cased'.
43966         * modules/unicase/cased-tests: New file.
43967         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43968         * tests/unicase/test-predicate-part1.h: New file, derived from
43969         tests/unictype/test-predicate-part1.h.
43970         * tests/unicase/test-predicate-part2.h: New file, same as
43971         tests/unictype/test-predicate-part2.h.
43972
43973         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43974         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43975         (output_casing_properties): New function.
43976         (main): Call it.
43977         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43978         * lib/unicase/cased.c: Include unictype/bitmap.h.
43979         (uc_is_cased): Define through a bitmap lookup.
43980         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43981         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43982         (uc_is_case_ignorable): Define through a bitmap lookup.
43983         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43984         lib/unictype/bitmap.h.
43985         (Depends-on): Add inline. Clean up.
43986         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43987         lib/unictype/bitmap.h.
43988         (Depends-on): Add inline. Clean up.
43989         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43990         recognition.
43991         * tests/unicase/test-u16-tolower.c (main): Likewise.
43992         * tests/unicase/test-u32-tolower.c (main): Likewise.
43993
43994 2009-06-30  Bruno Haible  <bruno@clisp.org>
43995
43996         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43997         * lib/unicase/u16-casemap.c: Likewise.
43998         * lib/unicase/u32-casemap.c: Likewise.
43999
44000 2009-06-29  Bruno Haible  <bruno@clisp.org>
44001
44002         Define u32_casefold as a wrapper around u32_ct_casefold.
44003         * lib/unicase/u32-casefold.c: Update.
44004         * modules/unicase/u32-casefold (Depends-on): Add
44005         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44006         unicase/empty-suffix-context. Clean up.
44007
44008         Define u16_casefold as a wrapper around u16_ct_casefold.
44009         * lib/unicase/u16-casefold.c: Update.
44010         * modules/unicase/u16-casefold (Depends-on): Add
44011         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44012         unicase/empty-suffix-context. Clean up.
44013
44014         Define u8_casefold as a wrapper around u8_ct_casefold.
44015         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44016         * lib/unicase/u8-casefold.c: Update.
44017         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44018         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44019
44020         Define u32_totitle as a wrapper around u32_ct_totitle.
44021         * lib/unicase/u32-totitle.c: Update.
44022         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44023         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44024
44025         Define u16_totitle as a wrapper around u16_ct_totitle.
44026         * lib/unicase/u16-totitle.c: Update.
44027         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44028         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44029
44030         Define u8_totitle as a wrapper around u8_ct_totitle.
44031         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44032         functions.
44033         (FUNC): Delegate to U_CT_TOTITLE.
44034         * lib/unicase/u8-totitle.c: Update.
44035         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44036         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44037
44038         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44039         invocation.
44040         * modules/unicase/u32-tolower (Depends-on): Add
44041         unicase/empty-prefix-context, unicase/empty-suffix-context.
44042
44043         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44044         invocation.
44045         * modules/unicase/u16-tolower (Depends-on): Add
44046         unicase/empty-prefix-context, unicase/empty-suffix-context.
44047
44048         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44049         * modules/unicase/u8-tolower (Depends-on): Add
44050         unicase/empty-prefix-context, unicase/empty-suffix-context.
44051
44052         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44053         invocation.
44054         * modules/unicase/u32-toupper (Depends-on): Add
44055         unicase/empty-prefix-context, unicase/empty-suffix-context.
44056
44057         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44058         invocation.
44059         * modules/unicase/u16-toupper (Depends-on): Add
44060         unicase/empty-prefix-context, unicase/empty-suffix-context.
44061
44062         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44063         * modules/unicase/u8-toupper (Depends-on): Add
44064         unicase/empty-prefix-context, unicase/empty-suffix-context.
44065
44066         New module 'unicase/u32-ct-casefold'.
44067         * lib/unicase/u32-ct-casefold.c: New file.
44068         * modules/unicase/u32-ct-casefold: New file.
44069
44070         New module 'unicase/u16-ct-casefold'.
44071         * lib/unicase/u16-ct-casefold.c: New file.
44072         * modules/unicase/u16-ct-casefold: New file.
44073
44074         New module 'unicase/u8-ct-casefold'.
44075         * lib/unicase/u8-ct-casefold.c: New file.
44076         * lib/unicase/u-ct-casefold.h: New file, derived from
44077         lib/unicase/u-casefold.h.
44078         * modules/unicase/u8-ct-casefold: New file.
44079
44080         New module 'unicase/u32-ct-totitle'.
44081         * lib/unicase/u32-ct-totitle.c: New file.
44082         * modules/unicase/u32-ct-totitle: New file.
44083
44084         New module 'unicase/u16-ct-totitle'.
44085         * lib/unicase/u16-ct-totitle.c: New file.
44086         * modules/unicase/u16-ct-totitle: New file.
44087
44088         New module 'unicase/u8-ct-totitle'.
44089         * lib/unicase/u8-ct-totitle.c: New file.
44090         * lib/unicase/u-ct-totitle.h: New file, derived from
44091         lib/unicase/u-totitle.h.
44092         * modules/unicase/u8-ct-totitle: New file.
44093
44094         New module 'unicase/u32-ct-tolower'.
44095         * lib/unicase/u32-ct-tolower.c: New file.
44096         * modules/unicase/u32-ct-tolower: New file.
44097
44098         New module 'unicase/u16-ct-tolower'.
44099         * lib/unicase/u16-ct-tolower.c: New file.
44100         * modules/unicase/u16-ct-tolower: New file.
44101
44102         New module 'unicase/u8-ct-tolower'.
44103         * lib/unicase/u8-ct-tolower.c: New file.
44104         * modules/unicase/u8-ct-tolower: New file.
44105
44106         New module 'unicase/u32-ct-toupper'.
44107         * lib/unicase/u32-ct-toupper.c: New file.
44108         * modules/unicase/u32-ct-toupper: New file.
44109
44110         New module 'unicase/u16-ct-toupper'.
44111         * lib/unicase/u16-ct-toupper.c: New file.
44112         * modules/unicase/u16-ct-toupper: New file.
44113
44114         New module 'unicase/u8-ct-toupper'.
44115         * lib/unicase/u8-ct-toupper.c: New file.
44116         * modules/unicase/u8-ct-toupper: New file.
44117
44118         Add context arguments to u*_casemap functions.
44119         * lib/unicase/unicasemap.h: Include unicase.h.
44120         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44121         suffix_context arguments.
44122         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44123         functions.
44124         (FUNC): Add prefix_context and suffix_context arguments. Use
44125         uc_is_cased and uc_is_case_ignorable.
44126         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44127         * lib/unicase/u16-casemap.c: Likewise.
44128         * lib/unicase/u32-casemap.c: Likewise.
44129         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44130         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44131         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44132         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44133         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44134         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44135
44136         New module 'unicase/u32-suffix-context'.
44137         * lib/unicase/u32-suffix-context.c: New file.
44138         * modules/unicase/u32-suffix-context: New file.
44139
44140         New module 'unicase/u16-suffix-context'.
44141         * lib/unicase/u16-suffix-context.c: New file.
44142         * modules/unicase/u16-suffix-context: New file.
44143
44144         New module 'unicase/u8-suffix-context'.
44145         * lib/unicase/u8-suffix-context.c: New file.
44146         * lib/unicase/u-suffix-context.h: New file.
44147         * modules/unicase/u8-suffix-context: New file.
44148
44149         New module 'unicase/empty-suffix-context'.
44150         * lib/unicase/empty-suffix-context.c: New file.
44151         * modules/unicase/empty-suffix-context: New file.
44152
44153         New module 'unicase/u32-prefix-context'.
44154         * lib/unicase/u32-prefix-context.c: New file.
44155         * modules/unicase/u32-prefix-context: New file.
44156
44157         New module 'unicase/u16-prefix-context'.
44158         * lib/unicase/u16-prefix-context.c: New file.
44159         * modules/unicase/u16-prefix-context: New file.
44160
44161         New module 'unicase/u8-prefix-context'.
44162         * lib/unicase/u8-prefix-context.c: New file.
44163         * lib/unicase/u-prefix-context.h: New file.
44164         * lib/unicase/context.h: New file.
44165         * modules/unicase/u8-prefix-context: New file.
44166
44167         New module 'unicase/empty-prefix-context'.
44168         * lib/unicase/empty-prefix-context.c: New file.
44169         * modules/unicase/empty-prefix-context: New file.
44170
44171         New module 'unicase/ignorable'.
44172         * lib/unicase/ignorable.c: New file.
44173         * modules/unicase/ignorable: New file.
44174
44175         New module 'unicase/cased'.
44176         * lib/unicase/caseprop.h: New file.
44177         * lib/unicase/cased.c: New file.
44178         * modules/unicase/cased: New file.
44179
44180         New functions for case mapping of substrings.
44181         * lib/unicase.h (casing_prefix_context_t): New type.
44182         (unicase_empty_prefix_context): New variable.
44183         (u8_casing_prefix_context, u16_casing_prefix_context,
44184         u32_casing_prefix_context, u8_casing_prefixes_context,
44185         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44186         declarations.
44187         (casing_suffix_context_t): New type.
44188         (unicase_empty_suffix_context): New variable.
44189         (u8_casing_suffix_context, u16_casing_suffix_context,
44190         u32_casing_suffix_context, u8_casing_suffixes_context,
44191         u16_casing_suffixes_context, u32_casing_suffixes_context,
44192         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44193         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44194         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44195         declarations.
44196
44197 2009-06-28  Jim Meyering  <meyering@redhat.com>
44198
44199         boostrap: indent only with spaces
44200         * build-aux/bootstrap: Indent only with spaces, never TABs.
44201
44202         bootstrap: split long lines
44203         * build-aux/bootstrap: Keep line length < 80.
44204
44205         bootstrap: sync from coreutils
44206         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44207         just as autoreconf does.  Verify a list of prerequisite
44208         package-name,version-number pairs if defined in bootstrap.conf.
44209         Refer to README-prereq, if prerequisites are not satisfied.
44210
44211 2009-06-27  Eric Blake  <ebb9@byu.net>
44212
44213         tests: add test for bogus NULL definition
44214         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44215         * tests/test-stdlib.c: Likewise.
44216         * tests/test-string.c: Likewise.
44217         * tests/test-locale.c: Likewise.
44218         * tests/test-unistd.c: Likewise.
44219         * modules/stdio-tests (Depends-on): Add verify.
44220         * modules/stdlib-tests (Depends-on): Likewise.
44221         * modules/string-tests (Depends-on): Likewise.
44222         * modules/locale-tests (Depends-on): Likewise.
44223         * modules/unistd-tests (Depends-on): Likewise.
44224
44225 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44226
44227         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44228         self-explaining comment.
44229         * m4/selinux-selinux-h: Update serial.
44230         (gl_LIBSELINUX): New macro, adding a warning for missing development
44231         packages to code extracted from...
44232         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44233         Add warning for missing development packages here, too.
44234
44235 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44236
44237         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44238
44239 2009-06-25  Eric Blake  <ebb9@byu.net>
44240
44241         version-etc: fix regression
44242         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44243         gcc.
44244         (version_etc): Use it, to catch bugs with trailing NULL.
44245         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44246         (version_etc_va): Fix logic bug.
44247         * modules/version-etc-tests: Add test.
44248         * tests/test-version-etc.c: New file.
44249         * tests/test-version-etc.sh: Likewise.
44250
44251 2009-06-25  Sam Steingold  <sds@gnu.org>
44252
44253         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44254         mbtowc declaration.
44255
44256 2009-06-25  Eric Blake  <ebb9@byu.net>
44257
44258         fpurge: migrate into <stdio.h>
44259         * lib/fpurge.h: Delete...
44260         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44261         * lib/fpurge.c (fpurge): Change declaring header.
44262         * modules/fpurge (Files): Drop deleted file.
44263         (Depends-on): Add stdio.
44264         (configure.ac): Set witness.
44265         * modules/stdio (Makefile.am): Support fpurge macros.
44266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44267         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44268         * lib/fflush.c: Update client.
44269         * tests/test-fpurge.c: Likewise.
44270         * NEWS: Mention the change.
44271
44272 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44273
44274         * lib/argp-version-etc.c (program_authors): Add const
44275         qualifier.
44276         * lib/version-etc.c: Fix typos in the comments.
44277         * modules/argp-version-etc: Depends on version-etc.
44278
44279 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44280
44281         argp-version-etc: new module.
44282
44283         * lib/argp-version-etc.c: New file.
44284         * lib/argp-version-etc.h: New file.
44285         * modules/argp-version-etc: New file.
44286         * modules/argp-version-etc-tests: New file.
44287         * tests/test-argp-version-etc.c: New test.
44288         * tests/test-argp-version-etc-1.sh: New test.
44289
44290 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44291
44292         Provide additional interfaces and documentation for version-etc
44293         module.
44294
44295         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44296         interfaces.
44297         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44298         prototypes.
44299
44300 2009-06-24  Bruno Haible  <bruno@clisp.org>
44301
44302         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44303         HAVE_LIB${NAME} macro.
44304         Reported by Sam Steingold <sds@gnu.org>.
44305
44306 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44307
44308         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44309         needed.
44310
44311 2009-06-21  Bruno Haible  <bruno@clisp.org>
44312
44313         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44314         work.
44315         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44316         together with LIB${NAME}, LTLIB${NAME}.
44317         Reported by Sam Steingold <sds@gnu.org>.
44318
44319 2009-06-20  Jim Meyering  <meyering@redhat.com>
44320
44321         tests: make sc_require_test_exit_idiom more generic
44322         * top/maint.mk (Exit_witness_file): New overridable variable.
44323         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44324         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44325
44326 2009-06-19  Jim Meyering  <meyering@redhat.com>
44327
44328         hash: reverse order of src/dst parameters in an internal interface
44329         * lib/hash.c (transfer_entries): Reverse order of parameters to
44330         put DST before SRC.  Adjust callers.
44331
44332         tests: test-hash: avoid wholesale duplication
44333         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44334         Instead, use a loop and add a single conditional.
44335
44336         tests: test-hash: allow seed selection via a command line argument
44337         * tests/test-hash.c (get_seed): New function.
44338         (main): Use it.
44339
44340 2009-06-19  Eric Blake  <ebb9@byu.net>
44341
44342         hash: avoid memory leak on allocation failure
44343         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44344         failure.  Factor repeated algorithm...
44345         (transfer_entries): ...into new helper routine.
44346         (hash_delete): React to hash_rehash return value.
44347
44348         hash: reduce memory pressure in hash_rehash no-op case
44349         * lib/hash.c (next_prime): Avoid overflow.
44350         (hash_initialize): Factor bucket size computation...
44351         (compute_bucket_size): ...into new helper function.
44352         (hash_rehash): Use new function and open coding to reduce memory
44353         pressure, and avoid a memory leak in USE_OBSTACK code.
44354         Reported by Jim Meyering.
44355
44356 2009-06-18  Eric Blake  <ebb9@byu.net>
44357
44358         hash: make rotation more obvious
44359         * modules/hash (Depends-on): Add bitrotate and stdint.
44360         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44361         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44362         (SIZE_MAX): Rely on headers for definition.
44363         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44364         (raw_hasher): Use rotr_sz.
44365         Suggested by Jim Meyering.
44366
44367         hash: fix memory leak in last patch
44368         * lib/hash.c (hash_rehash): Avoid memory leak.
44369
44370         hash: avoid no-op rehashing
44371         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44372
44373         hash: provide default callback functions
44374         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44375         (hash_initialize): Use them as defaults.
44376         * tests/test-hash.c (main): Test this.
44377
44378         hash: minor optimization
44379         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44380         when possible.
44381         (hash_initialize): Document this promise.
44382         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44383         * tests/test-hash.c (hash_compare_strings): Test this.
44384
44385 2009-06-18  Bruno Haible  <bruno@clisp.org>
44386
44387         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44388         going to be replaced anyway.
44389
44390 2009-06-18  Bruno Haible  <bruno@clisp.org>
44391
44392         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44393         in one place.
44394         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44395         be replaced anyway.
44396
44397 2009-06-18  Eric Blake  <ebb9@byu.net>
44398
44399         hash: check for resize before insertion
44400         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44401         threshold before insertion, so that a pathological hash_rehash
44402         that fills every bucket can still trigger another rehash.
44403
44404 2009-06-18  Jim Meyering  <meyering@redhat.com>
44405
44406         hash-tests: add a loop around the small tests
44407         * tests/test-hash.c (main): Repeat small tests with selected
44408         small initial table sizes.
44409
44410 2009-06-17  Eric Blake  <ebb9@byu.net>
44411
44412         hash: minor cleanups
44413         * lib/hash.h (hash_entry): Make opaque, by moving...
44414         * lib/hash.c (hash_entry): ...here.
44415         (hash_insert): Clarify restrictions on what can be inserted.
44416         (hash_get_next): Clarify when it is safe to remove an element
44417         during traversal.
44418         (check_tuning): Skip verification when tuning is known safe.
44419         (hash_initialize): Clarify restrictions on tuning.
44420
44421 2009-06-17  Jim Meyering  <jim@meyering.net>
44422         and Eric Blake  <ebb9@byu.net>
44423
44424         hash-tests: new module
44425         * modules/hash-tests: New file.
44426         * tests/test-hash.c: New file.
44427
44428 2009-06-17  Eric Blake  <ebb9@byu.net>
44429
44430         strstr-simple: document new module
44431         * MODULES.html.sh: Document new module.
44432
44433         strstr, strcasestr: replace on platforms with broken memchr
44434         * modules/strstr: Split into...
44435         * modules/strstr-simple: ...new module that does not care about
44436         performance, but does care about glibc bug.
44437         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44438         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44439         if platform memchr is broken, per Debian bug 521737.
44440         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44441         memchr.
44442         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44443         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44444         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44445         * modules/mountlist (Depends-on): Add strstr-simple.
44446         * modules/gen-uni-tables (Depends-on): Likewise.
44447         * modules/argz (Depends-on): Add strstr.
44448
44449 2009-06-17  Bruno Haible  <bruno@clisp.org>
44450
44451         * modules/posix_spawn-internal (Depends-on): Add errno.
44452
44453 2009-06-17  Bruno Haible  <bruno@clisp.org>
44454
44455         Define missing ESTALE on Interix 3.5.
44456         * lib/errno.in.h (ESTALE): Assign a value if missing.
44457         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44458         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44459         missing.
44460         * doc/posix-headers/errno.texi: Mention the Interix bug.
44461         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44462
44463 2009-06-15  Eric Blake  <ebb9@byu.net>
44464
44465         memchr, memchr2: add valgrind exception
44466         * lib/memchr.valgrind: New file.
44467         * lib/memchr2.valgrind: New file.
44468         * modules/memchr (Files): Distribute valgrind file.
44469         * modules/memchr2 (Files): Likewise.
44470
44471         docs: memchr is no longer obsolete
44472         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44473         * lib/string.in.h (memchr): Simplify logic.
44474
44475 2009-06-14  Jim Meyering  <meyering@redhat.com>
44476
44477         link-follow: fix the "checking..." message to not mention trailing slash
44478         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44479         never considered trailing slashes.
44480
44481 2009-06-14  Bruno Haible  <bruno@clisp.org>
44482
44483         * m4/memchr.m4: Mention also the bug on IA-64.
44484         * doc/posix-functions/memchr.texi: Likewise.
44485
44486 2009-06-12  Eric Blake  <ebb9@byu.net>
44487
44488         memchr: detect broken x86_64 and alpha implementations
44489         * modules/memchr-tests (Depends-on): Move mmap detection...
44490         * modules/memchr (Depends-on): ...here.
44491         (configure.ac): Set indicator.
44492         * lib/string.in.h (memchr): Declare replacement.
44493         * modules/string (Makefile.am): Trigger replacement.
44494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44495         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44496         bugs.
44497         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44498         * modules/getpagesize (License): Relax license.
44499
44500 2009-06-11  Bruno Haible  <bruno@clisp.org>
44501
44502         * lib/idpriv.h: Add more references.
44503
44504 2009-06-08  Bruno Haible  <bruno@clisp.org>
44505
44506         Tests for module 'idpriv-droptemp'.
44507         * modules/idpriv-droptemp-tests: New file.
44508         * tests/test-idpriv-droptemp.sh: New file.
44509         * tests/test-idpriv-droptemp.su.sh: New file.
44510         * tests/test-idpriv-droptemp.c: New file.
44511
44512         New module 'idpriv-droptemp'.
44513         * lib/idpriv-droptemp.c: New file.
44514         * modules/idpriv-droptemp: New file.
44515
44516 2009-06-08  Bruno Haible  <bruno@clisp.org>
44517
44518         Tests for module 'idpriv-drop'.
44519         * modules/idpriv-drop-tests: New file.
44520         * tests/test-idpriv-drop.sh: New file.
44521         * tests/test-idpriv-drop.su.sh: New file.
44522         * tests/test-idpriv-drop.c: New file.
44523
44524         New module 'idpriv-drop'.
44525         * lib/idpriv.h: New file.
44526         * lib-idpriv-drop.c: New file.
44527         * m4/idpriv.m4: New file.
44528         * modules/idpriv-drop: New file.
44529
44530 2009-06-08  Bruno Haible  <bruno@clisp.org>
44531
44532         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44533         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44534         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44535         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44536         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44537         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44538         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44539
44540 2009-06-08  Eric Blake  <ebb9@byu.net>
44541
44542         test-strstr: use memory fence, when possible
44543         * tests/test-strstr.c (main): Use memory fence, in order to be
44544         more likely to trigger Debian bug 521737.
44545         * modules/strstr-tests (Files): Pull in additional files.
44546
44547         memchr: no longer obsolete, for wider field testing
44548         * modules/memchr (Status, Notice): Delete, this module is no
44549         longer obsolete.
44550         * modules/vasnprintf (Depends-on): Add memchr.
44551
44552 2009-06-07  Jim Meyering  <meyering@redhat.com>
44553
44554         hash: declare some functions with the warn_unused_result attribute
44555         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44556
44557 2009-06-07  Bruno Haible  <bruno@clisp.org>
44558
44559         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44560         Reported by Eric Blake.
44561
44562 2009-06-06  Eric Blake  <ebb9@byu.net>
44563
44564         test-alignof: fix typo with long double
44565         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44566         compiler error.
44567
44568 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44569
44570         Escape non-texinfo { and }s.
44571         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44572         markup error.
44573
44574 2009-06-04  Jim Meyering  <meyering@redhat.com>
44575
44576         gitlog-to-changelog: don't infloop on an empty commit log
44577         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44578         Reported by Boris Petersen <transacid@centerim.org>.
44579
44580 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44581
44582         version-etc: extend for packagers
44583         Add three new configure options, intended for packagers:
44584           --with-packager="packager name"
44585           --with-packager-version="packager-specific version"
44586           --with-packager-bug-reports="packager bug reporting"
44587         An example with coreutils:
44588           $ ./configure \
44589             --with-packager=Gentoo \
44590             --with-packager-bug-report=http://bugs.gentoo.org/ \
44591             --with-packager-version="patchset 1.6"
44592           $ ./src/ls --version | head -n2
44593           ls (GNU coreutils) 7.1-dirty
44594           Packaged by Gentoo (patchset 1.6)
44595         Note that the bug reporting info via --help doesn't show up because
44596         coreutils uses its own custom emit_bug_reporting_address() implementation
44597         in src/system.h.  If it didn't, it'd look like:
44598           $ ./src/ls --help | tail -n4
44599           Report bugs to <bug-coreutils@gnu.org>.
44600           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44601           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44602           General help using GNU software: <http://www.gnu.org/gethelp/>.
44603         * lib/version-etc.c: Print new information, if provided.
44604         * m4/version-etc.m4: New file.
44605         * modules/version-etc (Files): Add m4/version-etc.m4.
44606         (configure.ac): Add gl_VERSION_ETC.
44607
44608 2009-05-31  Bruno Haible  <bruno@clisp.org>
44609
44610         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44611         and 'int64_t'.
44612         * modules/alignof-tests (Dependencies): Add stdint.
44613         Reported by Eric Blake.
44614
44615 2009-05-31  Bruno Haible  <bruno@clisp.org>
44616
44617         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44618         restriction due to compiler bugs.
44619         Reported by Eric Blake.
44620
44621 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44622             Bruno Haible  <bruno@clisp.org>
44623
44624         Fix test-alignof failure.
44625         * lib/alignof.h (alignof_slot): New macro.
44626         (alignof_type): New macro, with the same semantics as the previous
44627         'alignof'.
44628         (alignof): Alias to alignof_slot.
44629         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44630         check that the results are usable as constant expressions.
44631
44632 2009-05-31  Bruno Haible  <bruno@clisp.org>
44633
44634         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44635         * tests/test-memchr.c (main): Check that memchr does not read past the
44636         first occurrence of the byte.
44637         * tests/test-strstr.c (main): Update comment.
44638         Suggested by Eric Blake.
44639
44640 2009-05-30  Bruno Haible  <bruno@clisp.org>
44641
44642         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44643         detail how to use dumpbin.
44644         Reported by David Byron <dbyron@dbyron.com>.
44645
44646 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44647
44648         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44649
44650 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44651
44652         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44653
44654 2009-05-28  Bruno Haible  <bruno@clisp.org>
44655
44656         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44657         build-aux/ files.
44658
44659 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44660
44661         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44662
44663 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44664
44665         * gnulib-tool (sed_transform_main_lib_file)
44666         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44667         regexps.
44668
44669 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44670
44671         * tests/test-strstr.c: Add another self-test.
44672         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44673         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44674
44675 2009-05-23  Bruno Haible  <bruno@clisp.org>
44676
44677         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44678         change.
44679
44680 2009-05-21  Bruno Haible  <bruno@clisp.org>
44681
44682         Simplify use of mode_t varargs.
44683         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44684         uses 'mode_t' or 'int'.
44685         * lib/openat.c (openat): Likewise.
44686         * lib/open-safer.c (open_safer): Likewise.
44687         * m4/mode_t.m4: New file.
44688         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44689         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44690         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44691         * modules/open (Files): Add m4/mode_t.m4.
44692         * modules/openat (Files): Likewise.
44693         * modules/fcntl-safer (Files): Likewise.
44694         Suggested by Eric Blake.
44695
44696 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44697
44698         * doc/glibc-functions/fallocate.texi: New file.
44699         * doc/gnulib.texi: Include it.
44700
44701 2009-05-21  Eric Blake  <ebb9@byu.net>
44702             Bruno Haible  <bruno@clisp.org>
44703
44704         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44705         invocations.
44706         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44707
44708 2009-05-21  Eric Blake  <ebb9@byu.net>
44709             Bruno Haible  <bruno@clisp.org>
44710
44711         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44712         include_next. Fix of 2008-11-20 commit.
44713         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44714         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44715         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44716         NEXT_MATH_H.
44717         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44718         instead of NEXT_MATH_H.
44719
44720 2009-05-21  Bruno Haible  <bruno@clisp.org>
44721
44722         Avoid redefinition warnings for SIZE_MAX.
44723         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44724         Reported by Simon Josefsson.
44725
44726 2009-05-21  Bruno Haible  <bruno@clisp.org>
44727
44728         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44729         AC_CACHE_VAL.
44730
44731 2009-05-20  Bruno Haible  <bruno@clisp.org>
44732
44733         Make zeroptr.h work on mingw.
44734         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44735         mprotect.
44736         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44737         * modules/memchr2-tests (configure.ac): Likewise.
44738         * modules/memcmp-tests (configure.ac): Likewise.
44739         * modules/memmem-tests (configure.ac): Likewise.
44740         * modules/memrchr-tests (configure.ac): Likewise.
44741         Reported by Simon Josefsson.
44742
44743 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44744
44745         * tests/test-glob.c: Include string.h for strcmp prototype.
44746
44747 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44748
44749         * modules/getdelim (Depends-on): Add explicit stdint, although it
44750         was implicitly already pulled in via realloc-posix.
44751         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44752
44753 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44754
44755         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44756         G. Christensen" <tgc@jupiterrise.com>.
44757         * m4/sys_socket_h.m4: Check for sa_family_t.
44758         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44759         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44760         * tests/test-sys_socket.c: Check that sa_family_t works.
44761
44762 2009-05-18  Eric Blake  <ebb9@byu.net>
44763
44764         maint.mk: allow gnulib_dir in VPATH build
44765         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44766
44767 2009-05-15  Jim Meyering  <meyering@redhat.com>
44768
44769         maint.mk: Give gnulib_dir a default definition.
44770         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44771         Thus, most packages no longer need to specify this variable in cfg.mk
44772
44773 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44774
44775         rename.m4: fix typos that would make non-mingw cross-configure fail
44776         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44777
44778 2009-05-13  Eric Blake  <ebb9@byu.net>
44779
44780         mmap-anon: avoid out-of-order autoconf expansion
44781         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44782         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44783         * modules/memchr-tests (Depends-on): Add extensions.
44784         * modules/memchr2-tests (Depends-on): Add extensions.
44785         * modules/memcmp-tests (Depends-on): Add extensions.
44786         * modules/memmem-tests (Depends-on): Add extensions.
44787         * modules/memrchr-tests (Depends-on): Add extensions.
44788
44789 2009-05-13  Bruno Haible  <bruno@clisp.org>
44790
44791         Make some tests ISO C 99 compliant.
44792         * tests/zerosize-ptr.h: New file.
44793         * tests/test-memchr.c: Include zerosize-ptr.h.
44794         (main): Use a zero-size object pointer instead of NULL.
44795         * tests/test-memchr2.c: Include zerosize-ptr.h.
44796         (main): Use a zero-size object pointer instead of NULL.
44797         * tests/test-memcmp.c: Include zerosize-ptr.h.
44798         (main): Use a zero-size object pointer instead of NULL.
44799         * tests/test-memmem.c: Include zerosize-ptr.h.
44800         (main): Use a zero-size object pointer instead of NULL.
44801         * tests/test-memrchr.c: Include zerosize-ptr.h.
44802         (main): Use a zero-size object pointer instead of NULL.
44803         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44804         m4/mmap-anon.m4.
44805         (Depends-on): Add getpagesize.
44806         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44807         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44808         m4/mmap-anon.m4.
44809         (Depends-on): Add getpagesize.
44810         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44811         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44812         m4/mmap-anon.m4.
44813         (Depends-on): Add getpagesize.
44814         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44815         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44816         m4/mmap-anon.m4.
44817         (Depends-on): Add getpagesize.
44818         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44819         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44820         m4/mmap-anon.m4.
44821         (Depends-on): Add getpagesize.
44822         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44823
44824 2009-05-12  Bruno Haible  <bruno@clisp.org>
44825
44826         Tests for module 'alignof'.
44827         * modules/alignof-tests: New file.
44828         * tests/test-alignof.c: New file.
44829
44830 2009-05-12  Bruno Haible  <bruno@clisp.org>
44831
44832         Fix alignof macro.
44833         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44834         vendor compilers that are always correct.
44835
44836 2009-05-12  Bruno Haible  <bruno@clisp.org>
44837
44838         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44839         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44840         not whether its fully works.
44841
44842 2009-05-12  Bruno Haible  <bruno@clisp.org>
44843
44844         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44845
44846 2009-05-12  Jim Meyering  <meyering@redhat.com>
44847
44848         * top/maint.mk: Adjust backslash alignment.
44849
44850 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44851
44852         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44853
44854 2009-05-11  Eric Blake  <ebb9@byu.net>
44855
44856         argp: avoid undefined behavior
44857         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44858         macros.
44859
44860 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44861
44862         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44863         user.name to prevent git commit from complaining.
44864
44865 2009-05-10  Bruno Haible  <bruno@clisp.org>
44866
44867         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44868         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44869         it rewrites every file name only once.
44870         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44871
44872 2009-05-08  Bruno Haible  <bruno@clisp.org>
44873
44874         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44875         instead of 'max'.
44876
44877 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44878
44879         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44880         sockaddr_storage test.
44881
44882 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44883
44884         * modules/sys_socket (Makefile.am): Substitute
44885         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44886         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44887         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44888         * tests/test-sys_socket.c: Check sockaddr_storage.
44889
44890 2009-05-08  Bruno Haible  <bruno@clisp.org>
44891
44892         New module 'alignof'.
44893         * lib/alignof.h: New file.
44894         * modules/alignof: New file.
44895
44896 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44897             Bruno Haible  <bruno@clisp.org>
44898
44899         Fix test-file-has-acl on FreeBSD.
44900         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44901         mask is implicitly added.
44902         * tests/test-file-has-acl.c: Include <signal.h>.
44903         (main): Terminate the test after 5 seconds.
44904         * modules/acl-tests (configure.ac): Check for alarm function.
44905
44906 2009-05-04  Bruno Haible  <bruno@clisp.org>
44907
44908         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44909         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44910         * modules/errno (configure.ac): Drop AC_REQUIRE.
44911         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44912         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44913
44914 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44915
44916         * modules/glob-tests: New module.
44917         * tests/test-glob.c: Add.
44918
44919 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44920
44921         * modules/fnmatch-tests: New module.
44922         * tests/test-fnmatch.c: Add.
44923
44924 2009-05-04  Eric Blake  <ebb9@byu.net>
44925
44926         maint: make the new no-submodule-changes rule VPATH-safe
44927         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44928
44929 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44930             Bruno Haible  <bruno@clisp.org>
44931
44932         acl: Fix infinite loop on FreeBSD.
44933         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44934         of return value from acl_get_entry.
44935         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44936         Likewise.
44937
44938 2009-05-03  Bruno Haible  <bruno@clisp.org>
44939
44940         * lib/acl-internal.h (acl_entries): Clarify return value.
44941         * lib/acl_entries.c (acl_entries): Likewise.
44942
44943 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44944
44945         Bug fix in acl module.
44946         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44947
44948 2009-05-03  Bruno Haible  <bruno@clisp.org>
44949
44950         Create gperf-generated file in the source dir, not in the build dir.
44951         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44952         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44953         * modules/unicase/locale-language (unicase/locale-languages.h):
44954         Likewise.
44955         * modules/unicase/special-casing (unicase/special-casing-table.h):
44956         Likewise.
44957         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44958         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44959         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44960         Reported by Ralf Wildenhues.
44961
44962 2009-05-03  Bruno Haible  <bruno@clisp.org>
44963
44964         * modules/fnmatch (Description, configure.ac): Taken from
44965         fnmatch-posix.
44966         * modules/fnmatch-posix: Turn into a symbolic reference to the
44967         'fnmatch' module, and deprecate.
44968         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44969
44970 2009-05-03  Bruno Haible  <bruno@clisp.org>
44971
44972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44973         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44974         Reported by Ralf Wildenhues.
44975
44976 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44977
44978         * m4/fnmatch.m4: Fix fnmatch re-define.
44979
44980 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44981
44982         priv-set: new module and tests; adapt write-any-file
44983         * lib/priv-set.c: New file.
44984         * lib/priv-set.h: New file.
44985         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44986         * lib/write-any-file.c: Simplify by using priv-set module.
44987         * m4/priv-set.m4: New file.
44988         * modules/priv-set: New file.
44989         * modules/unlinkdir: Add dependency on priv-set module.
44990         * modules/write-any-file: Likewise.
44991
44992         Tests for module 'priv-set'.
44993         * modules/priv-set-tests: New file.
44994         * tests/test-priv-set.c: New file.
44995
44996 2009-05-03  Jim Meyering  <meyering@redhat.com>
44997             Bruno Haible  <bruno@clisp.org>
44998
44999         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45000         use the converted UTF-8 variant of the name instead.
45001
45002 2009-05-03  Jim Meyering  <meyering@redhat.com>
45003
45004         tests: tighten some getdate tests
45005         * tests/test-getdate.c (main): Tighten tests: require equality,
45006         not just greater than.  Set TZ envvar to UTC0.
45007
45008 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45009
45010         getdate: correctly interpret "next monday" when run on a Monday
45011         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45012         that e.g., "next tues" (when run on a tuesday) results in a date
45013         that is one week in the future, and not today's date.
45014         I.e., add a week when the wday is the same as the current one.
45015         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45016         and earlier by Martin Bernreuther and Jan Minář.
45017         * tests/test-getdate.c (main): Check that "next DAY" is always in
45018         the future and that "last DAY" is always in the past.
45019
45020 2009-05-02  Jim Meyering  <meyering@redhat.com>
45021
45022         build: ensure that a release build fails when a submodule is unclean
45023         * top/maint.mk (no-submodule-changes): New rule.
45024         (alpha beta major): Depend on it.
45025
45026 2009-05-02  Bruno Haible  <bruno@clisp.org>
45027
45028         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45029         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45030         shell variable gl_fnmatch_required to detect which variant is
45031         requested.
45032         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45033         gl_FUNC_FNMATCH_POSIX.
45034         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45035         exclude fnmatch-posix.
45036
45037 2009-05-02  Bruno Haible  <bruno@clisp.org>
45038
45039         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45040         * modules/mbsrtowcs (License): Change to LGPLv2+.
45041         * modules/strnlen1 (License): Likewise.
45042         Reported by Simon Josefsson.
45043
45044 2009-05-02  Bruno Haible  <bruno@clisp.org>
45045
45046         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45047         "cross".
45048         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45049         gnulib-tool was called with option --source-base=lib.
45050
45051 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45052
45053         Use automake *-local hooks without commands, for extensibility.
45054         * modules/localcharset (Makefile.am): Rename install-exec-local
45055         rule to install-exec-localcharset, and make it a prerequisite of
45056         install-exec-local.  Likewise, rename the uninstall-local rule to
45057         uninstall-localcharset, and make it a prerequisite of the former.
45058
45059 2009-05-01  Bruno Haible  <bruno@clisp.org>
45060
45061         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45062         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45063         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45065         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45066         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45067         m4/locale-zh.m4, m4/codeset.m4.
45068
45069         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45070         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45071         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45072         m4/locale-zh.m4.
45073
45074         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45075         REPLACE_WCRTOMB if mbstate_t must be replaced.
45076         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45077         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45078
45079 2009-05-01  Bruno Haible  <bruno@clisp.org>
45080
45081         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45082         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45083         dngettext, dcngettext, textdomain, bindtextdomain,
45084         bind_textdomain_codeset): Undefine before redefining.
45085
45086 2009-04-30  Bruno Haible  <bruno@clisp.org>
45087
45088         Fix bug introduced on 2009-04-25.
45089         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45090         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45091         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45092         is defined.
45093         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45094         is defined.
45095         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45096         is defined.
45097         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45098
45099 2009-04-28  Bruno Haible  <bruno@clisp.org>
45100
45101         Comment tweaks.
45102         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45103         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45104         * lib/unicase.h (u*_casexfrm): Likewise.
45105         Reported by Paolo Bonzini.
45106
45107 2009-04-28  Bruno Haible  <bruno@clisp.org>
45108
45109         Fix a compilation error.
45110         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45111         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45112         Reported by Jim Meyering.
45113
45114 2009-04-27  Bruno Haible  <bruno@clisp.org>
45115
45116         New module 'libunistring'.
45117         * modules/libunistring: New file.
45118         * m4/libunistring.m4: New file.
45119         * MODULES.html.sh (Unicode string functions): Add it.
45120
45121 2009-04-27  Eric Blake  <ebb9@byu.net>
45122
45123         maint.mk: allow package-specific header to provide <config.h>
45124         * top/maint.mk (sc_require_config_h): New variable.
45125         (sc_require_config_h, sc_require_config_h_first): Use it.
45126
45127 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45128
45129         * top/maint.mk (sc_avoid_if_before_free): Except
45130         useless-if-before-free script.
45131
45132 2009-04-27  Eric Blake  <ebb9@byu.net>
45133
45134         maintainer-makefile: depend on all required helper scripts
45135         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45136         useless-if-before-free.
45137         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45138         version, rather than assuming gnulib checkout is available.
45139         Reported by Simen Josefsson.
45140
45141 2009-04-26  Bruno Haible  <bruno@clisp.org>
45142
45143         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45144         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45145         "../" or "..".
45146
45147 2009-04-26  Bruno Haible  <bruno@clisp.org>
45148
45149         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45150         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45151         AC_LIB_HAVE_LINKFLAGS.
45152
45153 2009-04-26  Bruno Haible  <bruno@clisp.org>
45154
45155         Simplify calling convention of u*_conv_from_encoding.
45156         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45157         u32_conv_from_encoding): Expect a resultbuf argument and return the
45158         result directly as a pointer.
45159         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45160         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45161         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45162         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45163         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45164         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45165         Update.
45166         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45167         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45168         * lib/vasnprintf.c (VASNPRINTF): Update.
45169         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45170         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45171         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45172         * NEWS: Mention the change.
45173
45174 2009-04-26  Bruno Haible  <bruno@clisp.org>
45175
45176         Simplify calling convention of u*_conv_to_encoding.
45177         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45178         u32_conv_to_encoding): Expect a resultbuf argument and return the
45179         result directly as a pointer.
45180         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45181         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45182         freeing scaled_offsets if mem_iconveha failed.
45183         * lib/unicase/u-casexfrm.h (FUNC): Update.
45184         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45185         * lib/vasnprintf.c (VASNPRINTF): Update.
45186         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45187         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45188         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45189         * NEWS: Mention the change.
45190
45191 2009-04-26  Bruno Haible  <bruno@clisp.org>
45192
45193         Avoid test failures on AIX and OSF/1.
45194         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45195         malloc(0).
45196         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45197         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45198         Likewise.
45199         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45200         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45201         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45202         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45203         * doc/posix-functions/malloc.texi: Document the portability problem
45204         related to malloc(0).
45205
45206 2009-04-26  Bruno Haible  <bruno@clisp.org>
45207
45208         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45209         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45210         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45211
45212 2009-04-25  Bruno Haible  <bruno@clisp.org>
45213
45214         Avoid link error when creating a namespace clean library.
45215         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45216         as macro with arguments if already defined as an alias.
45217         * lib/signbitf.c (gl_signbitf): Don't undefine.
45218         * lib/signbitd.c (gl_signbitd): Don't undefine.
45219         * lib/signbitl.c (gl_signbitl): Don't undefine.
45220
45221 2009-04-25  Jim Meyering  <meyering@redhat.com>
45222
45223         vc-list-files: fix another quoting bug
45224         * build-aux/vc-list-files: Avoid sed backslash expansion
45225         of pathological directory names.
45226
45227 2009-04-25  Eric Blake  <ebb9@byu.net>
45228
45229         vc-list-files: fix shell quoting error
45230         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45231         timestamp.
45232
45233 2009-04-25  Jim Meyering  <meyering@redhat.com>
45234
45235         vc-list-files: restore lost functionality with subdir argument
45236         * build-aux/vc-list-files: When given a non-"." sub-directory
45237         argument, substitute the $dir/ prefix back onto each resulting name.
45238         Otherwise, coreutils' root_tests check would fail.
45239
45240 2009-04-24  Eric Blake  <ebb9@byu.net>
45241
45242         vc-list-files: ignore git symlinks
45243         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45244         than ls-files, to ignore git symlinks.
45245
45246         maint.mk: import improvements from m4
45247         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45248         (move_if_change): Delete unused macro.
45249         (news-date-check, vc-diff-check): Support VPATH builds.
45250         (announcement): Likewise.  Split --bootstrap-tools list...
45251         (boostrap-tools): ...into separate list, which can be overridden
45252         in cfg.mk.
45253         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45254         requiring dependency on useless-if-before-free module.
45255         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45256         Support VPATH builds.
45257
45258 2009-04-24  Jim Meyering  <meyering@redhat.com>
45259
45260         maint.mk: remove coreutils-specific rules and variables
45261         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45262         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45263         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45264
45265         maint.mk: remove obsolete rule
45266         * top/maint.mk (rel-check): Remove rule.
45267         (WGET, WGETFLAGS): Remove now-unused variables.
45268
45269 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45270
45271         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45272         consistency.
45273
45274         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45275         '$(PATH_SEPARATOR)' instead of ':'.
45276
45277 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45278
45279         * lib/getopt1.c (main): Use 'const' for static array.
45280
45281 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45282
45283         * top/maint.mk: Sync with coreutils.
45284         * NEWS: Explain incompatibilities.
45285
45286 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45287             Bruno Haible  <bruno@clisp.org>
45288
45289         Fix cross-compilation results.
45290         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45291         statement, as third argument of AC_TRY_RUN.
45292         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45293         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45294         Likewise.
45295         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45296         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45297         Likewise.
45298         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45299         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45300         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45301
45302 2009-04-20  Bruno Haible  <bruno@clisp.org>
45303
45304         Avoid test failure on mingw.
45305         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45306
45307 2009-04-20  Bruno Haible  <bruno@clisp.org>
45308
45309         Avoid compilation error on mingw.
45310         * modules/localename-tests (Depends-on): Add locale.
45311
45312 2009-04-19  Bruno Haible  <bruno@clisp.org>
45313
45314         Support for building a shared library on Windows platforms.
45315         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45316         (main): Test the presence of UNINORM_NFC here.
45317         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45318         (main): Test the presence of UNINORM_NFD here.
45319         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45320         (main): Test the presence of UNINORM_NFKC here.
45321         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45322         (main): Test the presence of UNINORM_NFKD here.
45323
45324 2009-04-19  Bruno Haible  <bruno@clisp.org>
45325
45326         Avoid a compiler warning.
45327         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45328         Change type of variable 'sequence'.
45329
45330 2009-04-19  Bruno Haible  <bruno@clisp.org>
45331
45332         * modules/configmake (Makefile.am): When the contents of configmake.h
45333         does not change, arrange to preserve its modification time.
45334
45335 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45336
45337         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45338         gettext domain.
45339
45340 2009-04-16  Jim Meyering  <meyering@redhat.com>
45341
45342         useless-if-before-free: improve conversion code
45343         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45344         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45345
45346 2009-04-14  Bruno Haible  <bruno@clisp.org>
45347
45348         * modules/fcntl (Depends-on): Add extensions.
45349         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45350
45351 2009-04-12  Ben Pfaff  <blp@gnu.org>
45352
45353         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45354         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45355
45356 2009-03-20  Ben Pfaff  <blp@gnu.org>
45357
45358         Make rename replace existing destinations on Windows.
45359         * m4/rename.m4: Add test for Mingw.
45360         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45361         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45362         * doc/posix-functions/rename.texi: Document.
45363
45364 2009-04-10  Bruno Haible  <bruno@clisp.org>
45365
45366         New include file "iconveh.h".
45367         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45368         * lib/striconveh.h: Include it.
45369         (enum iconv_ilseq_handler): Remove definition.
45370         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45371         striconveh.h.
45372         * lib/striconveha.c: Include striconveh.h.
45373         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45374         * modules/striconveh (Files): Add lib/iconveh.h.
45375         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45376         lib/striconveh.h.
45377
45378 2009-04-10  Bruno Haible  <bruno@clisp.org>
45379
45380         * lib/uniconv.h: Update comment.
45381
45382 2009-04-10  Bruno Haible  <bruno@clisp.org>
45383
45384         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45385         always.
45386         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45387         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45388         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45389         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45390         "unistring-notinline.h", so that the function gets defined always.
45391         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45392         * lib/unistr/u8-uctomb.c: Likewise.
45393         * lib/unistr/u16-mbtouc.c: Likewise.
45394         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45395         * lib/unistr/u16-uctomb.c: Likewise.
45396         * lib/unistr/u32-mbtouc.c: Likewise.
45397         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45398         * lib/unistr/u32-uctomb.c: Likewise.
45399
45400 2009-04-10  Bruno Haible  <bruno@clisp.org>
45401
45402         Mark 'utime' obsolete.
45403         * modules/utime (Status, Notice): New sections.
45404         Suggested by Jim Meyering.
45405
45406         Fix cross-compile guess for utime test.
45407         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45408         autoconf.
45409         * doc/posix-functions/utime.texi: Give more precisions.
45410         Reported by Jan <ipif@ymail.com>.
45411
45412 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45413
45414         filevercmp: correct today's change
45415         * lib/filevercmp.c: Also handle coreutils' test inputs.
45416         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45417
45418         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45419         for reporting it.
45420         * lib/filevercmp.c: Special handle for "", "." and "..".
45421         * tests/test-filevercmp.c: Enlarge the set suite.
45422
45423 2009-04-07  Jim Meyering  <meyering@redhat.com>
45424
45425         useless-if-before-free: show how to remove braced useless free, too
45426         * build-aux/useless-if-before-free: still only in a comment, though.
45427
45428 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45429
45430         maint.mk: import changes to syntax-check macros from coreutils
45431         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45432         Use them in the relevant macros.
45433
45434 2009-04-06  Bruno Haible  <bruno@clisp.org>
45435
45436         Fix unportable use of bit-fields.
45437         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45438         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45439         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45440
45441 2009-04-06  Bruno Haible  <bruno@clisp.org>
45442
45443         Avoid test failures on AIX and OSF/1.
45444         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45445         that malloc(0) = NULL.
45446         * tests/unicase/test-u8-tolower.c (check): Likewise.
45447         * tests/unicase/test-u8-totitle.c (check): Likewise.
45448         * tests/unicase/test-u8-toupper.c (check): Likewise.
45449         * tests/unicase/test-u16-casefold.c (check): Likewise.
45450         * tests/unicase/test-u16-tolower.c (check): Likewise.
45451         * tests/unicase/test-u16-totitle.c (check): Likewise.
45452         * tests/unicase/test-u16-toupper.c (check): Likewise.
45453         * tests/unicase/test-u32-casefold.c (check): Likewise.
45454         * tests/unicase/test-u32-tolower.c (check): Likewise.
45455         * tests/unicase/test-u32-totitle.c (check): Likewise.
45456         * tests/unicase/test-u32-toupper.c (check): Likewise.
45457         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45458         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45459         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45460         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45461         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45462         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45463         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45464         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45465         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45466         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45467         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45468         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45469
45470 2009-04-05  Bruno Haible  <bruno@clisp.org>
45471
45472         Work around an autoconf limitation.
45473         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45474         comment line if it would be longer than 3 KB.
45475
45476 2009-04-05  Bruno Haible  <bruno@clisp.org>
45477
45478         Avoid test failure with libiconv-1.13.
45479         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45480         of the expected test results.
45481
45482 2009-04-05  Bruno Haible  <bruno@clisp.org>
45483
45484         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45485         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45486         that it should be installed.
45487
45488 2009-04-05  Bruno Haible  <bruno@clisp.org>
45489
45490         * gnulib-tool: New option --copy-file.
45491         (func_usage): Document it.
45492         (func_dest_tmpfilename): Moved out of func_import.
45493         (func_add_file, func_update_file): New functions, extracted from
45494         func_import.
45495         (func_import): Update.
45496
45497 2009-04-05  Karl Berry  <karl@gnu.org>
45498
45499         * README: prominently mention gnulib-tool.
45500         Rearrange sections so getting the code is near the top.
45501
45502 2009-04-05  Bruno Haible  <bruno@clisp.org>
45503
45504         * lib/unicase.h: Mention u*_cmp2.
45505         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45506         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45507         * lib/unicase/ulc-casecmp.c: Likewise.
45508         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45509         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45510         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45511         unistr/u8-cmp.
45512         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45513         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45514         unistr/u16-cmp.
45515         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45516         unistr/u32-cmp.
45517
45518         * lib/uninorm.h: Mention u*_cmp2.
45519         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45520         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45521         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45522         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45523         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45524         unistr/u8-cmp.
45525         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45526         unistr/u16-cmp.
45527         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45528         unistr/u32-cmp.
45529
45530         New module 'unistr/u32-cmp2'.
45531         * lib/unistr/u32-cmp2.c: New file.
45532         * modules/unistr/u32-cmp2: New file.
45533
45534         New module 'unistr/u16-cmp2'.
45535         * lib/unistr/u16-cmp2.c: New file.
45536         * modules/unistr/u16-cmp2: New file.
45537
45538         New module 'unistr/u8-cmp2'.
45539         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45540         * lib/unistr/u8-cmp2.c: New file.
45541         * lib/unistr/u-cmp2.h: New file.
45542         * modules/unistr/u8-cmp2: New file.
45543
45544 2009-04-05  Bruno Haible  <bruno@clisp.org>
45545
45546         * lib/unictype.h (uc_property_is_valid): New macro.
45547         * tests/unictype/test-pr_byname.c (main): Use it.
45548
45549         * lib/unistr.h: Doc fixes.
45550         * lib/uniconv.h: Doc fixes.
45551         * lib/unictype.h: Doc fixes.
45552
45553 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45554
45555         Port coreutils 7.2 to Solaris 8.
45556
45557         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45558         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45559         for Solaris 8.  This is a bit of a hack, as it means it's the
45560         caller's responsibility to add -lnsl if needed, but most likely it
45561         won't be needed since only getaddrinfo uses this and getaddrinfo
45562         isn't needed on Solaris 8.
45563
45564         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45565         problem to Solaris 8 encountered with coreutils 7.2, which
45566         resulted in a message "fnmatch.c:292: warning: passing argument 4
45567         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45568         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45569
45570 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45571
45572         * m4/ld-version-script.m4: Add FIXME comment.
45573
45574 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45575
45576         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45577         SOVERSION variable.
45578
45579 2009-04-02  Bruno Haible  <bruno@clisp.org>
45580
45581         * Makefile (info, html, dvi, pdf): Combine the rules.
45582         Suggested by Jim Meyering.
45583
45584 2009-04-01  Bruno Haible  <bruno@clisp.org>
45585
45586         * Makefile (info, html, dvi, pdf): New targets.
45587         Reported by Reuben Thomas <rrt@sc3d.org>.
45588
45589 2009-04-01  Bruno Haible  <bruno@clisp.org>
45590
45591         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45592         can be put into PATH.
45593         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45594
45595 2009-04-01  Bruno Haible  <bruno@clisp.org>
45596
45597         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45598
45599 2009-04-01  Bruno Haible  <bruno@clisp.org>
45600
45601         Rename module 'visibility'.
45602         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45603         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45604         * doc/gnulib.texi: Update.
45605         * MODULES.html.sh (Misc): Update.
45606         * NEWS: Mention the change.
45607
45608 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45609
45610         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45611         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45612         Eric Blake <ebb9@byu.net> for review.
45613         * MODULES.html.sh: Add lib-msvc-compat.
45614         * doc/gnulib.texi: Link to new section.
45615         * m4/ld-output-def.m4: New file.
45616         * doc/ld-output-def.texi: New file.
45617
45618 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45619
45620         Rename ld-version-script to lib-symbol-versions.  Suggested by
45621         Bruno Haible <bruno@clisp.org>.
45622         * modules/ld-version-script: Renamed to lib-symbol-versions.
45623         * doc/ld-version-script.texi: Fix module name.
45624         * MODULES.html.sh: Add lib-symbol-versions.
45625
45626 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45627
45628         * modules/u64-tests: New file.
45629         * tests/test-u64.c: New file.
45630
45631 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45632
45633         * MODULES.html.sh: Mention u64.
45634         * modules/u64: New module.
45635         * modules/crypto/sha512: Depend on u64 module instead of providing
45636         u64.h.
45637
45638 2009-03-27  Eric Blake  <ebb9@byu.net>
45639
45640         test-strerror: make debugging EAI_SYSTEM easier
45641         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45642         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45643         failure was EAI_SYSTEM.
45644
45645 2009-03-25  Bruno Haible  <bruno@clisp.org>
45646
45647         Fix a problem with --enable-relocatable on Solaris 7.
45648         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45649         since 2008-02-24.
45650
45651 2009-03-25  Eric Blake  <ebb9@byu.net>
45652
45653         test-sockets: avoid gcc warning
45654         * tests/test-sockets.c (main): Silence compiler warning.
45655
45656 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45657
45658         New modules nproc, pthread, contributed by Glen Lenker.
45659
45660         * MODULES.html.sh: Add pthread, nproc.
45661         * lib/nproc.c: New file.
45662         * lib/nproc.h: New file.
45663         * lib/pthread.in.h: New file.
45664         * m4/pthread.m4: New file.
45665         * modules/nproc: New file.
45666         * modules/pthread: New file.
45667
45668 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45669
45670         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45671         New variable.
45672
45673 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45674
45675         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45676         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45677         * tests/test-filevercmp.c: Add tests for backup suffixes.
45678
45679 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45680
45681         * modules/stdlib (Depends-on): Add stdint, needed when defining
45682         struct random_data on, for example, HP-UX 10.20.  Reported by
45683         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45684
45685 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45686
45687         * lib/readline.c (readline): Call fflush on stdout after printing
45688         prompt.
45689
45690 2009-03-20  Bruno Haible  <bruno@clisp.org>
45691
45692         Remove dependency from 'close' module to -lws2_32 on native Windows.
45693         * lib/close-hook.h: New file.
45694         * lib/close-hook.c: New file.
45695         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45696         w32sock.h.
45697         (_gl_close_fd_maybe_socket): Remove function.
45698         (rpl_close): Invoke execute_all_close_hooks instead of
45699         _gl_close_fd_maybe_socket.
45700         * lib/sockets.c: Include close-hook.h, w32sock.h.
45701         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45702         (close_sockets_hook): New variable.
45703         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45704         (gl_sockets_cleanup): Unregister it.
45705         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45706         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45707         * modules/close-hook: New file.
45708         * modules/close (Files): Remove lib/w32sock.h.
45709         (Depends-on): Add close-hook.
45710         (Link): Remove section.
45711         * modules/sockets (Files): Add lib/w32sock.h.
45712         (Depends-on): Add close-hook.
45713         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45714         invocation.
45715         * NEWS: Mention that LIB_CLOSE is gone.
45716
45717 2009-03-23  Eric Blake  <ebb9@byu.net>
45718
45719         signal-tests: test previous patch
45720         * tests/test-signal.c: New file.
45721         * modules/signal-tests: Likewise.
45722
45723         signal.h: always support 'volatile sig_atomic_t'
45724         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45725         (gl_SIGNAL_H_DEFAULTS): Add a default.
45726         * modules/signal (Makefile.am): Substitute if needed.
45727         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45728         users can blindly add volatile.
45729         * doc/posix-headers/signal.texi (signal.h): Document it.
45730         Reported by Matthew Woehlke.
45731
45732 2009-03-23  Jim Meyering  <meyering@redhat.com>
45733
45734         pathmax: PATH_MAX: use pathconf only when available
45735         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45736         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45737         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45738         This avoids a link failure in a PSP cross-compilation environment
45739         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45740
45741         * lib/vasnprintf.c (divide): Fix typo in comment.
45742
45743 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45744
45745         * gnulib-tool (func_filter_filelist): Fix comment.
45746
45747 2009-03-20  Bruno Haible  <bruno@clisp.org>
45748
45749         Make sockets.h self-contained.
45750         * lib/sockets.c: Include sockets.h first.
45751         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45752
45753 2009-03-19  Eric Blake  <ebb9@byu.net>
45754
45755         doc: mention more functions added in cygwin 1.7.0
45756         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45757         addition.
45758         * doc/posix-functions/log2f.texi: Likewise.
45759
45760 2009-03-19  Jim Meyering  <meyering@redhat.com>
45761
45762         fsusage: avoid syntax error due to statement-before-declaration
45763         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45764         after all declarations.  Reported by Matthew Woehlke in
45765         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45766
45767 2009-03-18  Eric Blake  <ebb9@byu.net>
45768
45769         build-aux/compile: sync from automake
45770         * build-aux/compile: New file, from automake.
45771         * config/srclist.txt: Mention build-aux/compile.
45772
45773 2009-03-17  Bruno Haible  <bruno@clisp.org>
45774
45775         * lib/git-merge-changelog.c: Fix typo in comment.
45776         Reported by Reuben Thomas <rrt@sc3d.org>.
45777
45778 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45779
45780         * m4/regex.m4: update and improve help for
45781         --without-included-regex.
45782
45783 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45784
45785         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45786         failure on missing include files.
45787
45788 2009-03-17  Eric Blake  <ebb9@byu.net>
45789
45790         doc: mention more functions added in cygwin 1.7.0
45791         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45792         addition.
45793         * doc/posix-functions/fwscanf.texi: Likewise.
45794         * doc/posix-functions/swprintf.texi: Likewise.
45795         * doc/posix-functions/swscanf.texi: Likewise.
45796         * doc/posix-functions/vfwprintf.texi: Likewise.
45797         * doc/posix-functions/vfwscanf.texi: Likewise.
45798         * doc/posix-functions/vswprintf.texi: Likewise.
45799         * doc/posix-functions/vswscanf.texi: Likewise.
45800         * doc/posix-functions/vwprintf.texi: Likewise.
45801         * doc/posix-functions/vwscanf.texi: Likewise.
45802         * doc/posix-functions/wcscasecmp.texi: Likewise.
45803         * doc/posix-functions/wcsdup.texi: Likewise.
45804         * doc/posix-functions/wcsftime.texi: Likewise.
45805         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45806         * doc/posix-functions/wprintf.texi: Likewise.
45807         * doc/posix-functions/wscanf.texi: Likewise.
45808         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45809
45810 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45811
45812         maint.mk: really add $(AM_MAKEFLAGS)
45813         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45814         was inadvertently omitted in the last commit.
45815         Spotted by Bruno Haible.
45816
45817         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45818         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45819         $(AM_MAKEFLAGS)' rather than plain `make'.
45820
45821         gnulib-tool: execute $MAKE not make
45822         * gnulib-tool: Default $MAKE to 'make'.
45823         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45824         than make.  Initialize $MAKE in the do-autobuild script.
45825
45826         gnulib-tool: use $MAKE not make in generated files
45827         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45828         make, in generated files.  Initialize $MAKE in the do-autobuild
45829         script.
45830
45831         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45832
45833         GNUmakefile: disable parallelism only for multiple, recursive targets
45834         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45835         additions in the Makefile.
45836         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45837         by Automake.
45838         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45839         are listed on the command line and at least one of them is
45840         listed in $(ALL_RECURSIVE_TARGETS).
45841
45842 2009-03-14  Bruno Haible  <bruno@clisp.org>
45843
45844         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45845         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45846         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45847         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45848         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45849         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45850         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45851         unistr/u8-uctomb.
45852         * modules/unistr/u8-strchr (Depends-on): Likewise.
45853         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45854         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45855         unistr/u16-uctomb.
45856         * modules/unistr/u16-strchr (Depends-on): Likewise.
45857         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45858
45859 2009-03-12  Bruno Haible  <bruno@clisp.org>
45860
45861         Work around select() bug on Interix 3.5.
45862         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45863         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45864         * m4/select.m4: New file.
45865         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45866         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45867         * modules/select (Files): Add m4/select.m4.
45868         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45869         * modules/nanosleep (Depends-on): Add select.
45870         * modules/poll (Depends-on): Likewise.
45871         * doc/posix-functions/select.texi: Mention the Interix bug.
45872         Reported by Markus Duft <mduft@gentoo.org>.
45873
45874         * lib/select.c: Renamed from lib/winsock-select.c.
45875         * modules/select (Files): Add lib/select.c, remove
45876         lib/winsock-select.c.
45877         (configure.ac): Update.
45878
45879 2009-03-12  Jim Meyering  <meyering@redhat.com>
45880
45881         avoid gcc warnings about unused macro definitions
45882         * lib/readtokens.c (STREQ): Remove unused definition.
45883         * lib/xmalloc.c (SIZE_MAX): Likewise.
45884         * lib/openat-die.c (N_): Likewise.
45885         * lib/mountlist.c (SIZE_MAX): Remove definition.
45886         Instead, include <stdint.h>.
45887         * lib/readutmp.c: Likewise.
45888         * modules/readutmp (Depends-on): Add stdint.
45889         * modules/mountlist (Depends-on): Add stdint.
45890         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45891
45892 2009-03-10  Bruno Haible  <bruno@clisp.org>
45893
45894         Tests for module 'mbmemcasecoll'.
45895         * modules/mbmemcasecoll-tests: New file.
45896         * tests/test-mbmemcasecoll1.sh: New file.
45897         * tests/test-mbmemcasecoll2.sh: New file.
45898         * tests/test-mbmemcasecoll3.sh: New file.
45899         * tests/test-mbmemcasecoll.c: New file.
45900
45901         New module 'mbmemcasecoll'.
45902         * lib/mbmemcasecoll.h: New file.
45903         * lib/mbmemcasecoll.c: New file.
45904         * modules/mbmemcasecoll: New file.
45905
45906         * tests/test-mbmemcasecmp.h: New file, extracted from
45907         tests/test-mbmemcasecmp.c.
45908         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45909         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45910         (main): Update.
45911         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45912
45913 2009-03-09  Bruno Haible  <bruno@clisp.org>
45914
45915         Tests for module 'mbmemcasecmp'.
45916         * modules/mbmemcasecmp-tests: New file.
45917         * tests/test-mbmemcasecmp1.sh: New file.
45918         * tests/test-mbmemcasecmp2.sh: New file.
45919         * tests/test-mbmemcasecmp3.sh: New file.
45920         * tests/test-mbmemcasecmp.c: New file.
45921
45922         New module 'mbmemcasecmp'.
45923         * lib/mbmemcasecmp.h: New file.
45924         * lib/mbmemcasecmp.c: New file.
45925         * modules/mbmemcasecmp: New file.
45926
45927 2009-03-09  Bruno Haible  <bruno@clisp.org>
45928
45929         Tests for module 'unicase/ulc-casecoll'.
45930         * modules/unicase/ulc-casecoll-tests: New file.
45931         * tests/unicase/test-ulc-casecoll1.sh: New file.
45932         * tests/unicase/test-ulc-casecoll2.sh: New file.
45933         * tests/unicase/test-ulc-casecoll.c: New file.
45934
45935         New module 'unicase/ulc-casecoll'.
45936         * lib/unicase.h (ulc_casecoll): New declaration.
45937         * lib/unicase/ulc-casecoll.c: New file.
45938         * modules/unicase/ulc-casecoll: New file.
45939
45940         New module 'unicase/ulc-casexfrm'.
45941         * lib/unicase.h (ulc_casexfrm): New declaration.
45942         * lib/unicase/ulc-casexfrm.c: New file.
45943         * modules/unicase/ulc-casexfrm: New file.
45944
45945 2009-03-09  Bruno Haible  <bruno@clisp.org>
45946
45947         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45948         invocations.
45949
45950         * m4/mbscasecmp.m4: Remove file.
45951         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45952         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45953
45954         * m4/mbscasestr.m4: Remove file.
45955         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45956         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45957
45958         * m4/mbschr.m4: Remove file.
45959         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45960         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45961
45962         * m4/mbscspn.m4: Remove file.
45963         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45964         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45965
45966         * m4/mbslen.m4: Remove file.
45967         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45968         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45969
45970         * m4/mbsncasecmp.m4: Remove file.
45971         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45972         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45973
45974         * m4/mbsnlen.m4: Remove file.
45975         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45976         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45977
45978         * m4/mbspbrk.m4: Remove file.
45979         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45980         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45981
45982         * m4/mbspcasecmp.m4: Remove file.
45983         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45984         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45985
45986         * m4/mbsrchr.m4: Remove file.
45987         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45988         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45989
45990         * m4/mbssep.m4: Remove file.
45991         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45992         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45993
45994         * m4/mbsspn.m4: Remove file.
45995         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45996         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45997
45998         * m4/mbsstr.m4: Remove file.
45999         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46000         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46001
46002         * m4/mbstok_r.m4: Remove file.
46003         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46004         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46005
46006         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46007
46008         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46009         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46010
46011         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46012
46013 2009-03-08  Bruno Haible  <bruno@clisp.org>
46014
46015         Tests for module 'unicase/ulc-casecmp'.
46016         * modules/unicase/ulc-casecmp-tests: New file.
46017         * tests/unicase/test-ulc-casecmp1.sh: New file.
46018         * tests/unicase/test-ulc-casecmp2.sh: New file.
46019         * tests/unicase/test-ulc-casecmp.c: New file.
46020
46021         New module 'unicase/ulc-casecmp'.
46022         * lib/unicase.h (ulc_casecmp): New declaration.
46023         * lib/unicase/ulc-casecmp.c: New file.
46024         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46025         'const SRC_UNIT *'.
46026         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46027         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46028         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46029         * modules/unicase/ulc-casecmp: New file.
46030
46031         Tests for module 'unicase/u32-is-cased'.
46032         * modules/unicase/u32-is-cased-tests: New file.
46033         * tests/unicase/test-u32-is-cased.c: New file.
46034
46035         Tests for module 'unicase/u16-is-cased'.
46036         * modules/unicase/u16-is-cased-tests: New file.
46037         * tests/unicase/test-u16-is-cased.c: New file.
46038
46039         Tests for module 'unicase/u8-is-cased'.
46040         * modules/unicase/u8-is-cased-tests: New file.
46041         * tests/unicase/test-u8-is-cased.c: New file.
46042         * tests/unicase/test-is-cased.h: New file.
46043
46044         New module 'unicase/u32-is-cased'.
46045         * lib/unicase/u32-is-cased.c: New file.
46046         * modules/unicase/u32-is-cased: New file.
46047
46048         New module 'unicase/u16-is-cased'.
46049         * lib/unicase/u16-is-cased.c: New file.
46050         * modules/unicase/u16-is-cased: New file.
46051
46052         New module 'unicase/u8-is-cased'.
46053         * lib/unicase/u8-is-cased.c: New file.
46054         * lib/unicase/u-is-cased.h: New file.
46055         * modules/unicase/u8-is-cased: New file.
46056
46057         Tests for module 'unicase/u32-is-casefolded'.
46058         * modules/unicase/u32-is-casefolded-tests: New file.
46059         * tests/unicase/test-u32-is-casefolded.c: New file.
46060
46061         Tests for module 'unicase/u16-is-casefolded'.
46062         * modules/unicase/u16-is-casefolded-tests: New file.
46063         * tests/unicase/test-u16-is-casefolded.c: New file.
46064
46065         Tests for module 'unicase/u8-is-casefolded'.
46066         * modules/unicase/u8-is-casefolded-tests: New file.
46067         * tests/unicase/test-u8-is-casefolded.c: New file.
46068         * tests/unicase/test-is-casefolded.h: New file.
46069
46070         New module 'unicase/u32-is-casefolded'.
46071         * lib/unicase/u32-is-casefolded.c: New file.
46072         * modules/unicase/u32-is-casefolded: New file.
46073
46074         New module 'unicase/u16-is-casefolded'.
46075         * lib/unicase/u16-is-casefolded.c: New file.
46076         * modules/unicase/u16-is-casefolded: New file.
46077
46078         New module 'unicase/u8-is-casefolded'.
46079         * lib/unicase/u8-is-casefolded.c: New file.
46080         * modules/unicase/u8-is-casefolded: New file.
46081
46082         Tests for module 'unicase/u32-is-titlecase'.
46083         * modules/unicase/u32-is-titlecase-tests: New file.
46084         * tests/unicase/test-u32-is-titlecase.c: New file.
46085
46086         Tests for module 'unicase/u16-is-titlecase'.
46087         * modules/unicase/u16-is-titlecase-tests: New file.
46088         * tests/unicase/test-u16-is-titlecase.c: New file.
46089
46090         Tests for module 'unicase/u8-is-titlecase'.
46091         * modules/unicase/u8-is-titlecase-tests: New file.
46092         * tests/unicase/test-u8-is-titlecase.c: New file.
46093         * tests/unicase/test-is-titlecase.h: New file.
46094
46095         New module 'unicase/u32-is-titlecase'.
46096         * lib/unicase/u32-is-titlecase.c: New file.
46097         * modules/unicase/u32-is-titlecase: New file.
46098
46099         New module 'unicase/u16-is-titlecase'.
46100         * lib/unicase/u16-is-titlecase.c: New file.
46101         * modules/unicase/u16-is-titlecase: New file.
46102
46103         New module 'unicase/u8-is-titlecase'.
46104         * lib/unicase/u8-is-titlecase.c: New file.
46105         * modules/unicase/u8-is-titlecase: New file.
46106
46107         Tests for module 'unicase/u32-is-lowercase'.
46108         * modules/unicase/u32-is-lowercase-tests: New file.
46109         * tests/unicase/test-u32-is-lowercase.c: New file.
46110
46111         Tests for module 'unicase/u16-is-lowercase'.
46112         * modules/unicase/u16-is-lowercase-tests: New file.
46113         * tests/unicase/test-u16-is-lowercase.c: New file.
46114
46115         Tests for module 'unicase/u8-is-lowercase'.
46116         * modules/unicase/u8-is-lowercase-tests: New file.
46117         * tests/unicase/test-u8-is-lowercase.c: New file.
46118         * tests/unicase/test-is-lowercase.h: New file.
46119
46120         New module 'unicase/u32-is-lowercase'.
46121         * lib/unicase/u32-is-lowercase.c: New file.
46122         * modules/unicase/u32-is-lowercase: New file.
46123
46124         New module 'unicase/u16-is-lowercase'.
46125         * lib/unicase/u16-is-lowercase.c: New file.
46126         * modules/unicase/u16-is-lowercase: New file.
46127
46128         New module 'unicase/u8-is-lowercase'.
46129         * lib/unicase/u8-is-lowercase.c: New file.
46130         * modules/unicase/u8-is-lowercase: New file.
46131
46132         Tests for module 'unicase/u32-is-uppercase'.
46133         * modules/unicase/u32-is-uppercase-tests: New file.
46134         * tests/unicase/test-u32-is-uppercase.c: New file.
46135
46136         Tests for module 'unicase/u16-is-uppercase'.
46137         * modules/unicase/u16-is-uppercase-tests: New file.
46138         * tests/unicase/test-u16-is-uppercase.c: New file.
46139
46140         Tests for module 'unicase/u8-is-uppercase'.
46141         * modules/unicase/u8-is-uppercase-tests: New file.
46142         * tests/unicase/test-u8-is-uppercase.c: New file.
46143         * tests/unicase/test-is-uppercase.h: New file.
46144
46145         New module 'unicase/u32-is-uppercase'.
46146         * lib/unicase/u32-is-uppercase.c: New file.
46147         * modules/unicase/u32-is-uppercase: New file.
46148
46149         New module 'unicase/u16-is-uppercase'.
46150         * lib/unicase/u16-is-uppercase.c: New file.
46151         * modules/unicase/u16-is-uppercase: New file.
46152
46153         New module 'unicase/u8-is-uppercase'.
46154         * lib/unicase/u8-is-uppercase.c: New file.
46155         * modules/unicase/u8-is-uppercase: New file.
46156
46157         New module 'unicase/u32-is-invariant'.
46158         * lib/unicase/u32-is-invariant.c: New file.
46159         * modules/unicase/u32-is-invariant: New file.
46160
46161         New module 'unicase/u16-is-invariant'.
46162         * lib/unicase/u16-is-invariant.c: New file.
46163         * modules/unicase/u16-is-invariant: New file.
46164
46165         New module 'unicase/u8-is-invariant'.
46166         * lib/unicase/u8-is-invariant.c: New file.
46167         * lib/unicase/invariant.h: New file.
46168         * lib/unicase/u-is-invariant.h: New file.
46169         * modules/unicase/u8-is-invariant: New file.
46170
46171         Tests for module 'unicase/u32-casecoll'.
46172         * modules/unicase/u32-casecoll-tests: New file.
46173         * tests/unicase/test-u32-casecoll.c: New file.
46174
46175         Tests for module 'unicase/u16-casecoll'.
46176         * modules/unicase/u16-casecoll-tests: New file.
46177         * tests/unicase/test-u16-casecoll.c: New file.
46178
46179         Tests for module 'unicase/u8-casecoll'.
46180         * modules/unicase/u8-casecoll-tests: New file.
46181         * tests/unicase/test-u8-casecoll.c: New file.
46182
46183         New module 'unicase/u32-casecoll'.
46184         * lib/unicase/u32-casecoll.c: New file.
46185         * modules/unicase/u32-casecoll: New file.
46186
46187         New module 'unicase/u16-casecoll'.
46188         * lib/unicase/u16-casecoll.c: New file.
46189         * modules/unicase/u16-casecoll: New file.
46190
46191         New module 'unicase/u8-casecoll'.
46192         * lib/unicase/u8-casecoll.c: New file.
46193         * lib/unicase/u-casecoll.h: New file.
46194         * modules/unicase/u8-casecoll: New file.
46195
46196         New module 'unicase/u32-casexfrm'.
46197         * lib/unicase/u32-casexfrm.c: New file.
46198         * modules/unicase/u32-casexfrm: New file.
46199
46200         New module 'unicase/u16-casexfrm'.
46201         * lib/unicase/u16-casexfrm.c: New file.
46202         * modules/unicase/u16-casexfrm: New file.
46203
46204         New module 'unicase/u8-casexfrm'.
46205         * lib/unicase/u8-casexfrm.c: New file.
46206         * lib/unicase/u-casexfrm.h: New file.
46207         * modules/unicase/u8-casexfrm: New file.
46208
46209         Tests for module 'unicase/u32-casecmp'.
46210         * modules/unicase/u32-casecmp-tests: New file.
46211         * tests/unicase/test-u32-casecmp.c: New file.
46212
46213         Tests for module 'unicase/u16-casecmp'.
46214         * modules/unicase/u16-casecmp-tests: New file.
46215         * tests/unicase/test-u16-casecmp.c: New file.
46216
46217         Tests for module 'unicase/u8-casecmp'.
46218         * modules/unicase/u8-casecmp-tests: New file.
46219         * tests/unicase/test-u8-casecmp.c: New file.
46220         * tests/unicase/test-casecmp.h: New file.
46221
46222         New module 'unicase/u32-casecmp'.
46223         * lib/unicase/u32-casecmp.c: New file.
46224         * modules/unicase/u32-casecmp: New file.
46225
46226         New module 'unicase/u16-casecmp'.
46227         * lib/unicase/u16-casecmp.c: New file.
46228         * modules/unicase/u16-casecmp: New file.
46229
46230         New module 'unicase/u8-casecmp'.
46231         * lib/unicase/u8-casecmp.c: New file.
46232         * lib/unicase/u-casecmp.h: New file.
46233         * modules/unicase/u8-casecmp: New file.
46234
46235         Tests for module 'unicase/u32-casefold'.
46236         * modules/unicase/u32-casefold-tests: New file.
46237         * tests/unicase/test-u32-casefold.c: New file.
46238
46239         Tests for module 'unicase/u16-casefold'.
46240         * modules/unicase/u16-casefold-tests: New file.
46241         * tests/unicase/test-u16-casefold.c: New file.
46242
46243         Tests for module 'unicase/u8-casefold'.
46244         * modules/unicase/u8-casefold-tests: New file.
46245         * tests/unicase/test-u8-casefold.c: New file.
46246
46247         New module 'unicase/u32-casefold'.
46248         * lib/unicase/u32-casefold.c: New file.
46249         * modules/unicase/u32-casefold: New file.
46250
46251         New module 'unicase/u16-casefold'.
46252         * lib/unicase/u16-casefold.c: New file.
46253         * modules/unicase/u16-casefold: New file.
46254
46255         New module 'unicase/u8-casefold'.
46256         * lib/unicase/u8-casefold.c: New file.
46257         * lib/unicase/u-casefold.h: New file.
46258         * modules/unicase/u8-casefold: New file.
46259
46260         New module 'unicase/tocasefold'.
46261         * lib/unicase/casefold.h: New file.
46262         * lib/unicase/tocasefold.c: New file.
46263         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46264         * modules/unicase/tocasefold: New file.
46265
46266         Tests for module 'unicase/u32-totitle'.
46267         * modules/unicase/u32-totitle-tests: New file.
46268         * tests/unicase/test-u32-totitle.c: New file.
46269
46270         Tests for module 'unicase/u16-totitle'.
46271         * modules/unicase/u16-totitle-tests: New file.
46272         * tests/unicase/test-u16-totitle.c: New file.
46273
46274         Tests for module 'unicase/u8-totitle'.
46275         * modules/unicase/u8-totitle-tests: New file.
46276         * tests/unicase/test-u8-totitle.c: New file.
46277
46278         New module 'unicase/u32-totitle'.
46279         * lib/unicase/u32-totitle.c: New file.
46280         * modules/unicase/u32-totitle: New file.
46281
46282         New module 'unicase/u16-totitle'.
46283         * lib/unicase/u16-totitle.c: New file.
46284         * modules/unicase/u16-totitle: New file.
46285
46286         New module 'unicase/u8-totitle'.
46287         * lib/unicase/u8-totitle.c: New file.
46288         * lib/unicase/u-totitle.h: New file.
46289         * modules/unicase/u8-totitle: New file.
46290
46291         Tests for module 'unicase/u32-tolower'.
46292         * modules/unicase/u32-tolower-tests: New file.
46293         * tests/unicase/test-u32-tolower.c: New file.
46294
46295         Tests for module 'unicase/u16-tolower'.
46296         * modules/unicase/u16-tolower-tests: New file.
46297         * tests/unicase/test-u16-tolower.c: New file.
46298
46299         Tests for module 'unicase/u8-tolower'.
46300         * modules/unicase/u8-tolower-tests: New file.
46301         * tests/unicase/test-u8-tolower.c: New file.
46302
46303         New module 'unicase/u32-tolower'.
46304         * lib/unicase/u32-tolower.c: New file.
46305         * modules/unicase/u32-tolower: New file.
46306
46307         New module 'unicase/u16-tolower'.
46308         * lib/unicase/u16-tolower.c: New file.
46309         * modules/unicase/u16-tolower: New file.
46310
46311         New module 'unicase/u8-tolower'.
46312         * lib/unicase/u8-tolower.c: New file.
46313         * modules/unicase/u8-tolower: New file.
46314
46315         Tests for module 'unicase/u32-toupper'.
46316         * modules/unicase/u32-toupper-tests: New file.
46317         * tests/unicase/test-u32-toupper.c: New file.
46318
46319         Tests for module 'unicase/u16-toupper'.
46320         * modules/unicase/u16-toupper-tests: New file.
46321         * tests/unicase/test-u16-toupper.c: New file.
46322
46323         Tests for module 'unicase/u8-toupper'.
46324         * modules/unicase/u8-toupper-tests: New file.
46325         * tests/unicase/test-u8-toupper.c: New file.
46326
46327         New module 'unicase/u32-toupper'.
46328         * lib/unicase/u32-toupper.c: New file.
46329         * modules/unicase/u32-toupper: New file.
46330
46331         New module 'unicase/u16-toupper'.
46332         * lib/unicase/u16-toupper.c: New file.
46333         * modules/unicase/u16-toupper: New file.
46334
46335         New module 'unicase/u8-toupper'.
46336         * lib/unicase/u8-toupper.c: New file.
46337         * modules/unicase/u8-toupper: New file.
46338
46339         New module 'unicase/u32-casemap'.
46340         * lib/unicase/u32-casemap.c: New file.
46341         * modules/unicase/u32-casemap: New file.
46342
46343         New module 'unicase/u16-casemap'.
46344         * lib/unicase/u16-casemap.c: New file.
46345         * modules/unicase/u16-casemap: New file.
46346
46347         New module 'unicase/u8-casemap'.
46348         * lib/unicase/unicasemap.h: New file.
46349         * lib/unicase/u8-casemap.c: New file.
46350         * lib/unicase/u-casemap.h: New file.
46351         * modules/unicase/u8-casemap: New file.
46352
46353         New module 'unicase/special-casing'.
46354         * lib/unicase/special-casing.h: New file.
46355         * lib/unicase/special-casing.c: New file.
46356         * lib/unicase/special-casing-table.gperf: New file, generated by
46357         gen-uni-tables.c.
46358         * modules/unicase/special-casing: New file.
46359
46360         Tests for module 'unicase/locale-language'.
46361         * modules/unicase/locale-language-tests: New file.
46362         * tests/unicase/test-locale-language.sh: New file.
46363         * tests/unicase/test-locale-language.c: New file.
46364
46365         New module 'unicase/locale-language'.
46366         * lib/unicase/locale-language.c: New file.
46367         * lib/unicase/locale-languages.gperf: New file.
46368         * modules/unicase/locale-language: New file.
46369
46370         Generate more tables for case conversion and case folding.
46371         * lib/gen-uni-tables.c (SCC_*): New enum items.
46372         (struct special_casing_rule): New type.
46373         (casing_rules, num_casing_rules, allocated_casing_rules): New
46374         variables.
46375         (add_casing_rule, fill_casing_rules): New functions.
46376         (struct casefold_rule): New type.
46377         (casefolding_rules, num_casefolding_rules,
46378         allocated_casefolding_rules): New variables.
46379         (fill_casefolding_rules): New function.
46380         (unicode_casefold): New variable.
46381         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46382         sort_casing_rules, output_casing_rules): New functions.
46383         (main): Accept to more arguments: SpecialCasing.txt and
46384         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46385         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46386         Output mapping for casefolding.
46387
46388         * lib/unicase.h: Include stdbool.h, uninorm.h.
46389         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46390         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46391         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46392         arguments.
46393         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46394         resultp arguments.
46395         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46396         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46397         resultp arguments.
46398         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46399         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46400         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46401         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46402         declarations.
46403         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46404
46405 2009-03-08  Bruno Haible  <bruno@clisp.org>
46406
46407         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46408         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46409         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46410         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46411
46412 2009-03-07  Bruno Haible  <bruno@clisp.org>
46413
46414         Adjust u*_normcmp, u*_normcoll API.
46415         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46416         u16_normcoll, u32_normcoll): Change failure conventions.
46417         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46418         errno and return -1.
46419         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46420
46421 2009-03-07  Bruno Haible  <bruno@clisp.org>
46422
46423         Tests for module 'uninorm/u32-normcoll'.
46424         * modules/uninorm/u32-normcoll-tests: New file.
46425         * tests/uninorm/test-u32-normcoll.c: New file.
46426
46427         Tests for module 'uninorm/u16-normcoll'.
46428         * modules/uninorm/u16-normcoll-tests: New file.
46429         * tests/uninorm/test-u16-normcoll.c: New file.
46430
46431         Tests for module 'uninorm/u8-normcoll'.
46432         * modules/uninorm/u8-normcoll-tests: New file.
46433         * tests/uninorm/test-u8-normcoll.c: New file.
46434
46435 2009-03-07  Bruno Haible  <bruno@clisp.org>
46436
46437         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46438         tests/uninorm/test-u32-normcmp.c.
46439         * tests/uninorm/test-u32-normcmp.c: Include it.
46440         (test_nonascii): New function, extracted from main. Add some more
46441         tests.
46442         (main): Invoke test_ascii and test_nonascii.
46443         * modules/uninorm/u32-normcmp-tests (Files): Add
46444         tests/uninorm/test-u32-normcmp.h.
46445         (Depends-on): Remove uninorm/u32-normcmp.
46446
46447         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46448         tests/uninorm/test-u16-normcmp.c.
46449         * tests/uninorm/test-u16-normcmp.c: Include it.
46450         (test_nonascii): New function, extracted from main. Add some more
46451         tests.
46452         (main): Invoke test_ascii and test_nonascii.
46453         * modules/uninorm/u16-normcmp-tests (Files): Add
46454         tests/uninorm/test-u16-normcmp.h.
46455         (Depends-on): Remove uninorm/u16-normcmp.
46456
46457         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46458         tests/uninorm/test-u8-normcmp.c.
46459         * tests/uninorm/test-u8-normcmp.c: Include it.
46460         (test_nonascii): New function, extracted from main. Add some more
46461         tests.
46462         (main): Invoke test_ascii and test_nonascii.
46463         * modules/uninorm/u8-normcmp-tests (Files): Add
46464         tests/uninorm/test-u8-normcmp.h.
46465         (Depends-on): Remove uninorm/u8-normcmp.
46466
46467 2009-03-07  Bruno Haible  <bruno@clisp.org>
46468
46469         New module 'uninorm/u32-normcoll'.
46470         * lib/uninorm/u32-normcoll.c: New file.
46471         * modules/uninorm/u32-normcoll: New file.
46472
46473         New module 'uninorm/u16-normcoll'.
46474         * lib/uninorm/u16-normcoll.c: New file.
46475         * modules/uninorm/u16-normcoll: New file.
46476
46477         New module 'uninorm/u8-normcoll'.
46478         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46479         declarations.
46480         * lib/uninorm/u8-normcoll.c: New file.
46481         * lib/uninorm/u-normcoll.h: New file.
46482         * modules/uninorm/u8-normcoll: New file.
46483
46484         New module 'uninorm/u32-normxfrm'.
46485         * lib/uninorm/u32-normxfrm.c: New file.
46486         * modules/uninorm/u32-normxfrm: New file.
46487
46488         New module 'uninorm/u16-normxfrm'.
46489         * lib/uninorm/u16-normxfrm.c: New file.
46490         * modules/uninorm/u16-normxfrm: New file.
46491
46492         New module 'uninorm/u8-normxfrm'.
46493         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46494         declarations.
46495         * lib/uninorm/u8-normxfrm.c: New file.
46496         * lib/uninorm/u-normxfrm.h: New file.
46497         * modules/uninorm/u8-normxfrm: New file.
46498
46499 2009-03-07  Bruno Haible  <bruno@clisp.org>
46500
46501         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46502         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46503         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46504
46505 2009-03-07  Bruno Haible  <bruno@clisp.org>
46506
46507         New module 'memxfrm'.
46508         * lib/memxfrm.h: New file.
46509         * lib/memxfrm.c: New file.
46510         * modules/memxfrm: New file.
46511
46512 2009-03-07  Bruno Haible  <bruno@clisp.org>
46513
46514         New module 'memcmp2'.
46515         * lib/memcmp2.h: New file.
46516         * lib/memcmp2.c: New file.
46517         * modules/memcmp2: New file.
46518
46519 2009-03-07  Bruno Haible  <bruno@clisp.org>
46520
46521         Tests for module 'uninorm/decomposing-form'.
46522         * modules/uninorm/decomposing-form-tests: New file.
46523         * tests/uninorm/test-decomposing-form.c: New file.
46524
46525         New module 'uninorm/decomposing-form'.
46526         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46527         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46528         Add 'decomposing_variant' field.
46529         * lib/uninorm/decomposing-form.c: New file.
46530         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46531         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46532         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46533         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46534         * modules/uninorm/decomposing-form: New file.
46535         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46536         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46537
46538 2009-03-07  Bruno Haible  <bruno@clisp.org>
46539
46540         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46541         strings.
46542
46543 2009-03-06  Bruno Haible  <bruno@clisp.org>
46544
46545         Tests for module 'uninorm/u32-normcmp'.
46546         * tests/uninorm/test-u32-normcmp.c: New file.
46547         * modules/uninorm/u32-normcmp-tests: New file.
46548
46549         Tests for module 'uninorm/u16-normcmp'.
46550         * tests/uninorm/test-u16-normcmp.c: New file.
46551         * modules/uninorm/u16-normcmp-tests: New file.
46552
46553         Tests for module 'uninorm/u8-normcmp'.
46554         * tests/uninorm/test-u8-normcmp.c: New file.
46555         * modules/uninorm/u8-normcmp-tests: New file.
46556
46557         New module 'uninorm/u32-normcmp'.
46558         * lib/uninorm/u32-normcmp.c: New file.
46559         * modules/uninorm/u32-normcmp: New file.
46560
46561         New module 'uninorm/u16-normcmp'.
46562         * lib/uninorm/u16-normcmp.c: New file.
46563         * modules/uninorm/u16-normcmp: New file.
46564
46565         New module 'uninorm/u8-normcmp'.
46566         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46567         declarations.
46568         * lib/uninorm/u8-normcmp.c: New file.
46569         * lib/uninorm/u-normcmp.h: New file.
46570         * modules/uninorm/u8-normcmp: New file.
46571
46572 2009-03-06  Bruno Haible  <bruno@clisp.org>
46573
46574         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46575         Reported by Eric Blake.
46576
46577 2009-03-06  Eric Blake  <ebb9@byu.net>
46578             Bruno Haible  <bruno@clisp.org>
46579
46580         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46581         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46582         condition.
46583         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46584         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46585         condition.
46586         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46587
46588 2009-03-06  Eric Blake  <ebb9@byu.net>
46589
46590         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46591         to avoid compiler warnings.
46592         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46593
46594 2009-03-05  Bruno Haible  <bruno@clisp.org>
46595
46596         * tests/test-ftell.c (main): Disable test beyond end of file on
46597         FreeMiNT.
46598         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46599
46600 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46601
46602         * lib/filevercmp.c: Move hidden files up in ordering.
46603         * tests/test-filevercmp.c: Add tests for hidden files.
46604
46605 2009-03-04  Bruno Haible  <bruno@clisp.org>
46606
46607         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46608         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46609         AM_CFLAGS.
46610         Reported by Simon Josefsson.
46611
46612 2009-03-03  Bruno Haible  <bruno@clisp.org>
46613
46614         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46615         Reported by Simon Josefsson.
46616
46617         * doc/ld-version-script.texi: Update node reference.
46618
46619 2009-03-03  Bruno Haible  <bruno@clisp.org>
46620
46621         * modules/visibility (License): Change to 'unlimited'.
46622         Suggested by Simon Josefsson.
46623
46624 2009-03-03  Jim Meyering  <meyering@redhat.com>
46625
46626         unlinkdir: cannot_unlink_dir may modify process state
46627         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46628         it's neither thread-safe nor appropriate for use in a library.
46629
46630 2009-03-03  Eric Blake  <ebb9@byu.net>
46631
46632         test-closein: silence test under Darwin
46633         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46634         care if it dies from EPIPE or EBADF.
46635
46636 2009-03-03  Bruno Haible  <bruno@clisp.org>
46637
46638         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46639         earlier.
46640         * doc/visibility.texi: Fix @node and @section.
46641
46642 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46643
46644         * doc/gnulib.texi: Link to sections for ld version script and
46645         visibility.
46646         * doc/visibility.texi: Add @node and @section.
46647         * modules/ld-version-script: New module.
46648         * m4/ld-version-script.m4: New file.
46649         * doc/ld-version-script.texi: New file.
46650
46651 2009-03-02  David Lutterkort  <lutter@redhat.com>
46652
46653         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46654         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46655
46656 2009-03-02  Bruno Haible  <bruno@clisp.org>
46657
46658         * doc/visibility.texi: Mention libtool's -export-symbols option.
46659
46660 2009-03-02  Jim Meyering  <meyering@redhat.com>
46661
46662         announce-gen: new option: --no-print-checksums
46663         * build-aux/announce-gen (usage): Describe it.
46664         (print_checksums): Print a newline here, not in the [*] footnote.
46665         (main): Honor it.
46666
46667 2009-03-01  Bruno Haible  <bruno@clisp.org>
46668
46669         Use socklen_t in the native Windows replacements prototypes.
46670         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46671         instead of 'int'.
46672         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46673         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46674         * modules/getsockopt (Depends-on): Add socklen.
46675         * modules/setsockopt (Depends-on): Add socklen.
46676
46677 2009-03-01  Bruno Haible  <bruno@clisp.org>
46678
46679         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46680         least 4.2.
46681
46682 2009-03-01  Eric Blake  <ebb9@byu.net>
46683             Bruno Haible  <bruno@clisp.org>
46684
46685         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46686         error messages.
46687         * lib/wait-process.c (wait_subprocess): Omit error message about
46688         deadly signal sent to the child of termsigp != NULL.
46689
46690 2009-03-01  Eric Blake  <ebb9@byu.net>
46691
46692         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46693
46694 2009-03-01  Bruno Haible  <bruno@clisp.org>
46695
46696         Avoid a gcc warning.
46697         * tests/test-sched.c (b): Make global.
46698         Reported by Eric Blake.
46699
46700 2009-01-19  Martin Lambers  <marlam@marlam.de>
46701
46702         Provide POSIX semantics for socket timeout options on W32.
46703         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46704         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46705         * modules/setsockopt: Depend on sys_time module for struct timeval.
46706         * modules/getsockopt: Depend on sys_time module for struct timeval.
46707
46708 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46709
46710         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46711         __USE_GNU, for consistency with netdb.in.h.
46712         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46713
46714 2009-03-01  Bruno Haible  <bruno@clisp.org>
46715
46716         More support for FreeMiNT.
46717         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46718         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46719
46720 2009-03-01  Bruno Haible  <bruno@clisp.org>
46721
46722         More support for FreeMiNT.
46723         * lib/fpurge.c (fpurge): Correct last commit.
46724         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46725
46726 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46727
46728         Fix unportable awk script in vc-list-files.
46729         * build-aux/vc-list-files: In the replacement awk script, use
46730         substr with a second argument of 1, not zero.
46731         Report by Simon Josefsson.
46732
46733 2009-02-28  Bruno Haible  <bruno@clisp.org>
46734
46735         More support for FreeMiNT.
46736         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46737         to FreeMiNT today.
46738         * lib/fwriting.c (fwriting): Likewise.
46739         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46740
46741 2009-02-28  Bruno Haible  <bruno@clisp.org>
46742
46743         * tests/test-freadseek.c (main): Disable test beyond end of file on
46744         FreeMiNT.
46745         * tests/test-ftello.c (main): Likewise.
46746         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46747
46748 2009-02-28  Bruno Haible  <bruno@clisp.org>
46749
46750         Add tentative support for FreeMiNT.
46751         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46752         * lib/fpurge.c (fpurge): Likewise.
46753         * lib/freadable.c (freadable): Likewise.
46754         * lib/freading.c (freading): Likewise.
46755         * lib/freadptr.c (freadptr): Likewise.
46756         * lib/freadseek.c (freadptrinc): Likewise.
46757         * lib/fseeko.c (rpl_fseeko): Likewise.
46758         * lib/fseterr.c (fseterr): Likewise.
46759         * lib/fwritable.c (fwritable): Likewise.
46760         * lib/fwriting.c (fwriting): Likewise.
46761         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46762         Hourihane.
46763         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46764
46765 2009-02-28  Bruno Haible  <bruno@clisp.org>
46766
46767         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46768         SIGCHLD.
46769         Reported by Jim Meyering.
46770
46771 2009-02-28  Bruno Haible  <bruno@clisp.org>
46772
46773         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46774         Mention the results of these tests on various platforms.
46775         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46776         order.
46777         * doc/posix-functions/printf.texi: Likewise.
46778         * doc/posix-functions/snprintf.texi: Likewise.
46779         * doc/posix-functions/sprintf.texi: Likewise.
46780         * doc/posix-functions/vfprintf.texi: Likewise.
46781         * doc/posix-functions/vprintf.texi: Likewise.
46782         * doc/posix-functions/vsnprintf.texi: Likewise.
46783         * doc/posix-functions/vsprintf.texi: Likewise.
46784         * doc/glibc-functions/obstack_printf.texi: Likewise.
46785         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46786
46787 2009-02-28  Bruno Haible  <bruno@clisp.org>
46788
46789         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46790         Reported by Loïc Minier <lool@dooz.org>.
46791
46792 2009-02-27  Bruno Haible  <bruno@clisp.org>
46793
46794         * gnulib-tool (func_import): Make the sed expression used to create the
46795         sed script for updating the .gitignore file POSIX compliant.
46796         Reported by Eric Blake.
46797
46798 2009-02-27  Bruno Haible  <bruno@clisp.org>
46799
46800         * gnulib-tool (sed): Don't alias as "sed --posix".
46801         Reported by Eric Blake.
46802
46803 2009-02-27  Bruno Haible  <bruno@clisp.org>
46804
46805         Avoid test link errors.
46806         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46807         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46808         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46809         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46810         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46811
46812 2009-02-27  Bruno Haible  <bruno@clisp.org>
46813
46814         Avoid spurious "(cached)" in configure output.
46815         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46816         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46817         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46818         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46819         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46820         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46821         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46822         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46823         Reported by Eric Blake.
46824
46825 2009-02-27  Eric Blake  <ebb9@byu.net>
46826
46827         printf: fix regression in previous patch
46828         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46829
46830 2009-02-27  Bruno Haible  <bruno@clisp.org>
46831
46832         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46833         value.
46834         * lib/stdint.in.h: Likewise.
46835         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46836
46837 2009-02-27  Eric Blake  <ebb9@byu.net>
46838
46839         doc: mention more functions added in cygwin 1.7.0
46840         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46841         addition.
46842         * doc/posix-functions/open_wmemstream.texi: Likewise.
46843         * doc/posix-functions/wcsnlen.texi: Likewise.
46844         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46845         * doc/posix-functions/wcstod.texi: Likewise.
46846         * doc/posix-functions/wcstof.texi: Likewise.
46847         * doc/posix-functions/wcstoimax.texi: Likewise.
46848         * doc/posix-functions/wcstok.texi: Likewise.
46849         * doc/posix-functions/wcstoumax.texi: Likewise.
46850
46851         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46852         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46853         * doc/posix-functions/fprintf.texi: Update.
46854         * doc/posix-functions/printf.texi: Update.
46855         * doc/posix-functions/snprintf.texi: Update.
46856         * doc/posix-functions/sprintf.texi: Update.
46857         * doc/posix-functions/vfprintf.texi: Update.
46858         * doc/posix-functions/vprintf.texi: Update.
46859         * doc/posix-functions/vsnprintf.texi: Update.
46860         * doc/posix-functions/vsprintf.texi: Update.
46861         * doc/glibc-functions/obstack_printf.texi: Update.
46862         * doc/glibc-functions/obstack_vprintf.texi: Update.
46863
46864 2009-02-26  Eric Blake  <ebb9@byu.net>
46865
46866         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46867         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46868         compilation bug by using runtime conversion.
46869         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46870         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46871         * modules/ceill-tests (Files): Use nan.h.
46872         * modules/floorl-tests (Files): Likewise.
46873         * modules/frexpl-tests (Files): Likewise.
46874         * modules/isnanl-tests (Files): Likewise.
46875         * modules/ldexpl-tests (Files): Likewise.
46876         * modules/roundl-tests (Files): Likewise.
46877         * modules/truncl-tests (Files): Likewise.
46878         * tests/test-ceill.c (main): Use a working NaN.
46879         * tests/test-floorl.c (main): Likewise.
46880         * tests/test-frexpl.c (main): Likewise.
46881         * tests/test-isnan.c (test_long_double): Likewise.
46882         * tests/test-isnanl.h (main): Likewise.
46883         * tests/test-ldexpl.h (main): Likewise.
46884         * tests/test-roundl.h (main): Likewise.
46885         * tests/test-truncl.h (main): Likewise.
46886         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46887
46888 2009-02-26  Eric Blake  <ebb9@byu.net>
46889             Bruno Haible  <bruno@clisp.org>
46890
46891         Work around a *printf bug with %ls on Solaris.
46892         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46893         precision is specified, sprintf stops converting the wide string
46894         argument when the number of bytes that have been produced by this
46895         conversion equals or exceeds the precision.
46896         * doc/posix-functions/fprintf.texi: Update.
46897         * doc/posix-functions/printf.texi: Update.
46898         * doc/posix-functions/snprintf.texi: Update.
46899         * doc/posix-functions/sprintf.texi: Update.
46900         * doc/posix-functions/vfprintf.texi: Update.
46901         * doc/posix-functions/vprintf.texi: Update.
46902         * doc/posix-functions/vsnprintf.texi: Update.
46903         * doc/posix-functions/vsprintf.texi: Update.
46904         * doc/glibc-functions/obstack_printf.texi: Update.
46905         * doc/glibc-functions/obstack_vprintf.texi: Update.
46906
46907 2009-02-26  Eric Blake  <ebb9@byu.net>
46908
46909         stdlib: favor compiler check of random.h
46910         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46911         to avoid an ObjC random.h installed by Swarm.
46912
46913 2009-02-26  Bruno Haible  <bruno@clisp.org>
46914
46915         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46916         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46917         Reported by Gary V. Vaughan <gary@gnu.org>.
46918
46919 2009-02-26  Bruno Haible  <bruno@clisp.org>
46920
46921         Fix *printf behaviour regarding the %ls directive.
46922         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46923         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46924         NEED_PRINTF_DIRECTIVE_LS.
46925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46926         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46927         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46928         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46929         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46930         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46931         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46932         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46933         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46934         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46935         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46936         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46937         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46938         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46939         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46940         * doc/posix-functions/fprintf.texi: Update.
46941         * doc/posix-functions/printf.texi: Update.
46942         * doc/posix-functions/snprintf.texi: Update.
46943         * doc/posix-functions/sprintf.texi: Update.
46944         * doc/posix-functions/vfprintf.texi: Update.
46945         * doc/posix-functions/vprintf.texi: Update.
46946         * doc/posix-functions/vsnprintf.texi: Update.
46947         * doc/posix-functions/vsprintf.texi: Update.
46948         * doc/glibc-functions/obstack_printf.texi: Update.
46949         * doc/glibc-functions/obstack_vprintf.texi: Update.
46950         Reported by Eric Blake.
46951
46952 2009-02-25  Bruno Haible  <bruno@clisp.org>
46953
46954         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46955         with known value.
46956         Reported by Gary V. Vaughan <gary@gnu.org>.
46957
46958 2009-02-25  Bruno Haible  <bruno@clisp.org>
46959
46960         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46961         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46962         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46963         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46964         Reported by Gary V. Vaughan <gary@gnu.org>.
46965
46966 2009-02-25  Bruno Haible  <bruno@clisp.org>
46967
46968         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46969         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46970         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46971         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46972         Reported by Gary V. Vaughan <gary@gnu.org>.
46973
46974 2009-02-25  Eric Blake  <ebb9@byu.net>
46975
46976         tests: skip fseek/ftell tests if ungetc is broken
46977         * m4/ungetc.m4: New file.
46978         * modules/fseek-tests: Split test, so ungetc dependency is
46979         separate from rest of test.
46980         * modules/fseeko-tests: Likewise.
46981         * modules/ftell-tests: Likewise.
46982         * modules/ftello-tests: Likewise.
46983         * tests/test-fseek.c (main): Isolate ungetc dependency.
46984         * tests/test-fseeko.c (main): Likewise.
46985         * tests/test-ftell.c (main): Likewise.
46986         * tests/test-ftello.c (main): Likewise.
46987         * tests/test-fseek2.sh: New file.
46988         * tests/test-fseeko2.sh: Likewise.
46989         * tests/test-ftell2.sh: Likewise.
46990         * tests/test-ftello2.sh: Likewise.
46991
46992 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
46993
46994         test-getaddrinfo: fix usage of skip return code 77
46995         * tests/test-gettaddrinfo.c: Return skip code 77 only
46996         for first occurrence of skip (4x77 is not 77)
46997
46998 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46999
47000         strtod: avoid C99 decl-after-statement
47001         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47002
47003 2009-02-24  Eric Blake  <ebb9@byu.net>
47004
47005         strtod: detect HP-UX 11.31 bug
47006         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47007         Reported by Gary V. Vaughan.
47008
47009 2009-02-23  Bruno Haible  <bruno@clisp.org>
47010
47011         Fix invalid read past end of memory block.
47012         * lib/vasnprintf.c (DCHAR_SET): Define.
47013         (local_wcslen): Define only when needed.
47014         (local_strnlen, local_wcsnlen): New functions.
47015         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47016         directives that involve a conversion ourselves.
47017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47018         wcsnlen, mbrtowc, wcrtomb.
47019         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47020         * tests/test-vasprintf-posix.c (test_function): Likewise.
47021         * tests/test-snprintf-posix.h (test_function): Likewise.
47022         * tests/test-sprintf-posix.h (test_function): Likewise.
47023         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47024
47025 2009-02-22  Bruno Haible  <bruno@clisp.org>
47026
47027         Implement new clarified decomposition of Hangul syllables.
47028         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47029         of type LTV, return only a pairwise decomposition.
47030         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47031         Likewise.
47032         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47033         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47034         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47035
47036 2009-02-22  Bruno Haible  <bruno@clisp.org>
47037
47038         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47039         zero-length results and shrink excess allocated memory.
47040         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47041         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47042         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47043         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47044         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47045         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47046         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47047         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47048         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47049         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47050         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47051         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47052
47053 2009-02-21  Bruno Haible  <bruno@clisp.org>
47054
47055         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47056         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47057         spaces after a period. Put a space between a macro name and its
47058         argument list. Trivial rewordings.
47059         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47060         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47061         (main): Return 0 explicitly.
47062
47063 2009-02-21  Bruno Haible  <bruno@clisp.org>
47064
47065         Tests for module 'uninorm/filter'.
47066         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47067         * modules/uninorm/filter-tests: New file.
47068
47069         New module 'uninorm/filter'.
47070         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47071         uninorm_filter_flush, uninorm_filter_free): New declarations.
47072         * lib/uninorm/uninorm-filter.c: New file.
47073         * modules/uninorm/filter: New file.
47074
47075 2009-02-21  Bruno Haible  <bruno@clisp.org>
47076
47077         Tests for module 'uninorm/nfkc'.
47078         * tests/uninorm/test-nfkc.c: New file.
47079         * tests/uninorm/test-u8-nfkc.c: New file.
47080         * tests/uninorm/test-u16-nfkc.c: New file.
47081         * tests/uninorm/test-u32-nfkc.c: New file.
47082         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47083         * tests/uninorm/test-u32-nfkc-big.c: New file.
47084         * modules/uninorm/nfkc-tests: New file.
47085
47086         New module 'uninorm/nfkc'.
47087         * lib/uninorm/nfkc.c: New file.
47088         * modules/uninorm/nfkc: New file.
47089
47090         Tests for module 'uninorm/nfkd'.
47091         * tests/uninorm/test-nfkd.c: New file.
47092         * tests/uninorm/test-u8-nfkd.c: New file.
47093         * tests/uninorm/test-u16-nfkd.c: New file.
47094         * tests/uninorm/test-u32-nfkd.c: New file.
47095         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47096         * tests/uninorm/test-u32-nfkd-big.c: New file.
47097         * modules/uninorm/nfkd-tests: New file.
47098
47099         New module 'uninorm/nfkd'.
47100         * lib/uninorm/nfkd.c: New file.
47101         * modules/uninorm/nfkd: New file.
47102
47103         Tests for module 'uninorm/nfc'.
47104         * tests/uninorm/test-nfc.c: New file.
47105         * tests/uninorm/test-u8-nfc.c: New file.
47106         * tests/uninorm/test-u16-nfc.c: New file.
47107         * tests/uninorm/test-u32-nfc.c: New file.
47108         * tests/uninorm/test-u32-nfc-big.sh: New file.
47109         * tests/uninorm/test-u32-nfc-big.c: New file.
47110         * modules/uninorm/nfc-tests: New file.
47111
47112         New module 'uninorm/nfc'.
47113         * lib/uninorm/nfc.c: New file.
47114         * modules/uninorm/nfc: New file.
47115
47116         Tests for module 'uninorm/nfd'.
47117         * tests/uninorm/test-nfd.c: New file.
47118         * tests/uninorm/test-u8-nfd.c: New file.
47119         * tests/uninorm/test-u16-nfd.c: New file.
47120         * tests/uninorm/test-u32-nfd.c: New file.
47121         * tests/uninorm/test-u32-nfd-big.sh: New file.
47122         * tests/uninorm/test-u32-nfd-big.c: New file.
47123         * tests/uninorm/test-u32-normalize-big.h: New file.
47124         * tests/uninorm/test-u32-normalize-big.c: New file.
47125         * tests/uninorm/NormalizationTest.txt: New file, created from
47126         Unicode 5.1.0 NormalizationTest.txt.
47127         * modules/uninorm/nfd-tests: New file.
47128
47129         New module 'uninorm/nfd'.
47130         * lib/uninorm/nfd.c: New file.
47131         * modules/uninorm/nfd: New file.
47132
47133         New module 'uninorm/u32-normalize'.
47134         * lib/uninorm/u32-normalize.c: New file.
47135         * modules/uninorm/u32-normalize: New file.
47136
47137         New module 'uninorm/u16-normalize'.
47138         * lib/uninorm/u16-normalize.c: New file.
47139         * modules/uninorm/u16-normalize: New file.
47140
47141         New module 'uninorm/u8-normalize'.
47142         * lib/uninorm/u8-normalize.c: New file.
47143         * lib/uninorm/normalize-internal.h: New file.
47144         * lib/uninorm/u-normalize-internal.h: New file.
47145         * modules/uninorm/u8-normalize: New file.
47146
47147         New module 'uninorm/decompose-internal'.
47148         * lib/uninorm/decompose-internal.c: New file.
47149         * modules/uninorm/decompose-internal: New file.
47150
47151         Tests for module 'uninorm/composition'.
47152         * tests/uninorm/test-composition.c: New file.
47153         * modules/uninorm/composition-tests: New file.
47154
47155         New module 'uninorm/composition'.
47156         * lib/uninorm/composition.c: New file.
47157         * lib/uninorm/composition-table.gperf: New file, generated by
47158         gen-uni-tables.
47159         * modules/uninorm/composition: New file.
47160
47161         Tests for module 'uninorm/compat-decomposition'.
47162         * tests/uninorm/test-compat-decomposition.c: New file.
47163         * modules/uninorm/compat-decomposition-tests: New file.
47164
47165         New module 'uninorm/compat-decomposition'.
47166         * lib/uninorm/decompose-internal.h: New file.
47167         * lib/uninorm/compat-decomposition.c: New file.
47168         * modules/uninorm/compat-decomposition: New file.
47169
47170         Tests for module 'uninorm/canonical-decomposition'.
47171         * tests/uninorm/test-canonical-decomposition.c: New file.
47172         * modules/uninorm/canonical-decomposition-tests: New file.
47173
47174         New module 'uninorm/canonical-decomposition'.
47175         * lib/uninorm/canonical-decomposition.c: New file.
47176         * modules/uninorm/canonical-decomposition: New file.
47177
47178         Tests for module 'uninorm/decomposition'.
47179         * tests/uninorm/test-decomposition.c: New file.
47180         * modules/uninorm/decomposition-tests: New file.
47181
47182         New module 'uninorm/decomposition'.
47183         * lib/uninorm/decomposition.c: New file.
47184         * modules/uninorm/decomposition: New file.
47185
47186         New module 'uninorm/decomposition-table'.
47187         * lib/uninorm/decomposition-table.h: New file.
47188         * lib/uninorm/decomposition-table.c: New file.
47189         * lib/uninorm/decomposition-table1.h: New file, generated by
47190         gen-uni-tables.
47191         * lib/uninorm/decomposition-table2.h: New file, generated by
47192         gen-uni-tables.
47193         * modules/uninorm/decomposition-table: New file.
47194
47195         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47196         (UC_DECOMP_*): New enumeration items.
47197         (get_decomposition): New function.
47198         (struct decomp_table): New type.
47199         (output_decomposition, output_decomposition_tables): New functions.
47200         (unicode_composition_exclusions): New variable.
47201         (fill_composition_exclusions, debug_output_composition_tables): New
47202         functions.
47203         (main): Accept one more argument. Invoke fill_composition_exclusions.
47204         Output decomposition and composition tables.
47205
47206         New module 'uninorm/base'.
47207         * lib/uninorm.h: New file.
47208         * lib/unictype.h: Update comment.
47209         * modules/uninorm/base: New file.
47210
47211 2009-02-21  David Lutterkort  <lutter@redhat.com>
47212
47213         Tests for module 'safe-alloc'.
47214         * tests/test-safe-alloc.c: New file.
47215         * modules/safe-alloc-tests: New file.
47216
47217         New module 'safe-alloc'.
47218         * lib/safe-alloc.h: New file.
47219         * lib/safe-alloc.c: New file.
47220         * m4/safe-alloc.m4: New file.
47221         * modules/safe-alloc: New file.
47222         * doc/safe-alloc.texi: New file.
47223         * doc/gnulib.texi: Include it.
47224         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47225         safe-alloc.
47226
47227 2009-02-18  Bruno Haible  <bruno@clisp.org>
47228
47229         Fix link error on non-glibc systems.
47230         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47231         variable.
47232         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47233
47234 2009-02-18  Jim Meyering  <meyering@redhat.com>
47235
47236         fts: avoid used-uninitialized error due to recent change
47237         * lib/fts.c (fts_read): Guard uses of the new member,
47238         parent->fts_n_dirs_remaining, since it's not relevant for
47239         the parent of a directory specified on the command-line.
47240
47241 2009-02-17  James Youngman  <jay@gnu.org>
47242             Bruno Haible  <bruno@clisp.org>
47243
47244         * m4/include_next.m4: Reformulate comment.
47245
47246 2009-02-16  Jim Meyering  <meyering@redhat.com>
47247
47248         fts: add #if guards so that the fts_lgpl module still builds
47249         * lib/fts.c: Guard just-added hash-table-using parts with
47250         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47251         Reported by Simon Josefsson.
47252
47253 2009-02-15  Bruno Haible  <bruno@clisp.org>
47254
47255         * modules/array-mergesort-tests: New file.
47256         * tests/test-array-mergesort.c: New file.
47257
47258         New module 'array-mergesort'.
47259         * modules/array-mergesort: New file.
47260         * lib/array-mergesort.h: New file.
47261
47262 2009-02-15  Bruno Haible  <bruno@clisp.org>
47263
47264         Fix 2009-02-07 commit.
47265         * lib/gen-uni-tables.c (output_predicate, output_category,
47266         output_combclass, output_bidi_category, output_decimal_digit,
47267         output_digit, output_numeric, output_mirror, output_scripts,
47268         output_ident_category, output_simple_mapping): Fix format directives.
47269         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47270
47271 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47272
47273         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47274         fixes are available from IBM.
47275
47276 2009-02-13  Jim Meyering  <meyering@redhat.com>
47277
47278         fts: arrange not to stat non-directories in more cases
47279         This makes GNU find (when it doesn't need to stat each file)
47280         *much* more efficient at traversing reiserfs file systems.
47281         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47282         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47283         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47284         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47285         (leaf_optimization_applies): New function.
47286         (LCO_hash, LCO_compare): New helper functions.
47287         (link_count_optimize_ok): New function.
47288         (fts_stat): Initialize new member (if dir).
47289         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47290         we've just stat'ed a directory.  Skip the stat call when possible.
47291         ---
47292         Note this AFS-related exchange:
47293         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47294         and note find's pioctl call in find/fstype.c.
47295         But that is necessary only if you want to enable the
47296         optimization for AFS, and for now, I don't.
47297
47298         fts: move a function definition "up" (no semantic change)
47299         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47300         "up" to precede upcoming use of a related function.
47301
47302 2009-02-11  Jim Meyering  <meyering@redhat.com>
47303
47304         fts: correct internal computation of nlinks (optimization-related)
47305         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47306         whether the current entry is a directory, so don't test it.
47307
47308 2009-02-10  Bruno Haible  <bruno@clisp.org>
47309
47310         Tests for module 'uniwbrk/ulc-wordbreaks'.
47311         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47312         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47313         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47314
47315         Tests for module 'uniwbrk/u32-wordbreaks'.
47316         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47317         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47318
47319         Tests for module 'uniwbrk/u16-wordbreaks'.
47320         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47321         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47322
47323         Tests for module 'uniwbrk/u8-wordbreaks'.
47324         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47325         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47326
47327 2009-02-10  Bruno Haible  <bruno@clisp.org>
47328
47329         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47330         property.
47331         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47332         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47333         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47334
47335 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47336
47337         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47338         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47339
47340 2009-02-10  Bruno Haible  <bruno@clisp.org>
47341
47342         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47343         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47344         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47345         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47346         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47347         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47348
47349 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47350
47351         * lib/sockets.h (gl_fd_to_handle): New function.
47352
47353         * tests/test-sockets.c: Call gl_fd_to_handle.
47354
47355 2009-02-09  Bruno Haible  <bruno@clisp.org>
47356
47357         * doc/havelib.texi: Document the conventions on bi-arch systems.
47358
47359 2009-02-08  Bruno Haible  <bruno@clisp.org>
47360
47361         Document the AC_LIB_LINKFLAGS macro.
47362         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47363         * doc/gnulib.texi: Include it.
47364
47365 2009-02-08  Bruno Haible  <bruno@clisp.org>
47366
47367         Fix wrong order of sections, compared to TOC.
47368         * doc/gnulib.texi: Include relocatable-maint.texi after the
47369         "Regular expressions" node, not before.
47370
47371 2009-02-08  Bruno Haible  <bruno@clisp.org>
47372
47373         Tests for module 'unicase/totitle'.
47374         * modules/unicase/totitle-tests: New file.
47375
47376         Tests for module 'unicase/tolower'.
47377         * modules/unicase/tolower-tests: New file.
47378
47379         Tests for module 'unicase/toupper'.
47380         * modules/unicase/toupper-tests: New file.
47381         * tests/unicase/test-mapping-part1.h: New file.
47382         * tests/unicase/test-mapping-part2.h: New file.
47383
47384         New module 'unicase/totitle'.
47385         * modules/unicase/totitle: New file.
47386         * lib/unicase/totitle.c: New file.
47387
47388         New module 'unicase/tolower'.
47389         * modules/unicase/tolower: New file.
47390         * lib/unicase/tolower.c: New file.
47391
47392         New module 'unicase/toupper'.
47393         * modules/unicase/toupper: New file.
47394         * lib/unicase/toupper.c: New file.
47395         * lib/unicase/simple-mapping.h: New file.
47396
47397         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47398         (mapping_table): New structure.
47399         (output_simple_mapping): New function.
47400         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47401         * modules/gen-uni-tables (Description): Update.
47402         * lib/unicase/toupper.h: New file, automatically generated by
47403         gen-uni-tables.
47404         * lib/unicase/tolower.h: New file, automatically generated by
47405         gen-uni-tables.
47406         * lib/unicase/totitle.h: New file, automatically generated by
47407         gen-uni-tables.
47408         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47409         gen-uni-tables.
47410         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47411         gen-uni-tables.
47412         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47413         gen-uni-tables.
47414
47415         New module 'unicase/base'.
47416         * modules/unicase/base: New file.
47417         * lib/unicase.h: New file.
47418
47419 2009-02-08  Bruno Haible  <bruno@clisp.org>
47420
47421         New module 'uniwbrk/ulc-wordbreaks'.
47422         * modules/uniwbrk/ulc-wordbreaks: New file.
47423         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47424
47425         New module 'uniwbrk/u32-wordbreaks'.
47426         * modules/uniwbrk/u32-wordbreaks: New file.
47427         * lib/uniwbrk/u32-wordbreaks.c: New file.
47428
47429         New module 'uniwbrk/u16-wordbreaks'.
47430         * modules/uniwbrk/u16-wordbreaks: New file.
47431         * lib/uniwbrk/u16-wordbreaks.c: New file.
47432
47433         New module 'uniwbrk/u8-wordbreaks'.
47434         * modules/uniwbrk/u8-wordbreaks: New file.
47435         * lib/uniwbrk/u8-wordbreaks.c: New file.
47436         * lib/uniwbrk/u-wordbreaks.h: New file.
47437
47438         New module 'uniwbrk/table'.
47439         * modules/uniwbrk/table: New file.
47440         * lib/uniwbrk/wbrktable.h: New file.
47441         * lib/uniwbrk/wbrktable.c: New file.
47442
47443         New module 'uniwbrk/wordbreak-property'.
47444         * modules/uniwbrk/wordbreak-property: New file.
47445         * lib/uniwbrk/wordbreak-property.c: New file.
47446
47447         * lib/gen-uni-tables.c (WBP_*): New enum items.
47448         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47449         (unicode_org_wbp): New variable.
47450         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47451         New functions.
47452         (wbp_table): New structure.
47453         (output_wbp, output_wbrk_tables): New functions.
47454         (main): Accept additional argument. Invoke fill_org_wbp,
47455         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47456         output_wbrk_tables.
47457         * modules/gen-uni-tables (Description): Update.
47458         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47459         gen-uni-tables.
47460
47461         New module 'uniwbrk/base'.
47462         * modules/uniwbrk/base: New file.
47463         * lib/uniwbrk.h: New file.
47464
47465 2009-02-08  Bruno Haible  <bruno@clisp.org>
47466
47467         Update to Unicode 5.1.0.
47468         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47469         U+2185..U+2188.
47470         (is_property_default_ignorable_code_point): Don't include characters
47471         of category Cc or Cs and not-a-characters.
47472         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47473         U+0D79, U+109E, U+109F, U+A60C.
47474         * lib/unictype/bidi_of.h: Regenerated.
47475         * lib/unictype/blocks.h: Regenerated.
47476         * lib/unictype/categ_C.h: Regenerated.
47477         * lib/unictype/categ_Cf.h: Regenerated.
47478         * lib/unictype/categ_Cn.h: Regenerated.
47479         * lib/unictype/categ_L.h: Regenerated.
47480         * lib/unictype/categ_Ll.h: Regenerated.
47481         * lib/unictype/categ_Lm.h: Regenerated.
47482         * lib/unictype/categ_Lo.h: Regenerated.
47483         * lib/unictype/categ_Lu.h: Regenerated.
47484         * lib/unictype/categ_M.h: Regenerated.
47485         * lib/unictype/categ_Mc.h: Regenerated.
47486         * lib/unictype/categ_Me.h: Regenerated.
47487         * lib/unictype/categ_Mn.h: Regenerated.
47488         * lib/unictype/categ_N.h: Regenerated.
47489         * lib/unictype/categ_Nd.h: Regenerated.
47490         * lib/unictype/categ_Nl.h: Regenerated.
47491         * lib/unictype/categ_No.h: Regenerated.
47492         * lib/unictype/categ_P.h: Regenerated.
47493         * lib/unictype/categ_Pd.h: Regenerated.
47494         * lib/unictype/categ_Pe.h: Regenerated.
47495         * lib/unictype/categ_Pf.h: Regenerated.
47496         * lib/unictype/categ_Pi.h: Regenerated.
47497         * lib/unictype/categ_Po.h: Regenerated.
47498         * lib/unictype/categ_Ps.h: Regenerated.
47499         * lib/unictype/categ_S.h: Regenerated.
47500         * lib/unictype/categ_Sk.h: Regenerated.
47501         * lib/unictype/categ_Sm.h: Regenerated.
47502         * lib/unictype/categ_So.h: Regenerated.
47503         * lib/unictype/categ_of.h: Regenerated.
47504         * lib/unictype/combining.h: Regenerated.
47505         * lib/unictype/ctype_alnum.h: Regenerated.
47506         * lib/unictype/ctype_alpha.h: Regenerated.
47507         * lib/unictype/ctype_graph.h: Regenerated.
47508         * lib/unictype/ctype_lower.h: Regenerated.
47509         * lib/unictype/ctype_print.h: Regenerated.
47510         * lib/unictype/ctype_punct.h: Regenerated.
47511         * lib/unictype/ctype_upper.h: Regenerated.
47512         * lib/unictype/decdigit.h: Regenerated.
47513         * lib/unictype/digit.h: Regenerated.
47514         * lib/unictype/mirror.h: Regenerated.
47515         * lib/unictype/numeric.h: Regenerated.
47516         * lib/unictype/pr_alphabetic.h: Regenerated.
47517         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47518         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47519         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47520         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47521         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47522         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47523         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47524         * lib/unictype/pr_combining.h: Regenerated.
47525         * lib/unictype/pr_dash.h: Regenerated.
47526         * lib/unictype/pr_decimal_digit.h: Regenerated.
47527         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47528         * lib/unictype/pr_deprecated.h: Regenerated.
47529         * lib/unictype/pr_diacritic.h: Regenerated.
47530         * lib/unictype/pr_extender.h: Regenerated.
47531         * lib/unictype/pr_format_control.h: Regenerated.
47532         * lib/unictype/pr_grapheme_base.h: Regenerated.
47533         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47534         * lib/unictype/pr_grapheme_link.h: Regenerated.
47535         * lib/unictype/pr_id_continue.h: Regenerated.
47536         * lib/unictype/pr_id_start.h: Regenerated.
47537         * lib/unictype/pr_ideographic.h: Regenerated.
47538         * lib/unictype/pr_ignorable_control.h: Regenerated.
47539         * lib/unictype/pr_lowercase.h: Regenerated.
47540         * lib/unictype/pr_math.h: Regenerated.
47541         * lib/unictype/pr_numeric.h: Regenerated.
47542         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47543         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47544         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47545         * lib/unictype/pr_other_id_continue.h: Regenerated.
47546         * lib/unictype/pr_other_lowercase.h: Regenerated.
47547         * lib/unictype/pr_other_math.h: Regenerated.
47548         * lib/unictype/pr_punctuation.h: Regenerated.
47549         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47550         * lib/unictype/pr_soft_dotted.h: Regenerated.
47551         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47552         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47553         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47554         * lib/unictype/pr_uppercase.h: Regenerated.
47555         * lib/unictype/pr_xid_continue.h: Regenerated.
47556         * lib/unictype/pr_xid_start.h: Regenerated.
47557         * lib/unictype/pr_zero_width.h: Regenerated.
47558         * lib/unictype/scripts.h: Regenerated.
47559         * lib/unictype/scripts_byname.gperf: Regenerated.
47560         * lib/unictype/sy_java_ident.h: Regenerated.
47561         * lib/unilbrk/lbrkprop1.h: Regenerated.
47562         * lib/unilbrk/lbrkprop2.h: Regenerated.
47563         * tests/unictype/test-categ_C.c: Regenerated.
47564         * tests/unictype/test-categ_Cf.c: Regenerated.
47565         * tests/unictype/test-categ_Cn.c: Regenerated.
47566         * tests/unictype/test-categ_L.c: Regenerated.
47567         * tests/unictype/test-categ_Ll.c: Regenerated.
47568         * tests/unictype/test-categ_Lm.c: Regenerated.
47569         * tests/unictype/test-categ_Lo.c: Regenerated.
47570         * tests/unictype/test-categ_Lu.c: Regenerated.
47571         * tests/unictype/test-categ_M.c: Regenerated.
47572         * tests/unictype/test-categ_Mc.c: Regenerated.
47573         * tests/unictype/test-categ_Me.c: Regenerated.
47574         * tests/unictype/test-categ_Mn.c: Regenerated.
47575         * tests/unictype/test-categ_N.c: Regenerated.
47576         * tests/unictype/test-categ_Nd.c: Regenerated.
47577         * tests/unictype/test-categ_Nl.c: Regenerated.
47578         * tests/unictype/test-categ_No.c: Regenerated.
47579         * tests/unictype/test-categ_P.c: Regenerated.
47580         * tests/unictype/test-categ_Pd.c: Regenerated.
47581         * tests/unictype/test-categ_Pe.c: Regenerated.
47582         * tests/unictype/test-categ_Pf.c: Regenerated.
47583         * tests/unictype/test-categ_Pi.c: Regenerated.
47584         * tests/unictype/test-categ_Po.c: Regenerated.
47585         * tests/unictype/test-categ_Ps.c: Regenerated.
47586         * tests/unictype/test-categ_S.c: Regenerated.
47587         * tests/unictype/test-categ_Sk.c: Regenerated.
47588         * tests/unictype/test-categ_Sm.c: Regenerated.
47589         * tests/unictype/test-categ_So.c: Regenerated.
47590         * tests/unictype/test-ctype_alnum.c: Regenerated.
47591         * tests/unictype/test-ctype_alpha.c: Regenerated.
47592         * tests/unictype/test-ctype_graph.c: Regenerated.
47593         * tests/unictype/test-ctype_lower.c: Regenerated.
47594         * tests/unictype/test-ctype_print.c: Regenerated.
47595         * tests/unictype/test-ctype_punct.c: Regenerated.
47596         * tests/unictype/test-ctype_upper.c: Regenerated.
47597         * tests/unictype/test-decdigit.h: Regenerated.
47598         * tests/unictype/test-digit.h: Regenerated.
47599         * tests/unictype/test-numeric.h: Regenerated.
47600         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47601         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47602         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47603         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47604         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47605         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47606         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47607         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47608         * tests/unictype/test-pr_combining.c: Regenerated.
47609         * tests/unictype/test-pr_dash.c: Regenerated.
47610         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47611         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47612         * tests/unictype/test-pr_deprecated.c: Regenerated.
47613         * tests/unictype/test-pr_diacritic.c: Regenerated.
47614         * tests/unictype/test-pr_extender.c: Regenerated.
47615         * tests/unictype/test-pr_format_control.c: Regenerated.
47616         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47617         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47618         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47619         * tests/unictype/test-pr_id_continue.c: Regenerated.
47620         * tests/unictype/test-pr_id_start.c: Regenerated.
47621         * tests/unictype/test-pr_ideographic.c: Regenerated.
47622         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47623         * tests/unictype/test-pr_lowercase.c: Regenerated.
47624         * tests/unictype/test-pr_math.c: Regenerated.
47625         * tests/unictype/test-pr_numeric.c: Regenerated.
47626         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47627         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47628         Regenerated.
47629         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47630         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47631         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47632         * tests/unictype/test-pr_other_math.c: Regenerated.
47633         * tests/unictype/test-pr_punctuation.c: Regenerated.
47634         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47635         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47636         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47637         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47638         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47639         * tests/unictype/test-pr_uppercase.c: Regenerated.
47640         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47641         * tests/unictype/test-pr_xid_start.c: Regenerated.
47642         * tests/unictype/test-pr_zero_width.c: Regenerated.
47643
47644         Update to Unicode 5.1.0.
47645         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47646         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47647         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47648         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47649         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47650         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47651         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47652         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47653         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47654         (nonspacing_table_ind): Update.
47655         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47656
47657         Update to Unicode 5.1.0.
47658         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47659         code transform.
47660         * lib/uniname/uniname.c (unicode_character_name,
47661         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47662         * lib/uniname/uninames.h: Regenerated.
47663         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47664
47665 2009-02-07  Bruno Haible  <bruno@clisp.org>
47666
47667         Merge gen-ctype and gen-lbrk into a single program.
47668         * lib/gen-uni-tables.c: New file, incorporating
47669         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47670         Add directory prefixes to the names of the generated files.
47671         * lib/unictype/gen-ctype.c: Remove file.
47672         * lib/unilbrk/gen-lbrk.c: Remove file.
47673         * modules/gen-uni-tables: New file.
47674         * modules/unictype/gen-ctype: Remove file.
47675         * modules/unilbrk/gen-lbrk: Remove file.
47676
47677 2009-02-07  Bruno Haible  <bruno@clisp.org>
47678
47679         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47680
47681         New module 'unistr/u32-strcoll'.
47682         * modules/unistr/u32-strcoll: New file.
47683         * lib/unistr/u32-strcoll.c: New file.
47684
47685         New module 'unistr/u16-strcoll'.
47686         * modules/unistr/u16-strcoll: New file.
47687         * lib/unistr/u16-strcoll.c: New file.
47688
47689         New module 'unistr/u8-strcoll'.
47690         * modules/unistr/u8-strcoll: New file.
47691         * lib/unistr/u8-strcoll.c: New file.
47692         * lib/unistr/u-strcoll.h: New file.
47693
47694 2009-02-07  Bruno Haible  <bruno@clisp.org>
47695
47696         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47697         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47698         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47699         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47700         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47701         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47702
47703 2009-02-07  Bruno Haible  <bruno@clisp.org>
47704
47705         Make 64-bit clean.
47706         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47707         output_combclass, output_bidi_category, output_decimal_digit,
47708         output_digit, output_numeric, output_mirror, output_scripts,
47709         output_ident_category): Use proper width specifier in format strings.
47710
47711 2009-02-07  Bruno Haible  <bruno@clisp.org>
47712
47713         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47714         failure behaviour.
47715
47716 2009-02-07  Jim Meyering  <meyering@redhat.com>
47717
47718         regex: avoid compilation failure with upcoming gcc-4.4
47719         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47720         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47721         "... error: integer overflow in preprocessor expression".
47722
47723 2009-02-05  Ben Pfaff  <blp@gnu.org>
47724
47725         Fix link errors on Windows when close module is used.
47726         * modules/close: Add $(LIB_CLOSE) to Link section.
47727         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47728         $(LIB_CLOSE) on Windows.
47729
47730 2009-02-05  Jim Meyering  <meyering@redhat.com>
47731
47732         still avoid unused-parameter warnings, but do it cleanly
47733         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47734         (get_fs_usage): Cast to void instead.
47735         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47736         (dev_from_mount_options, read_file_system_list): Cast to void.
47737         Prompted by Bruno Haible.
47738
47739 2009-02-04  Jim Meyering  <meyering@redhat.com>
47740
47741         fsusage.c: correct copyright year
47742         * lib/fsusage.c: Reflect year in which the change is pushed into
47743
47744         avoid misc. warnings
47745         * lib/fsusage.c (UNUSED_PARAM): Define.
47746         (get_fs_usage): Mark parameter "disk" as unused.
47747         * lib/getugroups.c (getgrent): Use "void" in prototype.
47748         * lib/mountlist.c: Mark unused parameters.
47749         (read_file_system_list): Declare a local with "const".
47750         * lib/nanosleep.c (getnow): Declare static.
47751         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47752
47753         dirfd: set errno upon failure
47754         * lib/dirfd.c: Include <errno.h>.
47755         Set errno to ENOTSUP when returning -1.
47756         * modules/dirfd (Depends-on): Add errno.
47757         Suggested by John Kodis <kodis@comcast.net>.
47758
47759 2009-02-01  Bruno Haible  <bruno@clisp.org>
47760
47761         Don't assume sizeof (long) >= sizeof (void *).
47762         * lib/memcmp.c: Include stdint.h.
47763         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47764         srcp2 to 'const byte *'.
47765         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47766         types to uintptr_t.
47767         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47768         * modules/memcmp (Depends-on): Add stdint.
47769         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47770
47771 2009-01-30  Eric Blake  <ebb9@byu.net>
47772
47773         fix more require-before-expand issues
47774         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47775         expand, AC_PROG_AWK.
47776         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47777
47778 2009-01-28  Eric Blake  <ebb9@byu.net>
47779
47780         version-etc: use consistent URL formatting
47781         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47782         Improve formatting.  Use fputs for string without %.
47783
47784 2009-01-28  Jim Meyering  <meyering@redhat.com>
47785
47786         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47787         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47788         "underquoted definition of NAME" from autoconf-2.59.
47789
47790 2009-01-28  Bruno Haible  <bruno@clisp.org>
47791
47792         * doc/gnulib.texi: Add "Obsolete modules" to index.
47793
47794 2009-01-28  Jim Meyering  <meyering@redhat.com>
47795
47796         useless-if-before-free: recognize more variants
47797         * build-aux/useless-if-before-free: Also recognize e.g.,
47798         if (NULL != p) free (p);
47799
47800 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47801
47802         test-getaddrinfo: skip (don't fail) this test when there's no network
47803         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47804         on the presumption that it means you lack network access.
47805
47806 2009-01-26  Jim Meyering  <meyering@redhat.com>
47807
47808         fflush: avoid warnings on modern systems
47809         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47810         pos and result, into scopes where they're used.
47811
47812 2009-01-26  Eric Blake  <ebb9@byu.net>
47813
47814         Silence warning reintroduced by recent extensions patch.
47815         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47816         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47817         autoconf.
47818
47819         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47820         * m4/00gnulib.m4: New file.
47821         * gnulib-tool (func_get_filelist): Always use it.
47822         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47823         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47824
47825 2009-01-25  Bruno Haible  <bruno@clisp.org>
47826
47827         Make test-quotearg work on MacOS X and AIX.
47828         * tests/test-quotearg.sh: New file.
47829         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47830         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47831         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47832         include <libintl.h>.
47833         (fake_locale): Remove variable.
47834         (gettext, dgettext, dcgettext): Remove functions.
47835         (main): Instead of setting a fake locale, set a real locale. Call
47836         textdomain and bindtextdomain.
47837         * modules/quotearg-tests (Files): Add the new files.
47838         (Depends-on): Add gettext, setenv, unsetenv.
47839         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47840         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47841         Augment TESTS_ENVIRONMENT.
47842
47843 2009-01-25  Bruno Haible  <bruno@clisp.org>
47844
47845         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47846         fr_FR.ISO8859-1 locale on MacOS X.
47847         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47848         ja_JP.eucJP locale on MacOS X.
47849         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47850         zh_CN.GB18030 locale on MacOS X.
47851
47852 2009-01-25  Bruno Haible  <bruno@clisp.org>
47853
47854         Avoid link errors on MacOS X 10.3.
47855         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47856         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47857
47858 2009-01-25  Bruno Haible  <bruno@clisp.org>
47859
47860         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47861         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47862         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47863         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47864         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47865         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47866         posix_spawnattr_init, posix_spawnattr_setsigmask,
47867         posix_spawnattr_setflags, posix_spawnattr_destroy.
47868
47869         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47870         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47871         * modules/execute (Files): Remove m4/posix_spawn.m4.
47872         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47873         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47874         posix_spawnattr_init, posix_spawnattr_setsigmask,
47875         posix_spawnattr_setflags, posix_spawnattr_destroy.
47876
47877 2009-01-25  Bruno Haible  <bruno@clisp.org>
47878
47879         * lib/glthread/threadlib.c: Include <stdlib.h>.
47880
47881 2009-01-25  Bruno Haible  <bruno@clisp.org>
47882
47883         * lib/glthread/threadlib.c (dummy): New declaration.
47884
47885 2009-01-25  Bruno Haible  <bruno@clisp.org>
47886
47887         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47888         multibyte characters also for the GB18030 encoding. Don't crash when
47889         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47890
47891 2009-01-25  Bruno Haible  <bruno@clisp.org>
47892
47893         Avoid redefining 'struct random_data' on OSF/1 5.1.
47894         * lib/stdlib.in.h: Include <random.h> if it exists.
47895         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47896         HAVE_RANDOM_H. Include <random.h> when testing whether
47897         'struct random_data' exists.
47898         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47899
47900 2009-01-25  Bruno Haible  <bruno@clisp.org>
47901
47902         Don't install charset.alias on MacOS X >= 10.3.
47903         * lib/localcharset.c (DARWIN7): New macro.
47904         (get_charset_aliases): Hardcode the result for Darwin7.
47905         * modules/localcharset (install-exec-local): Don't install
47906         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47907
47908 2009-01-25  Bruno Haible  <bruno@clisp.org>
47909
47910         Don't install charset.alias on mingw and Cygwin.
47911         * modules/localcharset (install-exec-local): Don't install
47912         charset.alias on mingw and Cygwin, if the file does not yet exist.
47913         The result for these platforms is hardcoded in localcharset.c.
47914
47915 2009-01-25  Bruno Haible  <bruno@clisp.org>
47916
47917         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47918         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47919         before requiring AC_USE_SYSTEM_EXTENSIONS.
47920
47921 2009-01-25  Jim Meyering  <meyering@redhat.com>
47922
47923         c-strtod: avoid warnings
47924         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47925         "assignment discards qualifiers from pointer target type" warnings.
47926
47927 2009-01-24  Bruno Haible  <bruno@clisp.org>
47928
47929         Add support for non-UTF-8 locales on MacOS X.
47930         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47931         canonical encodings. For Darwin 7 and newer, don't map traditional
47932         encodings to UTF-8.
47933         Reported by Vincent Lefevre <vincent@vinc17.org>
47934         at <http://savannah.gnu.org/bugs/?25235>.
47935
47936 2009-01-24  Bruno Haible  <bruno@clisp.org>
47937
47938         * doc/gnulib.texi (Obsolete modules): New section.
47939         Reported by Mike Frysinger <vapier@gentoo.org>.
47940
47941 2009-01-24  Bruno Haible  <bruno@clisp.org>
47942
47943         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47944         (%.dvi): New rule.
47945
47946 2009-01-24  Bruno Haible  <bruno@clisp.org>
47947
47948         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47949         Reported by Eric Blake.
47950
47951 2009-01-24  Bruno Haible  <bruno@clisp.org>
47952
47953         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47954         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47955         Reported by Gary V. Vaughan <gary@gnu.org>.
47956
47957 2009-01-24  Bruno Haible  <bruno@clisp.org>
47958
47959         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47960
47961 2009-01-23  Bruno Haible  <bruno@clisp.org>
47962
47963         Make c-strtod, c-strtold usable in libraries.
47964         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47965         (C_STRTOD): Call strdup instead of xstrdup.
47966         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47967         * modules/c-strtold (Depends-on): Likewise.
47968         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47969         * NEWS: Mention the change.
47970         Reported by Michael Gold <mgold@ncf.ca>.
47971
47972 2009-01-23  Jim Meyering  <meyering@redhat.com>
47973
47974         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47975         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47976         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47977
47978 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47979
47980         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47981         GNU CoreUtils.
47982         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47983         * modules/version-etc (Description): Update.
47984
47985 2009-01-22  Bruno Haible  <bruno@clisp.org>
47986
47987         Cache the C locale object.
47988         * lib/c-strtod.c (c_locale_cache): New variable.
47989         (c_locale): New function.
47990         (C_STRTOD): Use it, and don't call freelocale.
47991         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47992         Suggested by Paolo Bonzini.
47993
47994 2009-01-21  Bruno Haible  <bruno@clisp.org>
47995
47996         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47997         conditions other than overflow.
47998
47999 2009-01-21  Bruno Haible  <bruno@clisp.org>
48000
48001         * lib/c-strtod.c: Include errno.h.
48002         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48003         value from STRTOD_L and STRTOD.
48004
48005 2009-01-21  Bruno Haible  <bruno@clisp.org>
48006         and Jim Meyering  <meyering@redhat.com>
48007
48008         nanosleep: skip configure test (fail it) for apple universal builds
48009         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48010         universal builds, assume that nanosleep does not work.
48011         * modules/nanosleep (Depends-on): Add multiarch.
48012
48013         mktime: skip configure test (fail it) for apple universal builds
48014         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48015         universal builds, assume that mktime does not work.
48016         * modules/mktime (Depends-on): Add multiarch.
48017
48018 2009-01-21  Eric Blake  <ebb9@byu.net>
48019
48020         multiarch: avoid expand-before-require warning
48021         * modules/multiarch (configure.ac): Require, rather than expand,
48022         gl_MULTIARCH.
48023         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48024         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48025         enforce that all clients require it.  Partial reversion of
48026         2008-12-29 patch.
48027
48028         error: avoid expand-before-require warning
48029         * modules/errno (configure.ac): Require, rather than expand,
48030         gl_HEADER_ERRNO_H.
48031         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48032         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48033         enforce that all clients require it.
48034
48035         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48036         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48037         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48038         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48039
48040 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48041
48042         Revert:
48043         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48044
48045         regex: do not depend on obsolete modules.
48046         * modules/regex: Remove memcmp and memmove.
48047
48048 2009-01-20  Bruno Haible  <bruno@clisp.org>
48049
48050         Make the 'link' module link on Windows NT 4.
48051         * lib/link.c (_WIN32_WINNT): Don't define.
48052         (CreateHardLinkFuncType): New type.
48053         (CreateHardLinkFunc, initialized): New variables.
48054         (initialize): New function.
48055         (link): Invoke CreateHardLink indirectly through the function pointer.
48056
48057 2009-01-20  Bruno Haible  <bruno@clisp.org>
48058
48059         Fix compilation failure on mingw.
48060         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48061
48062 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48063
48064         * doc/c-strtod.texi: Mention a couple of restrictions.
48065
48066 2009-01-20  Jim Meyering  <meyering@redhat.com>
48067
48068         gettimeofday: move more declarations out of functions
48069         * lib/gettimeofday.c: Move extern declarations of tzset and
48070         gmtime out of containing functions.  Prompted by Bruno Haible.
48071
48072 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48073
48074         regex: do not depend on obsolete modules.
48075         * modules/regex: Remove memcmp and memmove.
48076
48077 2009-01-19  Bruno Haible  <bruno@clisp.org>
48078
48079         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48080         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48081         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48082         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48083         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48084
48085 2009-01-19  Bruno Haible  <bruno@clisp.org>
48086
48087         * tests/test-link.c: Include <errno.h>.
48088         (main): Exit with code 77 when a hard link cannot be created due to
48089         the file system.
48090         * tests/test-link.sh: Skip test when a hard link cannot be created due
48091         to the file system.
48092         Suggested by Eric Blake.
48093
48094 2009-01-19  Martin Lambers  <marlam@marlam.de>
48095
48096         * modules/link-tests: New file.
48097         * tests/test-link.sh: New file.
48098         * tests/test-link.c: New file.
48099
48100 2009-01-19  Eric Blake  <ebb9@byu.net>
48101
48102         doc: mention another function added in cygwin 1.7.0
48103         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48104         Another new function in cygwin 1.7.
48105
48106 2009-01-19  Bruno Haible  <bruno@clisp.org>
48107
48108         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48109         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48110         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48111         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48112         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48113         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48114         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48115         * m4/md4.m4 (gl_MD4): Likewise.
48116         * m4/md5.m4 (gl_MD5): Likewise.
48117         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48118         * m4/sha1.m4 (gl_SHA1): Likewise.
48119         * m4/sha256.m4 (gl_SHA256): Likewise.
48120         * m4/sha512.m4 (gl_SHA512): Likewise.
48121
48122 2009-01-19  Bruno Haible  <bruno@clisp.org>
48123
48124         * modules/uniname/uniname-tests (Depends-on): Add progname.
48125         * tests/uniname/test-uninames.c: Include progname.h.
48126         (main): Call set_program_name.
48127
48128         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48129         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48130         (main): Call set_program_name.
48131
48132         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48133         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48134         (main): Call set_program_name.
48135
48136         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48137         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48138         (main): Call set_program_name.
48139
48140         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48141         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48142         (main): Call set_program_name.
48143
48144         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48145         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48146         (main): Call set_program_name.
48147
48148         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48149         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48150         (main): Call set_program_name.
48151
48152         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48153         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48154         (main): Call set_program_name.
48155
48156         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48157         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48158         (main): Call set_program_name.
48159
48160 2009-01-19  Eric Blake  <ebb9@byu.net>
48161
48162         test-unistd: test previous patch
48163         * tests/test-unistd.c: Test *_FILENO macros.
48164
48165         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48166         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48167         Guarantee a definition.
48168         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48169         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48170         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48171         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48172         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48173         Likewise.
48174         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48175         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48176         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48177         Likewise.
48178         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48179         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48180         (STDERR_FILENO): Likewise.
48181         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48182         (STDERR_FILENO): Likewise.
48183         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48184         (STDERR_FILENO): Likewise.
48185         Reported by Elbert Pol.
48186
48187 2009-01-19  Eric Blake  <ebb9@byu.net>
48188
48189         doc: mention more functions added in cygwin 1.7.0
48190         * doc/posix-functions/abort.texi (abort): Update wording related
48191         to cygwin.
48192         * doc/posix-functions/daylight.texi (daylight): Likewise.
48193         * doc/posix-functions/optarg.texi (optarg): Likewise.
48194         * doc/posix-functions/optarg.texi (opterr): Likewise.
48195         * doc/posix-functions/optarg.texi (optind): Likewise.
48196         * doc/posix-functions/optarg.texi (optopt): Likewise.
48197         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48198         worked in 1.5.x, and was withdrawn in 1.7.
48199         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48200         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48201         cygwin versions.
48202         * doc/posix-functions/perror.texi (perror): Likewise.
48203         * doc/posix-functions/printf.texi (printf): Likewise.
48204         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48205         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48206         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48207         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48208         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48209         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48210         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48211         Likewise.
48212         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48213         Likewise.
48214         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48215         this function.
48216         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48217         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48218         Likewise.
48219         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48220         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48221         * doc/posix-functions/confstr.texi (confstr): Likewise.
48222         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48223         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48224         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48225         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48226         * doc/posix-functions/fputws.texi (fputws): Likewise.
48227         * doc/posix-functions/fwide.texi (fwide): Likewise.
48228         * doc/posix-functions/getwc.texi (getwc): Likewise.
48229         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48230         * doc/posix-functions/putwc.texi (putwc): Likewise.
48231         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48232         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48233         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48234         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48235         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48236         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48237         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48238         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48239         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48240         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48241         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48242
48243 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48244
48245         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48246         * lib/ioctl.c: Include <sys/ioctl.h>.
48247
48248 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48249
48250         * modules/getdate-tests (Depends-on): Add progname.
48251         * tests/test-getdate.c: Use progname module, to avoid link errors
48252         on non-glibc systems.
48253
48254 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48255
48256         * modules/filenamecat-tests (Depends-on): Add progname.
48257         * modules/fstrcmp-tests (Depends-on): Likewise.
48258
48259         * tests/test-filenamecat.c: Use progname module, to avoid link
48260         errors on non-glibc systems.
48261         * tests/test-fstrcmp.c: Likewise.
48262
48263 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48264
48265         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48266         * lib/gettimeofday.c: Move extern declaration out of function.
48267
48268 2009-01-18  Bruno Haible  <bruno@clisp.org>
48269
48270         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48271         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48272         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48273
48274 2009-01-18  Bruno Haible  <bruno@clisp.org>
48275
48276         * lib/strftime.c (MEMPCPY): Remove unused macro.
48277         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48278
48279 2009-01-18  Martin Lambers  <marlam@marlam.de>
48280
48281         New module 'link'.
48282         * lib/unistd.in.h (link): New declaration.
48283         * lib/link.c: New file.
48284         * m4/link.m4: New file.
48285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48286         HAVE_LINK.
48287         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48288         * modules/link: New file.
48289         * doc/posix-functions/link.texi: Mention the new module.
48290
48291 2009-01-18  Bruno Haible  <bruno@clisp.org>
48292
48293         * tests/test-avltree_list.c (main): Call set_program_name.
48294         * tests/test-avltree_oset.c (main): Likewise.
48295         * tests/test-obstack-printf.c: Include progname.h.
48296         (main): Call set_program_name.
48297         * tests/test-quotearg.c: Include progname.h.
48298         (main): Call set_program_name.
48299         * tests/test-xmemdup0.c: Include progname.h.
48300         (main): Call set_program_name.
48301
48302 2009-01-18  Bruno Haible  <bruno@clisp.org>
48303
48304         New module 'alphasort'.
48305         * lib/dirent.in.h (alphasort): New declaration.
48306         * lib/alphasort.c: New file, from glibc with modifications.
48307         * m4/alphasort.m4: New file.
48308         * modules/alphasort: New file.
48309         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48310         HAVE_ALPHASORT.
48311         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48312         HAVE_ALPHASORT.
48313         * doc/posix-functions/alphasort.texi: Mention the new module and the
48314         portability problems.
48315
48316 2009-01-18  Bruno Haible  <bruno@clisp.org>
48317
48318         New module 'scandir'.
48319         * lib/dirent.in.h (scandir): New declaration.
48320         * lib/scandir.c: New file, from glibc with modifications.
48321         * m4/scandir.m4: New file.
48322         * modules/scandir: New file.
48323         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48324         HAVE_SCANDIR.
48325         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48326         HAVE_SCANDIR.
48327         * doc/posix-functions/scandir.texi: Mention the new module and the
48328         portability problems.
48329
48330 2009-01-17  Bruno Haible  <bruno@clisp.org>
48331
48332         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48333         Update documentation.
48334         (func_remove_suffix): Escape all dots in the suffix. Update
48335         documentation.
48336         (func_filter_filelist): Update documentation.
48337         Reported by Ralf Wildenhues.
48338
48339 2009-01-17  Bruno Haible  <bruno@clisp.org>
48340
48341         * modules/dprintf-posix-tests: New file.
48342         * tests/test-dprintf-posix.sh: New file.
48343         * tests/test-dprintf-posix.c: New file.
48344
48345         New modules 'dprintf', 'dprintf-posix'.
48346         * lib/stdio.in.h (dprintf): New declaration.
48347         * lib/dprintf.c: New file.
48348         * m4/dprintf.m4: New file.
48349         * m4/dprintf-posix.m4: New file.
48350         * modules/dprintf: New file.
48351         * modules/dprintf-posix: New file.
48352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48353         HAVE_DPRINTF, REPLACE_DPRINTF.
48354         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48355         HAVE_DPRINTF, REPLACE_DPRINTF.
48356         * doc/posix-functions/dprintf.texi: Mention the new modules.
48357
48358 2009-01-17  Bruno Haible  <bruno@clisp.org>
48359
48360         * modules/vdprintf-posix-tests: New file.
48361         * tests/test-vdprintf-posix.sh: New file.
48362         * tests/test-vdprintf-posix.c: New file.
48363
48364         New modules 'vdprintf', 'vdprintf-posix'.
48365         * lib/stdio.in.h (vdprintf): New declaration.
48366         * lib/vdprintf.c: New file.
48367         * m4/vdprintf.m4: New file.
48368         * m4/vdprintf-posix.m4: New file.
48369         * modules/vdprintf: New file.
48370         * modules/vdprintf-posix: New file.
48371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48372         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48373         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48374         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48375         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48376
48377 2009-01-17  Bruno Haible  <bruno@clisp.org>
48378
48379         Fix replacement of fopen on mingw.
48380         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48381         mingw.
48382
48383 2009-01-17  Bruno Haible  <bruno@clisp.org>
48384
48385         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48386         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48387
48388 2009-01-17  Bruno Haible  <bruno@clisp.org>
48389
48390         Avoid test-fflush2.sh failure on mingw.
48391         * tests/test-fflush2.c: Include binary-io.h.
48392         (main): Put standard input into binary mode.
48393         * modules/fflush-tests (Depends-on): Add binary-io.
48394
48395 2009-01-17  Bruno Haible  <bruno@clisp.org>
48396
48397         * lib/wchar.in.h: In another particular situation, include only the
48398         system's <wchar.h> file.
48399         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48400         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48401         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48402
48403 2009-01-17  Bruno Haible  <bruno@clisp.org>
48404
48405         Support for stripping executables in --enable-relocatable.
48406         * build-aux/install-reloc: Expect one more argument, or an environment
48407         variable RELOC_STRIP_PROG. If set, strip the destination program and
48408         its wrapper.
48409         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48410         RELOC_STRIP_PROG.
48411         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48412         to set RELOCATABLE_STRIP.
48413         * NEWS: Mention the new Makefile requirement.
48414
48415 2009-01-17  Bruno Haible  <bruno@clisp.org>
48416
48417         * build-aux/install-reloc: Remove debugging information left over by
48418         C compiler on MacOS X.
48419
48420 2009-01-17  Bruno Haible  <bruno@clisp.org>
48421
48422         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48423         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48424         _NSGetExecutablePath.
48425
48426 2009-01-16  Jim Meyering  <meyering@redhat.com>
48427
48428         strerror: avoid warnings about discarding "const"
48429         * lib/strerror.c (rpl_strerror): Instead of returning a const
48430         string from each and every "case", use a variable, and add a single
48431         cast after the switch.
48432
48433 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48434
48435         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48436
48437 2009-01-16  Bruno Haible  <bruno@clisp.org>
48438
48439         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48440         array initializer syntax that also works in C++ mode.
48441         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48442
48443 2009-01-16  Jim Meyering  <meyering@redhat.com>
48444
48445         poll: suppress a warning
48446         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48447         to ignore "...unsigned expression < 0 is always false" warnings.
48448
48449 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48450
48451         poll: remove declarations of unused variables
48452         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48453         sockbuf and optlen.
48454
48455 2009-01-15  Bruno Haible  <bruno@clisp.org>
48456
48457         Make fflush-after-ungetc POSIX compliant on BSD systems.
48458         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48459         (clear_ungetc_buffer): Implement also for other systems.
48460         (rpl_fflush): On glibc systems, invoke
48461         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48462         clear_ungetc_buffer after fetching the stream's position, not before.
48463
48464 2009-01-15  Bruno Haible  <bruno@clisp.org>
48465
48466         Make fflush-after-ungetc POSIX compliant on glibc systems.
48467         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48468         after ungetc.
48469         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48470         (rpl_fflush): On glibc systems, simply call the system's fflush
48471         function after clearing the ungetc buffer.
48472         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48473         Instead, lseek only to the end of file, then use the system's fseeko
48474         for the rest. On glibc systems, reset the EOF indicator bit.
48475
48476 2009-01-15  Jim Meyering  <meyering@redhat.com>
48477
48478         openmp.m4: revert quote-adding change, for portability to older autoconf
48479         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48480         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48481         Simon Josefsson noticed the problem when using autoconf-2.61.
48482
48483 2009-01-15  Bruno Haible  <bruno@clisp.org>
48484
48485         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48486         * tests/test-fflush2.c (ASSERT): Always fail.
48487         (main): Add two tests for fflush() after ungetc(), taking into account
48488         the Austin Group's clarification.
48489         Suggested by Eric Blake.
48490
48491 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48492
48493         mktime.m4: remove K&R-style function prototypes
48494         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48495         for the Sun C++ compiler.
48496
48497 2009-01-14  Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48500         while including <wchar.h>.
48501         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48502         the system's <wchar.h> file.
48503         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48504
48505 2009-01-14  Bruno Haible  <bruno@clisp.org>
48506
48507         * m4/csharp.m4: Don't mention gettext on the serial number line.
48508         * m4/csharpexec.m4: Likewise.
48509         * m4/eaccess.m4: Likewise.
48510         * m4/javaexec.m4: Likewise.
48511         * m4/sig_atomic_t.m4: Likewise.
48512         * m4/tmpdir.m4: Likewise.
48513         * m4/intldir.m4: Bump gettext version.
48514         * m4/lib-ld.m4: Likewise.
48515
48516 2009-01-14  Bruno Haible  <bruno@clisp.org>
48517
48518         * lib/progname.c (set_program_name): Add more comments.
48519         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48520
48521 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48522
48523         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48524         were sys/stat.h does not define it.
48525
48526 2009-01-14  Jim Meyering  <meyering@redhat.com>
48527
48528         many *.m4 files: improve m4 quoting
48529         99% of this change was performed by running the following commands:
48530         git ls-files | grep '\.m4$' | xargs perl -pi \
48531           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48532           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48533           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48534           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48535         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48536         The remainder were to add Copyright dates, increment serial numbers,
48537         undo some changes in comments, exclude m4/intl.m4, and add quotes
48538         around the "1" in ",1" where the unusual spacing prohibited the
48539         above regexps from doing the job.  For more details, see
48540         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48541         * m4/acl.m4: Modified.
48542         * m4/afs.m4: Likewise.
48543         * m4/alloca.m4: Likewise.
48544         * m4/argp.m4: Likewise.
48545         * m4/argz.m4: Likewise.
48546         * m4/atexit.m4: Likewise.
48547         * m4/bison-i18n.m4: Likewise.
48548         * m4/bison.m4: Likewise.
48549         * m4/byteswap.m4: Likewise.
48550         * m4/c-stack.m4: Likewise.
48551         * m4/c-strtod.m4: Likewise.
48552         * m4/calloc.m4: Likewise.
48553         * m4/canonicalize-lgpl.m4: Likewise.
48554         * m4/chown.m4: Likewise.
48555         * m4/clock_time.m4: Likewise.
48556         * m4/codeset.m4: Likewise.
48557         * m4/copy-file.m4: Likewise.
48558         * m4/csharp.m4: Likewise.
48559         * m4/csharpcomp.m4: Likewise.
48560         * m4/csharpexec.m4: Likewise.
48561         * m4/d-ino.m4: Likewise.
48562         * m4/d-type.m4: Likewise.
48563         * m4/dirfd.m4: Likewise.
48564         * m4/double-slash-root.m4: Likewise.
48565         * m4/eaccess.m4: Likewise.
48566         * m4/eealloc.m4: Likewise.
48567         * m4/environ.m4: Likewise.
48568         * m4/errno_h.m4: Likewise.
48569         * m4/euidaccess.m4: Likewise.
48570         * m4/execute.m4: Likewise.
48571         * m4/fatal-signal.m4: Likewise.
48572         * m4/fchdir.m4: Likewise.
48573         * m4/fcntl_h.m4: Likewise.
48574         * m4/fileblocks.m4: Likewise.
48575         * m4/filenamecat.m4: Likewise.
48576         * m4/findprog.m4: Likewise.
48577         * m4/flexmember.m4: Likewise.
48578         * m4/fnmatch.m4: Likewise.
48579         * m4/fopen.m4: Likewise.
48580         * m4/fpending.m4: Likewise.
48581         * m4/fprintf-posix.m4: Likewise.
48582         * m4/free.m4: Likewise.
48583         * m4/frexp.m4: Likewise.
48584         * m4/frexpl.m4: Likewise.
48585         * m4/fsusage.m4: Likewise.
48586         * m4/ftruncate.m4: Likewise.
48587         * m4/gc-camellia.m4: Likewise.
48588         * m4/gc-random.m4: Likewise.
48589         * m4/gc.m4: Likewise.
48590         * m4/getaddrinfo.m4: Likewise.
48591         * m4/getcwd-abort-bug.m4: Likewise.
48592         * m4/getcwd-path-max.m4: Likewise.
48593         * m4/getdate.m4: Likewise.
48594         * m4/getdomainname.m4: Likewise.
48595         * m4/getgroups.m4: Likewise.
48596         * m4/gethostname.m4: Likewise.
48597         * m4/gethrxtime.m4: Likewise.
48598         * m4/getline.m4: Likewise.
48599         * m4/getloadavg.m4: Likewise.
48600         * m4/getndelim2.m4: Likewise.
48601         * m4/getpass.m4: Likewise.
48602         * m4/gettext.m4: Likewise.
48603         * m4/gettime.m4: Likewise.
48604         * m4/gettimeofday.m4: Likewise.
48605         * m4/gnulib-common.m4: Likewise.
48606         * m4/group-member.m4: Likewise.
48607         * m4/host-os.m4: Likewise.
48608         * m4/iconv.m4: Likewise.
48609         * m4/iconv_open.m4: Likewise.
48610         * m4/inet_ntop.m4: Likewise.
48611         * m4/inet_pton.m4: Likewise.
48612         * m4/inline.m4: Likewise.
48613         * m4/intldir.m4: Likewise.
48614         * m4/intlmacosx.m4: Likewise.
48615         * m4/intmax.m4: Likewise.
48616         * m4/intmax_t.m4: Likewise.
48617         * m4/inttypes.m4: Likewise.
48618         * m4/inttypes_h.m4: Likewise.
48619         * m4/inttypes-pri.m4: Likewise.
48620         * m4/isapipe.m4: Likewise.
48621         * m4/isnand.m4: Likewise.
48622         * m4/isnanf.m4: Likewise.
48623         * m4/isnanl.m4: Likewise.
48624         * m4/javacomp.m4: Likewise.
48625         * m4/javaexec.m4: Likewise.
48626         * m4/jm-winsz1.m4: Likewise.
48627         * m4/jm-winsz2.m4: Likewise.
48628         * m4/lchown.m4: Likewise.
48629         * m4/lcmessage.m4: Likewise.
48630         * m4/ldexpl.m4: Likewise.
48631         * m4/lib-ld.m4: Likewise.
48632         * m4/lib-link.m4: Likewise.
48633         * m4/libsigsegv.m4: Likewise.
48634         * m4/link-follow.m4: Likewise.
48635         * m4/localcharset.m4: Likewise.
48636         * m4/locale-fr.m4: Likewise.
48637         * m4/locale-ja.m4: Likewise.
48638         * m4/locale-tr.m4: Likewise.
48639         * m4/locale-zh.m4: Likewise.
48640         * m4/lock.m4: Likewise.
48641         * m4/longlong.m4: Likewise.
48642         * m4/ls-mntd-fs.m4: Likewise.
48643         * m4/lstat.m4: Likewise.
48644         * m4/malloc.m4: Likewise.
48645         * m4/mathl.m4: Likewise.
48646         * m4/mbrtowc.m4: Likewise.
48647         * m4/mbstate_t.m4: Likewise.
48648         * m4/mbswidth.m4: Likewise.
48649         * m4/memchr.m4: Likewise.
48650         * m4/memcmp.m4: Likewise.
48651         * m4/memcpy.m4: Likewise.
48652         * m4/memmem.m4: Likewise.
48653         * m4/memmove.m4: Likewise.
48654         * m4/mempcpy.m4: Likewise.
48655         * m4/memrchr.m4: Likewise.
48656         * m4/memset.m4: Likewise.
48657         * m4/minmax.m4: Likewise.
48658         * m4/mkdir-slash.m4: Likewise.
48659         * m4/mkdtemp.m4: Likewise.
48660         * m4/mktime.m4: Likewise.
48661         * m4/mmap-anon.m4: Likewise.
48662         * m4/mountlist.m4: Likewise.
48663         * m4/nanosleep.m4: Likewise.
48664         * m4/nls.m4: Likewise.
48665         * m4/nocrash.m4: Likewise.
48666         * m4/open.m4: Likewise.
48667         * m4/openat.m4: Likewise.
48668         * m4/openmp.m4: Likewise.
48669         * m4/pathmax.m4: Likewise.
48670         * m4/perl.m4: Likewise.
48671         * m4/physmem.m4: Likewise.
48672         * m4/pipe.m4: Likewise.
48673         * m4/po.m4: Likewise.
48674         * m4/poll.m4: Likewise.
48675         * m4/posixtm.m4: Likewise.
48676         * m4/posixver.m4: Likewise.
48677         * m4/printf-frexp.m4: Likewise.
48678         * m4/printf-frexpl.m4: Likewise.
48679         * m4/printf-posix.m4: Likewise.
48680         * m4/printf-posix-rpl.m4: Likewise.
48681         * m4/printf.m4: Likewise.
48682         * m4/progtest.m4: Likewise.
48683         * m4/putenv.m4: Likewise.
48684         * m4/readline.m4: Likewise.
48685         * m4/readlink.m4: Likewise.
48686         * m4/readutmp.m4: Likewise.
48687         * m4/realloc.m4: Likewise.
48688         * m4/regex.m4: Likewise.
48689         * m4/relocatable.m4: Likewise.
48690         * m4/relocatable-lib.m4: Likewise.
48691         * m4/rename-dest-slash.m4: Likewise.
48692         * m4/rename.m4: Likewise.
48693         * m4/rmdir-errno.m4: Likewise.
48694         * m4/rmdir.m4: Likewise.
48695         * m4/roundf.m4: Likewise.
48696         * m4/roundl.m4: Likewise.
48697         * m4/rpmatch.m4: Likewise.
48698         * m4/save-cwd.m4: Likewise.
48699         * m4/selinux-selinux-h.m4: Likewise.
48700         * m4/setenv.m4: Likewise.
48701         * m4/settime.m4: Likewise.
48702         * m4/sig2str.m4: Likewise.
48703         * m4/sig_atomic_t.m4: Likewise.
48704         * m4/signalblocking.m4: Likewise.
48705         * m4/signbit.m4: Likewise.
48706         * m4/sigpipe.m4: Likewise.
48707         * m4/sockets.m4: Likewise.
48708         * m4/sockpfaf.m4: Likewise.
48709         * m4/st_dm_mode.m4: Likewise.
48710         * m4/stat-time.m4: Likewise.
48711         * m4/stdbool.m4: Likewise.
48712         * m4/stdint.m4: Likewise.
48713         * m4/stdint_h.m4: Likewise.
48714         * m4/stpcpy.m4: Likewise.
48715         * m4/stpncpy.m4: Likewise.
48716         * m4/strcase.m4: Likewise.
48717         * m4/strchrnul.m4: Likewise.
48718         * m4/strcspn.m4: Likewise.
48719         * m4/strdup.m4: Likewise.
48720         * m4/strftime.m4: Likewise.
48721         * m4/strndup.m4: Likewise.
48722         * m4/strnlen.m4: Likewise.
48723         * m4/strpbrk.m4: Likewise.
48724         * m4/strptime.m4: Likewise.
48725         * m4/strsep.m4: Likewise.
48726         * m4/strtod.m4: Likewise.
48727         * m4/strtoimax.m4: Likewise.
48728         * m4/strtok_r.m4: Likewise.
48729         * m4/strtol.m4: Likewise.
48730         * m4/strtoll.m4: Likewise.
48731         * m4/strtoul.m4: Likewise.
48732         * m4/strtoull.m4: Likewise.
48733         * m4/strtoumax.m4: Likewise.
48734         * m4/strverscmp.m4: Likewise.
48735         * m4/threadlib.m4: Likewise.
48736         * m4/timegm.m4: Likewise.
48737         * m4/tm_gmtoff.m4: Likewise.
48738         * m4/tmpdir.m4: Likewise.
48739         * m4/tmpfile.m4: Likewise.
48740         * m4/tzset.m4: Likewise.
48741         * m4/uintmax_t.m4: Likewise.
48742         * m4/unlinkdir.m4: Likewise.
48743         * m4/unlocked-io.m4: Likewise.
48744         * m4/uptime.m4: Likewise.
48745         * m4/userspec.m4: Likewise.
48746         * m4/utimbuf.m4: Likewise.
48747         * m4/utime.m4: Likewise.
48748         * m4/utimes-null.m4: Likewise.
48749         * m4/utimes.m4: Likewise.
48750         * m4/vararrays.m4: Likewise.
48751         * m4/vasnprintf.m4: Likewise.
48752         * m4/vfprintf-posix.m4: Likewise.
48753         * m4/vprintf-posix.m4: Likewise.
48754         * m4/wait-process.m4: Likewise.
48755         * m4/wchar_t.m4: Likewise.
48756         * m4/wint_t.m4: Likewise.
48757         * m4/write-any-file.m4: Likewise.
48758         * m4/yield.m4: Likewise.
48759
48760 2009-01-13  Bruno Haible  <bruno@clisp.org>
48761
48762         Avoid test-copy-file.sh failures when ACL support insufficient.
48763         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48764         TESTS_ENVIRONMENT.
48765         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48766         Reported by Jim Meyering.
48767
48768 2009-01-13  Bruno Haible  <bruno@clisp.org>
48769
48770         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48771         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48772         * modules/unistdio/u8-printf-parse (Files): Likewise.
48773         * modules/unistdio/u32-printf-parse (Files): Likewise.
48774         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48775
48776 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48777
48778         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48779         and m4/inttypes_h.m4 too.
48780
48781 2009-01-12  Eric Blake  <ebb9@byu.net>
48782
48783         tests: IRIX 6.2 cc can't compile -0.0 into .data
48784         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48785         rather than at compile-time.
48786         * tests/test-floorl.c (minus_zero): Likewise.
48787         * tests/test-frexpl.c (minus_zero): Likewise.
48788         * tests/test-isnan.c (minus_zerol): Likewise.
48789         * tests/test-isnanl.h (minus_zero): Likewise.
48790         * tests/test-ldexpl.c (minus_zero): Likewise.
48791         * tests/test-roundl.c (minus_zero): Likewise.
48792         * tests/test-signbit.c (minus_zerol): Likewise.
48793         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48794         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48795         * tests/test-truncl.c (minus_zero): Likewise.
48796         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48797         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48798         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48799
48800 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48801
48802         regex: fix glibc bug 9697
48803         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48804         handling.
48805
48806 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48807
48808         regex: fix glibc bug 697
48809         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48810         being NULL also if there are no backreferences.
48811
48812 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48813
48814         regex: merge glibc changes
48815         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48816         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48817         re_string_skip_chars, re_string_reconstruct): Likewise.
48818         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48819
48820 2009-01-07  Jim Meyering  <meyering@redhat.com>
48821
48822         poll: filter through cppi
48823         * lib/poll.c: Indent cpp directives to reflect nesting.
48824
48825 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48826
48827         poll: don't return uninitialized
48828         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48829
48830 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48831
48832         avoid compile failure on AIX 6.1
48833         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48834         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48835
48836 2009-01-04  Jim Meyering  <meyering@redhat.com>
48837
48838         remove duplicate inclusion of <stdio.h>
48839         * tests/test-fprintf-posix.c: Likewise.
48840         * tests/test-printf-posix.c: Likewise.
48841         * tests/test-snprintf-posix.c: Likewise.
48842         * tests/test-sprintf-posix.c: Likewise.
48843         * tests/test-vasprintf-posix.c: Likewise.
48844         * tests/test-vfprintf-posix.c: Likewise.
48845         * tests/test-vprintf-posix.c: Likewise.
48846         * tests/test-vsnprintf-posix.c: Likewise.
48847         * tests/test-vsprintf-posix.c: Likewise.
48848
48849 2009-01-03  Jim Meyering  <meyering@redhat.com>
48850
48851         gnulib-tool: fix sed-based filtering
48852         * gnulib-tool (func_filter_filelist): Remove extra backslash
48853         in sed_fff_filter definition.
48854
48855 2009-01-02  Jim Meyering  <meyering@redhat.com>
48856
48857         strftime: avoid compilation failure on Solaris 2.6
48858         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48859         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48860         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48861         be available.  Reported by Tom G. Christensen.  Details in
48862         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48863
48864 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48865             Bruno Haible  <bruno@clisp.org>
48866
48867         Speed up gnulib-tool by doing more string processing through shell
48868         built-ins.
48869         * gnulib-tool (fast_func_append): New variable.
48870         (func_remove_prefix, func_remove_suffix): New functions.
48871         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48872         (func_filter_filelist): New function.
48873         (func_get_dependencies): Use func_remove_suffix instead of sed.
48874         (func_get_automake_snippet): Use func_filter_filelist instead of a
48875         subshell and sed invocation.
48876
48877 2009-01-01  Bruno Haible  <bruno@clisp.org>
48878
48879         Fix a security bug.
48880         * gnulib-tool (func_import, import, update): Don't allow the characters
48881         '"', '$', '`', '\' in macro arguments that become part of commands that
48882         are evaluated.
48883
48884 2009-01-01  Bruno Haible  <bruno@clisp.org>
48885
48886         * gnulib-tool (func_reset_sigpipe): Add more comments.
48887
48888 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48889
48890         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48891         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48892         already know the answer.
48893
48894 2009-01-01  Jim Meyering  <meyering@redhat.com>
48895
48896         * lib/version-etc.c (version_etc_va): Update copyright year.
48897
48898 2008-12-30  Bruno Haible  <bruno@clisp.org>
48899
48900         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48901         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48902         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48903
48904 2008-12-29  Eric Blake  <ebb9@byu.net>
48905
48906         multiarch: avoid autoconf AC_REQUIRE bug
48907         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48908         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48909         2.63 and older.
48910         Reported by Bruno Haible, and analyzed in
48911         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48912
48913 2008-12-29  Bruno Haible  <bruno@clisp.org>
48914
48915         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48916         files in subdirectories correctly.
48917         Reported by Ralf Wildenhues.
48918
48919 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48920
48921         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48922         rather than 'join FILE -', for Solaris join.
48923
48924 2008-12-29  Bruno Haible  <bruno@clisp.org>
48925
48926         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48927         quoting.
48928         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48929         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48930         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48931         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48932         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48933         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48934         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48935         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48936         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48937         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48938         * m4/nls.m4 (AM_NLS): Likewise.
48939         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48940         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48941         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48942         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48943         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48944         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48945         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48946         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48947         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48948         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48949         * m4/xsize.m4 (gl_XSIZE): Likewise.
48950         Suggested by Jim Meyering.
48951
48952 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48953
48954         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48955         * lib/parse-duration.c: use a switch instead of cascading if's.
48956
48957 2008-12-29  Eric Blake  <ebb9@byu.net>
48958
48959         wchar.h: supply WEOF on Irix 5.3
48960         * lib/wchar.in.h (wint_t): Also supply WEOF.
48961         * lib/wctype.in.h (wint_t): Likewise.
48962         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48963         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48964         Reported by Tom G. Christensen.
48965
48966 2008-12-26  Bruno Haible  <bruno@clisp.org>
48967
48968         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48969         i486, i586, i686.
48970
48971 2008-12-26  Bruno Haible  <bruno@clisp.org>
48972
48973         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48974
48975 2008-12-26  Bruno Haible  <bruno@clisp.org>
48976
48977         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48978         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48979         not __STDC_CONSTANT_MACROS.
48980         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48981
48982 2008-12-25  Bruno Haible  <bruno@clisp.org>
48983
48984         Add support for universal builds to vasnprintf.
48985         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48986         universal builds, guess no.
48987         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48988         * modules/vasprintf-posix (Depends-on): Likewise.
48989         * modules/fprintf-posix (Depends-on): Likewise.
48990         * modules/vfprintf-posix (Depends-on): Likewise.
48991         * modules/snprintf-posix (Depends-on): Likewise.
48992         * modules/vsnprintf-posix (Depends-on): Likewise.
48993         * modules/sprintf-posix (Depends-on): Likewise.
48994         * modules/vsprintf-posix (Depends-on): Likewise.
48995         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48996         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48997         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48998         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48999         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49000         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49001         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49002
49003         Add support for universal builds to <inttypes.h>.
49004         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49005         _SCNu64_PREFIX): In Apple
49006         universal builds, define directly, using _LP64.
49007         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49008         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49009         * modules/inttypes (Depends-on): Add multiarch.
49010         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49011
49012         Add support for universal builds to <stdint.h>.
49013         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49014         universal builds, define directly, using _LP64.
49015         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49016         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49017         and size_t.
49018         * modules/stdint (Depends-on): Add multiarch.
49019         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49020
49021         New module 'multiarch'.
49022         * modules/multiarch: New file.
49023         * m4/multiarch.m4: New file.
49024
49025 2008-12-25  Bruno Haible  <bruno@clisp.org>
49026
49027         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49028
49029 2008-12-25  Bruno Haible  <bruno@clisp.org>
49030
49031         * modules/btowc (License): Relicense under LGPLv2+.
49032         * modules/mbsinit (License): Likewise.
49033         * modules/mbrtowc (License): Likewise.
49034         * modules/wcrtomb (License): Likewise.
49035         * modules/streq (License): Likewise.
49036         Reported by David Lutterkort <lutter@redhat.com>.
49037
49038 2008-12-23  Bruno Haible  <bruno@clisp.org>
49039
49040         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49041
49042 2008-12-23  Bruno Haible  <bruno@clisp.org>
49043
49044         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49045         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49046         GETADDRINFO_LIB, not in LIBS.
49047         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49048         * modules/canon-host (Link): Likewise.
49049         * NEWS: Mention the change.
49050         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49051         GETADDRINFO_LIB.
49052
49053 2008-12-22  Bruno Haible  <bruno@clisp.org>
49054
49055         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49056         * doc/posix-functions/iswalpha_l.texi: Likewise.
49057         * doc/posix-functions/iswblank_l.texi: Likewise.
49058         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49059         * doc/posix-functions/iswctype_l.texi: Likewise.
49060         * doc/posix-functions/iswdigit_l.texi: Likewise.
49061         * doc/posix-functions/iswgraph_l.texi: Likewise.
49062         * doc/posix-functions/iswlower_l.texi: Likewise.
49063         * doc/posix-functions/iswprint_l.texi: Likewise.
49064         * doc/posix-functions/iswpunct_l.texi: Likewise.
49065         * doc/posix-functions/iswspace_l.texi: Likewise.
49066         * doc/posix-functions/iswupper_l.texi: Likewise.
49067         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49068         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49069         * doc/posix-functions/open_wmemstream.texi: Likewise.
49070         * doc/posix-functions/swscanf.texi: Likewise.
49071         * doc/posix-functions/towctrans_l.texi: Likewise.
49072         * doc/posix-functions/towlower.texi: Likewise.
49073         * doc/posix-functions/towlower_l.texi: Likewise.
49074         * doc/posix-functions/towupper.texi: Likewise.
49075         * doc/posix-functions/towupper_l.texi: Likewise.
49076         * doc/posix-functions/vfwprintf.texi: Likewise.
49077         * doc/posix-functions/vfwscanf.texi: Likewise.
49078         * doc/posix-functions/vswscanf.texi: Likewise.
49079         * doc/posix-functions/vwprintf.texi: Likewise.
49080         * doc/posix-functions/vwscanf.texi: Likewise.
49081         * doc/posix-functions/wcpcpy.texi: Likewise.
49082         * doc/posix-functions/wcpncpy.texi: Likewise.
49083         * doc/posix-functions/wcscasecmp.texi: Likewise.
49084         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49085         * doc/posix-functions/wcscoll_l.texi: Likewise.
49086         * doc/posix-functions/wcsdup.texi: Likewise.
49087         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49088         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49089         * doc/posix-functions/wcsnlen.texi: Likewise.
49090         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49091         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49092         * doc/posix-functions/wctrans_l.texi: Likewise.
49093         * doc/posix-functions/wctype_l.texi: Likewise.
49094         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49095         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49096         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49097         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49098         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49099         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49100         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49101         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49102         * doc/glibc-functions/wcschrnul.texi: Likewise.
49103         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49104         * doc/glibc-functions/wcstod_l.texi: Likewise.
49105         * doc/glibc-functions/wcstof_l.texi: Likewise.
49106         * doc/glibc-functions/wcstol_l.texi: Likewise.
49107         * doc/glibc-functions/wcstold_l.texi: Likewise.
49108         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49109         * doc/glibc-functions/wcstoq.texi: Likewise.
49110         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49111         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49112         * doc/glibc-functions/wcstouq.texi: Likewise.
49113         * doc/glibc-functions/wmempcpy.texi: Likewise.
49114
49115 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49116             Eric Blake  <ebb9@byu.net>
49117             Paolo Bonzini  <bonzini@gnu.org>
49118             Bruno Haible  <bruno@clisp.org>
49119
49120         Make c-stack work on Haiku.
49121         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49122         (c_stack_action): Use SA_ONSTACK flag.
49123
49124 2008-12-22  Bruno Haible  <bruno@clisp.org>
49125
49126         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49127
49128 2008-12-22  Bruno Haible  <bruno@clisp.org>
49129
49130         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49131         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49132         being overridden.
49133         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49134         New macros.
49135         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49136         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49137         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49138         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49139
49140 2008-12-22  Bruno Haible  <bruno@clisp.org>
49141
49142         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49143         from test code.
49144
49145 2008-12-22  Eric Blake  <ebb9@byu.net>
49146
49147         Avoid gcc warnings on cygwin.
49148         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49149         Avoid unused variable.
49150         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49151         Likewise.
49152
49153 2008-12-22  Bruno Haible  <bruno@clisp.org>
49154
49155         Remove HAVE_MBRTOWC conditionals.
49156         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49157         (mbscasecmp): Assume mbrtowc function.
49158         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49159         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49160         * lib/mbschr.c: Include mbuiter.h unconditionally.
49161         (mbschr): Assume mbrtowc function.
49162         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49163         (mbscspn): Assume mbrtowc function.
49164         * lib/mbslen.c: Include mbuiter.h unconditionally.
49165         (mbslen): Assume mbrtowc function.
49166         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49167         (mbsncasecmp): Assume mbrtowc function.
49168         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49169         (mbsnlen): Assume mbrtowc function.
49170         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49171         (mbspbrk): Assume mbrtowc function.
49172         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49173         (mbspcasecmp): Assume mbrtowc function.
49174         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49175         (mbsrchr): Assume mbrtowc function.
49176         * lib/mbssep.c: Include mbuiter.h unconditionally.
49177         (mbssep): Assume mbrtowc function.
49178         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49179         (mbsspn): Assume mbrtowc function.
49180         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49181         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49182         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49183         (mbstok_r): Assume mbrtowc function.
49184         * lib/propername.c: Include mbuiter.h unconditionally.
49185         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49186         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49187         (trim2): Assume mbrtowc function.
49188         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49189         (mbsnwidth): Assume mbrtowc function.
49190         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49191         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49192         fallback definitions.
49193         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49194
49195 2008-12-22  Bruno Haible  <bruno@clisp.org>
49196
49197         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49198
49199 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49200
49201         * modules/regex: Request emulations for the mb*/wc* functions we need.
49202         * m4/regex.m4: Don't look for those functions here.
49203         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49204
49205 2008-12-22  Bruno Haible  <bruno@clisp.org>
49206
49207         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49208
49209 2008-12-21  Bruno Haible  <bruno@clisp.org>
49210
49211         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49212         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49213         (Include): Remove conditionalization.
49214         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49215         (Include): Remove conditionalization.
49216         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49217         (Include): Remove conditionalization.
49218         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49219         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49220         * NEWS: Mention the change.
49221         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49222         via Sergey Poznyakoff <gray@gnu.org.ua>.
49223
49224 2008-12-21  Bruno Haible  <bruno@clisp.org>
49225
49226         * MODULES.html.sh (Extended multibyte and wide character utilities
49227         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49228         wcrtomb, wcsrtombs.
49229         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49230         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49231         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49232         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49233
49234 2008-12-21  Bruno Haible  <bruno@clisp.org>
49235
49236         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49237
49238 2008-12-21  Bruno Haible  <bruno@clisp.org>
49239
49240         * modules/wcsnrtombs-tests: New file.
49241         * tests/test-wcsnrtombs1.sh: New file.
49242         * tests/test-wcsnrtombs2.sh: New file.
49243         * tests/test-wcsnrtombs3.sh: New file.
49244         * tests/test-wcsnrtombs4.sh: New file.
49245         * tests/test-wcsnrtombs.c: New file.
49246
49247         New module 'wcsnrtombs'.
49248         * lib/wchar.in.h (wcsnrtombs): New declaration.
49249         * lib/wcsnrtombs.c: New file.
49250         * lib/wcsrtombs-state.c: New file.
49251         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49252         (internal_state): Remove variable.
49253         * m4/wcsnrtombs.m4: New file.
49254         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49255         compilation units.
49256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49257         HAVE_WCSNRTOMBS.
49258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49259         HAVE_WCSNRTOMBS.
49260         * modules/wcsnrtombs: New file.
49261         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49262         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49263
49264 2008-12-21  Bruno Haible  <bruno@clisp.org>
49265
49266         * modules/wcsrtombs-tests: New file.
49267         * tests/test-wcsrtombs1.sh: New file.
49268         * tests/test-wcsrtombs2.sh: New file.
49269         * tests/test-wcsrtombs3.sh: New file.
49270         * tests/test-wcsrtombs4.sh: New file.
49271         * tests/test-wcsrtombs.c: New file.
49272
49273         New module 'wcsrtombs'.
49274         * lib/wchar.in.h (wcsrtombs): New declaration.
49275         * lib/wcsrtombs.c: New file.
49276         * m4/wcsrtombs.m4: New file.
49277         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49278         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49279         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49280         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49281         * modules/wcsrtombs: New file.
49282         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49283         bugs.
49284
49285 2008-12-21  Bruno Haible  <bruno@clisp.org>
49286
49287         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49288         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49289         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49290         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49291         if not correct.
49292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49293         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49294         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49295         m4/locale-zh.m4, m4/codeset.m4.
49296         * doc/posix-functions/wcrtomb.texi: Document the bug.
49297
49298 2008-12-21  Bruno Haible  <bruno@clisp.org>
49299
49300         Work around a btowc() bug on IRIX 6.5.
49301         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49302         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49303         REPLACE_WTOBC if not.
49304         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49305         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49306         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49307
49308 2008-12-21  Bruno Haible  <bruno@clisp.org>
49309
49310         * modules/wcrtomb-tests: New file.
49311         * tests/test-wcrtomb.sh: New file.
49312         * tests/test-wcrtomb.c: New file.
49313
49314         New module 'wcrtomb'.
49315         * lib/wchar.in.h (wcrtomb): New declaration.
49316         * lib/wcrtomb.c: New file.
49317         * m4/wcrtomb.m4: New file.
49318         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49319         HAVE_WCRTOMB.
49320         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49321         HAVE_WCRTOMB.
49322         * modules/wcrtomb: New file.
49323         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49324
49325 2008-12-21  Bruno Haible  <bruno@clisp.org>
49326
49327         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49328         * modules/mbsrtowcs (Files): Likewise.
49329         * modules/wctob (Files): Likewise.
49330         * modules/c-strcase-tests (Files): Likewise.
49331         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49332         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49333         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49334         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49335         * modules/vasnprintf-posix-tests (Files): Likewise.
49336
49337 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49338
49339         gitlog-to-changelog: pass all command-line arguments to git-log
49340         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49341         it is sometimes convenient to filter the commits in various ways.
49342         gitlog-to-changelog only allows --since to specify a start date,
49343         but git-log itself supports many other filtering mechanisms.
49344         At the moment, I want to filter by branch name.  Rather than
49345         adding a --branch option to gitlog-to-changelog, it seems more
49346         flexible to simply pass all options directly to git-log and let
49347         git do the work.  Notice that this effectively makes --since a
49348         redundant option for gitlog-to-changelog, but removing it would
49349         require current usage to change since calls would then require
49350         an additional '--'.
49351
49352 2008-12-21  Bruno Haible  <bruno@clisp.org>
49353
49354         * modules/mbsnrtowcs-tests: New file.
49355         * tests/test-mbsnrtowcs1.sh: New file.
49356         * tests/test-mbsnrtowcs2.sh: New file.
49357         * tests/test-mbsnrtowcs3.sh: New file.
49358         * tests/test-mbsnrtowcs4.sh: New file.
49359         * tests/test-mbsnrtowcs.c: New file.
49360
49361         New module 'mbsnrtowcs'.
49362         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49363         * lib/mbsnrtowcs.c: New file.
49364         * lib/mbsrtowcs-state.c: New file.
49365         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49366         (internal_state): Remove variable.
49367         * m4/mbsnrtowcs.m4: New file.
49368         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49369         compilation units.
49370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49371         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49372         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49373         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49374         * modules/mbsnrtowcs: New file.
49375         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49376         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49377         portability problem.
49378
49379 2008-12-21  Bruno Haible  <bruno@clisp.org>
49380
49381         Work around mbsrtowcs bug.
49382         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49383         (gl_FUNC_MBSRTOWCS): Invoke it.
49384         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49385         m4/locale-zh.m4.
49386         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49387
49388 2008-12-21  Bruno Haible  <bruno@clisp.org>
49389
49390         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49391
49392 2008-12-21  Bruno Haible  <bruno@clisp.org>
49393
49394         Update doc for AIX.
49395         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49396         16-bit wchar_t type.
49397         * doc/posix-functions/btowc.texi: Likewise.
49398         * doc/posix-functions/fgetwc.texi: Likewise.
49399         * doc/posix-functions/fgetws.texi: Likewise.
49400         * doc/posix-functions/fputwc.texi: Likewise.
49401         * doc/posix-functions/fputws.texi: Likewise.
49402         * doc/posix-functions/fwide.texi: Likewise.
49403         * doc/posix-functions/fwprintf.texi: Likewise.
49404         * doc/posix-functions/fwscanf.texi: Likewise.
49405         * doc/posix-functions/getwchar.texi: Likewise.
49406         * doc/posix-functions/getwc.texi: Likewise.
49407         * doc/posix-functions/iswalnum.texi: Likewise.
49408         * doc/posix-functions/iswalpha.texi: Likewise.
49409         * doc/posix-functions/iswblank.texi: Likewise.
49410         * doc/posix-functions/iswcntrl.texi: Likewise.
49411         * doc/posix-functions/iswctype.texi: Likewise.
49412         * doc/posix-functions/iswdigit.texi: Likewise.
49413         * doc/posix-functions/iswgraph.texi: Likewise.
49414         * doc/posix-functions/iswlower.texi: Likewise.
49415         * doc/posix-functions/iswprint.texi: Likewise.
49416         * doc/posix-functions/iswpunct.texi: Likewise.
49417         * doc/posix-functions/iswspace.texi: Likewise.
49418         * doc/posix-functions/iswupper.texi: Likewise.
49419         * doc/posix-functions/iswxdigit.texi: Likewise.
49420         * doc/posix-functions/mbrtowc.texi: Likewise.
49421         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49422         * doc/posix-functions/mbstowcs.texi: Likewise.
49423         * doc/posix-functions/mbtowc.texi: Likewise.
49424         * doc/posix-functions/putwchar.texi: Likewise.
49425         * doc/posix-functions/putwc.texi: Likewise.
49426         * doc/posix-functions/swprintf.texi: Likewise.
49427         * doc/posix-functions/tolower.texi: Likewise.
49428         * doc/posix-functions/toupper.texi: Likewise.
49429         * doc/posix-functions/towctrans.texi: Likewise.
49430         * doc/posix-functions/ungetwc.texi: Likewise.
49431         * doc/posix-functions/vswprintf.texi: Likewise.
49432         * doc/posix-functions/wcrtomb.texi: Likewise.
49433         * doc/posix-functions/wcscat.texi: Likewise.
49434         * doc/posix-functions/wcschr.texi: Likewise.
49435         * doc/posix-functions/wcscmp.texi: Likewise.
49436         * doc/posix-functions/wcscoll.texi: Likewise.
49437         * doc/posix-functions/wcscpy.texi: Likewise.
49438         * doc/posix-functions/wcscspn.texi: Likewise.
49439         * doc/posix-functions/wcsftime.texi: Likewise.
49440         * doc/posix-functions/wcslen.texi: Likewise.
49441         * doc/posix-functions/wcsncat.texi: Likewise.
49442         * doc/posix-functions/wcsncmp.texi: Likewise.
49443         * doc/posix-functions/wcsncpy.texi: Likewise.
49444         * doc/posix-functions/wcspbrk.texi: Likewise.
49445         * doc/posix-functions/wcsrchr.texi: Likewise.
49446         * doc/posix-functions/wcsrtombs.texi: Likewise.
49447         * doc/posix-functions/wcsspn.texi: Likewise.
49448         * doc/posix-functions/wcsstr.texi: Likewise.
49449         * doc/posix-functions/wcstod.texi: Likewise.
49450         * doc/posix-functions/wcstof.texi: Likewise.
49451         * doc/posix-functions/wcstoimax.texi: Likewise.
49452         * doc/posix-functions/wcstok.texi: Likewise.
49453         * doc/posix-functions/wcstold.texi: Likewise.
49454         * doc/posix-functions/wcstoll.texi: Likewise.
49455         * doc/posix-functions/wcstol.texi: Likewise.
49456         * doc/posix-functions/wcstombs.texi: Likewise.
49457         * doc/posix-functions/wcstoull.texi: Likewise.
49458         * doc/posix-functions/wcstoul.texi: Likewise.
49459         * doc/posix-functions/wcstoumax.texi: Likewise.
49460         * doc/posix-functions/wcswidth.texi: Likewise.
49461         * doc/posix-functions/wcsxfrm.texi: Likewise.
49462         * doc/posix-functions/wctob.texi: Likewise.
49463         * doc/posix-functions/wctomb.texi: Likewise.
49464         * doc/posix-functions/wctrans.texi: Likewise.
49465         * doc/posix-functions/wctype.texi: Likewise.
49466         * doc/posix-functions/wcwidth.texi: Likewise.
49467         * doc/posix-functions/wmemchr.texi: Likewise.
49468         * doc/posix-functions/wmemcmp.texi: Likewise.
49469         * doc/posix-functions/wmemcpy.texi: Likewise.
49470         * doc/posix-functions/wmemmove.texi: Likewise.
49471         * doc/posix-functions/wmemset.texi: Likewise.
49472         * doc/posix-functions/wprintf.texi: Likewise.
49473         * doc/posix-functions/wscanf.texi: Likewise.
49474
49475 2008-12-21  Bruno Haible  <bruno@clisp.org>
49476
49477         Update doc for HP-UX 11.11.
49478         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49479         in HP-UX version 11.00, not in all versions of HP-UX 11.
49480         * doc/posix-functions/fwide.texi: Likewise.
49481         * doc/posix-functions/fwprintf.texi: Likewise.
49482         * doc/posix-functions/fwscanf.texi: Likewise.
49483         * doc/posix-functions/inet_ntop.texi: Likewise.
49484         * doc/posix-functions/inet_pton.texi: Likewise.
49485         * doc/posix-functions/mbrlen.texi: Likewise.
49486         * doc/posix-functions/mbrtowc.texi: Likewise.
49487         * doc/posix-functions/mbsinit.texi: Likewise.
49488         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49489         * doc/posix-functions/swprintf.texi: Likewise.
49490         * doc/posix-functions/swscanf.texi: Likewise.
49491         * doc/posix-functions/towctrans.texi: Likewise.
49492         * doc/posix-functions/vfwprintf.texi: Likewise.
49493         * doc/posix-functions/vswprintf.texi: Likewise.
49494         * doc/posix-functions/vwprintf.texi: Likewise.
49495         * doc/posix-functions/wcrtomb.texi: Likewise.
49496         * doc/posix-functions/wcsrtombs.texi: Likewise.
49497         * doc/posix-functions/wcsstr.texi: Likewise.
49498         * doc/posix-functions/wctob.texi: Likewise.
49499         * doc/posix-functions/wctrans.texi: Likewise.
49500         * doc/posix-functions/wmemchr.texi: Likewise.
49501         * doc/posix-functions/wmemcmp.texi: Likewise.
49502         * doc/posix-functions/wmemcpy.texi: Likewise.
49503         * doc/posix-functions/wmemmove.texi: Likewise.
49504         * doc/posix-functions/wmemset.texi: Likewise.
49505         * doc/posix-functions/wprintf.texi: Likewise.
49506         * doc/posix-functions/wscanf.texi: Likewise.
49507
49508 2008-12-21  Bruno Haible  <bruno@clisp.org>
49509
49510         Work around a portability problem.
49511         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49512         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49513
49514 2008-12-20  Bruno Haible  <bruno@clisp.org>
49515
49516         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49517         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49518         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49519         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49520         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49521
49522         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49523         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49524         set.
49525         (GNULIB_defined_mbstate_t): New macro.
49526         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49527         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49528         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49529         reuses the system's mbrtowc function but works around the bugs.
49530         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49531         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49532         macros.
49533         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49534         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49535         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49536         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49537         REPLACE_MBSINIT if mbsinit needs to be overridden.
49538         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49539         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49540         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49541         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49542         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49543         m4/locale-zh.m4.
49544         (Depends): Add mbsinit.
49545         * modules/mbsinit (Depends): Add mbrtowc.
49546         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49547
49548 2008-12-20  Bruno Haible  <bruno@clisp.org>
49549
49550         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49551         so that there are no conversion errors on AIX.
49552         * tests/test-mbsrtowcs.c (main): LIkewise.
49553
49554 2008-12-20  Bruno Haible  <bruno@clisp.org>
49555
49556         Work around wctob bug on Solaris <= 9.
49557         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49558         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49559         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49560         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49561         * modules/wctob (Files): Add m4/locale-fr.m4.
49562         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49563
49564 2008-12-20  Bruno Haible  <bruno@clisp.org>
49565
49566         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49567         /dev/null.
49568         * tests/test-select-in.sh: Likewise.
49569         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49570
49571 2008-12-20  Bruno Haible  <bruno@clisp.org>
49572
49573         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49574         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49575         Cygwin 1.5.x.
49576
49577 2008-12-20  Bruno Haible  <bruno@clisp.org>
49578
49579         Ensure mbstate_t is defined on HP-UX 11.11.
49580         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49581         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49582         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49583         AC_USE_SYSTEM_EXTENSIONS.
49584         * modules/fnmatch (Depends-on): Add extensions.
49585         * modules/mbrlen (Depends-on): Likewise.
49586         * modules/mbrtowc (Depends-on): Likewise.
49587         * modules/mbsinit (Depends-on): Likewise.
49588         * modules/mbsrtowcs (Depends-on): Likewise.
49589         * modules/mbswidth (Depends-on): Likewise.
49590         * modules/quotearg (Depends-on): Likewise.
49591         * modules/strftime (Depends-on): Likewise.
49592
49593 2008-12-20  Bruno Haible  <bruno@clisp.org>
49594
49595         Ensure wctob is declared on IRIX 6.5.
49596         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49597         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49598         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49599         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49600         of HAVE_WCTOB.
49601         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49602         HAVE_WCTOB.
49603         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49604
49605 2008-12-19  Bruno Haible  <bruno@clisp.org>
49606
49607         * modules/mbsrtowcs-tests: New file.
49608         * tests/test-mbsrtowcs1.sh: New file.
49609         * tests/test-mbsrtowcs2.sh: New file.
49610         * tests/test-mbsrtowcs3.sh: New file.
49611         * tests/test-mbsrtowcs4.sh: New file.
49612         * tests/test-mbsrtowcs.c: New file.
49613
49614         New module 'mbsrtowcs'.
49615         * lib/wchar.in.h (mbsrtowcs): New declaration.
49616         * lib/mbsrtowcs.c: New file.
49617         * m4/mbsrtowcs.m4: New file.
49618         * modules/mbsrtowcs: New file.
49619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49620         HAVE_MBSRTOWCS.
49621         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49622         HAVE_MBSRTOWCS.
49623         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49624
49625 2008-12-19  Bruno Haible  <bruno@clisp.org>
49626
49627         New module 'mbrlen'.
49628         * lib/wchar.in.h (mbrlen): New declaration.
49629         * lib/mbrlen.c: New file.
49630         * m4/mbrlen.m4: New file.
49631         * modules/mbrlen: New file.
49632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49633         HAVE_MBRLEN.
49634         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49635         HAVE_MBRLEN.
49636         * doc/posix-functions/mbrlen.texi: Document the new module.
49637
49638 2008-12-19  Bruno Haible  <bruno@clisp.org>
49639
49640         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49641         * modules/mbrtowc (Depends-on): Add verify.
49642         Suggested by Paul Eggert.
49643
49644 2008-12-18  Bruno Haible  <bruno@clisp.org>
49645
49646         * modules/mbsinit-tests: New file.
49647         * tests/test-mbsinit.sh: New file.
49648         * tests/test-mbsinit.c: New file.
49649
49650 2008-12-18  Bruno Haible  <bruno@clisp.org>
49651
49652         * modules/mbrtowc-tests: New file.
49653         * tests/test-mbrtowc1.sh: New file.
49654         * tests/test-mbrtowc2.sh: New file.
49655         * tests/test-mbrtowc3.sh: New file.
49656         * tests/test-mbrtowc4.sh: New file.
49657         * tests/test-mbrtowc.c: New file.
49658
49659         New module 'mbrtowc'.
49660         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49661         mbsinit and mbrtowc.
49662         (mbrtowc): New declaration.
49663         * lib/mbrtowc.c: New file.
49664         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49665         * modules/mbrtowc: New file.
49666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49667         HAVE_MBRTOWC.
49668         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49669         HAVE_MBRTOWC.
49670         * doc/posix-functions/mbrtowc.texi: Document the new module.
49671
49672 2008-12-18  Bruno Haible  <bruno@clisp.org>
49673
49674         New module 'wctob'.
49675         * lib/wchar.in.h (wctob): New declaration.
49676         * lib/wctob.c: New file.
49677         * m4/wctob.m4: New file.
49678         * modules/wctob: New file.
49679         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49680         HAVE_WCTOB.
49681         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49682         * doc/posix-functions/wctob.texi: Document the new module.
49683
49684 2008-12-18  Bruno Haible  <bruno@clisp.org>
49685
49686         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49687         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49688
49689 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49690
49691         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49692         G. Christensen" <tgc@jupiterrise.com>.
49693
49694         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49695         G. Christensen" <tgc@jupiterrise.com>.
49696
49697         * lib/flock.c: Need to include string.h.  Reported by "Tom
49698         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49699         <ebb9@byu.net>.
49700
49701 2008-12-18  Bruno Haible  <bruno@clisp.org>
49702
49703         * m4/locale-ja.m4: New file, from GNU gettext.
49704
49705 2008-12-17  Bruno Haible  <bruno@clisp.org>
49706
49707         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49708         Suggested by Eric Blake.
49709
49710 2008-12-17  Bruno Haible  <bruno@clisp.org>
49711
49712         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49713
49714 2008-12-17  Bruno Haible  <bruno@clisp.org>
49715
49716         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49717         * modules/mbsinit (Depends-on): Add verify.
49718         Suggested by Paul Eggert.
49719
49720 2008-12-17  Bruno Haible  <bruno@clisp.org>
49721
49722         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49723         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49724         gl_FUNC_MBRTOWC.
49725         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49726         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49727         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49728         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49729         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49730         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49731         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49732         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49733         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49734         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49735         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49736         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49737         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49738         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49739         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49740         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49741         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49742         * modules/trim (configure.ac): Likewise.
49743
49744 2008-12-17  Bruno Haible  <bruno@clisp.org>
49745
49746         * modules/btowc-tests: New file.
49747         * tests/test-btowc1.sh: New file.
49748         * tests/test-btowc2.sh: New file.
49749         * tests/test-btowc.c: New file.
49750
49751         New module 'btowc'.
49752         * lib/wchar.in.h (btowc): New declaration.
49753         * lib/btowc.c: New file.
49754         * m4/btowc.m4: New file.
49755         * modules/btowc: New file.
49756         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49757         HAVE_BTOWC.
49758         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49759         * doc/posix-functions/btowc.texi: Document the new module.
49760
49761 2008-12-17  Bruno Haible  <bruno@clisp.org>
49762
49763         New module 'mbsinit'.
49764         * lib/wchar.in.h (mbsinit): New declaration.
49765         * lib/mbsinit.c: New file.
49766         * m4/mbsinit.m4: New file.
49767         * modules/mbsinit: New file.
49768         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49769         HAVE_MBSINIT.
49770         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49771         HAVE_MBSINIT.
49772         * doc/posix-functions/mbsinit.texi: Document the new module.
49773
49774 2008-12-16  Bruno Haible  <bruno@clisp.org>
49775
49776         * lib/unistd.in.h: Add comment.
49777         * tests/test-environ.c: Don't include <stdlib.h>.
49778
49779 2008-12-16  Bruno Haible  <bruno@clisp.org>
49780
49781         * lib/parse-duration.h (parse_duration): Document return value
49782         convention.
49783         * lib/parse-duration.c: Include specification header first. Add
49784         comments.
49785         (_): Remove macro.
49786         (parse_year_month_day, parse_hour_minute_second): Move side effects
49787         outside of strchr call.
49788         (parse_non_iso8601): Move side effects outside of isspace call.
49789         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49790         call.
49791
49792 2008-12-16  Bruno Haible  <bruno@clisp.org>
49793
49794         * tests/test-parse-duration.sh: Produce no output when the test
49795         succeeds.
49796
49797 2008-12-16  Bruno Haible  <bruno@clisp.org>
49798
49799         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49800         expressions.
49801
49802 2008-12-15  Bruno Haible  <bruno@clisp.org>
49803
49804         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49805         * doc/glibc-functions/flistxattr.texi: Likewise.
49806         * doc/glibc-functions/fopencookie.texi: Likewise.
49807         * doc/glibc-functions/fremovexattr.texi: Likewise.
49808         * doc/glibc-functions/fsetxattr.texi: Likewise.
49809         * doc/glibc-functions/getxattr.texi: Likewise.
49810         * doc/glibc-functions/lgetxattr.texi: Likewise.
49811         * doc/glibc-functions/listxattr.texi: Likewise.
49812         * doc/glibc-functions/llistxattr.texi: Likewise.
49813         * doc/glibc-functions/lremovexattr.texi: Likewise.
49814         * doc/glibc-functions/lsetxattr.texi: Likewise.
49815         * doc/glibc-functions/removexattr.texi: Likewise.
49816         * doc/glibc-functions/setxattr.texi: Likewise.
49817         * doc/posix-functions/open_memstream.texi: Likewise.
49818
49819 2008-12-15  Eric Blake  <ebb9@byu.net>
49820
49821         Update doc for cygwin 1.7.
49822         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49823         functions.
49824         * doc/posix-functions/fchmodat.texi: Likewise.
49825         * doc/posix-functions/fchownat.texi: Likewise.
49826         * doc/posix-functions/fdopendir.texi: Likewise.
49827         * doc/posix-functions/fmemopen.texi: Likewise.
49828         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49829         * doc/posix-functions/fstatat.texi: Likewise.
49830         * doc/posix-functions/futimens.texi: Likewise.
49831         * doc/posix-functions/gai_strerror.texi: Likewise.
49832         * doc/posix-functions/getaddrinfo.texi: Likewise.
49833         * doc/posix-functions/getnameinfo.texi: Likewise.
49834         * doc/posix-functions/if_freenameindex.texi: Likewise.
49835         * doc/posix-functions/if_indextoname.texi: Likewise.
49836         * doc/posix-functions/if_nameindex.texi: Likewise.
49837         * doc/posix-functions/if_nametoindex.texi: Likewise.
49838         * doc/posix-functions/insque.texi: Likewise.
49839         * doc/posix-functions/linkat.texi: Likewise.
49840         * doc/posix-functions/llrint.texi: Likewise.
49841         * doc/posix-functions/llrintf.texi: Likewise.
49842         * doc/posix-functions/llrintl.texi: Likewise.
49843         * doc/posix-functions/lockf.texi: Likewise.
49844         * doc/posix-functions/lrintl.texi: Likewise.
49845         * doc/posix-functions/mkdirat.texi: Likewise.
49846         * doc/posix-functions/mkfifoat.texi: Likewise.
49847         * doc/posix-functions/mknodat.texi: Likewise.
49848         * doc/posix-functions/mq_close.texi: Likewise.
49849         * doc/posix-functions/mq_getattr.texi: Likewise.
49850         * doc/posix-functions/mq_notify.texi: Likewise.
49851         * doc/posix-functions/mq_open.texi: Likewise.
49852         * doc/posix-functions/mq_receive.texi: Likewise.
49853         * doc/posix-functions/mq_send.texi: Likewise.
49854         * doc/posix-functions/mq_setattr.texi: Likewise.
49855         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49856         * doc/posix-functions/mq_timedsend.texi: Likewise.
49857         * doc/posix-functions/mq_unlink.texi: Likewise.
49858         * doc/posix-functions/open_memstream.texi: Likewise.
49859         * doc/posix-functions/openat.texi: Likewise.
49860         * doc/posix-functions/posix_fadvise.texi: Likewise.
49861         * doc/posix-functions/posix_fallocate.texi: Likewise.
49862         * doc/posix-functions/posix_madvise.texi: Likewise.
49863         * doc/posix-functions/posix_memalign.texi: Likewise.
49864         * doc/posix-functions/posix_openpt.texi: Likewise.
49865         * doc/posix-functions/readlinkat.texi: Likewise.
49866         * doc/posix-functions/remque.texi: Likewise.
49867         * doc/posix-functions/renameat.texi: Likewise.
49868         * doc/posix-functions/rintl.texi: Likewise.
49869         * doc/posix-functions/sem_unlink.texi: Likewise.
49870         * doc/posix-functions/shm_open.texi: Likewise.
49871         * doc/posix-functions/shm_unlink.texi: Likewise.
49872         * doc/posix-functions/signgam.texi: Likewise.
49873         * doc/posix-functions/sigset.texi: Likewise.
49874         * doc/posix-functions/stpcpy.texi: Likewise.
49875         * doc/posix-functions/stpncpy.texi: Likewise.
49876         * doc/posix-functions/strerror.texi: Likewise.
49877         * doc/posix-functions/strtod.texi: Likewise.
49878         * doc/posix-functions/symlinkat.texi: Likewise.
49879         * doc/posix-functions/unlinkat.texi: Likewise.
49880         * doc/posix-functions/utimensat.texi: Likewise.
49881         * doc/glibc-functions/bindresvport.texi: Likewise.
49882         * doc/glibc-functions/dn_expand.texi: Likewise.
49883         * doc/glibc-functions/exp10.texi: Likewise.
49884         * doc/glibc-functions/exp10f.texi: Likewise.
49885         * doc/glibc-functions/fgetxattr.texi: Likewise.
49886         * doc/glibc-functions/flistxattr.texi: Likewise.
49887         * doc/glibc-functions/fopencookie.texi: Likewise.
49888         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49889         * doc/glibc-functions/fremovexattr.texi: Likewise.
49890         * doc/glibc-functions/fsetxattr.texi: Likewise.
49891         * doc/glibc-functions/getifaddrs.texi: Likewise.
49892         * doc/glibc-functions/getxattr.texi: Likewise.
49893         * doc/glibc-functions/lgetxattr.texi: Likewise.
49894         * doc/glibc-functions/listxattr.texi: Likewise.
49895         * doc/glibc-functions/llistxattr.texi: Likewise.
49896         * doc/glibc-functions/lremovexattr.texi: Likewise.
49897         * doc/glibc-functions/lsetxattr.texi: Likewise.
49898         * doc/glibc-functions/pow10.texi: Likewise.
49899         * doc/glibc-functions/pow10f.texi: Likewise.
49900         * doc/glibc-functions/rcmd_af.texi: Likewise.
49901         * doc/glibc-functions/removexattr.texi: Likewise.
49902         * doc/glibc-functions/res_init.texi: Likewise.
49903         * doc/glibc-functions/res_mkquery.texi: Likewise.
49904         * doc/glibc-functions/res_query.texi: Likewise.
49905         * doc/glibc-functions/res_querydomain.texi: Likewise.
49906         * doc/glibc-functions/res_send.texi: Likewise.
49907         * doc/glibc-functions/rresvport_af.texi: Likewise.
49908         * doc/glibc-functions/setxattr.texi: Likewise.
49909         * doc/glibc-functions/strcasestr.texi: Likewise.
49910
49911 2008-12-15  Bruno Haible  <bruno@clisp.org>
49912
49913         Fix compilation error on OSF/1 4.0.
49914         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49915         <sys/time.h>, simply delegate to the system header.
49916         Reported by Daniel Richard G. <oss@teragram.com>.
49917
49918 2008-12-15  Bruno Haible  <bruno@clisp.org>
49919
49920         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49921         * doc/posix-functions/fchmodat.texi: Likewise.
49922         * doc/posix-functions/fchownat.texi: Likewise.
49923         * doc/posix-functions/fdopendir.texi: Likewise.
49924         * doc/posix-functions/fstatat.texi: Likewise.
49925         * doc/posix-functions/mkdirat.texi: Likewise.
49926         * doc/posix-functions/unlinkat.texi: Likewise.
49927
49928 2008-12-14  Bruno Haible  <bruno@clisp.org>
49929
49930         Update doc for POSIX:2008.
49931         * doc/posix-functions/faccessat.texi: New file.
49932         * doc/posix-functions/fchmodat.texi: New file.
49933         * doc/posix-functions/fchownat.texi: New file.
49934         * doc/posix-functions/fdopendir.texi: New file.
49935         * doc/posix-functions/fstatat.texi: New file.
49936         * doc/posix-functions/futimens.texi: New file.
49937         * doc/posix-functions/linkat.texi: New file.
49938         * doc/posix-functions/mkdirat.texi: New file.
49939         * doc/posix-functions/mkfifoat.texi: New file.
49940         * doc/posix-functions/mknodat.texi: New file.
49941         * doc/posix-functions/open_wmemstream.texi: New file.
49942         * doc/posix-functions/openat.texi: New file.
49943         * doc/posix-functions/psiginfo.texi: New file.
49944         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49945         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49946         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49947         * doc/posix-functions/readlinkat.texi: New file.
49948         * doc/posix-functions/renameat.texi: New file.
49949         * doc/posix-functions/strerror_l.texi: New file.
49950         * doc/posix-functions/symlinkat.texi: New file.
49951         * doc/posix-functions/unlinkat.texi: New file.
49952         * doc/posix-functions/utimensat.texi: New file.
49953         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49954
49955 2008-12-14  Bruno Haible  <bruno@clisp.org>
49956
49957         Update doc for POSIX:2008.
49958         * doc/posix-functions/alphasort.texi: Renamed from
49959         doc/glibc-functions/alphasort.texi.
49960         * doc/posix-functions/dirfd.texi: Renamed from
49961         doc/glibc-functions/dirfd.texi.
49962         * doc/posix-functions/dprintf.texi: Renamed from
49963         doc/glibc-functions/dprintf.texi.
49964         * doc/posix-functions/duplocale.texi: Renamed from
49965         doc/glibc-functions/duplocale.texi.
49966         * doc/posix-functions/fexecve.texi: Renamed from
49967         doc/glibc-functions/fexecve.texi.
49968         * doc/posix-functions/fmemopen.texi: Renamed from
49969         doc/glibc-functions/fmemopen.texi.
49970         * doc/posix-functions/freelocale.texi: Renamed from
49971         doc/glibc-functions/freelocale.texi.
49972         * doc/posix-functions/getdate_err.texi: Renamed from
49973         doc/glibc-functions/getdate_err.texi.
49974         * doc/posix-functions/isalnum_l.texi: Renamed from
49975         doc/glibc-functions/isalnum_l.texi.
49976         * doc/posix-functions/isalpha_l.texi: Renamed from
49977         doc/glibc-functions/isalpha_l.texi.
49978         * doc/posix-functions/isblank_l.texi: Renamed from
49979         doc/glibc-functions/isblank_l.texi.
49980         * doc/posix-functions/iscntrl_l.texi: Renamed from
49981         doc/glibc-functions/iscntrl_l.texi.
49982         * doc/posix-functions/isdigit_l.texi: Renamed from
49983         doc/glibc-functions/isdigit_l.texi.
49984         * doc/posix-functions/isgraph_l.texi: Renamed from
49985         doc/glibc-functions/isgraph_l.texi.
49986         * doc/posix-functions/islower_l.texi: Renamed from
49987         doc/glibc-functions/islower_l.texi.
49988         * doc/posix-functions/isprint_l.texi: Renamed from
49989         doc/glibc-functions/isprint_l.texi.
49990         * doc/posix-functions/ispunct_l.texi: Renamed from
49991         doc/glibc-functions/ispunct_l.texi.
49992         * doc/posix-functions/isspace_l.texi: Renamed from
49993         doc/glibc-functions/isspace_l.texi.
49994         * doc/posix-functions/isupper_l.texi: Renamed from
49995         doc/glibc-functions/isupper_l.texi.
49996         * doc/posix-functions/iswalnum_l.texi: Renamed from
49997         doc/glibc-functions/iswalnum_l.texi.
49998         * doc/posix-functions/iswalpha_l.texi: Renamed from
49999         doc/glibc-functions/iswalpha_l.texi.
50000         * doc/posix-functions/iswblank_l.texi: Renamed from
50001         doc/glibc-functions/iswblank_l.texi.
50002         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50003         doc/glibc-functions/iswcntrl_l.texi.
50004         * doc/posix-functions/iswctype_l.texi: Renamed from
50005         doc/glibc-functions/iswctype_l.texi.
50006         * doc/posix-functions/iswdigit_l.texi: Renamed from
50007         doc/glibc-functions/iswdigit_l.texi.
50008         * doc/posix-functions/iswgraph_l.texi: Renamed from
50009         doc/glibc-functions/iswgraph_l.texi.
50010         * doc/posix-functions/iswlower_l.texi: Renamed from
50011         doc/glibc-functions/iswlower_l.texi.
50012         * doc/posix-functions/iswprint_l.texi: Renamed from
50013         doc/glibc-functions/iswprint_l.texi.
50014         * doc/posix-functions/iswpunct_l.texi: Renamed from
50015         doc/glibc-functions/iswpunct_l.texi.
50016         * doc/posix-functions/iswspace_l.texi: Renamed from
50017         doc/glibc-functions/iswspace_l.texi.
50018         * doc/posix-functions/iswupper_l.texi: Renamed from
50019         doc/glibc-functions/iswupper_l.texi.
50020         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50021         doc/glibc-functions/iswxdigit_l.texi.
50022         * doc/posix-functions/isxdigit_l.texi: Renamed from
50023         doc/glibc-functions/isxdigit_l.texi.
50024         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50025         doc/glibc-functions/mbsnrtowcs.texi.
50026         * doc/posix-functions/mkdtemp.texi: Renamed from
50027         doc/glibc-functions/mkdtemp.texi.
50028         * doc/posix-functions/newlocale.texi: Renamed from
50029         doc/glibc-functions/newlocale.texi.
50030         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50031         doc/glibc-functions/nl_langinfo_l.texi.
50032         * doc/posix-functions/open_memstream.texi: Renamed from
50033         doc/glibc-functions/open_memstream.texi.
50034         * doc/posix-functions/opterr.texi: Renamed from
50035         doc/glibc-functions/opterr.texi.
50036         * doc/posix-functions/optind.texi: Renamed from
50037         doc/glibc-functions/optind.texi.
50038         * doc/posix-functions/optopt.texi: Renamed from
50039         doc/glibc-functions/optopt.texi.
50040         * doc/posix-functions/psignal.texi: Renamed from
50041         doc/glibc-functions/psignal.texi.
50042         * doc/posix-functions/scandir.texi: Renamed from
50043         doc/glibc-functions/scandir.texi.
50044         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50045         doc/glibc-functions/sched_get_priority_min.texi.
50046         * doc/posix-functions/signgam.texi: Renamed from
50047         doc/glibc-functions/signgam.texi.
50048         * doc/posix-functions/stpcpy.texi: Renamed from
50049         doc/glibc-functions/stpcpy.texi.
50050         * doc/posix-functions/stpncpy.texi: Renamed from
50051         doc/glibc-functions/stpncpy.texi.
50052         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50053         doc/glibc-functions/strcasecmp_l.texi.
50054         * doc/posix-functions/strcoll_l.texi: Renamed from
50055         doc/glibc-functions/strcoll_l.texi.
50056         * doc/posix-functions/strfmon_l.texi: Renamed from
50057         doc/glibc-functions/strfmon_l.texi.
50058         * doc/posix-functions/strftime_l.texi: Renamed from
50059         doc/glibc-functions/strftime_l.texi.
50060         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50061         doc/glibc-functions/strncasecmp_l.texi.
50062         * doc/posix-functions/strndup.texi: Renamed from
50063         doc/glibc-functions/strndup.texi.
50064         * doc/posix-functions/strnlen.texi: Renamed from
50065         doc/glibc-functions/strnlen.texi.
50066         * doc/posix-functions/strsignal.texi: Renamed from
50067         doc/glibc-functions/strsignal.texi.
50068         * doc/posix-functions/strxfrm_l.texi: Renamed from
50069         doc/glibc-functions/strxfrm_l.texi.
50070         * doc/posix-functions/timer_gettime.texi: Renamed from
50071         doc/glibc-functions/timer_gettime.texi.
50072         * doc/posix-functions/tolower_l.texi: Renamed from
50073         doc/glibc-functions/tolower_l.texi.
50074         * doc/posix-functions/toupper_l.texi: Renamed from
50075         doc/glibc-functions/toupper_l.texi.
50076         * doc/posix-functions/towctrans_l.texi: Renamed from
50077         doc/glibc-functions/towctrans_l.texi.
50078         * doc/posix-functions/towlower_l.texi: Renamed from
50079         doc/glibc-functions/towlower_l.texi.
50080         * doc/posix-functions/towupper_l.texi: Renamed from
50081         doc/glibc-functions/towupper_l.texi.
50082         * doc/posix-functions/uselocale.texi: Renamed from
50083         doc/glibc-functions/uselocale.texi.
50084         * doc/posix-functions/vdprintf.texi: Renamed from
50085         doc/glibc-functions/vdprintf.texi.
50086         * doc/posix-functions/wcpcpy.texi:
50087         Renamed from doc/glibc-functions/wcpcpy.texi.
50088         * doc/posix-functions/wcpncpy.texi: Renamed from
50089         doc/glibc-functions/wcpncpy.texi.
50090         * doc/posix-functions/wcscasecmp.texi: Renamed from
50091         doc/glibc-functions/wcscasecmp.texi.
50092         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50093         doc/glibc-functions/wcscasecmp_l.texi.
50094         * doc/posix-functions/wcscoll_l.texi: Renamed from
50095         doc/glibc-functions/wcscoll_l.texi.
50096         * doc/posix-functions/wcsdup.texi: Renamed from
50097         doc/glibc-functions/wcsdup.texi.
50098         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50099         doc/glibc-functions/wcsncasecmp.texi.
50100         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50101         doc/glibc-functions/wcsncasecmp_l.texi.
50102         * doc/posix-functions/wcsnlen.texi: Renamed from
50103         doc/glibc-functions/wcsnlen.texi.
50104         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50105         doc/glibc-functions/wcsnrtombs.texi.
50106         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50107         doc/glibc-functions/wcsxfrm_l.texi.
50108         * doc/posix-functions/wctrans_l.texi: Renamed from
50109         doc/glibc-functions/wctrans_l.texi.
50110         * doc/posix-functions/wctype_l.texi: Renamed from
50111         doc/glibc-functions/wctype_l.texi.
50112         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50113         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50114         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50115         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50116         these subsections.
50117         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50118         Remove sections.
50119
50120 2008-12-14  Bruno Haible  <bruno@clisp.org>
50121
50122         Update doc for POSIX:2008.
50123         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50124
50125 2008-12-14  Bruno Haible  <bruno@clisp.org>
50126
50127         Update doc for POSIX:2008.
50128         * doc/pastposix-functions/bcmp.texi: Renamed from
50129         doc/posix-functions/bcmp.texi.
50130         * doc/pastposix-functions/bcopy.texi: Renamed from
50131         doc/posix-functions/bcopy.texi.
50132         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50133         doc/posix-functions/bsd_signal.texi.
50134         * doc/pastposix-functions/bzero.texi: Renamed from
50135         doc/posix-functions/bzero.texi.
50136         * doc/pastposix-functions/ecvt.texi: Renamed from
50137         doc/posix-functions/ecvt.texi.
50138         * doc/pastposix-functions/fcvt.texi: Renamed from
50139         doc/posix-functions/fcvt.texi.
50140         * doc/pastposix-functions/ftime.texi: Renamed from
50141         doc/posix-functions/ftime.texi.
50142         * doc/pastposix-functions/gcvt.texi: Renamed from
50143         doc/posix-functions/gcvt.texi.
50144         * doc/pastposix-functions/getcontext.texi: Renamed from
50145         doc/posix-functions/getcontext.texi.
50146         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50147         doc/posix-functions/gethostbyaddr.texi.
50148         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50149         doc/posix-functions/gethostbyname.texi.
50150         * doc/pastposix-functions/getwd.texi: Renamed from
50151         doc/posix-functions/getwd.texi.
50152         * doc/pastposix-functions/h_errno.texi: Renamed from
50153         doc/posix-functions/h_errno.texi.
50154         * doc/pastposix-functions/index.texi: Renamed from
50155         doc/posix-functions/index.texi.
50156         * doc/pastposix-functions/makecontext.texi: Renamed from
50157         doc/posix-functions/makecontext.texi.
50158         * doc/pastposix-functions/mktemp.texi: Renamed from
50159         doc/posix-functions/mktemp.texi.
50160         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50161         doc/posix-functions/pthread_attr_getstackaddr.texi.
50162         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50163         doc/posix-functions/pthread_attr_setstackaddr.texi.
50164         * doc/pastposix-functions/rindex.texi: Renamed from
50165         doc/posix-functions/rindex.texi.
50166         * doc/pastposix-functions/scalb.texi: Renamed from
50167         doc/posix-functions/scalb.texi.
50168         * doc/pastposix-functions/setcontext.texi: Renamed from
50169         doc/posix-functions/setcontext.texi.
50170         * doc/pastposix-functions/swapcontext.texi: Renamed from
50171         doc/posix-functions/swapcontext.texi.
50172         * doc/pastposix-functions/ualarm.texi: Renamed from
50173         doc/posix-functions/ualarm.texi.
50174         * doc/pastposix-functions/usleep.texi: Renamed from
50175         doc/posix-functions/usleep.texi.
50176         * doc/pastposix-functions/vfork.texi: Renamed from
50177         doc/posix-functions/vfork.texi.
50178         * doc/pastposix-functions/wcswcs.texi: Renamed from
50179         doc/posix-functions/wcswcs.texi.
50180         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50181         (Function Substitutes): Update.
50182
50183 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50184
50185         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50186         m4/strerror.m4.
50187
50188 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50189             Bruno Haible  <bruno@clisp.org>
50190
50191         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50192
50193 2008-12-13  Bruno Haible  <bruno@clisp.org>
50194
50195         * modules/strtoull (Depends-on): Remove unistd.
50196
50197 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50198
50199         * modules/strtoull (Depends-on): Add stdlib.
50200
50201 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50202
50203         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50204
50205 2008-12-10  Jim Meyering  <meyering@redhat.com>
50206
50207         gl_ASSERT: don't say assertions are disabled when they're not
50208         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50209         "checking whether to enable assertions... no", when they are in
50210         fact enabled.  This is solely a bug in the output of configure.
50211         In spite of saying "no", NDEBUG was not defined in that case.
50212         Also, as noted by Eric Blake, leave assertions enabled upon
50213         --enable-assert=INVALID.
50214
50215 2008-12-10  Bruno Haible  <bruno@clisp.org>
50216
50217         Change MODULES.html to refer to POSIX:2008 where possible.
50218         * MODULES.html.sh (POSIX2008_URL): New variable.
50219         (posix_headers): Remove sys/timeb, ucontext.
50220         (posix2001_headers): New variable.
50221         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50222         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50223         index, makecontext, mktemp, pthread_attr_getstackaddr,
50224         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50225         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50226         (posix2001_functions): New variable.
50227         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50228         otherwise.
50229
50230 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50231
50232         add missing include to parse-duration.c
50233         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50234         * modules/parse-duration (Depends-on): Add xalloc.
50235
50236         fix sed script reading maint.mk
50237         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50238         (syntax-check-rules): Use it.
50239
50240 2008-12-09  Bruno Haible  <bruno@clisp.org>
50241
50242         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50243         MacOS X 10.4/PowerPC.
50244         Reported by Simon Josefsson.
50245
50246 2008-12-08  Jim Meyering  <meyering@redhat.com>
50247
50248         work around mingw's lack of some S_IF definitions
50249         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50250         Reported by Simon Josefsson.
50251
50252 2008-12-08  Bruno Haible  <bruno@clisp.org>
50253
50254         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50255         applied to variables. Needed on MacOS X 10.4/PowerPC.
50256         Reported by Simon Josefsson.
50257
50258 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50259         and Eric Blake  <ebb9@byu.net>
50260
50261         assert: honor --enable-assert
50262         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50263         order to honor --enable-assert, rather than treating it as a
50264         synonym for --disable-assert.
50265
50266 2008-12-08  Jim Meyering  <meyering@redhat.com>
50267
50268         * lib/posixtm.c: Remove now-useless declaration of mktime.
50269
50270         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50271
50272 2008-12-07  Bruno Haible  <bruno@clisp.org>
50273
50274         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50275         test_once): Mark functions as static.
50276         * tests/test-tls.c (test_tls): Likewise.
50277
50278 2008-12-07  Bruno Haible  <bruno@clisp.org>
50279
50280         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50281         iconv_register_autodetect.
50282
50283 2008-12-07  Jim Meyering  <meyering@redhat.com>
50284
50285         posixtm.c: avoid a warning
50286         * lib/posixtm.c (posixtime): Don't initialize tm0.
50287         It's no longer needed to placate gcc4's -Wuninitialized,
50288         and the attempt to placate would elicit a new warning.
50289
50290         unicodeio.c: mark unused parameters
50291         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50292         (fallback_failure_callback): Likewise.
50293
50294 2008-12-07  Bruno Haible  <bruno@clisp.org>
50295
50296         * gnulib-tool (func_create_testdir): When building the tests
50297         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50298         Reported by Simon Josefsson.
50299
50300 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50301
50302         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50303
50304 2008-12-06  Bruno Haible  <bruno@clisp.org>
50305
50306         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50307         Suggested by Eric Blake.
50308
50309 2008-12-06  Bruno Haible  <bruno@clisp.org>
50310
50311         Fix a c-stack test failure on MacOS X.
50312         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50313         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50314         handler for SIGBUS as well.
50315         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50316         install a signal handler for SIGBUS as well.
50317         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50318
50319 2008-12-06  Bruno Haible  <bruno@clisp.org>
50320
50321         Advocacy documentation.
50322         * doc/gnulib-intro.texi (Benefits): New section.
50323         * doc/gnulib.texi: Update.
50324
50325 2008-12-06  Bruno Haible  <bruno@clisp.org>
50326
50327         Document the 'manywarnings' module.
50328         * doc/manywarnings.texi: New file.
50329         * doc/gnulib.texi: Include it.
50330
50331 2008-12-05  Eric Blake  <ebb9@byu.net>
50332
50333         tests: silence some gcc warnings
50334         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50335         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50336         type mismatches.
50337
50338 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50339             Bruno Haible  <bruno@clisp.org>
50340
50341         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50342
50343 2008-11-29  Jim Meyering  <meyering@redhat.com>
50344
50345         unicodeio.c: mark unused parameters
50346         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50347         (fallback_failure_callback): Likewise.
50348
50349         fts: fix a thinko
50350         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50351         (set_stat_type): Return S_IF*-valued "type" directly.
50352         Prompted by James Youngman's spotting a related bug.
50353         Confirmed by further testing through find.
50354
50355         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50356         * lib/fts.c (D_TYPE): Define.
50357         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50358         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50359         (s_ifmt_shift_bits): New function.
50360         (set_stat_type): New function.
50361         (fts_build): When not calling fts_stat, call set_stat_type
50362         to propagate dirent.d_type info to fts_read caller.
50363         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50364         fts_statp->st_mode type information may be valid.
50365
50366 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50367
50368         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50369         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50370         <sds@gnu.org>.
50371
50372 2008-11-20  Bruno Haible  <bruno@clisp.org>
50373
50374         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50375         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50376         INCLUDE_NEXT.
50377         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50378         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50379         * modules/math (Makefile.am): Substitute
50380         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50381         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50382
50383 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50384             Bruno Haible  <bruno@clisp.org>
50385
50386         * lib/stdint.in.h: Define all type macros so that their expansion is
50387         a single typedef'ed token. Fixes a compilation failure in Boost which
50388         does "using ::int8_t;".
50389
50390 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50391
50392         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50393         gl_MANYWARN_ALL_GCC.
50394         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50395         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50396         * modules/manywarnings: New file.
50397         * MODULES.html.sh: Mention manywarnings module.
50398
50399 2008-11-18  Bruno Haible  <bruno@clisp.org>
50400
50401         * doc/gnulib-tool.texi (Unit tests): New section.
50402
50403 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50404
50405         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50406         paths like 'lib/po/foo.po'.
50407
50408 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50409
50410         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50411         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50412
50413 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50414
50415         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50416         parameter works.
50417
50418 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50419
50420         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50421
50422 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50423
50424         * modules/parse-duration-tests: New file.
50425         * tests/test-parse-duration.sh: New file.
50426         * tests/test-parse-duration.c: New file.
50427
50428         New module 'parse-duration'.
50429         * lib/parse-duration.h: New file.
50430         * lib/parse-duration.c: New file.
50431         * modules/parse-duration: New file.
50432
50433 2008-11-17  Bruno Haible  <bruno@clisp.org>
50434
50435         * tests/test-select-out.sh: Comment out the first pipe test.
50436         Reported by Simon Josefsson.
50437
50438 2008-11-17  Bruno Haible  <bruno@clisp.org>
50439
50440         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50441         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50442         gl_HOSTENT.
50443
50444 2008-11-17  Bruno Haible  <bruno@clisp.org>
50445
50446         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50447         -lnetwork and -lnet. Needed for Haiku and BeOS.
50448
50449 2008-11-16  Bruno Haible  <bruno@clisp.org>
50450
50451         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50452
50453 2008-11-16  Bruno Haible  <bruno@clisp.org>
50454
50455         Avoid test failure on Haiku.
50456         * tests/test-fsync.c: Include <errno.h>.
50457         (main): Don't require that fsync (0) fails.
50458
50459 2008-11-15  Bruno Haible  <bruno@clisp.org>
50460
50461         New module 'hostent'.
50462         * modules/hostent: New file.
50463         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50464
50465 2008-11-15  Bruno Haible  <bruno@clisp.org>
50466
50467         New module 'servent'.
50468         * modules/servent: New file.
50469         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50470
50471 2008-11-15  Bruno Haible  <bruno@clisp.org>
50472
50473         Avoid generating same test program with two different rules.
50474         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50475         test-frexp to test-frexp-nolibm.
50476         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50477         test-frexpl to test-frexpl-nolibm.
50478
50479 2008-11-15  Bruno Haible  <bruno@clisp.org>
50480
50481         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50482         $(FREXPL_LIBM).
50483
50484 2008-11-15  Bruno Haible  <bruno@clisp.org>
50485
50486         * lib/netdb.in.h: Activate the definitions also when the system's
50487         <netdb.h> has 'struct addrinfo'.
50488         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50489         EAI_OVERFLOW or AI_NUMERICSERV.
50490         * doc/posix-headers/netdb.texi: Document the problem.
50491
50492 2008-11-15  Bruno Haible  <bruno@clisp.org>
50493
50494         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50495
50496         Make the 'sched' module work on platforms where <sched.h> exists but
50497         is incomplete (such as Haiku).
50498         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50499         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50500         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50501         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50502         HAVE_STRUCT_SCHED_PARAM.
50503         * modules/sched (Depends-on): Add include_next.
50504         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50505         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50506         * doc/posix-headers/sched.texi: Document the issue.
50507
50508 2008-11-13  Jim Meyering  <meyering@redhat.com>
50509
50510         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50511         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50512         test would fail due to the difference in the Report bugs to ...
50513         line.  The expected address is empty, "<>", while the actual
50514         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50515
50516 2008-11-12  Bruno Haible  <bruno@clisp.org>
50517
50518         lstat: don't compile lstat.c on systems lacking lstat
50519         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50520         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50521         Reported by Daniel P. Berrange via Jim Meyering.
50522
50523 2008-11-12  Jim Meyering  <meyering@redhat.com>
50524
50525         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50526
50527 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50528
50529         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50530         instead.
50531
50532 2008-11-12  Bruno Haible  <bruno@clisp.org>
50533
50534         * lib/unicodeio.c: Include unistr.h.
50535         (utf8_wctomb): Remove function.
50536         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50537
50538 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50539
50540         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50541         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50542         <bruno@clisp.org>.
50543         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50544
50545 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50546
50547         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50548         * doc/gnulib.texi: Add section for warnings.
50549
50550 2008-11-11  Bruno Haible  <bruno@clisp.org>
50551
50552         * lib/sockets.h: Add a comment.
50553
50554 2008-11-11  Karl Berry  <karl@gnu.org>
50555
50556         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50557
50558 2008-11-11  Eric Blake  <ebb9@byu.net>
50559
50560         fdl.texi: avoid git symlinks
50561         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50562
50563 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50564
50565         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50566
50567 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50568
50569         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50570         (gl_WARN_ADD): Substitute $2 if literal.
50571
50572 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50573
50574         * m4/warning.m4: Remove.
50575
50576 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50577
50578         * m4/warnings.m4: Almost complete rewrite. :-)
50579
50580 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50581
50582         * modules/warnings: New module.
50583         * m4/warnings.m4: New file.
50584         * MODULES.html.sh: Mention warnings module.
50585         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50586         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50587
50588 2008-11-10  Eric Blake  <ebb9@byu.net>
50589
50590         fdl.texi: make a symlink to the latest version
50591         * doc/standards.texi: Revert today's earlier change.
50592         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50593         * doc/fdl.texi: ...and replace this with a symlink to the newer
50594         fdl-1.3.texi.
50595
50596 2008-11-10  Bruno Haible  <bruno@clisp.org>
50597
50598         * tests/test-select-fd.c (main): Accept the result file name as fourth
50599         argument.
50600         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50601         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50602
50603 2008-11-10  Bruno Haible  <bruno@clisp.org>
50604
50605         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50606         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50607         as autoconf-substituted macros.
50608         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50609         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50610         gl_NETDB_H_DEFAULTS. Set these variables.
50611         * modules/netdb (Makefile.am): Substitute these variables.
50612
50613 2008-11-10  Eric Blake  <ebb9@byu.net>
50614
50615         standards.texi: include correct file for FDL 1.3
50616         * doc/standards.texi (GNU Free Documentation License): Change
50617         include file to pull in FDL 1.3, not 1.2.
50618
50619         fdl.texi: revert accidental change to license
50620         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50621
50622 2008-11-10  Bruno Haible  <bruno@clisp.org>
50623
50624         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50625         cross-compiling guesses also when the native compile gives no result.
50626
50627 2008-11-10  Bruno Haible  <bruno@clisp.org>
50628
50629         * lib/spawni.c (__spawni): Force variable into the stack.
50630
50631 2008-11-10  Bruno Haible  <bruno@clisp.org>
50632
50633         Add support for Haiku.
50634         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50635         glibc and BeOS, but also on Haiku.
50636         * lib/fpurge.c (fpurge): Likewise.
50637         * lib/freadable.c (freadable): Likewise.
50638         * lib/freadahead.c (freadahead): Likewise.
50639         * lib/freading.c (freading): Likewise.
50640         * lib/freadptr.c (freadptr): Likewise.
50641         * lib/freadseek.c (freadptrinc): Likewise.
50642         * lib/fseeko.c (rpl_fseeko): Likewise.
50643         * lib/fseterr.c (fseterr): Likewise.
50644         * lib/fwritable.c (fwritable): Likewise.
50645         * lib/fwriting.c (fwriting): Likewise.
50646         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50647
50648 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50649
50650         * lib/config.charset: Treat Haiku like BeOS.
50651
50652 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50653
50654         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50655         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50656
50657 2008-11-08  Bruno Haible  <bruno@clisp.org>
50658
50659         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50660         AC_CACHE_CHECK.
50661
50662 2008-11-08  Bruno Haible  <bruno@clisp.org>
50663
50664         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50665
50666 2008-11-08  Bruno Haible  <bruno@clisp.org>
50667
50668         * tests/test-select-fd.c: New file.
50669         * tests/test-select-in.sh: New file.
50670         * tests/test-select-out.sh: New file.
50671         * tests/test-select-stdin.c: New file.
50672         * modules/select-tests (Files): Add the new files.
50673         (Depends-on): Add gettimeofday.
50674         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50675         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50676         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50677
50678 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50679             Bruno Haible  <bruno@clisp.org>
50680
50681         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50682
50683 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50684
50685         * build-aux/pmccabe2html: Added support for C++ source files.
50686
50687 2008-11-05  Ben Pfaff  <blp@gnu.org>
50688
50689         Fix lib/close.c build on Windows.
50690         * modules/close (Files): Add lib/w32sock.h.
50691
50692 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50693
50694         Accept Bison's NEWS format.
50695         * build-aux/announce-gen (print_news_deltas): Tweak
50696         $re_prefix.
50697
50698 2008-11-04  Bruno Haible  <bruno@clisp.org>
50699
50700         * modules/random_r (Maintainer): Add glibc.
50701
50702 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50703
50704         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50705         by karl@freefriends.org (Karl Berry).
50706         * doc/alloca.texi: Likewise.
50707         * doc/c-ctype.texi: Likewise.
50708         * doc/c-strcase.texi: Likewise.
50709         * doc/c-strcaseeq.texi: Likewise.
50710         * doc/c-strcasestr.texi: Likewise.
50711         * doc/c-strstr.texi: Likewise.
50712         * doc/c-strtod.texi: Likewise.
50713         * doc/c-strtold.texi: Likewise.
50714         * doc/ctime.texi: Likewise.
50715         * doc/error.texi: Likewise.
50716         * doc/fdl.texi: Likewise.
50717         * doc/gcd.texi: Likewise.
50718         * doc/getdate.texi: Likewise.
50719         * doc/gnulib-intro.texi: Likewise.
50720         * doc/gnulib-tool.texi: Likewise.
50721         * doc/gnulib.texi: Likewise.
50722         * doc/inet_ntoa.texi: Likewise.
50723         * doc/maintain.texi: Likewise.
50724         * doc/make-stds.texi: Likewise.
50725         * doc/quote.texi: Likewise.
50726         * doc/regexprops-generic.texi: Likewise.
50727         * doc/standards.texi: Likewise.
50728         * doc/verify.texi: Likewise.
50729         * doc/visibility.texi: Likewise.
50730         * doc/gnulib.texi (GNU Free Documentation License): Include
50731         fdl-1.3.texi instead of fdl.texi.
50732
50733 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50734
50735         * doc/fdl-1.3.texi: New file, from
50736         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50737         * modules/fdl-1.3: Add.
50738         * MODULES.html.sh: Add fdl-1.3.
50739
50740 2008-11-03  Bruno Haible  <bruno@clisp.org>
50741
50742         Make determination of absolute name of header file work with AIX xlc.
50743         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50744         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50745         preprocessing.
50746         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50747         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50748
50749 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50750
50751         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50752         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50753         <ludo@gnu.org>.
50754
50755 2008-11-02  Bruno Haible  <bruno@clisp.org>
50756
50757         Mark 'strpbrk' obsolete.
50758         * modules/strpbrk (Status, Notice): New sections.
50759         * modules/strtok_r (Depends-on): Add strpbrk.
50760
50761 2008-11-02  Bruno Haible  <bruno@clisp.org>
50762
50763         Mark 'strdup' obsolete.
50764         * modules/strdup (Status, Notice): New sections.
50765         * modules/findprog (Depends-on): Add strdup.
50766         * modules/getaddrinfo (Depends-on): Likewise.
50767         * modules/localename (Depends-on): Likewise.
50768         * modules/relocatable-lib (Depends-on): Likewise.
50769         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50770         * modules/relocatable-prog (Depends-on): Likewise.
50771         * modules/trim (Depends-on): Likewise.
50772         * modules/unictype/gen-ctype (Depends-on): Likewise.
50773         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50774
50775 2008-11-02  Bruno Haible  <bruno@clisp.org>
50776
50777         Mark 'strcspn' obsolete.
50778         * modules/strcspn (Status, Notice): New sections.
50779
50780 2008-11-02  Bruno Haible  <bruno@clisp.org>
50781
50782         Mark 'rmdir' obsolete.
50783         * modules/rmdir (Status, Notice): New sections.
50784         * modules/clean-temp (Depends-on): Add rmdir.
50785         * modules/openat (Depends-on): Likewise.
50786
50787 2008-11-02  Bruno Haible  <bruno@clisp.org>
50788
50789         Mark 'raise' obsolete.
50790         * modules/raise (Status, Notice): New sections.
50791         (Include): Specify <signal.h>.
50792         * modules/stdio (Depends-on): Add raise.
50793         * modules/write (Depends-on): Likewise.
50794
50795 2008-11-02  Bruno Haible  <bruno@clisp.org>
50796
50797         Mark 'memset' obsolete.
50798         * modules/memset (Status, Notice): New sections.
50799
50800 2008-11-02  Bruno Haible  <bruno@clisp.org>
50801
50802         Mark 'memmove' obsolete.
50803         * modules/memmove (Status, Notice): New sections.
50804         * modules/argp (Depends-on): Add memmove.
50805         * modules/argz (Depends-on): Likewise.
50806         * modules/canonicalize (Depends-on): Likewise.
50807         * modules/canonicalize-lgpl (Depends-on): Likewise.
50808         * modules/fts (Depends-on): Likewise.
50809         * modules/getcwd (Depends-on): Likewise.
50810         * modules/human (Depends-on): Likewise.
50811         * modules/regex (Depends-on): Likewise.
50812         * modules/striconveh (Depends-on): Likewise.
50813         * modules/trim (Depends-on): Likewise.
50814         * modules/unistr/u8-move (Depends-on): Likewise.
50815         * modules/unistr/u16-move (Depends-on): Likewise.
50816         * modules/unistr/u32-move (Depends-on): Likewise.
50817
50818 2008-11-02  Bruno Haible  <bruno@clisp.org>
50819
50820         Mark 'memcpy' obsolete.
50821         * modules/memcpy (Status, Notice): New sections.
50822
50823 2008-11-02  Bruno Haible  <bruno@clisp.org>
50824
50825         Mark 'memcmp' obsolete.
50826         * modules/memcmp (Status, Notice): New sections.
50827         * modules/argmatch (Depends-on): Add memchr.
50828         * modules/backupfile (Depends-on): Likewise.
50829         * modules/c-strcasestr (Depends-on): Likewise.
50830         * modules/crypto/des (Depends-on): Likewise.
50831         * modules/csharpcomp (Depends-on): Likewise.
50832         * modules/fnmatch (Depends-on): Likewise.
50833         * modules/git-merge-changelog (Depends-on): Likewise.
50834         * modules/isnand (Depends-on): Likewise.
50835         * modules/isnand-nolibm (Depends-on): Likewise.
50836         * modules/isnanf (Depends-on): Likewise.
50837         * modules/isnanf-nolibm (Depends-on): Likewise.
50838         * modules/isnanl (Depends-on): Likewise.
50839         * modules/isnanl-nolibm (Depends-on): Likewise.
50840         * modules/mbchar (Depends-on): Likewise.
50841         * modules/memcoll (Depends-on): Likewise.
50842         * modules/quotearg (Depends-on): Likewise.
50843         * modules/regex (Depends-on): Likewise.
50844         * modules/relocatable-prog (Depends-on): Likewise.
50845         * modules/same (Depends-on): Likewise.
50846         * modules/signbit (Depends-on): Likewise.
50847         * modules/strcasestr-simple (Depends-on): Likewise.
50848         * modules/unictype/gen-ctype (Depends-on): Likewise.
50849         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50850         * modules/uniname/uniname (Depends-on): Likewise.
50851         * modules/unistr/u8-cmp (Depends-on): Likewise.
50852
50853 2008-11-02  Bruno Haible  <bruno@clisp.org>
50854
50855         Mark 'memchr' obsolete.
50856         * modules/memchr (Status, Notice): New sections.
50857         * modules/argp (Depends-on): Add memchr.
50858         * modules/base64 (Depends-on): Likewise.
50859         * modules/c-strcasestr (Depends-on): Likewise.
50860         * modules/chdir-long (Depends-on): Likewise.
50861         * modules/fnmatch (Depends-on): Likewise.
50862         * modules/getsubopt (Depends-on): Likewise.
50863         * modules/git-merge-changelog (Depends-on): Likewise.
50864         * modules/glob (Depends-on): Likewise.
50865         * modules/strcasestr-simple (Depends-on): Likewise.
50866         * modules/strnlen (Depends-on): Likewise.
50867
50868 2008-11-02  Bruno Haible  <bruno@clisp.org>
50869
50870         Mark 'atexit' obsolete.
50871         * modules/atexit (Status, Notice): New sections.
50872         * modules/chdir-long (Depends-on): Add atexit.
50873         * modules/wait-process (Depends-on): Likewise.
50874
50875 2008-11-02  Bruno Haible  <bruno@clisp.org>
50876
50877         * gnulib-tool: New option --with-obsolete.
50878         (func_usage): Document it.
50879         (func_modules_transitive_closure): Drop obsolete dependencies if
50880         incobsolete is not true.
50881         (func_import): Read and save the incobsolete variable to the cache.
50882
50883 2008-11-02  Bruno Haible  <bruno@clisp.org>
50884
50885         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50886         * gnulib-tool: New option --extract-status.
50887         (func_usage): Document it.
50888         (sed_extract_prog): Recognize it.
50889         (func_get_status): New function.
50890
50891 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50892
50893         * modules/sockets (License): Change from LGPL to LGPLv2+.
50894
50895 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50896
50897         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50898
50899 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50900
50901         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50902         Mention times and sys_times.
50903         * modules/sys_times, modules/sys_times-tests: New modules.
50904         * modules/times, modules/times-tests: Likewise
50905         * m4/sys_times_h.m4: New file.
50906         * lib/sys_times.in.h: Likewise
50907         * lib/times.c: Likewise.
50908         * tests/test-sys_times.c: Likewise.
50909         * tests/test-times.c: Likewise.
50910         * doc/posix-headers/sys_times.texi: Update.
50911         * doc/posix-functions/times.texi: Update.
50912
50913 2008-10-28  Jim Meyering  <meyering@redhat.com>
50914
50915         * modules/tempname (Depends-on): Add lstat.
50916
50917         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50918
50919 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50920
50921         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50922         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50923         using idiom used elsewhere in gnulib.
50924
50925 2008-10-27  Jim Meyering  <meyering@redhat.com>
50926
50927         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50928
50929 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50930
50931         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50932         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50933         programs.
50934         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50935
50936 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50937
50938         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50939
50940 2008-10-27  Bruno Haible  <bruno@clisp.org>
50941
50942         * tests/test-lstat.c: Include <stdio.h>.
50943
50944 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50945
50946         * modules/lstat-tests: New module.
50947         * tests/test-lstat.c: New file.
50948
50949 2008-10-26  Jim Meyering  <meyering@redhat.com>
50950
50951         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50952
50953 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50954             Bruno Haible  <bruno@clisp.org>
50955
50956         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50957         * modules/configmake (Include): Add a note that the include must come
50958         after all system headers.
50959         * lib/javaversion.c: Include configmake.h after all other includes.
50960
50961 2008-10-26  Bruno Haible  <bruno@clisp.org>
50962
50963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50964         HAVE_STRUCT_RANDOM_DATA to 1.
50965         (gl_STDLIB_H): Simplify.
50966
50967 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50968
50969         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50970         substitute HAVE_STRUCT_RANDOM_DATA.
50971         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50972         random_data.
50973         * modules/stdlib (Makefile.am): Substitute
50974         HAVE_STRUCT_RANDOM_DATA.
50975
50976 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50977
50978         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50979         * doc/gnulib-intro.texi (Copyright): Likewise.
50980
50981 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50982
50983         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50984         findings.
50985
50986 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50987             Bruno Haible  <bruno@clisp.org>
50988
50989         * lib/unistd.in.h: Include <winsock2.h>.
50990         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50991         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50992         Provide dummy declarations.
50993         (gethostname): Override.
50994         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50995         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50996         gl_PREREQ_SYS_H_WINSOCK2.
50997         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50998         * doc/posix-functions/gethostname.texi: More details.
50999
51000 2008-10-25  Bruno Haible  <bruno@clisp.org>
51001
51002         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51003         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51004         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51005
51006         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51007         here ...
51008         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51009         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51010         gl_UNISTD_H_DEFAULTS.
51011
51012 2008-10-25  Eric Blake  <ebb9@byu.net>
51013
51014         signbit: avoid spurious compiler failure
51015         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51016         declarations inside function.
51017
51018 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51019             Bruno Haible  <bruno@clisp.org>
51020
51021         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51022         * modules/random_r (Depends-on): Add stdint.
51023
51024 2008-10-24  Bruno Haible  <bruno@clisp.org>
51025
51026         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51027         Eggert.
51028         * modules/strerror (License): Likewise.
51029
51030 2008-10-24  Jim Meyering  <meyering@redhat.com>
51031
51032         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51033         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51034
51035 2008-10-24  Eric Blake  <ebb9@byu.net>
51036
51037         getgroups: fix compilation when getgroups is available
51038         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51039         but with <config.h> override of getgroups disabled.
51040
51041 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51042
51043         * doc/gnulib.texi (Header files): Add note about C++ problems.
51044         Explained by Bruno Haible <bruno@clisp.org>.
51045
51046 2008-10-23  Bruno Haible  <bruno@clisp.org>
51047
51048         Define a dummy SA_NODEFER macro on Interix.
51049         * lib/signal.in.h (SA_NODEFER): Define fallback.
51050         Reported by Aleksey Cheusov <cheusov@tut.by> via
51051         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51052
51053 2008-10-23  Bruno Haible  <bruno@clisp.org>
51054
51055         * modules/freadahead (License): Change to LGPLv2+.
51056         Suggested by Simon Josefsson.
51057
51058 2008-10-23  Jim Meyering  <meyering@redhat.com>
51059
51060         random_r: new module
51061         * modules/random_r: New file.
51062         * m4/random_r.m4: New file.
51063         * lib/random_r.c: New file, from glibc.
51064         * modules/random_r-tests: New file.
51065         * tests/test-random_r.c: New file.
51066         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51067          Declare.
51068         (RAND_MAX): Define.
51069         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51070         * modules/stdlib: Substitute them, too.
51071         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51072         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51073         * doc/glibc-functions/random_r.texi: Likewise.
51074         * doc/glibc-functions/setstate_r.texi: Likewise.
51075         * doc/glibc-functions/srandom_r.texi: Likewise.
51076         * config/srclist.txt: Mention it.
51077
51078 2008-10-23  David Lutterkort  <lutter@redhat.com>
51079
51080         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51081         link requirement
51082
51083 2008-10-23  Jim Meyering  <meyering@redhat.com>
51084
51085         selinux-h: mark parameters of stub functions as intentionally unused
51086         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51087         * lib/se-context.in.h: Likewise.
51088
51089 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51090
51091         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51092
51093 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51094
51095         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51096
51097 2008-10-22  Eric Blake  <ebb9@byu.net>
51098
51099         glthread/thread: avoid compiler warning
51100         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51101         Add unreachable abort to silence compiler.
51102
51103 2008-10-22  Eric Blake  <ebb9@byu.net>
51104
51105         netdb: also supply struct addrinfo for cygwin 1.5.x
51106         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51107         older cygwin.
51108         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51109         cygwin.
51110         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51111
51112 2008-10-22  Bruno Haible  <bruno@clisp.org>
51113
51114         * users.txt: Update entry about pspp.
51115
51116 2008-10-21  Bruno Haible  <bruno@clisp.org>
51117
51118         Simplification.
51119         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51120         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51121
51122         Simplification.
51123         * lib/ioctl.c (ioctl): Don't undefine.
51124         * lib/socket.c (socket): Don't undefine.
51125
51126         Remove unused module indicator macros.
51127         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51128         GNULIB_$1 as a C macro.
51129
51130         * doc/posix-functions/close.texi: Undo last change.
51131         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51132         Windows platforms.
51133
51134 2008-10-21  Bruno Haible  <bruno@clisp.org>
51135
51136         Add gethostname() declaration to <unistd.h>.
51137         * lib/unistd.in.h (gethostname): New declaration.
51138         * lib/gethostname.c: Include <unistd.h>.
51139         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51140         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51142         and HAVE_GETHOSTNAME.
51143         * modules/gethostname (Depends-on): Add unistd.
51144         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51145         (Include): Specify <unistd.h>.
51146         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51147         HAVE_GETHOSTNAME.
51148         * tests/test-gethostname.c: Include <unistd.h> first.
51149
51150 2008-10-21  Bruno Haible  <bruno@clisp.org>
51151
51152         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51153         * modules/select-tests (Depends-on): Likewise.
51154         Reported by Simon Josefsson.
51155
51156 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51157
51158         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51159         * lib/accept.c: New file, based on winsock.c.
51160         * lib/bind.c: New file, based on winsock.c.
51161         * lib/connect.c: New file, based on winsock.c.
51162         * lib/getpeername.c: New file, based on winsock.c.
51163         * lib/getsockname.c: New file, based on winsock.c.
51164         * lib/getsockopt.c: New file, based on winsock.c.
51165         * lib/ioctl.c: New file, based on winsock.c.
51166         * lib/listen.c: New file, based on winsock.c.
51167         * lib/recv.c: New file, based on winsock.c.
51168         * lib/recvfrom.c: New file, based on winsock.c.
51169         * lib/send.c: New file, based on winsock.c.
51170         * lib/sendto.c: New file, based on winsock.c.
51171         * lib/setsockopt.c: New file, based on winsock.c.
51172         * lib/shutdown.c: New file, based on winsock.c.
51173         * lib/socket.c: New file, based on winsock.c.
51174         * lib/w32sock.h: New file, based on winsock.c.
51175         * lib/winsock.c: Remove file.
51176         * modules/accept: Likewise.
51177         * modules/bind: Likewise.
51178         * modules/connect: Likewise.
51179         * modules/getpeername: Likewise.
51180         * modules/getsockname: Likewise.
51181         * modules/getsockopt: Likewise.
51182         * modules/ioctl: Likewise.
51183         * modules/listen: Likewise.
51184         * modules/recv: Likewise.
51185         * modules/recvfrom: Likewise.
51186         * modules/send: Likewise.
51187         * modules/sendto: Likewise.
51188         * modules/setsockopt: Likewise.
51189         * modules/shutdown: Likewise.
51190         * modules/socket: Use socket.c instead of winsock.c.
51191         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51192         * doc/posix-functions/accept.texi: Doc fix.
51193         * doc/posix-functions/bind.texi: Doc fix.
51194         * doc/posix-functions/close.texi: Doc fix.
51195         * doc/posix-functions/connect.texi: Doc fix.
51196         * doc/posix-functions/getpeername.texi: Doc fix.
51197         * doc/posix-functions/getsockname.texi: Doc fix.
51198         * doc/posix-functions/getsockopt.texi: Doc fix.
51199         * doc/posix-functions/ioctl.texi: Doc fix.
51200         * doc/posix-functions/listen.texi: Doc fix.
51201         * doc/posix-functions/recv.texi: Doc fix.
51202         * doc/posix-functions/recvfrom.texi: Doc fix.
51203         * doc/posix-functions/send.texi: Doc fix.
51204         * doc/posix-functions/sendto.texi: Doc fix.
51205         * doc/posix-functions/setsockopt.texi: Doc fix.
51206         * doc/posix-functions/shutdown.texi: Doc fix.
51207         * doc/posix-functions/socket.texi: Doc fix.
51208
51209 2008-10-20  Bruno Haible  <bruno@clisp.org>
51210
51211         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51212         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51213         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51214         as an alias for SIGABRT.
51215         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51216         (sigaction): Map it to SIGABRT.
51217         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51218
51219 2008-10-20  Bruno Haible  <bruno@clisp.org>
51220
51221         * lib/fts.c: Don't include lstat.h.
51222         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51223
51224         Move the lstat() declaration to <sys/stat.h>.
51225         * lib/lstat.h: Remove file.
51226         * lib/sys_stat.in.h: Add special invocation convention.
51227         (lstat): New declaration.
51228         * lib/lstat.c (orig_lstat): New function.
51229         (rpl_lstat): Use orig_lstat instead of lstat.
51230         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51231         AC_C_INLINE. Set REPLACE_LSTAT.
51232         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51233         and REPLACE_LSTAT.
51234         * modules/lstat (Files): Remove lib/lstat.h.
51235         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51236         (Include): Specify <sys/stat.h> instead of lstat.h.
51237         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51238         REPLACE_LSTAT.
51239         * NEWS: Mention the change.
51240
51241 2008-10-20  Bruno Haible  <bruno@clisp.org>
51242
51243         * modules/posix_spawn-tests: New file.
51244         * tests/test-posix_spawn3.c: New file.
51245
51246 2008-10-20  Bruno Haible  <bruno@clisp.org>
51247
51248         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51249         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51250         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51251         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51252         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51253
51254 2008-10-20  Bruno Haible  <bruno@clisp.org>
51255
51256         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51257         of posix_spawn on AIX 5.3.
51258
51259 2008-10-20  Bruno Haible  <bruno@clisp.org>
51260
51261         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51262
51263 2008-10-20  Bruno Haible  <bruno@clisp.org>
51264
51265         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51266         of AC_LANG_PROGRAM.
51267
51268 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51269
51270         * lib/netdb.in.h: Don't define GNU specific constants until they
51271         are supported or needed.  Reported by Bruno Haible
51272         <bruno@clisp.org>.
51273
51274 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51275
51276         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51277
51278 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51279
51280         * lib/getaddrinfo.h: Remove file.
51281         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51282         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51283         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51284         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51285         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51286         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51287         * tests/test-getaddrinfo.c: Likewise.
51288         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51289         * NEWS: Mention change.
51290
51291 2008-10-19  Bruno Haible  <bruno@clisp.org>
51292
51293         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51294
51295 2008-10-19  Bruno Haible  <bruno@clisp.org>
51296
51297         * lib/wait-process.c: Include simply <sys/wait.h>.
51298         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51299         WIFSTOPPED): Remove fallback definitions.
51300         * modules/wait-process (Depends-on): Add sys_wait.
51301
51302         New module 'sys_wait'.
51303         * modules/sys_wait: New file.
51304         * lib/sys_wait.in.h: New file, partially copied from
51305         lib/wait-process.c.
51306         * m4/sys_wait_h.m4: New file.
51307         * doc/posix-headers/sys_wait.texi: Mention the new module.
51308
51309 2008-10-19  Bruno Haible  <bruno@clisp.org>
51310
51311         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51312
51313 2008-10-19  Bruno Haible  <bruno@clisp.org>
51314
51315         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51316         * lib/wait-process.c (WAIT_T): Remove type.
51317         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51318         (wait_subprocess): Update.
51319
51320 2008-10-19  Bruno Haible  <bruno@clisp.org>
51321
51322         New module 'atoll'.
51323         * modules/atoll: New file.
51324         * lib/stdlib.in.h (atoll): New declaration.
51325         * lib/atoll.c: New file, from glibc with modifications.
51326         * m4/atoll.m4: New file.
51327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51328         HAVE_ATOLL.
51329         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51330         * doc/posix-functions/atoll.texi: Mention the new module.
51331
51332 2008-10-19  Bruno Haible  <bruno@clisp.org>
51333
51334         Add strtoull() declaration to <stdlib.h>.
51335         * lib/stdlib.in.h (strtoull): New declaration.
51336         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51337         Set HAVE_STRTOULL.
51338         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51339         HAVE_STRTOULL.
51340         * modules/strtoull (Depends-on): Add stdlib.
51341         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51342         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51343         HAVE_STRTOULL.
51344
51345 2008-10-19  Bruno Haible  <bruno@clisp.org>
51346
51347         Add strtoll() declaration to <stdlib.h>.
51348         * lib/stdlib.in.h (strtoll): New declaration.
51349         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51350         Set HAVE_STRTOLL.
51351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51352         HAVE_STRTOLL.
51353         * modules/strtoll (Depends-on): Add stdlib.
51354         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51355         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51356
51357 2008-10-19  Bruno Haible  <bruno@clisp.org>
51358
51359         * modules/bcopy (Depends-on): Add strings.
51360         (Include): Specify <strings.h>.
51361
51362 2008-10-19  Bruno Haible  <bruno@clisp.org>
51363
51364         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51365
51366 2008-10-19  Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51369         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51370         mingw.
51371
51372 2008-10-19  Bruno Haible  <bruno@clisp.org>
51373
51374         * lib/atanl.c: Don't include isnanl.h.
51375         * lib/cosl.c: Likewise.
51376         * lib/ldexpl.c: Likewise.
51377         * lib/logl.c: Likewise.
51378         * lib/sinl.c: Likewise.
51379         * lib/sqrtl.c: Likewise.
51380         * lib/tanl.c: Likewise.
51381
51382         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51383         * lib/isnanf.h: Remove file.
51384         * lib/isnand.h: Remove file.
51385         * lib/isnanl.h: Remove file.
51386         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51387         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51388         macros.
51389         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51390         HAVE_ISNANF, don't define it as a C macro.
51391         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51392         HAVE_ISNAND, don't define it as a C macro.
51393         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51394         HAVE_ISNANL, don't define it as a C macro.
51395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51396         HAVE_ISNAN[FDL].
51397         * modules/isnanf (Files): Remove lib/isnanf.h.
51398         (Depends-on): Add math.
51399         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51400         (Include): Specify <math.h> instead of isnanf.h.
51401         * modules/isnand (Files): Remove lib/isnand.h.
51402         (Depends-on): Add math.
51403         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51404         (Include): Specify <math.h> instead of isnand.h.
51405         * modules/isnanl (Files): Remove lib/isnanl.h.
51406         (Depends-on): Add math.
51407         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51408         (Include): Specify <math.h> instead of isnanl.h.
51409         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51410         HAVE_ISNAN[FDL].
51411         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51412         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51413         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51414         * NEWS: Mention the change.
51415
51416 2008-10-18  Bruno Haible  <bruno@clisp.org>
51417
51418         Add getusershell(), setusershell(), endusershell() declarations to
51419         <unistd.h>.
51420         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51421         declarations.
51422         * lib/getusershell.c: Include unistd.h.
51423         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51424         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51425         HAVE_GETUSERSHELL.
51426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51427         and HAVE_GETUSERSHELL.
51428         * modules/getusershell (Depends-on): Add unistd, extensions.
51429         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51430         (Include): Specify <unistd.h>.
51431         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51432         HAVE_GETUSERSHELL.
51433
51434 2008-10-18  Bruno Haible  <bruno@clisp.org>
51435
51436         Add a getloadavg() declaration to <stdlib.h>.
51437         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51438         getloadavg declaration.
51439         (getloadavg): New declaration.
51440         * lib/getloadavg.c: Include <stdlib.h> first.
51441         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51442         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51443         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51445         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51446         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51447         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51448         (Include): Specify <stdlib.h>.
51449         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51450         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51451
51452 2008-10-18  Bruno Haible  <bruno@clisp.org>
51453
51454         * lib/dirchownmod.c: Don't include lchmod.h.
51455
51456         Move the lchmod() declaration to <sys/stat.h>.
51457         * lib/lchmod.h: Remove file.
51458         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51459         (lchmod): New declaration, moved here from lib/lchown.h.
51460         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51461         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51462         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51463         and HAVE_LCHMOD.
51464         * modules/lchmod (Files): Remove lib/lchmod.h.
51465         (Depends-on): Add sys_stat, extensions.
51466         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51467         (Include): Specify <sys/stat.h> instead of lchmod.h.
51468         * modules/sys_stat (Depends-on): Add link-warning.
51469         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51470         definition of GL_LINK_WARNING.
51471         * NEWS: Mention the change.
51472
51473 2008-10-18  Bruno Haible  <bruno@clisp.org>
51474
51475         * lib/fchdir.c: Don't include dirfd.h.
51476         * lib/fts.c: Likewise.
51477         * lib/getcwd.c: Likewise.
51478         * lib/glob.c: Likewise.
51479
51480         Move the dirfd() declaration to <dirent.h>.
51481         * lib/dirfd.h: Remove file.
51482         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51483         (dirfd): New declaration.
51484         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51485         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51486         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51487         HAVE_DECL_DIRFD.
51488         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51489         HAVE_DECL_DIRFD.
51490         * modules/dirfd (Files): Remove lib/dirfd.h.
51491         (Depends-on): Add dirent, extensions.
51492         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51493         (Include): Specify <dirent.h> instead of dirfd.h.
51494         * modules/dirent (Depends-on): Add link-warning.
51495         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51496         definition of GL_LINK_WARNING.
51497         * NEWS: Mention the change.
51498
51499 2008-10-18  Bruno Haible  <bruno@clisp.org>
51500
51501         Move the euidaccess() declaration to <unistd.h>.
51502         * lib/euidaccess.h: Remove file.
51503         * lib/unistd.in.h (euidaccess): New declaration.
51504         * lib/euidaccess.c: Don't include euidaccess.h.
51505         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51506         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51508         and HAVE_EUIDACCESS.
51509         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51510         (Depends-on): Add unistd.
51511         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51512         (Include): Specify <unistd.h> instead of euidaccess.h.
51513         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51514         HAVE_EUIDACCESS.
51515         * NEWS: Mention the change.
51516
51517 2008-10-18  Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51520
51521         Move the getdomainname() declaration to <unistd.h>.
51522         * lib/getdomainname.h: Remove file.
51523         * lib/unistd.in.h (getdomainname): New declaration.
51524         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51525         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51526         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51527         HAVE_GETDOMAINNAME.
51528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51529         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51530         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51531         (Depends-on): Add unistd, extensions.
51532         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51533         (Includes): Specify <unistd.h> instead of getdomainname.h.
51534         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51535         HAVE_GETDOMAINNAME.
51536         * NEWS: Mention the change.
51537
51538 2008-10-18  Bruno Haible  <bruno@clisp.org>
51539
51540         * modules/dirent: New file.
51541         * m4/dirent_h.m4: New file.
51542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51543         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51544         * modules/fchdir (Files): Remove lib/dirent.in.h.
51545         (Depends-on): Add dirent.
51546         (Makefile.am): Move rules to modules/dirent.
51547         * doc/posix-headers/dirent.texi: Mention the new module.
51548
51549 2008-10-18  Bruno Haible  <bruno@clisp.org>
51550
51551         Avoid -Wunused-parameter warnings in public gnulib header files.
51552         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51553         macro.
51554         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51555
51556 2008-10-18  Bruno Haible  <bruno@clisp.org>
51557
51558         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51559         * doc/glibc-functions/error.texi: Mention the module 'error'.
51560         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51561         * doc/glibc-functions/getdomainname.texi: Mention the module
51562         'getdomainname'.
51563         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51564         * doc/glibc-functions/getpagesize.texi: Mention the module
51565         'getpagesize'.
51566         * doc/glibc-functions/getusershell.texi: Mention the module
51567         'getusershell'.
51568         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51569         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51570         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51571         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51572         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51573         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51574         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51575         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51576         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51577         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51578         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51579         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51580         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51581         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51582
51583 2008-10-17  Bruno Haible  <bruno@clisp.org>
51584
51585         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51586         HP-UX and IRIX, use -0.0L.
51587         * tests/test-ceill.c (minus_zero): Likewise.
51588         * tests/test-floorl.c (minus_zero): Likewise.
51589         * tests/test-frexpl.c (minus_zero): Likewise.
51590         * tests/test-isnan.c (minus_zerol): Likewise.
51591         * tests/test-isnanl.h (minus_zero): Likewise.
51592         * tests/test-ldexpl.c (minus_zero): Likewise.
51593         * tests/test-roundl.c (minus_zero): Likewise.
51594         * tests/test-signbit.c (minus_zerol): Likewise.
51595         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51596         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51597         * tests/test-truncl.c (minus_zero): Likewise.
51598         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51599         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51600         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51601         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51602
51603 2008-10-17  Bruno Haible  <bruno@clisp.org>
51604
51605         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51606         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51607         that it gets activated only for gcc >= 3.0.
51608         * lib/dirent.in.h: Likewise.
51609         * lib/errno.in.h: Likewise.
51610         * lib/fcntl.in.h: Likewise.
51611         * lib/float.in.h: Likewise.
51612         * lib/iconv.in.h: Likewise.
51613         * lib/inttypes.in.h: Likewise.
51614         * lib/locale.in.h: Likewise.
51615         * lib/math.in.h: Likewise.
51616         * lib/netdb.in.h: Likewise.
51617         * lib/netinet_in.in.h: Likewise.
51618         * lib/search.in.h: Likewise.
51619         * lib/signal.in.h: Likewise.
51620         * lib/spawn.in.h: Likewise.
51621         * lib/stdarg.in.h: Likewise.
51622         * lib/stdint.in.h: Likewise.
51623         * lib/stdio.in.h: Likewise.
51624         * lib/stdlib.in.h: Likewise.
51625         * lib/string.in.h: Likewise.
51626         * lib/strings.in.h: Likewise.
51627         * lib/sys_file.in.h: Likewise.
51628         * lib/sys_ioctl.in.h: Likewise.
51629         * lib/sys_select.in.h: Likewise.
51630         * lib/sys_socket.in.h: Likewise.
51631         * lib/sys_stat.in.h: Likewise.
51632         * lib/sys_time.in.h: Likewise.
51633         * lib/sysexits.in.h: Likewise.
51634         * lib/time.in.h: Likewise.
51635         * lib/unistd.in.h: Likewise.
51636         * lib/wchar.in.h: Likewise.
51637         * lib/wctype.in.h: Likewise.
51638         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51639
51640 2008-10-17  Jim Meyering  <meyering@redhat.com>
51641
51642         ignore-value: don't depend on inline module
51643         * modules/ignore-value (Depends-on): Remove 'inline'.
51644         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51645         Suggestion from Bruno Haible.
51646
51647 2008-10-17  Bruno Haible  <bruno@clisp.org>
51648
51649         New implementation of condition variables for Win32.
51650         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51651         (gl_linked_waitqueue_t): New type.
51652         (gl_cond_t): Use it.
51653         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51654         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51655         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51656         (glthread_cond_init_func, glthread_cond_wait_func,
51657         glthread_cond_timedwait_func, glthread_cond_signal_func,
51658         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51659         Reimplemented on the basis of gl_linked_waitqueue_t.
51660         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51661         gl_waitqueue_t.
51662         (gl_rwlock_t): Update.
51663         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51664
51665 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51666
51667         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51668         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51669
51670 2008-10-17  Jim Meyering  <meyering@redhat.com>
51671
51672         ignore-value: new module
51673         * modules/ignore-value: New file.
51674         * lib/ignore-value.h: New file.
51675         * MODULES.html.sh (Compiler warning management): New section,
51676         just for this module.  More to come.
51677
51678 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51679
51680         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51681         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51682         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51683
51684 2008-10-16  Jim Meyering  <meyering@redhat.com>
51685
51686         openat-die.c: avoid 'no previous prototype' warning
51687         * lib/openat-die.c: Include "openat.h".
51688         Reported by Reuben Thomas <rrt@sc3d.org>.
51689
51690 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51691
51692         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51693         * lib/netdb.in.h: Fix typo.
51694         Reported by Bruno Haible  <bruno@clisp.org>
51695
51696         * lib/netdb.in.h: Include sys/socket.h for platforms without
51697         netdb.h, to get structures like hostent on MinGW.
51698         * modules/netdb (Depends-on): Add sys_socket.
51699
51700 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51701
51702         * modules/netdb, modules/netdb-tests: New file.
51703         * m4/netdb_h.m4: New file.
51704         * lib/netdb.in.h: Add, currently just an empty file pending
51705         definitions.
51706         * tests/test-netdb.c: New file.
51707         * doc/posix-headers/netdb.texi: Mention that we replace it if
51708         needed.
51709         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51710         netdb.
51711
51712 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51713
51714         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51715         with code.
51716
51717 2008-10-13  Bruno Haible  <bruno@clisp.org>
51718
51719         * lib/glthread/cond.c (glthread_cond_wait_func,
51720         glthread_cond_timedwait_func): Add a comment.
51721
51722 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51723
51724         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51725         * tests/test-select.c: Likewise,
51726
51727 2008-10-13  Bruno Haible  <bruno@clisp.org>
51728
51729         * lib/glthread/cond.c (glthread_cond_wait_func,
51730         glthread_cond_timedwait_func): Fix variable name.
51731         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51732
51733 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51734
51735         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51736         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51737         struct sockaddr.sa_len.
51738         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51739
51740 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51741
51742         * build-aux/pmccabe2html: Add css and css_url parameters.
51743
51744 2008-10-12  Bruno Haible  <bruno@clisp.org>
51745
51746         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51747         calling aclx_get.
51748         Reported by Rainer Tammer <tammer@tammer.net>.
51749
51750 2008-10-12  Bruno Haible  <bruno@clisp.org>
51751
51752         Use msvcrt aware primitives for creation/termination of Win32 threads.
51753         * lib/glthread/thread.c: Include <process.h>.
51754         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51755         (wrapper_func): Update signature.
51756         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51757
51758 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51759             Bruno Haible  <bruno@clisp.org>
51760
51761         Provide a Win32 implementation of the 'cond' module.
51762         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51763         * lib/glthread/cond.c (glthread_cond_init_func,
51764         glthread_cond_wait_func, glthread_cond_timedwait_func,
51765         glthread_cond_signal_func, glthread_cond_broadcast_func,
51766         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51767         * modules/cond (Dependencies): Add gettimeofday.
51768
51769 2008-10-11  Bruno Haible  <bruno@clisp.org>
51770
51771         Make sleep work on older versions of mingw.
51772         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51773         only whether it exists.
51774         * doc/posix-functions/sleep.texi: Mention the problem with older
51775         versions of mingw.
51776
51777 2008-10-11  Bruno Haible  <bruno@clisp.org>
51778
51779         New module 'shutdown'.
51780         * modules/shutdown: New file.
51781         * lib/sys_socket.in.h (shutdown): New declaration.
51782         * lib/winsock.c (shutdown): New function.
51783         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51784         GNULIB_SHUTDOWN.
51785         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51786         * doc/posix-functions/shutdown.texi: Document the new module.
51787
51788 2008-10-11  Jim Meyering  <meyering@redhat.com>
51789
51790         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51791
51792 2008-10-11  Bruno Haible  <bruno@clisp.org>
51793
51794         New module 'fclose'.
51795         * modules/fclose: New file.
51796         * lib/stdio.in.h (fclose): New declaration.
51797         * lib/fclose.c: New file.
51798         * m4/fclose.m4: New file.
51799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51800         REPLACE_FCLOSE.
51801         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51802         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51803         REPLACE_FCLOSE.
51804         * modules/close (Depends-on): fclose.
51805         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51806
51807 2008-10-11  Bruno Haible  <bruno@clisp.org>
51808
51809         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51810         set errno and don't call _close.
51811
51812 2008-10-10  Bruno Haible  <bruno@clisp.org>
51813
51814         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51815         ACL, not afterwards. Fixes test failure on Cygwin.
51816
51817 2008-10-09  Ben Pfaff  <blp@gnu.org>
51818
51819         * build-aux/announce-gen: Fix gnulib version related part of usage
51820         message.  Die with a useful error message if no tarballs are
51821         found.
51822
51823 2008-10-10  Jim Meyering  <meyering@redhat.com>
51824
51825         bootstrap: use git's --depth=N option only if it's supported
51826         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51827         recognize the --depth option.  Reported by Pádraig Brady.
51828
51829 2008-10-09  Bruno Haible  <bruno@clisp.org>
51830
51831         New module 'ioctl'.
51832         * modules/ioctl: New file.
51833         * lib/sys_socket.in.h (ioctl): Remove declaration.
51834         * lib/winsock.c: Include <sys/ioctl.h>.
51835         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51836         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51837         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51838         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51839         * doc/posix-functions/ioctl.texi: Mention the new module.
51840
51841 2008-10-09  Bruno Haible  <bruno@clisp.org>
51842
51843         New module 'sys_ioctl'.
51844         * lib/sys_ioctl.in.h: New file.
51845         * m4/sys_ioctl_h.m4: New file.
51846         * modules/sys_ioctl: New file.
51847         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51848
51849 2008-10-09  Bruno Haible  <bruno@clisp.org>
51850
51851         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51852         * lib/winsock.c: Include <stdarg.h>.
51853         (rpl_ioctl): Change to second argument 'int' and then varargs.
51854
51855 2008-10-09  Bruno Haible  <bruno@clisp.org>
51856
51857         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51858         when the sys_socket module is present and the system has <winsock2.h>.
51859
51860 2008-10-09  Bruno Haible  <bruno@clisp.org>
51861
51862         * doc/posix-functions/close.texi: Mention module 'close' instead of
51863         module 'sys_socket'.
51864
51865 2008-10-09  Bruno Haible  <bruno@clisp.org>
51866
51867         * doc/glibc-headers/sys_ioctl.texi: New file.
51868         * doc/gnulib.texi: Include it.
51869
51870 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51871             Bruno Haible  <bruno@clisp.org>
51872
51873         Combine the two replacements of 'close'.
51874         * lib/sys_socket.in.h (close): Define to a reminder to include
51875         <unistd.h>.
51876         (_gl_close_fd_maybe_socket): New declaration.
51877         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51878         * lib/winsock.c (close): Remove undefinition.
51879         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51880         needed for the gnulib module 'close'.
51881         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51882         define to an error symbol or to a warning, if suitable.
51883         * lib/close.c: Include <sys/socket.h>.
51884         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51885         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51886         UNISTD_H_HAVE_WINSOCK2_H.
51887         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51889         UNISTD_H_HAVE_WINSOCK2_H.
51890         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51891         (configure.ac): Set a module indicator.
51892         (Makefile.am): Substitute GNULIB_CLOSE.
51893         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51894         * modules/poll-tests (Depends-on): Add close.
51895         * modules/select-tests (Depends-on): Likewise.
51896
51897 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51898             Bruno Haible  <bruno@clisp.org>
51899
51900         New module 'close'.
51901         * modules/close: New file.
51902         * lib/unistd.in.h (close): Move declaration out of the
51903         FCHDIR_REPLACEMENT scope.
51904         (_gl_unregister_fd): New declaration.
51905         * lib/close.c: New file.
51906         * lib/fchdir.c (rpl_close): Remove function.
51907         * m4/close.m4: New file.
51908         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51909         close.
51910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51911         REPLACE_CLOSE.
51912         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51913         REPLACE_CLOSE.
51914         * modules/fchdir (Depends-on): Add close.
51915
51916 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51917             Bruno Haible  <bruno@clisp.org>
51918
51919         * lib/fcntl.in.h (open): Simplify conditionals.
51920         (_gl_register_fd): New declaration.
51921         * lib/fchdir.c (rpl_open): Remove function.
51922         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51923         also.
51924         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51925         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51926         open.
51927
51928 2008-10-09  Jim Meyering  <meyering@redhat.com>
51929
51930         GNUmakefile: use the more name-space-friendly "_version"
51931         * top/GNUmakefile (_dummy): Update.
51932         (_version): Rename from "version".
51933
51934 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51935             Bruno Haible  <bruno@clisp.org>
51936
51937         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51938         rpl_close.
51939         (_gl_register_fd): New function, extracted from rpl_open.
51940         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51941         (rpl_open, rpl_opendir): Use _gl_register_fd.
51942
51943 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51944
51945         Fix organization of 'open' replacement.
51946         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51947         (gl_FUNC_OPEN): Use it.
51948         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51949
51950 2008-10-08  Bruno Haible  <bruno@clisp.org>
51951
51952         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51953
51954 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51955
51956         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51957         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51958         listen).
51959
51960 2008-10-08  Eric Blake  <ebb9@byu.net>
51961
51962         GNUmakefile: add 'make version' target
51963         * top/GNUmakefile (_curr-ver): Split version update rules...
51964         (version): ...into a target.
51965
51966 2008-10-07  Bruno Haible  <bruno@clisp.org>
51967
51968         Use a more portable replacement expression for -0.0L.
51969         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51970         instead of -0.0L. Fix m4 quotation.
51971
51972         * tests/test-signbit.c: Include <float.h>.
51973         (minus_zero): New variable.
51974         (test_signbitl): Use minus_zero instead of -zero.
51975         * modules/signbit-tests (Depends-on): Add float.
51976
51977         * tests/test-ceill.c: Include <float.h>.
51978         (zero): Remove variable.
51979         (minus_zero): New variable.
51980         (main): Use minus_zero instead of -zero.
51981         * modules/ceill-tests (Depends-on): Add float.
51982
51983         * tests/test-floorl.c: Include <float.h>.
51984         (zero): Remove variable.
51985         (minus_zero): New variable.
51986         (main): Use minus_zero instead of -zero.
51987         * modules/floorl-tests (Depends-on): Add float.
51988
51989         * tests/test-roundl.c: Include <float.h>.
51990         (zero): Remove variable.
51991         (minus_zero): New variable.
51992         (main): Use minus_zero instead of -zero.
51993         * modules/roundl-tests (Depends-on): Add float.
51994
51995         * tests/test-truncl.c: Include <float.h>.
51996         (zero): Remove variable.
51997         (minus_zero): New variable.
51998         (main): Use minus_zero instead of -zero.
51999         * modules/truncl-tests (Depends-on): Add float.
52000
52001         * tests/test-frexpl.c (zero): Remove variable.
52002         (minus_zero): New variable.
52003         (main): Use minus_zero instead of -zero.
52004         * modules/frexpl-tests (Depends-on): Add float.
52005
52006         * tests/test-isnan.c (zerol): Remove variable.
52007         (minus_zerol): New variable.
52008         (test_long_double): Use minus_zerol instead of -zerol.
52009         * modules/isnan-tests (Depends-on): Add float.
52010
52011         * tests/test-isnanl.h (zero): Remove variable.
52012         (minus_zero): New variable.
52013         (main): Use minus_zero instead of -zero.
52014         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52015         * modules/isnanl-tests (Depends-on): Add float.
52016
52017         * tests/test-ldexpl.c (zero): Remove variable.
52018         (minus_zero): New variable.
52019         (main): Use minus_zero instead of -zero.
52020         * modules/ldexpl-tests (Depends-on): Add float.
52021
52022         * tests/test-snprintf-posix.h (zerol): Remove variable.
52023         (minus_zerol): New variable.
52024         (test_function): Use minus_zerol instead of -zerol.
52025         * modules/snprintf-posix-tests (Depends-on): Add float.
52026         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52027
52028         * tests/test-sprintf-posix.h (zerol): Remove variable.
52029         (minus_zerol): New variable.
52030         (test_function): Use minus_zerol instead of -zerol.
52031         * modules/sprintf-posix-tests (Depends-on): Add float.
52032         * modules/vsprintf-posix-tests (Depends-on): Add float.
52033
52034         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52035         (minus_zerol): New variable.
52036         (test_function): Use minus_zerol instead of -zerol.
52037         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52038
52039         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52040         (minus_zerol): New variable.
52041         (test_function): Use minus_zerol instead of -zerol.
52042         * modules/vasprintf-posix-tests (Depends-on): Add float.
52043
52044 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52045
52046         * MODULES.html.sh (Support for building documentation): Mention
52047         pmccabe2html.  Sort entries.
52048
52049         Add pmccabe2html module, from gnupdf.
52050         * build-aux/pmccabe.css: New file.
52051         * build-aux/pmccabe2html: New file.
52052         * m4/pmccabe2html.m4: New file.
52053         * modules/pmccabe2html: New file.
52054
52055 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52056
52057         flock: new module
52058         * MODULES.html.sh: Add to list of modules.
52059         * lib/flock.c: flock implementation for Windows and Unix systems
52060         which have fcntl.
52061         * doc/glibc-functions/flock.texi: Update documentation.
52062         * lib/sys_file.in.h: <sys/file.h> header file.
52063         * m4/flock.m4: M4 macros.
52064         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52065         * modules/flock: flock module.
52066         * modules/flock-tests: flock tests module.
52067         * modules/sys_file: sys/file.h module.
52068         * tests/test-flock.c: test suite for flock.
52069
52070 2008-10-06  Jim Meyering  <meyering@redhat.com>
52071
52072         bootstrap: check for LT_INIT more portably still ;-)
52073         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52074         Spotted by Bruno Haible.
52075
52076 2008-10-06  Eric Blake  <ebb9@byu.net>
52077
52078         test-signbit: avoid tripping Irix cc bug on -0.0L
52079         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52080         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52081         entire testsuite consistent and avoids an Irix 6.2 bug.
52082
52083 2008-10-05  Bruno Haible  <bruno@clisp.org>
52084             Jim Meyering  <jim@meyering.net>
52085
52086         Add an option for ignoring EPIPE during close_stdout.
52087         * lib/closeout.h: Include <stdbool.h>.
52088         (close_stdout_set_ignore_EPIPE): New declaration.
52089         * lib/closeout.c: Include <stdbool.h>.
52090         (ignore_EPIPE): New variable.
52091         (close_stdout_set_ignore_EPIPE): New function.
52092         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52093         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52094         failure.
52095         * modules/closeout (Depends-on): Add stdbool.
52096
52097 2008-10-05  Bruno Haible  <bruno@clisp.org>
52098
52099         * modules/accept: New file.
52100         * modules/bind: New file.
52101         * modules/connect: New file.
52102         * modules/getpeername: New file.
52103         * modules/getsockname: New file.
52104         * modules/getsockopt: New file.
52105         * modules/listen: New file.
52106         * modules/recv: New file.
52107         * modules/recvfrom: New file.
52108         * modules/send: New file.
52109         * modules/sendto: New file.
52110         * modules/setsockopt: New file.
52111         * modules/socket: New file.
52112         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52113         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52114         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52115         the particular module is requested. Add a link warning when the
52116         particular module is not requested.
52117         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52118         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52119         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52120         the particular module is requested.
52121         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52122         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52123         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52124         * modules/sys_socket (Depends-on): Add link-warning.
52125         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52126         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52127         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52128         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52129         GL_LINK_WARNING.
52130         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52131         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52132         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52133         * doc/posix-functions/getpeername.texi: Mention the new module
52134         'getpeername'.
52135         * doc/posix-functions/getsockname.texi: Mention the new module
52136         'getsockname'.
52137         * doc/posix-functions/getsockopt.texi: Mention the new module
52138         'getsockopt'.
52139         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52140         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52141         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52142         * doc/posix-functions/send.texi: Mention the new module 'send'.
52143         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52144         * doc/posix-functions/setsockopt.texi: Mention the new module
52145         'setsockopt'.
52146         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52147         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52148         listen, connect, accept.
52149         * modules/select-tests (Depends-on): Likewise.
52150
52151 2008-10-05  Bruno Haible  <bruno@clisp.org>
52152
52153         * lib/winsock.c (strerror): Remove unused #undef.
52154         (rpl_close): Remove unused local variable.
52155
52156         * modules/sys_socket (Depends-on); Add errno.
52157
52158 2008-10-05  Bruno Haible  <bruno@clisp.org>
52159
52160         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52161         (select): Add a link warning when the 'select' module is not used.
52162         * modules/sys_select (Depends-on): Add link-warning.
52163         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52164         Suggested by Paolo Bonzini.
52165
52166 2008-10-05  Jim Meyering  <meyering@redhat.com>
52167
52168         bootstrap: check for LT_INIT more portably
52169         * build-aux/bootstrap: Avoid using grep -E, since it's not
52170         portable enough.  Suggestion from Bruno Haible.
52171
52172 2008-10-05  Bruno Haible  <bruno@clisp.org>
52173
52174         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52175         as being fixed by gnulib.
52176
52177 2008-10-05  Bruno Haible  <bruno@clisp.org>
52178
52179         * modules/select-tests: New file, mostly copied from
52180         modules/sys_select-tests.
52181         * tests/test-select.c: New file, mostly copied from
52182         tests/test-sys_select.c.
52183         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52184         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52185         (Makefile.am): Remove test_sys_select_LDADD.
52186
52187         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52188         to an undefined symbol, for an error message.
52189         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52190         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52191         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52192         winsock-select.c here.
52193         * modules/sys_select (Files): Remove lib/winsock-select.c.
52194         (Depends-on): Remove alloca.
52195         (Makefile.am): Substitute GNULIB_SELECT.
52196         * modules/select: New file.
52197         * doc/posix-functions/select.texi: Update.
52198
52199 2008-10-05  Bruno Haible  <bruno@clisp.org>
52200
52201         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52202         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52203         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52204         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52205         getdtablesize.
52206         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52207         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52208
52209 2008-10-05  Bruno Haible  <bruno@clisp.org>
52210
52211         * modules/getdtablesize-tests: New file.
52212         * tests/test-getdtablesize.c: New file.
52213
52214         New module 'getdtablesize'.
52215         * lib/unistd.in.h (getdtablesize): New declaration.
52216         * lib/getdtablesize.c: New file.
52217         * m4/getdtablesize.m4: New file.
52218         * modules/getdtablesize: New file.
52219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52220         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52221         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52222         HAVE_GETDTABLESIZE.
52223         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52224
52225 2008-10-05  Bruno Haible  <bruno@clisp.org>
52226
52227         * modules/sched (Makefile.am): Fix typo.
52228         Reported by Simon Josefsson.
52229
52230 2008-10-05  Jim Meyering  <meyering@redhat.com>
52231
52232         bootstrap: check for LT_INIT, too
52233         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52234         are deprecated.  Suggestion from Ralf Wildenhues.
52235
52236 2008-10-05  Bruno Haible  <bruno@clisp.org>
52237
52238         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52239         overriding them by ours.
52240         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52241
52242 2008-10-05  Jim Meyering  <meyering@redhat.com>
52243
52244         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52245         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52246         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52247
52248 2008-10-04  Bruno Haible  <bruno@clisp.org>
52249
52250         * modules/dup2 (License): Change to LGPLv2+.
52251         * modules/sleep (License): Likewise.
52252         * modules/perror (License): Likewise.
52253         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52254         Blake.
52255         * modules/signal (License): Likewise.
52256         * modules/sigprocmask (License): Likewise.
52257         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52258         Meyering.
52259
52260 2008-10-04  Bruno Haible  <bruno@clisp.org>
52261
52262         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52263         Reported by Rainer Tammer <tammer@tammer.net>.
52264
52265 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52266             Bruno Haible  <bruno@clisp.org>
52267
52268         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52269         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52270         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52271
52272 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52273
52274         filevercmp: new module
52275         * lib/filevercmp.h: New function filevercmp comparing version strings.
52276         * lib/filevercmp.c: Implementation of filevercmp function.
52277         * modules/filevercmp: Module metadata.
52278         * tests/test-filevercmp.c: Unit test for new module.
52279         * modules/filevercmp-tests: Unit test metadata.
52280         * MODULES.html.sh: Add filevercmp module.
52281
52282 2008-10-03  Bruno Haible  <bruno@clisp.org>
52283
52284         * lib/c-ctype.h: Add comment.
52285         Reported by Jim Meyering.
52286
52287 2008-10-02  Bruno Haible  <bruno@clisp.org>
52288
52289         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52290
52291 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52292
52293         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52294         name of bootstrap.conf accordingly.
52295
52296 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52297
52298         * build-aux/bootstrap: Install git-merge-changelog configuration
52299         items into .gitconfig if needed.
52300
52301 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52302
52303         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52304         git repository, and initialize/update it accordingly.
52305
52306 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52307
52308         * modules/fsync-tests: New file.
52309         * tests/test-fsync.c: New file.
52310
52311         New module 'fsync'.
52312         * lib/fsync.c: New file.
52313         * m4/fsync.m4: New file.
52314         * modules/fsync: New file.
52315         * lib/unistd.in.h (fsync): New declaration.
52316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52317         GNULIB_FSYNC and HAVE_FSYNC.
52318         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52319         * MODULES.html.sh (posix_functions): Add fsync.
52320         * doc/posix-functions/fsync.texi: Mention the new module.
52321
52322 2008-10-02  Jim Meyering  <meyering@redhat.com>
52323
52324         fts.c: sync with similar code from coreutils' remove.c
52325         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52326         Guard also with "#if defined __linux__", since for now at least,
52327         this code is Linux-kernel-specific.
52328
52329 2008-10-02  Jim Meyering  <meyering@redhat.com>
52330
52331         fts: bug fixes
52332         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52333         Include <sys/vfs.h>, not <sys/statfs.h>.
52334
52335         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52336         Include <sys/vfs.h>, not <sys/statfs.h>.
52337
52338 2008-10-01  Bruno Haible  <bruno@clisp.org>
52339
52340         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52341         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52342         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52343         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52344         * doc/posix-functions/posix_spawnp.texi: Likewise.
52345         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52346         whether posix_spawn actually works.
52347         * m4/pipe.m4 (gl_PIPE): Likewise.
52348         * modules/execute (Files): Add m4/posix_spawn.m4.
52349         * modules/pipe (Files): Add m4/posix_spawn.m4.
52350         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52351
52352 2008-10-01  Jim Meyering  <meyering@redhat.com>
52353
52354         remove trailing spaces
52355         * NEWS: Likewise.
52356         * lib/poll.c (poll): Likewise.
52357         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52358         * lib/winsock.c (rpl_close): Likewise.
52359         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52360         * modules/yield: Likewise.
52361         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52362         * tests/test-sys_select.c (connect_to_socket): Likewise.
52363
52364         fts.c: adjust a new interface to be more generally useful
52365         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52366         (fts_build): Adjust caller.
52367
52368 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52369
52370         * modules/cond-tests: New file.
52371         * tests/test-cond.c: New file.
52372
52373 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52374             Bruno Haible  <bruno@clisp.org>
52375
52376         * modules/cond (Dependencies): Add errno, time.
52377         * lib/glthread/cond.h: Include <time.h>.
52378         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52379         across platforms.
52380
52381 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52382             Bruno Haible  <bruno@clisp.org>
52383
52384         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52385
52386 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52387             Bruno Haible  <bruno@clisp.org>
52388
52389         * modules/tls-tests (Depends-on): Add thread, yield.
52390         (configure.ac): Remove all checks.
52391         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52392         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52393         gl_thread_self): Remove definitions. Include glthread/thread.h and
52394         glthread/yield.h instead.
52395         (test_tls): Pass an additional NULL argument to gl_thread_join.
52396
52397 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52398             Bruno Haible  <bruno@clisp.org>
52399
52400         * modules/lock-tests (Depends-on): Add thread, yield.
52401         (configure.ac): Remove all checks.
52402         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52403         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52404         gl_thread_self): Remove definitions. Include glthread/thread.h and
52405         glthread/yield.h instead.
52406         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52407         additional NULL argument to gl_thread_join.
52408
52409 2008-09-30  Bruno Haible  <bruno@clisp.org>
52410
52411         Fix the Win32 implementation of the 'thread' module.
52412         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52413         pointer type.
52414         (gl_thread_self): Invoke gl_thread_self_func.
52415         (gl_thread_self_func): New declaration.
52416         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52417         (do_init_self_key, init_self_key): New functions.
52418         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52419         Remove some fields.
52420         (running_threads, running_lock): Remove variables.
52421         (get_current_thread_handle): New function.
52422         (gl_thread_self_func, wrapper_func, glthread_create_func,
52423         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52424         simplified.
52425
52426 2008-09-30  Bruno Haible  <bruno@clisp.org>
52427
52428         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52429         files.
52430
52431 2008-09-30  Jim Meyering  <meyering@redhat.com>
52432
52433         fts.m4: correct the test for statfs.f_type
52434         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52435         when checking for statfs.f_type.
52436
52437 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52438
52439         tests: avoid some compiler warnings
52440         * tests/test-memchr.c (main): Pass NULL indirectly.
52441         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52442
52443 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
52444
52445         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52446         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52447         exactly specified dayshifts.
52448         (dayshift): New rule.
52449         (rel): Add dayshift.
52450         (relative_time_table) [tomorrow, yesterday, today, now]:
52451         Use tDAY_SHIFT in place of tDAY_UNIT.
52452         * tests/test-getdate.c: Add tests for now-disallowed countable
52453         dayshifts, e.g., "4 yesterday ago".
52454
52455 2008-09-29  Bruno Haible  <bruno@clisp.org>
52456
52457         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52458         * tests/test-posix_spawn1.in.sh: Renamed from
52459         tests/test-posix_spawn.in.sh.
52460         * tests/test-posix_spawn2.c: New file.
52461         * tests/test-posix_spawn2.in.sh: New file.
52462         * modules/posix_spawnp-tests (Files): Update.
52463         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52464
52465 2008-09-29  Bruno Haible  <bruno@clisp.org>
52466
52467         Propagate effects of putenv/setenv/unsetenv to child processes.
52468         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52469         * lib/pipe.c (create_pipe): Likewise.
52470
52471 2008-09-29  Bruno Haible  <bruno@clisp.org>
52472
52473         Enable use of shell scripts as executables in mingw.
52474         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52475         run the program as a shell script.
52476         * lib/pipe.c (create_pipe): Likewise.
52477         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52478         resulting array.
52479
52480 2008-09-29  Eric Blake  <ebb9@byu.net>
52481
52482         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52483
52484 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52485
52486         * doc/posix-functions/accept.texi: Update mingw problems.
52487         * doc/posix-functions/bind.texi: Update mingw problems.
52488         * doc/posix-functions/close.texi: Update mingw problems.
52489         * doc/posix-functions/connect.texi: Update mingw problems.
52490         * doc/posix-functions/getpeername.texi: Update mingw problems.
52491         * doc/posix-functions/getsockname.texi: Update mingw problems.
52492         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52493         * doc/posix-functions/ioctl.texi: Update mingw problems.
52494         * doc/posix-functions/listen.texi: Update mingw problems.
52495         * doc/posix-functions/recv.texi: Update mingw problems.
52496         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52497         * doc/posix-functions/select.texi: Update mingw problems.
52498         * doc/posix-functions/send.texi: Update mingw problems.
52499         * doc/posix-functions/sendto.texi: Update mingw problems.
52500         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52501         * doc/posix-functions/socket.texi: Update mingw problems.
52502
52503 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52504             Bruno Haible  <bruno@clisp.org>
52505
52506         * lib/sys_select.in.h: Include sys/time.h.
52507         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52508         * modules/sys_select: Depend on sys_time.
52509         * tests/test-sys_select.c: Test that sys/select.h defines struct
52510         timeval fully.
52511
52512 2008-09-29  Bruno Haible  <bruno@clisp.org>
52513
52514         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52515         * lib/sys_select.in.h: Likewise.
52516
52517 2008-09-29  Bruno Haible  <bruno@clisp.org>
52518
52519         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52520
52521 2008-09-29  Bruno Haible  <bruno@clisp.org>
52522
52523         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52524         Set LIBSOCKET instead of augmenting LIBS.
52525         * modules/sockets (Link): New section.
52526         * modules/sockets-tests (test_sockets_LDADD): New variable.
52527         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52528         * modules/poll-tests (test_poll_LDADD): New variable.
52529         * NEWS: Document the change.
52530
52531 2008-09-29  Bruno Haible  <bruno@clisp.org>
52532
52533         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52534         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52535         ARPA_INET_H directly.
52536         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52537
52538 2008-09-28  Bruno Haible  <bruno@clisp.org>
52539
52540         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52541         from gl_HEADER_SYS_SOCKET.
52542         (gl_HEADER_SYS_SOCKET): Invoke it.
52543         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52544
52545 2008-09-28  Bruno Haible  <bruno@clisp.org>
52546
52547         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52548         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52549         Needed on OSF/1 4.0.
52550
52551 2008-09-28  Bruno Haible  <bruno@clisp.org>
52552
52553         Override open more carefully.
52554         * lib/open.c (orig_open): New function.
52555         (rpl_open): Use orig_open instead of open.
52556         * lib/fcntl.in.h: Add special invocation convention.
52557         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52558         (gl_FUNC_OPEN): Invoke it.
52559
52560         Override freopen more carefully.
52561         * lib/freopen.c (orig_freopen): New function.
52562         (rpl_freopen): Use orig_freopen instead of freopen.
52563         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52564         (gl_FUNC_FREOPEN): Invoke it.
52565
52566         Override fopen more carefully.
52567         * lib/fopen.c (orig_fopen): New function.
52568         (rpl_fopen): Use orig_fopen instead of fopen.
52569         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52570         (gl_FUNC_FOPEN): Invoke it.
52571         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52572
52573 2008-09-28  Bruno Haible  <bruno@clisp.org>
52574
52575         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52576         SIGPIPE.
52577
52578 2008-09-28  Bruno Haible  <bruno@clisp.org>
52579
52580         * tests/test-sigaction.c (handler, main): Disable the check whether
52581         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52582         glibc systems with LinuxThreads.
52583
52584 2008-09-28  Bruno Haible  <bruno@clisp.org>
52585
52586         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52587
52588         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52589         with AIX xlc.
52590         * lib/fcntl.in.h (open): Likewise.
52591         Reported by Rainer Tammer <tammer@tammer.net>.
52592
52593 2008-09-28  Bruno Haible  <bruno@clisp.org>
52594
52595         * modules/posix_spawnp-tests: New file.
52596         * tests/test-posix_spawn.c: New file.
52597         * tests/test-posix_spawn.in.sh: New file.
52598
52599         New module 'posix_spawnp'.
52600         * modules/posix_spawnp: New file.
52601         * lib/spawnp.c: New file, from GNU libc with modifications.
52602         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52603
52604         New module 'posix_spawn'.
52605         * modules/posix_spawn: New file.
52606         * lib/spawn.c: New file, from GNU libc with modifications.
52607         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52608
52609         New module 'posix_spawnattr_destroy'.
52610         * modules/posix_spawnattr_destroy: New file.
52611         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52612         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52613         module.
52614
52615         New module 'posix_spawnattr_setsigmask'.
52616         * modules/posix_spawnattr_setsigmask: New file.
52617         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52618         modifications.
52619         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52620         new module.
52621
52622         New module 'posix_spawnattr_getsigmask'.
52623         * modules/posix_spawnattr_getsigmask: New file.
52624         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52625         modifications.
52626         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52627         new module.
52628
52629         New module 'posix_spawnattr_setsigdefault'.
52630         * modules/posix_spawnattr_setsigdefault: New file.
52631         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52632         modifications.
52633         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52634         new module.
52635
52636         New module 'posix_spawnattr_getsigdefault'.
52637         * modules/posix_spawnattr_getsigdefault: New file.
52638         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52639         modifications.
52640         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52641         new module.
52642
52643         New module 'posix_spawnattr_setschedpolicy'.
52644         * modules/posix_spawnattr_setschedpolicy: New file.
52645         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52646         modifications.
52647         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52648         new module.
52649
52650         New module 'posix_spawnattr_getschedpolicy'.
52651         * modules/posix_spawnattr_getschedpolicy: New file.
52652         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52653         modifications.
52654         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52655         new module.
52656
52657         New module 'posix_spawnattr_setschedparam'.
52658         * modules/posix_spawnattr_setschedparam: New file.
52659         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52660         modifications.
52661         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52662         new module.
52663
52664         New module 'posix_spawnattr_getschedparam'.
52665         * modules/posix_spawnattr_getschedparam: New file.
52666         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52667         modifications.
52668         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52669         new module.
52670
52671         New module 'posix_spawnattr_setpgroup'.
52672         * modules/posix_spawnattr_setpgroup: New file.
52673         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52674         modifications.
52675         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52676         module.
52677
52678         New module 'posix_spawnattr_getpgroup'.
52679         * modules/posix_spawnattr_getpgroup: New file.
52680         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52681         modifications.
52682         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52683         module.
52684
52685         New module 'posix_spawnattr_setflags'.
52686         * modules/posix_spawnattr_setflags: New file.
52687         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52688         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52689         module.
52690
52691         New module 'posix_spawnattr_getflags'.
52692         * modules/posix_spawnattr_getflags: New file.
52693         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52694         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52695         module.
52696
52697         New module 'posix_spawnattr_init'.
52698         * modules/posix_spawnattr_init: New file.
52699         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52700         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52701         module.
52702
52703         New module 'posix_spawn_file_actions_destroy'.
52704         * modules/posix_spawn_file_actions_destroy: New file.
52705         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52706         modifications.
52707         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52708         the new module.
52709
52710         New module 'posix_spawn_file_actions_addopen'.
52711         * modules/posix_spawn_file_actions_addopen: New file.
52712         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52713         modifications.
52714         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52715         the new module.
52716
52717         New module 'posix_spawn_file_actions_adddup2'.
52718         * modules/posix_spawn_file_actions_adddup2: New file.
52719         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52720         modifications.
52721         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52722         the new module.
52723
52724         New module 'posix_spawn_file_actions_addclose'.
52725         * modules/posix_spawn_file_actions_addclose: New file.
52726         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52727         modifications.
52728         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52729         the new module.
52730
52731         New module 'posix_spawn_file_actions_init'.
52732         * modules/posix_spawn_file_actions_init: New file.
52733         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52734         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52735         new module.
52736
52737         New module 'posix_spawn-internal'.
52738         * modules/posix_spawn-internal: New file.
52739         * lib/spawn_int.h: New file, from GNU libc with modifications.
52740         * lib/spawni.c: New file, from GNU libc with modifications.
52741         * m4/posix_spawn.m4: New file.
52742
52743         New module 'spawn'.
52744         * modules/spawn: New file.
52745         * lib/spawn.in.h: New file, from GNU libc with modifications.
52746         * m4/spawn_h.m4: New file.
52747         * doc/posix-headers/spawn.texi: Mention the new module.
52748
52749 2008-09-28  Bruno Haible  <bruno@clisp.org>
52750
52751         * modules/sched-tests: New file.
52752         * tests/test-sched.c: New file.
52753
52754         New module 'sched'.
52755         * modules/sched: New file.
52756         * lib/sched.in.h: New file.
52757         * m4/sched_h.m4: New file.
52758         * doc/posix-headers/sched.texi: Mention the new module.
52759
52760 2008-09-27  Eric Blake  <ebb9@byu.net>
52761
52762         Fix previous patch, and tweak references to $0.
52763         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52764         (func_version, func_gnulib_dir): Don't call this program
52765         gnulib-tool.
52766         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52767         with using $0 in function.
52768         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52769         (func_fatal_error): Reuse the name the user invoked us with.
52770
52771 2008-09-27  Bruno Haible  <bruno@clisp.org>
52772
52773         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52774         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52775         (gl_ICONV_H): Not here.
52776         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52777         instead of assigning ICONV_H directly.
52778
52779         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52781         WCHAR_H directly.
52782
52783 2008-09-27  Bruno Haible  <bruno@clisp.org>
52784
52785         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52786         * modules/arpa_inet (Depends-on): Add link-warning.
52787         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52788         * modules/unistd (Makefile.am): Likewise.
52789
52790 2008-09-26  Bruno Haible  <bruno@clisp.org>
52791
52792         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52793         variables.
52794         (func_version): Essentially copied from gnulib-tool.
52795         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52796         func_readlink): Copied from gnulib-tool.
52797
52798 2008-09-26  Bruno Haible  <bruno@clisp.org>
52799
52800         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52801         invoking git-version-gen.
52802
52803 2008-09-26  Bruno Haible  <bruno@clisp.org>
52804
52805         * posix-modules: Update to directory names changed on 2008-01-19.
52806         Remove commas in output before splitting into words. No more need to
52807         avoid 'ftruncate' since 2007-02-19.
52808
52809 2008-09-26  Bruno Haible  <bruno@clisp.org>
52810
52811         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52812
52813 2008-09-26  Bruno Haible  <bruno@clisp.org>
52814
52815         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52816         * modules/fwriteerror (Depends-on): Add errno.
52817
52818 2008-09-26  Bruno Haible  <bruno@clisp.org>
52819
52820         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52821         * tests/test-vc-list-files-cvs.sh: Likewise.
52822
52823 2008-09-26  Bruno Haible  <bruno@clisp.org>
52824
52825         * doc/posix-headers/sys_resource.texi: Reorder items.
52826
52827 2008-09-26  Jim Meyering  <meyering@redhat.com>
52828
52829         fts: tweak inode comparison function
52830         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52831         inode numbers, as documented.
52832
52833         fts: sort dirent entries on inode number before traversing
52834         This avoids a quadratic, seek-related performance penalty when
52835         operating on a directory containing many entries (measurable at 10k;
52836         3.5 hours at 2 million entries with a cold cache) on certain types
52837         of file systems, including ext3 and ext4, but not tmpfs.
52838         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52839         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52840         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52841         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52842         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52843         (fts_build): Set the stat.st_ino member from D_INO.
52844         If it is likely to be useful, sort dirent entries on inode number.
52845
52846         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52847         and the struct statfs.f_type member.
52848         * modules/fts (Depends-on): Add d-ino.
52849
52850 2008-09-26  Bruno Haible  <bruno@clisp.org>
52851
52852         * modules/sigpipe-die (Depends-on): Add sigpipe.
52853
52854         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52855         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52856         and GNULIB_STDIO_H_SIGPIPE are set.
52857         * lib/stdio-write.c: New file.
52858         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52859         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52860         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52861         REPLACE_STDIO_WRITE_FUNCS.
52862         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52863         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52864         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52865         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52866         * modules/stdio (Files): Add lib/stdio-write.c.
52867         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52868         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52869         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52870         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52871         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52872         REPLACE_FPRINTF_POSIX.
52873         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52874         REPLACE_PRINTF_POSIX.
52875         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52876         REPLACE_VFPRINTF_POSIX.
52877         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52878         REPLACE_VPRINTF_POSIX.
52879         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52880         SIGPIPE issue.
52881         * doc/posix-functions/fputc.texi: Likewise.
52882         * doc/posix-functions/fputs.texi: Likewise.
52883         * doc/posix-functions/fwrite.texi: Likewise.
52884         * doc/posix-functions/printf.texi: Likewise.
52885         * doc/posix-functions/putc.texi: Likewise.
52886         * doc/posix-functions/putchar.texi: Likewise.
52887         * doc/posix-functions/puts.texi: Likewise.
52888         * doc/posix-functions/vfprintf.texi: Likewise.
52889         * doc/posix-functions/vprintf.texi: Likewise.
52890
52891         * modules/safe-write (Depends-on): Add write.
52892
52893         * modules/sigpipe-tests: New file.
52894         * tests/test-sigpipe.c: New file.
52895         * tests/test-sigpipe.sh: New file.
52896
52897         * modules/write: New file.
52898         * lib/unistd.in.h: Include <sys/types.h>.
52899         (write): New declaration.
52900         * lib/write.c: New file.
52901         * m4/write.m4: New file.
52902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52903         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52904         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52905         GNULIB_WRITE, REPLACE_WRITE.
52906         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52907         and the SIGPIPE issue.
52908
52909         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52910         (raise): New declaration.
52911         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52912         (ext_signal): New function.
52913         (rpl_raise): New function.
52914         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52915         GNULIB_SIGNAL_H_SIGPIPE.
52916         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52917         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52918
52919         * modules/sigpipe: New file.
52920         * m4/sigpipe.m4: New file.
52921
52922 2008-09-25  Derek Price  <derek@ximbiot.com>
52923             Bruno Haible  <bruno@clisp.org>
52924
52925         * gnulib-tool (func_import): Report all license incompatibilities, not
52926         just the first one.
52927
52928 2008-09-25  Bruno Haible  <bruno@clisp.org>
52929
52930         * gnulib-tool (func_import): When computing the edits, consider not
52931         only the Makefile.ams that exist but also those that will be generated.
52932
52933 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52934
52935         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52936         fixes gnulib-tool --test warning about duplicate dependency.
52937
52938 2008-09-25  Bruno Haible  <bruno@clisp.org>
52939
52940         * gnulib-tool: Don't ask the user to perform edits in the generated
52941         Makefile.ams.
52942         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52943         apply to the Makefile.am being generated.
52944         (func_emit_tests_Makefile_am): Execute edits that apply to the
52945         Makefile.am being generated.
52946         (func_import): Setup list of Makefile.am edits before emitting the
52947         Makefile.ams, not at the end.
52948         (func_create_testdir): Update.
52949         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52950
52951 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52952
52953         * gnulib-tool (func_import): Store the --tests-base option in the
52954         comment in gnulib-cache.m4.
52955
52956 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52957
52958         * NEWS: Document increased portability that sys_select now provides.
52959
52960         * lib/sys_select.in.h: Install select wrapper.
52961         * lib/sys_socket.in.h: Use more descriptive name when there is no
52962         select wrapper.
52963         * lib/winsock-select.c: New.
52964         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52965         Require gl_HEADER_SYS_SOCKET.
52966         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52967         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52968         * tests/test-sys_select.c: Add functional tests.
52969
52970 2008-09-24  Eric Blake  <ebb9@byu.net>
52971
52972         open, fopen: close fd leak in last patch
52973         * lib/open.c (rpl_open): Close fd before returning error.
52974         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52975         * doc/posix-functions/open.texi (open): Document that Irix also
52976         has the bug.
52977         * doc/posix-functions/fopen.texi (fopen): Likewise.
52978         Reported by Paolo Bonzini.
52979
52980 2008-09-24  Bruno Haible  <bruno@clisp.org>
52981
52982         Ensure that a filename ending in a slash cannot be used to access a
52983         non-directory.
52984         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52985         to check whether it's really a directory.
52986         * lib/fopen.c: Include fcntl.h, unistd.h.
52987         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52988         and fdopen().
52989         * modules/fopen (Depends-on): Add unistd.
52990         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52991         * tests/test-fopen.c (main): Likewise.
52992         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52993         * doc/posix-functions/fopen.texi: Likewise.
52994         Reported by Eric Blake.
52995
52996 2008-09-23  Eric Blake  <ebb9@byu.net>
52997
52998         c-stack: avoid compiler optimizations when provoking overflow
52999         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53000         recursion harder to optimize, to ensure a stack overflow occurs.
53001         * tests/test-c-stack.c (recurse): Likewise.
53002         Borrowed from libsigsegv.
53003
53004         c-stack: work around Irix sigaltstack bug
53005         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53006         whether sigaltstack uses wrong end of stack_t (copied in part from
53007         libsigsegv).
53008         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53009         Irix bug, without requiring an over-allocation.
53010         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53011         bug.
53012
53013         fopen: document mingw bug on directories
53014         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53015         not allowing a stream visiting a directory, even though reading
53016         from such a stream is not portable.
53017
53018 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53019
53020         * lib/poll.c: Rewrite.
53021         * modules/poll: Depend on alloca.
53022
53023 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53024
53025         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53026         instead define prototypes for a full set of wrappers.  Ensure
53027         that Cygwin does not use the compatibility code, which is only
53028         for MinGW.
53029         * lib/winsock.c: New.
53030         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53031         * modules/sys_socket: Add lib/winsock.c.
53032
53033         * modules/poll-tests: Add errno and perror.
53034         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53035
53036 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53037
53038         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53039
53040 2008-09-23  Bruno Haible  <bruno@clisp.org>
53041
53042         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53043         * doc/glibc-functions/*: Likewise.
53044
53045 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53046
53047         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53048         success.
53049
53050 2008-09-22  Eric Blake  <ebb9@byu.net>
53051             Bruno Haible  <bruno@clisp.org>
53052
53053         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53054         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53055         supply %A but mishandle pseudo-NaN.
53056         Reported by Simon Josefsson.
53057
53058 2008-09-21  Bruno Haible  <bruno@clisp.org>
53059
53060         * tests/test-lock.c (main): Tweak skip message.
53061         * tests/test-tls.c (main): Likewise.
53062
53063 2008-09-21  Bruno Haible  <bruno@clisp.org>
53064
53065         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53066         whether 'struct sigaction' has sa_sigaction here...
53067         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53068         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53069
53070 2008-09-21  Bruno Haible  <bruno@clisp.org>
53071
53072         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53073         section.
53074         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53075         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53076         the new section.
53077         (Support for obsolete systems lacking POSIX:2001): New section.
53078         (String handling <string.h>): Move strdup to the new section.
53079         Suggested by Simon Josefsson and Paolo Bonzini.
53080
53081 2008-09-21  Bruno Haible  <bruno@clisp.org>
53082
53083         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53084         exponents in %e and %g results on 'long double'. Needed for mingw's
53085         improved *printf functions.
53086         * tests/test-vasprintf-posix.c (test_function): Likewise.
53087         * tests/test-snprintf-posix.h (test_function): Likewise.
53088         * tests/test-sprintf-posix.h (test_function): Likewise.
53089         Reported by Eric Blake.
53090
53091 2008-09-21  Bruno Haible  <bruno@clisp.org>
53092
53093         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53094         * tests/test-sprintf-posix.h (test_function): Likewise.
53095
53096 2008-09-21  Bruno Haible  <bruno@clisp.org>
53097
53098         * modules/getpass (Depends-on): Add strdup-posix.
53099
53100         New module 'strdup-posix'.
53101         * modules/strdup-posix: New file.
53102         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53103         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53104         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53105         REPLACE_STRDUP.
53106         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53107         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53108         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53109         strdup-posix.
53110
53111         * modules/strdup (Depends-on): Remove malloc-posix.
53112
53113 2008-09-20  Bruno Haible  <bruno@clisp.org>
53114
53115         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53116         Wildenhues.
53117
53118 2008-09-20  Bruno Haible  <bruno@clisp.org>
53119
53120         Ensure that wint_t gets defined on IRIX 5.3.
53121         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53122         * lib/wctype.in.h (wint_t): Likewise.
53123         (__wctype_wint_t): Remove type.
53124         (isw*): Use wint_t instead of __wctype_wint_t.
53125         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53126         * modules/wchar (Files): Add m4/wint_t.m4.
53127         (Makefile.am): Substitute HAVE_WINT_T.
53128         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53129         * tests/test-wctype.c: Check that wint_t is defined.
53130         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53131         * doc/posix-headers/wctype.texi: Likewise.
53132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53133
53134 2008-09-18  Bruno Haible  <bruno@clisp.org>
53135
53136         * gnulib-tool (func_exit): Update comment.
53137
53138 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53139
53140         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53141         assumes strdup exists and does not depend on strdup to return
53142         ENOMEM on out of memory conditions.
53143
53144 2008-09-18  Bruno Haible  <bruno@clisp.org>
53145
53146         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53147         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53148         digits for the exponent.
53149
53150 2008-09-18  Jim Meyering  <meyering@redhat.com>
53151             Bruno Haible  <bruno@clisp.org>
53152
53153         * lib/vasnprintf.c (decimal_point_char): Define also if
53154         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53155
53156 2008-09-16  Bruno Haible  <bruno@clisp.org>
53157         and Eric Blake  <ebb9@byu.net>
53158
53159         vasnprintf: support Irix 5.3
53160         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53161         that mishandle long double infinity.
53162         Reported by Tom G. Christensen.
53163
53164 2008-09-16  Bruno Haible  <bruno@clisp.org>
53165
53166         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53167         Solaris 9.
53168         * doc/glibc-functions/alphasort.texi: Likewise.
53169         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53170
53171 2008-09-16  Jim Meyering  <meyering@redhat.com>
53172
53173         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53174         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53175         a umask modification leak out of a subshell.  Otherwise, the
53176         opensolaris /bin/sh would be accepted and thus cause unwarranted
53177         failures in the coreutils test suite.
53178
53179 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53180
53181         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53182         to succeed.
53183
53184 2008-09-16  Jim Meyering  <meyering@redhat.com>
53185
53186         avoid spurious test failure when library is built without ACL support
53187         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53188         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53189         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53190         * tests/test-copy-acl.sh: Likewise.
53191
53192 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53193
53194         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53195         based on character occurrence counts.
53196
53197 2008-09-15  Eric Blake  <ebb9@byu.net>
53198
53199         tests: avoid some compiler warnings
53200         * tests/test-memchr.c (main): Pass NULL indirectly.
53201         * tests/test-closein.c (main): Avoid unused variable.
53202
53203 2008-09-15  Bruno Haible  <bruno@clisp.org>
53204
53205         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53206         are missing on OpenBSD 4.0 individually.
53207         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53208
53209 2008-09-15  Bruno Haible  <bruno@clisp.org>
53210
53211         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53212         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53213         * doc/posix-functions/perror.texi: Likewise.
53214         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53215         is missing.
53216         Reported by Eric Blake.
53217
53218         * lib/errno.in.h: Use replacement values >= 2000.
53219         Reported by Eric Blake.
53220
53221 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53222
53223         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53224         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53225         limit.
53226         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53227         compareseq was aborted.
53228
53229 2008-09-14  Bruno Haible  <bruno@clisp.org>
53230
53231         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53232         yvec_edit_count.
53233         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53234         (fstrcmp_bounded): Simplify result computation accordingly.
53235
53236 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53237
53238         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53239         (fstrcmp): Define in terms of fstrcmp_bounded.
53240         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53241         lower_bound argument.
53242         Return quickly if the result is certainly < lower_bound.
53243         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53244
53245 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53246
53247         * lib/diffseq.h (EARLY_ABORT): New macro.
53248         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53249         evaluates to true.
53250
53251 2008-09-14  Bruno Haible  <bruno@clisp.org>
53252
53253         * modules/perror-tests: New file.
53254         * tests/test-perror.sh: New file.
53255         * tests/test-perror.c: New file.
53256
53257         New module 'perror'.
53258         * lib/stdio.in.h (perror): New declaration.
53259         * lib/perror.c: New file.
53260         * m4/perror.m4: New file.
53261         * modules/perror: New file.
53262         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53263         * doc/posix-functions/perror.texi: Mention the perror module.
53264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53265         REPLACE_PERROR.
53266         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53267         REPLACE_PERROR.
53268
53269 2008-09-14  Bruno Haible  <bruno@clisp.org>
53270
53271         * modules/stdio (Makefile.am): Reorder to match the order in
53272         lib/stdio.in.h.
53273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53274
53275 2008-09-13  Bruno Haible  <bruno@clisp.org>
53276
53277         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53278
53279 2008-09-13  Bruno Haible  <bruno@clisp.org>
53280
53281         Extend strerror to cover the added errno values.
53282         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53283         (rpl_strerror): Provide error messages for the added errno values and
53284         for the WSA* values.
53285         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53286         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53287         strerror.
53288         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53289         * modules/strerror (Depends-on): Add errno.
53290         * doc/posix-functions/strerror.texi: Document the change.
53291         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53292         and EOVERFLOW.
53293
53294 2008-09-13  Bruno Haible  <bruno@clisp.org>
53295
53296         * modules/EOVERFLOW: Remove file.
53297         * m4/eoverflow.m4: Remove file.
53298         * modules/EOVERFLOW-tests: Remove file.
53299         * tests/test-EOVERFLOW.c: Remove file.
53300         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53301         * modules/ftell (Depends-on): Likewise.
53302         * modules/getdelim (Depends-on): Likewise.
53303         * modules/getugroups (Depends-on): Likewise.
53304         * modules/poll (Depends-on): Likewise.
53305         * modules/snprintf (Depends-on): Likewise.
53306         * modules/sprintf-posix (Depends-on): Likewise.
53307         * modules/vasnprintf (Depends-on): Likewise.
53308         * modules/vasprintf (Depends-on): Likewise.
53309         * modules/vfprintf-posix (Depends-on): Likewise.
53310         * modules/vsnprintf (Depends-on): Likewise.
53311         * modules/vsprintf-posix (Depends-on): Likewise.
53312         * modules/xvasprintf (Depends-on): Likewise.
53313         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53314         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53315         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53316         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53317         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53318         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53319         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53320         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53321         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53322         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53323         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53324         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53325         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53326         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53327         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53328         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53329         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53330         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53331         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53332         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53333         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53334         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53335         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53336         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53337         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53338         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53339         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53340         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53341         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53342         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53343         * MODULES.html.sh: Remove EOVERFLOW.
53344         * NEWS: Mention the change.
53345
53346 2008-09-13  Bruno Haible  <bruno@clisp.org>
53347
53348         * modules/errno-tests: New file.
53349         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53350
53351         * lib/errno.in.h: New file.
53352         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53353         * modules/errno: New file.
53354         * doc/posix-headers/errno.texi: Update documentation.
53355         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53356
53357 2008-09-13  Bruno Haible  <bruno@clisp.org>
53358
53359         * tests/test-poll.c: Use #if for native Windows, rather than testing
53360         __MSVCRT__.
53361
53362 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53363             Bruno Haible  <bruno@clisp.org>
53364
53365         * lib/glob.c: Don't include <pwd.h> on native Windows.
53366         (WINDOWS32): New macro.
53367         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53368
53369 2008-09-13  Bruno Haible  <bruno@clisp.org>
53370
53371         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53372         (ETIMEDOUT): Remove macro.
53373         (glthread_cond_timedwait_multithreaded): New declaration.
53374         (glthread_cond_timedwait): Use it.
53375         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53376         (glthread_cond_timedwait_multithreaded): New function.
53377
53378 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53379
53380         * modules/poll-tests: Do not check for io.h.
53381         * tests/test-poll.c: Check for __MSVCRT__ instead.
53382
53383 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53384
53385         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53386         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53387         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53388
53389 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53390
53391         * modules/poll-tests: New.
53392         * tests/test-poll.c: New.
53393
53394 2008-09-12  Eric Blake  <ebb9@byu.net>
53395
53396         frexp: test for NetBSD failure on -0.0
53397         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53398         not all, bugs from NetBSD 3.0 have been fixed.
53399         * doc/posix-functions/frexp.texi (frexp): Document bug.
53400         Reported by Thomas Klausner.
53401
53402         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53403         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53404         literal -0.0.
53405         Reported by Jonathan C. Patschke <jp@centtech.com>.
53406
53407 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53408
53409         * lib/glthread/cond.h: Use dummy implementation also if
53410         USE_WIN32_THREADS.
53411
53412 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53413
53414         * modules/fnmatch-posix (License): Change to LGPLv2+.
53415         * modules/fnmatch-gnu (License): Likewise.
53416
53417 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53418
53419         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53420
53421 2008-09-11  Jim Meyering  <meyering@redhat.com>
53422
53423         * users.txt: Add gtk-vnc.
53424
53425 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53426
53427         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53428         rotate amounts.
53429
53430         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53431         required for 16-bit and 8-bit rotates.
53432         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53433         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53434         UINT8_MAX instead of hard-coded constants.
53435         Suggested by Paul Eggert.
53436
53437 2008-09-07  Bruno Haible  <bruno@clisp.org>
53438
53439         * tests/test-striconveh.c (main): Check behaviour when converting from
53440         UTF-7.
53441
53442         Make striconveh work better with stateful encodings.
53443         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53444         that iconv does not increment the inptr when returning -1/EINVAL.
53445
53446 2008-09-07  Bruno Haible  <bruno@clisp.org>
53447
53448         * build-aux/config.rpath: Update according to libtool-2.2.6.
53449         * build-aux/config.libpath: Likewise.
53450
53451 2008-09-06  Bruno Haible  <bruno@clisp.org>
53452
53453         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53454         * lib/freadptr.c (freadptr): Likewise.
53455         * lib/freadseek.c (freadptrinc): Likewise.
53456         Reported by Simon Josefsson.
53457
53458 2008-09-06  Bruno Haible  <bruno@clisp.org>
53459
53460         * modules/freadptr (License): Change to LGPLv2+.
53461         * modules/freadseek (License): Likewise.
53462         Suggested by Eric Blake.
53463
53464         * modules/memchr2 (License): Change to LGPLv2+.
53465         Approved by Eric Blake.
53466
53467 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53468             Bruno Haible  <bruno@clisp.org>
53469
53470         Make gnulib-tool work with native 'sed' on AIX.
53471         * gnulib-tool (sed_noop): New variable.
53472         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53473         func_add_or_update, func_create_testdir): Use it to initialize sed
53474         script variables.
53475         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53476
53477 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53478             Bruno Haible  <bruno@clisp.org>
53479
53480         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53481         also works after #include directives.
53482
53483 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
53484
53485         getdate.y: reject an out-of-range timezone value
53486         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53487         the range [-24...+24].  When specified with only one or two digits,
53488         * tests/test-getdate.c: Tests for the fix.
53489         * doc/getdate.texi: Document this change.
53490
53491 2008-09-03  Bruno Haible  <bruno@clisp.org>
53492
53493         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53494
53495 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53496
53497         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53498         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53499         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53500         Blake <ebb9@byu.net>.
53501
53502         * tests/test-bitrotate.c: Add more test vectors.
53503
53504 2008-09-02  Eric Blake  <ebb9@byu.net>
53505
53506         vasnprintf-posix: handle large precision via %.*d
53507         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53508         when handling it ourselves.
53509         * tests/test-vasnprintf-posix.c (test_function): Add test.
53510         * tests/test-snprintf-posix.h (test_function): Likewise.
53511         * tests/test-sprintf-posix.h (test_function): Likewise.
53512         * tests/test-vasprintf-posix.c (test_function): Likewise.
53513         Reported by Alain Guibert.
53514
53515 2008-09-01  Eric Blake  <ebb9@byu.net>
53516
53517         c-stack: make configure-time check more robust
53518         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53519         successful sigaction call.
53520         Reported by Tom G. Christensen.
53521
53522 2008-09-01  Bruno Haible  <bruno@clisp.org>
53523
53524         New module 'findprog-lgpl'.
53525         * modules/findprog-lgpl: New file.
53526         * lib/findprog-lgpl.c: New file.
53527         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53528         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53529         to decide whether to use strdup or xstrdup, concatenated_filename or
53530         xconcatenated_filename.
53531
53532 2008-09-01  Bruno Haible  <bruno@clisp.org>
53533
53534         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53535         'xconcat-filename' (GPL).
53536         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53537         (License): Change to LGPLv2+.
53538         * modules/xconcat-filename: New file.
53539         * lib/concat-filename.h (concatenated_filename): Change specification.
53540         (xconcatenated_filename): New declaration.
53541         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53542         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53543         memory situations.
53544         * lib/xconcat-filename.c: New file.
53545         * NEWS: Mention the change.
53546         * lib/findprog.c: Include concat-filename.h, not filename.h.
53547         (find_in_path): Use xconcatenated_filename instead of
53548         concatenated_filename.
53549         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53550         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53551         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53552         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53553         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53554         instead of concatenated_filename.
53555         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53556         (execute_java_class): Use xconcatenated_filename instead of
53557         concatenated_filename.
53558         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53559         * modules/javacomp (Depends-on): Likewise.
53560         * modules/javaexec (Depends-on): Likewise.
53561
53562 2008-09-01  Bruno Haible  <bruno@clisp.org>
53563
53564         Split module 'filename' into 'filename' and 'concat-filename'.
53565         * modules/filename: Keep only lib/filename.h.
53566         (License): Change to LGPLv2+.
53567         * modules/concat-filename: New file, extracted from modules/filename.
53568         * lib/filename.h (concatenated_filename): Remove declaration.
53569         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53570         * lib/concat-filename.c: Include concat-filename.h.
53571         * NEWS: Mention the change.
53572
53573 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53574
53575         * lib/bitrotate.h (rotl8, rotr8): Add.
53576
53577         * modules/bitrotate (configure.ac): Need
53578         AC_REQUIRE([AC_C_INLINE]).
53579         (Description): Mention stdint.h.  Reported by Bruno Haible
53580         <bruno@clisp.org>.
53581
53582         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53583         Paolo Bonzini <bonzini@gnu.org>.
53584
53585 2008-08-31  Bruno Haible  <bruno@clisp.org>
53586
53587         Assume Solaris specific bi-arch conventions on Solaris systems.
53588         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53589         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53590         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53591         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53592         like acl_libdirstem.
53593         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53594         acl_libdirstem.
53595         * NEWS: Mention the change.
53596         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53597
53598 2008-08-31  Jim Meyering  <meyering@redhat.com>
53599
53600         * lib/strftime.h: Add comments describing the two added arguments.
53601
53602         remove duplicate #include directives
53603         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53604         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53605
53606 2008-08-31  Bruno Haible  <bruno@clisp.org>
53607
53608         New module 'sigpipe-die'.
53609         * modules/sigpipe-die: New file.
53610         * lib/sigpipe-die.h: New file.
53611         * lib/sigpipe-die.c: New file.
53612         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53613
53614 2008-08-31  Bruno Haible  <bruno@clisp.org>
53615
53616         Don't override previously installed signal handlers.
53617         * lib/fatal-signal.c (saved_sigactions): New variable.
53618         (uninstall_handlers): Reset the signal to the saved handler, not
53619         to SIG_DFL (except when ignored).
53620         (install_handlers): Save the previous handlers.
53621
53622 2008-08-30  Bruno Haible  <bruno@clisp.org>
53623
53624         * gnulib-tool (func_reset_sigpipe): New function.
53625         (func_get_automake_snippet, func_modules_transitive_closure,
53626         func_import): Invoke it before a join command that reads from stdin,
53627         to avoid "echo: write error: Broken pipe" error messages on stderr.
53628         Reported by Sam Steingold <sds@gnu.org>.
53629
53630 2008-08-30  Bruno Haible  <bruno@clisp.org>
53631
53632         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53633         Code copied from m4/open.m4.
53634         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53635         access and the filename ends in a slash. Code copied from lib/open.c.
53636         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53637         * tests/test-fopen.c (main): Check against bug with trailing slash.
53638
53639 2008-08-29  Bruno Haible  <bruno@clisp.org>
53640
53641         Avoid some "gcc -pedantic" warnings.
53642         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53643         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53644         * lib/dirent.in.h: Likewise.
53645         * lib/fcntl.in.h: Likewise.
53646         * lib/float.in.h: Likewise.
53647         * lib/iconv.in.h: Likewise.
53648         * lib/inttypes.in.h: Likewise.
53649         * lib/locale.in.h: Likewise.
53650         * lib/math.in.h: Likewise.
53651         * lib/netinet_in.in.h: Likewise.
53652         * lib/search.in.h: Likewise.
53653         * lib/signal.in.h: Likewise.
53654         * lib/stdarg.in.h: Likewise.
53655         * lib/stdint.in.h: Likewise.
53656         * lib/stdio.in.h: Likewise.
53657         * lib/stdlib.in.h: Likewise.
53658         * lib/string.in.h: Likewise.
53659         * lib/strings.in.h: Likewise.
53660         * lib/sys_select.in.h: Likewise.
53661         * lib/sys_socket.in.h: Likewise.
53662         * lib/sys_stat.in.h: Likewise.
53663         * lib/sys_time.in.h: Likewise.
53664         * lib/sysexits.in.h: Likewise.
53665         * lib/time.in.h: Likewise.
53666         * lib/unistd.in.h: Likewise.
53667         * lib/wchar.in.h: Likewise.
53668         * lib/wctype.in.h: Likewise.
53669         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53670         * modules/fchdir (Makefile.am): Likewise.
53671         * modules/fcntl (Makefile.am): Likewise.
53672         * modules/float (Makefile.am): Likewise.
53673         * modules/iconv_open (Makefile.am): Likewise.
53674         * modules/inttypes (Makefile.am): Likewise.
53675         * modules/locale (Makefile.am): Likewise.
53676         * modules/math (Makefile.am): Likewise.
53677         * modules/netinet_in (Makefile.am): Likewise.
53678         * modules/search (Makefile.am): Likewise.
53679         * modules/signal (Makefile.am): Likewise.
53680         * modules/stdarg (Makefile.am): Likewise.
53681         * modules/stdint (Makefile.am): Likewise.
53682         * modules/stdio (Makefile.am): Likewise.
53683         * modules/stdlib (Makefile.am): Likewise.
53684         * modules/string (Makefile.am): Likewise.
53685         * modules/strings (Makefile.am): Likewise.
53686         * modules/sys_select (Makefile.am): Likewise.
53687         * modules/sys_socket (Makefile.am): Likewise.
53688         * modules/sys_stat (Makefile.am): Likewise.
53689         * modules/sys_time (Makefile.am): Likewise.
53690         * modules/sysexits (Makefile.am): Likewise.
53691         * modules/time (Makefile.am): Likewise.
53692         * modules/unistd (Makefile.am): Likewise.
53693         * modules/wchar (Makefile.am): Likewise.
53694         * modules/wctype (Makefile.am): Likewise.
53695         Reported by Reuben Thomas <rrt@sc3d.org>.
53696
53697 2008-08-29  Bruno Haible  <bruno@clisp.org>
53698
53699         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53700         any more.
53701
53702 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53703
53704         * MODULES.html.sh (Misc): Add bitrotate.
53705
53706         * modules/bitrotate: New file.
53707
53708         * lib/bitrotate.h: New file.
53709
53710         * modules/bitrotate-tests: New file.
53711
53712         * tests/test-bitrotate.c: New file.
53713
53714         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53715         on the bitrotate module.
53716
53717         * lib/arctwo.c: Use new bitrotate module.
53718
53719 2008-08-29  Jim Meyering  <meyering@redhat.com>
53720
53721         bootstrap: merge changes from coreutils
53722         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53723         of copied files.  Remove a kludge, now that this is fixed.
53724         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53725         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53726         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53727
53728 2008-08-29  Bruno Haible  <bruno@clisp.org>
53729
53730         * MODULES.html.sh: Remove --cvs-urls option.
53731
53732 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53733
53734         maint.mk: adjust to file name change
53735         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53736
53737 2008-08-28  Jim Meyering  <meyering@redhat.com>
53738
53739         * modules/getndelim2 (License): Relicense to LGPLv2+.
53740         Approved by Richard Stallman for the version of 1995, and by
53741         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53742
53743 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53744
53745         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53746         dummy if one is not available.  Do not touch them if
53747         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53748         (getc_maybe_unlocked): New.
53749         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53750
53751 2008-08-26  Eric Blake  <ebb9@byu.net>
53752
53753         doc/INSTALL: resync from autoconf
53754         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53755         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53756         moving...
53757         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53758         * INSTALL: Regenerate.
53759         * INSTALL.ISO: New file.
53760         * INSTALL.UTF-8: Likewise.
53761
53762 2008-08-26  Jim Meyering  <meyering@redhat.com>
53763
53764         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53765         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53766         these definitions conditional, so that they may be overridden, too.
53767
53768 2008-08-26  Bruno Haible  <bruno@clisp.org>
53769
53770         Generate INSTALL file variants with prettier quotes.
53771         * doc/Makefile (INSTALL_PRELUDE): New macro.
53772         (INSTALL): Use it.
53773         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53774
53775 2008-08-26  Bruno Haible  <bruno@clisp.org>
53776
53777         Run makeinfo in an English locale.
53778         * doc/Makefile (MAKEINFO): New variable.
53779
53780 2008-08-26  Bruno Haible  <bruno@clisp.org>
53781
53782         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53783         Suggested by Eric Blake.
53784
53785 2008-08-25  Bruno Haible  <bruno@clisp.org>
53786
53787         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53788
53789 2008-08-25  Eric Blake  <ebb9@byu.net>
53790
53791         c-stack: test that stack overflow can be caught
53792         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53793         that platform allows handling stack overflow; at least OS/2 EMX
53794         has sigaltstack, but crashes before transferring control to
53795         handler on stack overflow.
53796         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53797         check for HAVE_STACK_OVERFLOW_HANDLING.
53798         Reported by Elbert Pol.
53799
53800 2008-08-25  Bruno Haible  <bruno@clisp.org>
53801
53802         * doc/posix-functions/strftime.texi: Fix description of strftime
53803         module.
53804
53805 2008-08-24  Bruno Haible  <bruno@clisp.org>
53806
53807         * tests/uniwidth/test-uc_width2.c: New file.
53808         * tests/uniwidth/test-uc_width2.sh: New file.
53809         * modules/uniwidth/width-tests (Files): Add the new files.
53810         (TESTS): Add uniwidth/test-uc_width2.sh.
53811         (TESTS_ENVIRONMENT): New variable.
53812         (check_PROGRAMS): Add test-uc_width2.
53813         (test_uc_width2_SOURCES): New variable.
53814
53815         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53816         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53817         not 0x00AB.
53818         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53819
53820 2008-08-22  Eric Blake  <ebb9@byu.net>
53821
53822         test-lock, test-tls: mention why a test is skipped
53823         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53824         skipped.
53825         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53826
53827         count-one-bits: relax license
53828         * modules/count-one-bits (License): Relicense to LGPLv2+.
53829         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53830
53831 2008-08-22  Andreas Schwab  <schwab@suse.de>
53832
53833         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53834         Remove spurious space in assignment.
53835
53836 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53837
53838         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53839         Paul Eggert <eggert@CS.UCLA.EDU>.
53840
53841 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53842
53843         * modules/gettext: Add m4/threadlib.m4.
53844
53845 2008-08-19  Eric Blake  <ebb9@byu.net>
53846
53847         test-c-stack: fix compilation failure on FreeBSD 5.0
53848         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53849         headers before <sys/resource.h>.
53850         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53851         the bug.
53852         Reported by Nelson H. F. Beebe.
53853
53854         strverscmp: migrate from "strverscmp.h" to <string.h>
53855         * modules/string (Makefile.am): Add new hooks.
53856         * modules/strverscmp (Files): Remove strverscmp.h.
53857         (Depends-on): Add string.
53858         (configure.ac): Add indicator.
53859         (Include): Mention new header.
53860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53861         defaults.
53862         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53863         results.
53864         * lib/strverscmp.h: Delete.
53865         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53866         * tests/test-strverscmp.c (includes): Adjust client.
53867         * lib/check-version.c (includes): Likewise.
53868         * NEWS: Document the change.
53869
53870         strverscmp: add unit test
53871         * modules/strverscmp-tests: New file.
53872         * tests/test-strverscmp.c: Likewise.
53873
53874 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53875
53876         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53877         regarding Windows crypto stuff, from Mono.
53878
53879 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53880
53881         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53882         if present, for intel RND.  Return error on failures.
53883
53884 2008-08-18  Ben Pfaff  <blp@gnu.org>
53885
53886         gitlog-to-changelog: give better diagnostic for failed pipe-open
53887         * build-aux/gitlog-to-changelog: Improve error message: suggest
53888         that the version of Git may be too old.
53889
53890 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53891
53892         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53893         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53894
53895 2008-08-18  Bruno Haible  <bruno@clisp.org>
53896
53897         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53898         pthread_in_use().
53899
53900 2008-08-18  Bruno Haible  <bruno@clisp.org>
53901
53902         * lib/glthread/threadlib.c: Include <pthread.h>.
53903
53904 2008-08-18  Bruno Haible  <bruno@clisp.org>
53905
53906         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53907         glthread_recursive_lock_* macros.
53908         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53909         Fix syntax error.
53910
53911 2008-08-18  Bruno Haible  <bruno@clisp.org>
53912
53913         * lib/glthread/thread.c: Avoid forcing a context switch right after
53914         thread creation.
53915
53916 2008-08-17  Bruno Haible  <bruno@clisp.org>
53917
53918         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53919         * lib/glthread/thread.h: Provide Win32 specific implementation.
53920         * modules/thread (Files): Add lib/glthread/thread.c.
53921         (Depends-on): Add lock.
53922         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53923
53924 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53925
53926         New module 'yield'.
53927         * modules/yield: New file.
53928         * lib/glthread/yield.h: New file.
53929         * m4/yield.m4: New file.
53930         * MODULES.html.sh (Multithreading): Add yield.
53931
53932 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53933
53934         New module 'thread'.
53935         * modules/thread: New file.
53936         * lib/glthread/thread.h: New file.
53937         * m4/thread.m4: New file.
53938         * MODULES.html.sh (Multithreading): Add thread.
53939
53940 2008-08-17  Bruno Haible  <bruno@clisp.org>
53941
53942         * lib/glthread/lock.h: Include <stdlib.h> always.
53943         * lib/glthread/tls.h: Likewise.
53944         * lib/glthread/cond.h: Likewise.
53945
53946 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53947
53948         New module 'cond'.
53949         * modules/cond: New file.
53950         * lib/glthread/cond.h: New file.
53951         * lib/glthread/cond.c: New file.
53952         * m4/cond.m4: New file.
53953         * MODULES.html.sh (Multithreading): Add cond.
53954
53955 2008-08-16  Eric Blake  <ebb9@byu.net>
53956
53957         c-stack: fix regression on Irix 5.3 from 2008-06-21
53958         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53959         sa_sigaction...
53960         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53961         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53962         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53963         * modules/signal (Makefile.am): Use the value.
53964         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53965         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53966         * doc/posix-headers/signal.texi (signal.h): Document this
53967         portability issue.
53968         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53969         Reported by Tom G. Christensen.
53970
53971 2008-08-17  Bruno Haible  <bruno@clisp.org>
53972
53973         New module 'threadlib'.
53974         * modules/threadlib: New file.
53975         * lib/glthread/threadlib.c: New file, extracted from
53976         lib/glthread/lock.c.
53977         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53978         functions.
53979         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53980         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53981         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53982         macros.
53983         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53984         (gl_DISABLE_THREADS): Remove macro.
53985         * modules/lock (Files): Remove build-aux/config.rpath.
53986         (Depends-on): Remove havelib. Add threadlib.
53987         (configure.ac-early): Remove section.
53988         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53989         * modules/tls (Depends-on): Remove lock. Add threadlib.
53990         (Link): New section, copied from threadlib.
53991         * MODULES.html.sh (Multithreading): Add threadlib.
53992
53993 2008-08-14  Bruno Haible  <bruno@clisp.org>
53994
53995         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53996         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53997         glthread_rwlock_unlock, glthread_rwlock_destroy,
53998         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53999         glthread_recursive_lock_destroy): Define as macros always.
54000         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54001         glthread_lock_lock.
54002         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54003         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54004         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54005         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54006         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54007         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54008         (glthread_recursive_lock_lock_func): Renamed from
54009         glthread_recursive_lock_lock.
54010         (glthread_recursive_lock_unlock_func): Renamed from
54011         glthread_recursive_lock_unlock.
54012         (glthread_recursive_lock_destroy_func): Renamed from
54013         glthread_recursive_lock_destroy.
54014
54015 2008-08-14  Bruno Haible  <bruno@clisp.org>
54016
54017         * lib/glthread/lock.h: Renamed from lib/lock.h.
54018         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54019         * lib/glthread/tls.h: Renamed from lib/tls.h.
54020         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54021         * lib/fstrcmp.c: Update includes.
54022         * lib/strsignal.c: Update includes.
54023         * modules/lock (Files, Makefile.am): Update.
54024         (Include): Change to "glthread/lock.h".
54025         * modules/tls (Files, Makefile.am): Update.
54026         (Include): Change to "glthread/tls.h".
54027         * tests/test-lock.c: Update includes.
54028         * tests/test-tls.c: Update includes.
54029         * NEWS: Mention the renamed header files.
54030
54031 2008-08-11  Jim Meyering  <meyering@redhat.com>
54032
54033         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54034
54035 2008-08-11  Eric Blake  <ebb9@byu.net>
54036
54037         test-c-stack: avoid C99-ism
54038         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54039         before statement.
54040         Reported by Alain Guibert.
54041
54042 2008-08-10  Jim Meyering  <meyering@redhat.com>
54043
54044         ensure that return value of uinttostr et al are not ignored
54045         * lib/inttostr.h (__GNUC_PREREQ): Define.
54046         (__attribute_warn_unused_result__): Define.
54047         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54048
54049 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54050
54051         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54052         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54053
54054 2008-08-07  Jim Meyering  <meyering@redhat.com>
54055
54056         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54057
54058         * modules/mkstemp (License): Relicense under LGPLv2+.
54059         * modules/tempname (License): Likewise.
54060
54061 2008-08-06  Bruno Haible  <bruno@clisp.org>
54062
54063         * lib/poll.c (poll): Further micro-optimization.
54064
54065 2008-08-06  Jim Meyering  <meyering@redhat.com>
54066
54067         inet_pton.c: use locale-independent tolower
54068         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54069         (inet_pton6): Use c_tolower rather than tolower.
54070         * modules/inet_pton (Depends-on): Add c-ctype.
54071
54072 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54073
54074         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54075         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54076
54077 2008-08-06  Jim Meyering  <meyering@redhat.com>
54078
54079         * modules/inet_pton (License): Relicense under LGPLv2+.
54080
54081 2008-08-03  Bruno Haible  <bruno@clisp.org>
54082
54083         Additional non-aborting API for lock and tls.
54084         * lib/lock.h: Include <errno.h>.
54085         (glthread_lock_init): New macro/function.
54086         (gl_lock_init): Define as wrapper around glthread_lock_init.
54087         (glthread_lock_lock): New macro/function.
54088         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54089         (glthread_lock_unlock): New macro/function.
54090         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54091         (glthread_lock_destroy): New macro/function.
54092         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54093         (glthread_rwlock_init): New macro/function.
54094         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54095         (glthread_rwlock_rdlock): New macro/function.
54096         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54097         (glthread_rwlock_wrlock): New macro/function.
54098         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54099         (glthread_rwlock_unlock): New macro/function.
54100         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54101         (glthread_rwlock_destroy): New macro/function.
54102         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54103         (glthread_recursive_lock_init): New macro/function.
54104         (gl_recursive_lock_init): Define as wrapper around
54105         glthread_recursive_lock_init.
54106         (glthread_recursive_lock_lock): New macro/function.
54107         (gl_recursive_lock_lock): Define as wrapper around
54108         glthread_recursive_lock_lock.
54109         (glthread_recursive_lock_unlock): New macro/function.
54110         (gl_recursive_lock_unlock): Define as wrapper around
54111         glthread_recursive_lock_unlock.
54112         (glthread_recursive_lock_destroy): New macro/function.
54113         (gl_recursive_lock_destroy): Define as wrapper around
54114         glthread_recursive_lock_destroy.
54115         (glthread_once): New macro/function.
54116         (gl_once): Define as wrapper around glthread_once.
54117         Update function declarations.
54118         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54119         glthread_rwlock_init. Return error code.
54120         (glthread_rwlock_rdlock_multithreaded): Renamed from
54121         glthread_rwlock_rdlock. Return error code.
54122         (glthread_rwlock_wrlock_multithreaded): Renamed from
54123         glthread_rwlock_wrlock. Return error code.
54124         (glthread_rwlock_unlock_multithreaded): Renamed from
54125         glthread_rwlock_unlock. Return error code.
54126         (glthread_rwlock_destroy_multithreaded): Renamed from
54127         glthread_rwlock_destroy. Return error code.
54128         (glthread_recursive_lock_init_multithreaded): Renamed from
54129         glthread_recursive_lock_init. Return error code.
54130         (glthread_recursive_lock_lock_multithreaded): Renamed from
54131         glthread_recursive_lock_lock. Return error code.
54132         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54133         glthread_recursive_lock_unlock. Return error code.
54134         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54135         glthread_recursive_lock_destroy. Return error code.
54136         (glthread_once_call): Make static.
54137         (glthread_once_multithreaded): Renamed from glthread_once.
54138         * lib/tls.h: Include <errno.h>.
54139         (glthread_tls_key_init): New macro/function.
54140         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54141         (glthread_tls_set): New macro/function.
54142         (gl_tls_set): Define as wrapper around glthread_tls_set.
54143         (glthread_tls_key_destroy): New macro/function.
54144         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54145         Update function declarations.
54146         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54147         glthread_tls_get.
54148         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54149
54150 2008-08-04  Eric Blake  <ebb9@byu.net>
54151
54152         gnumakefile: use space, not TAB, outside of targets
54153         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54154
54155 2008-08-02  Jim Meyering  <meyering@redhat.com>
54156
54157         getdate.y: avoid locale-dependent date parsing failure
54158         In Turkish locales, getdate would fail to recognize keywords
54159         containing a lowercase "i".  The solution is not to rely on
54160         locale-sensitive case-conversion.
54161         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54162         (lookup_word): Use c_toupper in place of toupper.
54163         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54164         Reported by Vefa Bicakci <bicave@superonline.com> in
54165         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54166         * modules/getdate (Depends-on): Add c-ctype.
54167
54168 2008-08-02  Bruno Haible  <bruno@clisp.org>
54169
54170         * gnulib-tool (func_import): When updating or creating a .gitignore
54171         file, prepend each added line with a slash, and ignore leading slashes
54172         from the existing lines.
54173         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54174
54175 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54176
54177         Portability fix for GNU make 3.79.1.
54178         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54179         versions do not understand.
54180
54181 2008-08-01  Bruno Haible  <bruno@clisp.org>
54182
54183         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54184         * tests/test-isnanf.h (zero): New variable.
54185         (main): Avoid literal -0.0f.
54186         * tests/test-isnand.h (zero): New variable.
54187         (main): Avoid literal -0.0.
54188         * tests/test-isnanl.h (zero): New variable.
54189         (main): Avoid literal -0.0L.
54190         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54191         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54192         -0.0, -0.0L.
54193         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54194         (test_signbitd): Avoid literal -0.0.
54195         (test_signbitl): Avoid literal -0.0L.
54196         * tests/test-ceilf1.c (zero): New variable.
54197         (main): Avoid literal -0.0f.
54198         * tests/test-ceill.c (zero): New variable.
54199         (main): Avoid literal -0.0L.
54200         * tests/test-floorf1.c (zero): New variable.
54201         (main): Avoid literal -0.0f.
54202         * tests/test-floorl.c (zero): New variable.
54203         (main): Avoid literal -0.0L.
54204         * tests/test-roundf1.c (zero): New variable.
54205         (main): Avoid literal -0.0f.
54206         * tests/test-round1.c (zero): New variable.
54207         (main): Avoid literal -0.0.
54208         * tests/test-roundl.c (zero): New variable.
54209         (main): Avoid literal -0.0L.
54210         * tests/test-truncf1.c (zero): New variable.
54211         (main): Avoid literal -0.0f.
54212         * tests/test-trunc1.c (zero): New variable.
54213         (main): Avoid literal -0.0.
54214         * tests/test-truncl.c (zero): New variable.
54215         (main): Avoid literal -0.0L.
54216         * tests/test-frexp.c (zero): New variable.
54217         (main): Avoid literal -0.0.
54218         * tests/test-frexpl.c (zero): New variable.
54219         (main): Avoid literal -0.0L.
54220         * tests/test-ldexpl.c (zero): New variable.
54221         (main): Avoid literal -0.0L.
54222         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54223         (zerod, zerol): New variables.
54224         (test_function): Avoid literals -0.0, -0.0L.
54225         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54226         (zerod, zerol): New variables.
54227         (test_function): Avoid literals -0.0, -0.0L.
54228         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54229         (zerod, zerol): New variables.
54230         (test_function): Avoid literals -0.0, -0.0L.
54231         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54232         (zerod, zerol): New variables.
54233         (test_function): Avoid literals -0.0, -0.0L.
54234         * tests/test-strtod.c (zero): New variable.
54235         (main): Avoid literal -0.0.
54236         Reported by Jonathan C. Patschke <jp@centtech.com>.
54237
54238 2008-07-31  Jim Meyering  <meyering@redhat.com>
54239
54240         sha256.h: correct definition of SHA224_DIGEST_SIZE
54241         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54242         Reported by Paulie Pena IV <paulie4@gmail.com>.
54243         Define as 224 / 8, rather than as a literal.
54244         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54245         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54246         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54247
54248 2008-07-31  Bruno Haible  <bruno@clisp.org>
54249
54250         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54251         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54252         Reported by Jonathan Patschke <jp@centtech.com>.
54253
54254 2008-07-31  Bruno Haible  <bruno@clisp.org>
54255
54256         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54257         Reported by Paolo Bonzini <bonzini@gnu.org>.
54258
54259 2008-07-30  Eric Blake  <ebb9@byu.net>
54260
54261         test-strtod: allow compilation without -lm
54262         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54263         Reported by Dennis Clarke <blastwave@gmail.com>.
54264
54265 2008-07-28  Jim Meyering  <meyering@redhat.com>
54266
54267         bootstrap: work also when there are no .po files in po/
54268         * build-aux/bootstrap (update_po_files): Complete the change
54269         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54270
54271 2008-07-27  Jim Meyering  <meyering@redhat.com>
54272
54273         * users.txt: Add zile.
54274
54275 2008-07-26  Ben Pfaff  <blp@gnu.org>
54276
54277         Add missing dependencies on new m4/exponent[fdl].m4 files.
54278         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54279         * modules/isnand-nolibm: Add m4/exponentd.m4.
54280         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54281         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54282         m4/isnan[fdl].m4, because the macros actually used moved.
54283         Reported by Jim Meyering.
54284
54285 2008-07-14  Ben Pfaff  <blp@gnu.org>
54286
54287         Add isinf module.
54288         * lib/isinf.c: New file.
54289         * lib/math.in.h: Define isinf macro if we have decided to replace
54290         it.
54291         * m4/isinf.m4: New file.
54292         * m4/math_h.m4: Initialize and substitute variables for isinf
54293         module.
54294         * modules/isinf: New file.
54295         * modules/isinf-tests: New file.
54296         * modules/math: Add substitutions for new module.
54297         * tests/test-isinf.c: New file.
54298         * doc/posix-functions/isinf.texi: Mention new module.
54299         * MODULES.html.sh: Mention new module.
54300
54301 2008-07-14  Ben Pfaff  <blp@gnu.org>
54302
54303         Factor out some macros for use by additional modules.
54304         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54305         exponentf.m4.
54306         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54307         exponentd.m4.
54308         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54309         file exponentl.m4.
54310         * m4/exponentf.m4: New file.
54311         * m4/exponentd.m4: New file.
54312         * m4/exponentl.m4: New file.
54313         * modules/isnanf: Use new file m4/exponentf.m4.
54314         * modules/isnand: Use new file m4/exponentd.m4.
54315         * modules/isnanl: Use new file m4/exponentl.m4.
54316
54317 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54318
54319         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54320         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54321         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54322         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54323
54324         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54325         readlink on platforms without PATH_MAX.
54326
54327 2008-07-21  Eric Blake  <ebb9@byu.net>
54328
54329         Warn, not fail, on stale version.
54330         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54331
54332         Don't allow installation with stale devel version number.
54333         * top/GNUmakefile (_is-install-target): New macro.
54334         (_curr-ver): Forbid installation with stale version number.
54335
54336 2008-07-20  Bruno Haible  <bruno@clisp.org>
54337
54338         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54339         TESTS_ENVIRONMENT.
54340         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54341
54342 2008-07-20  Bruno Haible  <bruno@clisp.org>
54343
54344         * lib/c-stack.h (c_stack_action): Add documentation.
54345         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54346
54347 2008-07-20  Bruno Haible  <bruno@clisp.org>
54348
54349         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54350         * modules/readlink (License): Likewise.
54351
54352 2008-07-17  Eric Blake  <ebb9@byu.net>
54353
54354         * modules/c-stack (Link): Fix typo.
54355
54356         Make c-stack use libsigsegv, when available.
54357         * modules/c-stack (Depends-on): Add libsigsegv.
54358         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54359         needed.
54360         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54361         (segv_handler, overflow_handler, c_stack_action)
54362         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54363         implementation when libsigsegv is available, but only when using
54364         the library is necessary.
54365         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54366         comment, explaining why XSI check fails on Linux.
54367         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54368         * tests/test-c-stack2.sh: Tweak skip message.
54369         * NEWS: Document new link-time requirements.
54370
54371 2008-07-16  Eric Blake  <ebb9@byu.net>
54372
54373         c-stack: Expose false positives when not using libsigsegv.
54374         * modules/c-stack-tests (Files): Expand test.
54375         * tests/test-c-stack.c (main): Add means to conditionally trigger
54376         non-overflow SIGSEGV.
54377         * tests/test-c-stack2.sh: New file.
54378
54379 2008-07-14  Bruno Haible  <bruno@clisp.org>
54380
54381         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54382         Reported by Eric Blake.
54383
54384 2008-07-14  Sam Steingold  <sds@gnu.org>
54385             Bruno Haible  <bruno@clisp.org>
54386
54387         New module libsigsegv.
54388         * modules/libsigsegv: New file.
54389         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54390         modifications.
54391         * MODULES.html.sh (Signal handling): New section.
54392
54393 2008-07-14  Bruno Haible  <bruno@clisp.org>
54394
54395         * modules/unictype/ctype-* (Description): Add the word "function".
54396         Improves the resulting doc in MODULES.html.
54397
54398 2008-07-12  Ben Pfaff  <blp@gnu.org>
54399
54400         Add longlong module.
54401         * modules/longlong: New file.
54402
54403 2008-07-12  Bruno Haible  <bruno@clisp.org>
54404
54405         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54406         to empty.
54407
54408 2008-07-10  Ben Pfaff  <blp@gnu.org>
54409
54410         Add isnan module.
54411         * doc/posix-functions/isnan.texi: Mention new module.
54412         * lib/math.in.h: Define isnan macro if we have decided to replace
54413         it.
54414         * m4/isnan.m4: New file.
54415         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54416         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54417         also.
54418         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54419         redundancy.
54420         * m4/math_h.m4: Initialize and substitute variables for isnan
54421         module.
54422         * modules/isnan: New file.
54423         * modules/isnan-tests: New file.
54424         * modules/math: Add substitutions for new module.
54425         * tests/test-isnan.c: New file.
54426         * MODULES.html.sh: Mention new module.
54427
54428 2008-07-10  Ben Pfaff  <blp@gnu.org>
54429
54430         Add isnanf module.
54431         * lib/isnanf.m4: New file.
54432         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54433         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54434         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54435         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54436         * modules/isnanf: New file.
54437         * modules/isnanf-tests: New file.
54438         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54439         files.
54440         * tests/test-isnanf-nolibm.c: factored most of its contents into
54441         new file tests/test-isnanf.h.
54442         * tests/test-isnanf.h: New file.
54443         * tests/test-isnanf.c: New file.
54444         * MODULES.html.sh: Mention new module.
54445         * doc/glibc-functions/isnanf.texi: Mention new module.
54446
54447 2008-07-10  Ben Pfaff  <blp@gnu.org>
54448
54449         Add isnand module.
54450         * lib/isnand.h: New file.
54451         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54452         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54453         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54454         functionality also.
54455         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54456         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54457         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54458         * modules/isnand: New file.
54459         * modules/isnand-tests: New file.
54460         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54461         files.
54462         * tests/test-isnand-nolibm.c: factored most of its contents into
54463         new file tests/test-isnand.h.
54464         * tests/test-isnand.h: New file.
54465         * tests/test-isnand.c: New file.
54466         * MODULES.html.sh: Mention new module.
54467
54468 2008-07-10  Ben Pfaff  <blp@gnu.org>
54469
54470         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54471         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54472         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54473         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54474         * modules/isnanf-nolibm: Update references to renamed files.
54475         * modules/isnand-nolibm: Likewise.
54476         * modules/isnanf-nolibm-tests: Likewise.
54477         * modules/isnand-nolibm-tests: Likewise.
54478         * lib/frexp.c: Likewise.
54479         * lib/isfinite.c: Likewise.
54480         * lib/signbitd.c: Likewise.
54481         * lib/signbitf.c: Likewise.
54482         * lib/vasnprintf.c: Likewise.
54483         * tests/test-ceilf1.c: Likewise.
54484         * tests/test-ceilf2.c: Likewise.
54485         * tests/test-floorf1.c: Likewise.
54486         * tests/test-floorf2.c: Likewise.
54487         * tests/test-frexp.c: Likewise.
54488         * tests/test-round1.c: Likewise.
54489         * tests/test-round2.c: Likewise.
54490         * tests/test-roundf1.c: Likewise.
54491         * tests/test-strtod.c: Likewise.
54492         * tests/test-trunc1.c: Likewise.
54493         * tests/test-trunc2.c: Likewise.
54494         * tests/test-truncf1.c: Likewise.
54495         * tests/test-truncf2.c: Likewise.
54496         * NEWS: Mention the renamed header files.
54497
54498 2008-07-11  Jim Meyering  <meyering@redhat.com>
54499
54500         vc-list-files: make the last-resort awk code more portable
54501         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54502         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54503         does not support it.
54504
54505 2008-07-10  Eric Blake  <ebb9@byu.net>
54506
54507         Work with tar's bootstrap.
54508         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54509         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54510         an m4 comment.
54511
54512 2008-07-09  Jim Meyering  <meyering@redhat.com>
54513
54514         posix-shell.m4: fix typo that made this test malfunction
54515         * m4/posix-shell.m4: Remove capitalization in variable name.
54516
54517 2008-07-08  Bruno Haible  <bruno@clisp.org>
54518
54519         * m4/onceonly.m4: Update comments.
54520         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54521
54522 2008-07-04  Jim Meyering  <meyering@redhat.com>
54523
54524         * users.txt: Add vc-dwim.
54525         (bison, coreutils): Use the gitweb URL.
54526
54527 2008-07-03  Jim Meyering  <meyering@redhat.com>
54528
54529         * users.txt: Add libffcall.  From Sam Steingold.
54530
54531 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
54532
54533         getdate.y: do not ignore TZ with relative day, month or year offset
54534         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54535         relative-date-handling, since otherwise, the latter would clobber the
54536         sole output (an updated Start value) of the tz-handling block.
54537         * tests/test-getdate.c: Tests for the fix
54538
54539 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54540
54541         Recognize 'foo_LIBRARIES += libgnu.a'.
54542         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54543         makefile snippet has already specified an installation location,
54544         also using '+='.
54545
54546 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
54547
54548         getdate.y: factor out common actions
54549         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54550         Use them in place of open-coded actions.
54551
54552 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54553
54554         Add self-test for getdate module.
54555         * modules/getdate-tests: New file.
54556         * tests/test-getdate.c: New file.
54557
54558 2008-06-29  Bruno Haible  <bruno@clisp.org>
54559
54560         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54561         .gitignore.
54562         Reported by Sylvain Beucler <beuc@beuc.net>.
54563
54564 2008-06-29  Bruno Haible  <bruno@clisp.org>
54565
54566         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54567         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54568
54569 2008-06-29  Bruno Haible  <bruno@clisp.org>
54570
54571         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54572         EXTRA_DIST.
54573         Reported by Sylvain Beucler <beuc@beuc.net>.
54574
54575 2008-06-26  Jim Meyering  <meyering@redhat.com>
54576
54577         make several modules depend on the "open" module
54578         This provides slightly increased consistency when opening-for-write
54579         the name of a non-directory spelled with a trailing slash.
54580         * modules/chdir-safer: Likewise.
54581         * modules/chown: Likewise.
54582         * modules/clean-temp: Likewise.
54583         * modules/copy-file: Likewise.
54584         * modules/fchdir: Likewise.
54585         * modules/fcntl-safer: Likewise.
54586         * modules/pipe: Likewise.
54587         * modules/utime: Likewise.
54588         Prompted by Eric Blake and Bruno Haible.
54589
54590 2008-06-24  Andreas Schwab  <schwab@suse.de>
54591
54592         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54593         literals can be used as initializers for global variables.
54594
54595 2008-06-23  Eric Blake  <ebb9@byu.net>
54596
54597         Make gnulib-cache.m4 easier to diff.
54598         * gnulib-tool (func_import): Allow newlines when reading cached
54599         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54600
54601 2008-06-23  Bruno Haible  <bruno@clisp.org>
54602
54603         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54604         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54605         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54606         m4/signalblocking.m4.
54607         (gl_PREREQ_SIGACTION): Don't invoke it.
54608         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54609         gl_PREREQ_SIG_HANDLER_H.
54610         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54611         Don't check for sigaction here.
54612
54613 2008-06-23  Bruno Haible  <bruno@clisp.org>
54614
54615         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54616         (install_handlers): Don't set the SA_RESETHAND flag.
54617
54618 2008-06-23  Bruno Haible  <bruno@clisp.org>
54619
54620         * m4/sigaction.m4: Comment fixes.
54621         * lib/signal.in.h: Likewise.
54622
54623 2008-06-23  Eric Blake  <ebb9@byu.net>
54624
54625         Fix typo.
54626         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54627
54628         Avoid SA_ namespace.
54629         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54630         Reported by Ralf Wildenhues.
54631
54632         Avoid test failure due to SA_RESTORER.
54633         * tests/test-sigaction.c (SA_MASK): New macro.
54634         (main): Avoid failing due to extension flags being set.
54635         Reported by Jim Meyering.
54636
54637         Revert use of sig-handler.h in sigprocmask.c.
54638         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54639         it requires the existence of struct sigaction.
54640         * lib/sigprocmask.c (handler_t): Restore typedef.
54641         (rpl_signal, old_handlers): Use local type.
54642
54643 2008-06-22  Bruno Haible  <bruno@clisp.org>
54644
54645         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54646         conditionally.
54647         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54648
54649 2008-06-22  Bruno Haible  <bruno@clisp.org>
54650
54651         * doc/posix-functions/siginterrupt.texi: Move note.
54652
54653         * lib/signal.in.h (SA_RESTART): New macro.
54654         * lib/sigaction.c: Update comment.
54655
54656         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54657
54658         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54659         (gl_PREREQ_SIGPROCMASK): Invoke it.
54660         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54661
54662         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54663
54664         * lib/sigprocmask.c: Update a comment.
54665
54666 2008-06-21  Eric Blake  <ebb9@byu.net>
54667
54668         Use sigaction module rather than signal().
54669         * modules/c-stack (Depends-on): Add sigaction.
54670         * modules/fatal-signal (Depends-on): Likewise.
54671         * modules/nanosleep (Depends-on): Likewise.
54672         * modules/sigprocmask (Files): Add sig-handler.h.
54673         * modules/sigaction (Files): Likewise.
54674         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54675         Eggert.
54676         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54677         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54678         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54679         (init_fatal_signals): Likewise.
54680         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54681         (siginterrupt): Delete fallback.
54682         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54683         instead.
54684         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54685         siginterrupt.
54686
54687         New module sigaction, for mingw.
54688         * modules/sigaction: New module...
54689         * modules/sigaction-tests: ...and its test.
54690         * m4/sigaction.m4: New file.
54691         * lib/sigaction.c: Likewise.
54692         * tests/test-sigaction.c: Likewise.
54693         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54694         * modules/signal (Makefile.am): Likewise.
54695         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54696         needed.
54697         * doc/posix-headers/signal.texi (signal.h): Mention provided
54698         types.
54699         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54700         that sigaction is preferable.
54701         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54702         module.
54703         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54704         sigaction.
54705
54706         Improve robustness of sigprocmask by overriding signal.
54707         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54708         is in use.
54709         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54710         (SIGKILL, SIGSTOP): Provide fallbacks.
54711         (rpl_signal): Implement.
54712         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54713         signal can be called inside handlers.
54714
54715         Fix nanosleep module on mingw.
54716         * modules/nanosleep (Depends-on): Add sys_select.
54717         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54718
54719         Fix licensing of sigprocmask.
54720         * modules/raise (License): Relicense as LGPL.
54721
54722 2008-06-21  Bruno Haible  <bruno@clisp.org>
54723
54724         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54725         result if it contains question marks.
54726         Reported by Michael Geng <linux@michaelgeng.de>.
54727
54728 2008-06-19  Bruno Haible  <bruno@clisp.org>
54729
54730         Fix CVS-ism.
54731         * doc/gnulib.texi: Include updated-stamp.texi.
54732         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54733         (updated-stamp.texi): New rule.
54734         (gnulib.info): Depend on it.
54735         * doc/.gitignore: Add updated-stamp.texi.
54736         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54737
54738 2008-06-19  Bruno Haible  <bruno@clisp.org>
54739
54740         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54741         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54742
54743 2008-06-19  Eric Blake  <ebb9@byu.net>
54744
54745         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54746         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54747         Reported by Stepan Kasal.
54748
54749 2008-06-18  Bruno Haible  <bruno@clisp.org>
54750
54751         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54752         Reported by Eric Blake.
54753
54754 2008-06-18  Eric Blake  <ebb9@byu.net>
54755
54756         Work around cygwin 1.5.25 strsignal bug.
54757         * tests/test-strsignal.c: Allow for const char *.
54758         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54759
54760 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54761
54762         * users.txt: Update URL to article and add author/date
54763         information.
54764
54765 2008-06-17  Bruno Haible  <bruno@clisp.org>
54766
54767         New macro gl_DISABLE_THREADS.
54768         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54769         if the user did not pass --enable-threads or --disable-threads option.
54770         (gl_DISABLE_THREADS): New macro.
54771         Reported by Eric Blake <ebb9@byu.net>.
54772
54773 2008-06-17  Bruno Haible  <bruno@clisp.org>
54774
54775         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54776         when the macro ignores it.
54777         Based on a patch by Eric Blake <ebb9@byu.net>.
54778
54779 2008-06-17  Bruno Haible  <bruno@clisp.org>
54780
54781         * modules/tls (License): Change to LGPLv2+.
54782         Reported by Eric Blake.
54783
54784 2008-06-17  Eric Blake  <ebb9@byu.net>
54785
54786         Simplify c-stack prerequisites.
54787         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54788         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54789         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54790         check.
54791         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54792         <sys/resource.h>.
54793
54794         Move c-stack test into testsuite.
54795         * modules/c-stack-tests: New file.
54796         * lib/c-stack.c [DEBUG]: Move test program...
54797         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54798         fail test if sigaltstack is lacking.
54799         * tests/test-c-stack.sh: New driver file.
54800
54801 2008-06-16  Eric Blake  <ebb9@byu.net>
54802
54803         Use raise module consistently.
54804         * modules/fatal-signal (Depends-on): Add raise.
54805         * modules/sigprocmask (Depends-on): Likewise.
54806         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54807         * lib/sigprocmask.c (sigprocmask): Likewise.
54808         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54809         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54810
54811         Fix compliance bug in sigpending.
54812         * lib/sigprocmask.c (sigpending): Return pending array via
54813         parameter, not return value.
54814
54815 2008-06-14  Eric Blake  <ebb9@byu.net>
54816
54817         Improve obstack-printf test code.
54818         * tests/test-obstack-printf.c (test_function): Fix comment, and
54819         simplify usage of obstack_* in macros.  Add a test for coverage.
54820         Reported by Bruno Haible.
54821
54822 2008-06-14  Bruno Haible  <bruno@clisp.org>
54823
54824         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54825         array size as a constant, not as a const variable.
54826         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54827         AC_USE_SYSTEM_EXTENSIONS.
54828         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54829         Test whether the obstack_printf function actually exists.
54830         * modules/obstack-printf (Depends-on): Add extensions.
54831         (Include): Remove obstack.h.
54832         * modules/obstack-printf-posix (Depends-on): Add extensions.
54833         (Include): Remove obstack.h.
54834
54835 2008-06-13  Eric Blake  <ebb9@byu.net>
54836
54837         Add obstack-printf and obstack-printf-posix modules.
54838         * modules/obstack-printf: New file.
54839         * modules/obstack-printf-posix: Likewise.
54840         * MODULES.html.sh (Misc): Mention them.
54841         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54842         Likewise.
54843         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54844         Likewise.
54845         * modules/stdio (Makefile.am): Accomodate new modules.
54846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54847         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54848         Declare.
54849         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54850         functions.
54851         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54852         (gl_REPLACE_OBSTACK_PRINTF): New macros
54853         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54854         * tests/test-obstack-printf.c: New file.
54855         * modules/obstack-printf-tests: Likewise.
54856         * modules/obstack-printf-posix-tests: Likewise.
54857
54858 2008-06-11  Bruno Haible  <bruno@clisp.org>
54859
54860         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54861         * lib/open.c: Include errno.h.
54862         (open): Fail when attempting to write to a file that has a trailing
54863         slash.
54864         * tests/test-open.c (main): Test against trailing slash bug.
54865         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54866
54867 2008-06-10  Bruno Haible  <bruno@clisp.org>
54868
54869         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54870         for $? to work inside the trap command, with various /bin/sh-s.
54871         * tests/test-vc-list-files-cvs.sh: Likewise.
54872
54873 2008-06-10  Bruno Haible  <bruno@clisp.org>
54874
54875         * lib/acl-internal.h: Don't include gettext.h here.
54876         * lib/set-mode-acl.c: Include gettext.h here.
54877         * lib/copy-acl.c: Likewise.
54878
54879 2008-06-10  Bruno Haible  <bruno@clisp.org>
54880
54881         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54882         * lib/wait-process.c (wait_subprocess): Likewise.
54883         * lib/execute.h (execute): Add termsigp argument.
54884         * lib/execute.c (execute): Likewise.
54885         * lib/csharpcomp.c (compile_csharp_using_pnet,
54886         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54887         * lib/csharpexec.c (execute_csharp_using_pnet,
54888         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54889         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54890         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54891         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54892         is_jikes_present): Update.
54893         * lib/javaexec.c (execute_java_class): Update.
54894         * lib/javaversion.c (execute_and_read_line): Update.
54895         * NEWS: Document the changes.
54896         Reported by Eric Blake.
54897
54898 2008-06-10  Eric Blake  <ebb9@byu.net>
54899
54900         Add missing include.
54901         * tests/test-strstr.c (includes): Add <signal.h>.
54902         * tests/test-strcasestr.c (includes): Likewise.
54903         * tests/test-memmem.c (includes): Likewise.
54904
54905 2008-06-10  Bruno Haible  <bruno@clisp.org>
54906
54907         * lib/wait-process.c (wait_subprocess): Add an assertion.
54908
54909 2008-06-10  Bruno Haible  <bruno@clisp.org>
54910
54911         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54912
54913 2008-06-10  Bruno Haible  <bruno@clisp.org>
54914
54915         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54916         using alarm().
54917         * tests/test-strcasestr.c (main): Likewise.
54918         * tests/test-strstr.c (main): Likewise.
54919
54920 2008-06-09  Bruno Haible  <bruno@clisp.org>
54921
54922         Work around the Solaris 10 ACE ACLs ABI change.
54923         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54924         declare if ACL_NO_TRIVIAL is present.
54925         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54926         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54927         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54928         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54929         define if ACL_NO_TRIVIAL is present.
54930         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54931         and use the current ABI.
54932         (file_has_acl): Use same #if condition as elsewhere.
54933         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54934         in use, and use the current ABI.
54935         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54936         Reported by Jim Meyering.
54937
54938 2008-06-09  Eric Blake  <ebb9@byu.net>
54939
54940         Work around environments that (stupidly) ignore SIGALRM.
54941         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54942         before using alarm().
54943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54944         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54945         Reported by Ian Beckwith <ianb@erislabs.net>.
54946
54947         Produce autobuild blurb earlier in log.
54948         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54949
54950 2008-06-09  Jim Meyering  <meyering@redhat.com>
54951         and Ondřej Vašík  <ovasik@redhat.com>
54952
54953         utimens.c: correct kernel bug work-around
54954         Ondřej Vašík found that the invalid return value of 280 indicates
54955         failure, not success, and the kernel bug we're trying to work
54956         around affects not just the utimensat call, but also the fallback
54957         futimens call.
54958         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54959         not success.
54960         [HAVE_FUTIMENS]: Use the same work-around, here.
54961
54962 2008-06-09  Jim Meyering  <meyering@redhat.com>
54963
54964         add more guards around definition of ACE_-related code
54965         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54966         ALLOW and ACE_OWNER are also defined.
54967
54968 2008-06-08  Bruno Haible  <bruno@clisp.org>
54969
54970         * lib/acl-internal.h: Add me as co-author.
54971         * lib/file-has-acl.c: Likewise.
54972         * lib/set-mode-acl.c: Likewise.
54973         * lib/copy-acl.c: Likewise.
54974
54975 2008-06-08  Bruno Haible  <bruno@clisp.org>
54976
54977         Add support for AIX ACLs.
54978         * lib/acl-internal.h (acl_nontrivial): New declaration.
54979         * lib/file-has-acl.c (acl_nontrivial): New function.
54980         (file_has_acl): Add implementation using AIX 4 ACL API.
54981         * lib/set-mode-acl.c (qset_acl): Likewise.
54982         * lib/copy-acl.c (qcopy_acl): Likewise.
54983
54984 2008-06-08  Bruno Haible  <bruno@clisp.org>
54985
54986         Add support for HP-UX ACLs.
54987         * lib/acl-internal.h (acl_nontrivial): New declaration.
54988         * lib/file-has-acl.c (acl_nontrivial): New function.
54989         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54990         * lib/set-mode-acl.c (qset_acl): Likewise.
54991         * lib/copy-acl.c (qcopy_acl): Likewise.
54992
54993 2008-06-08  Bruno Haible  <bruno@clisp.org>
54994
54995         Add support for Cygwin ACLs.
54996         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54997         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54998         the chmod_or_fchmod call.
54999         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55000
55001 2008-06-08  Bruno Haible  <bruno@clisp.org>
55002
55003         Fix bug with setuid modes in Solaris 10+ code.
55004         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55005         succeeded, when the mode contains some special bits.
55006
55007 2008-06-08  Bruno Haible  <bruno@clisp.org>
55008
55009         Add support for Solaris 7..10 ACLs.
55010         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55011         declarations.
55012         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55013         functions.
55014         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55015         * lib/set-mode-acl.c (qset_acl): Likewise.
55016         * lib/copy-acl.c (qcopy_acl): Likewise.
55017
55018 2008-06-08  Bruno Haible  <bruno@clisp.org>
55019
55020         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55021         declaration.
55022         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55023         (acl_access_nontrivial): Remove MacOS X case.
55024         (file_has_acl): Use acl_extended_nontrivial.
55025         * lib/copy-acl.c (qcopy_acl): Likewise.
55026
55027 2008-06-08  Bruno Haible  <bruno@clisp.org>
55028
55029         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55030
55031 2008-06-08  Jim Meyering  <meyering@redhat.com>
55032
55033         * modules/acl (Maintainer): Add Bruno Haible.
55034
55035 2008-06-07  Bruno Haible  <bruno@clisp.org>
55036
55037         Improve support for Tru64 ACLs.
55038         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55039         ACL on OSF/1.
55040
55041 2008-06-07  Bruno Haible  <bruno@clisp.org>
55042
55043         Add support for MacOS X ACLs.
55044         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55045         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55046         * lib/set-mode-acl.c (qset_acl): Likewise.
55047         * lib/copy-acl.c (qcopy_acl): Likewise.
55048
55049 2008-06-07  Bruno Haible  <bruno@clisp.org>
55050
55051         Fix memory leak introduced on 2008-05-22.
55052         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55053         use.
55054
55055 2008-06-07  Bruno Haible  <bruno@clisp.org>
55056
55057         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55058         to construct an empty ACL.
55059
55060 2008-06-07  Bruno Haible  <bruno@clisp.org>
55061
55062         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55063         precisely.
55064         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55065
55066 2008-06-07  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55069         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55070
55071 2008-06-07  Bruno Haible  <bruno@clisp.org>
55072
55073         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55074         regardless of POSIX.
55075         * doc/posix-functions/_longjmp.texi: Likewise.
55076         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55077         SystemV platform in this case.
55078
55079 2008-06-06  Eric Blake  <ebb9@byu.net>
55080
55081         Document abort() bugs.
55082         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55083
55084         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55085         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55086         sigsetjmp.
55087         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55088         siglongjmp, but only as a macro.
55089         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55090         is obsolete.
55091         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55092
55093         Tweak documentation to cover cygwin argz bugs.
55094         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55095         argz bug fix; no code change needed since no cygwin releases
55096         occurred between the last fix and the bug being tested.
55097         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55098         module and recently fixed cygwin bugs.
55099         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55100         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55101         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55102         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55103         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55104         Likewise.
55105         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55106         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55107         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55108         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55109         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55110         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55111         Likewise.
55112
55113         Avoid gcc warning on cygwin.
55114         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55115         !ACL_NO_TRIVIAL]: Avoid unused variable.
55116
55117 2008-06-05  Eric Blake  <ebb9@byu.net>
55118
55119         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55120         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55121         git-version-gen fails to come up with a version.
55122         Reported by Simon Josefsson.
55123
55124 2008-06-05  Jim Meyering  <meyering@redhat.com>
55125             Paul Eggert  <eggert@cs.ucla.edu>
55126
55127         utimens.c: work around a probable Linux kernel bug
55128         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55129         appears to be a kernel bug that causes utimensat to return 280
55130         instead of 0, indicating success.
55131
55132 2008-06-04  Bruno Haible  <bruno@clisp.org>
55133
55134         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55135         2008-06-01 commit.
55136
55137 2008-06-04  Bruno Haible  <bruno@clisp.org>
55138
55139         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55140         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55141         (file_has_acl): Use it. Save errno afterwards.
55142         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55143
55144 2008-06-03  Bruno Haible  <bruno@clisp.org>
55145
55146         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55147         draft code. Simplify #ifs.
55148         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55149         Put Solaris code after POSIX-draft code. Fix comments regarding
55150         Solaris 10, HP-UX. Mention Cygwin.
55151         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55152
55153 2008-06-03  Eric Blake  <ebb9@byu.net>
55154
55155         Provide fallback for older kernels.
55156         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55157         Provide runtime fallback if kernel lacks support.
55158         Reported by Mike Frysinger.
55159
55160 2008-06-02  Bruno Haible  <bruno@clisp.org>
55161
55162         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55163         it exists.
55164
55165 2008-06-02  Bruno Haible  <bruno@clisp.org>
55166
55167         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55168         * lib/copy-acl.c (qcopy_acl): Update comment.
55169
55170 2008-06-02  Bruno Haible  <bruno@clisp.org>
55171
55172         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55173         like ACL APIs.
55174
55175 2008-06-02  Bruno Haible  <bruno@clisp.org>
55176
55177         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55178         * tests/test-set-mode-acl.sh: Likewise.
55179         * tests/test-copy-acl.sh: Likewise.
55180         * tests/test-copy-file.sh: Likewise.
55181
55182 2008-06-02  Bruno Haible  <bruno@clisp.org>
55183
55184         * tests/test-file-has-acl.sh: Remove unused code.
55185
55186 2008-06-01  Bruno Haible  <bruno@clisp.org>
55187
55188         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55189         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55190         messages.
55191         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55192
55193 2008-06-01  Bruno Haible  <bruno@clisp.org>
55194
55195         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55196         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55197         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55198         APIs.
55199         * modules/acl-tests (configure.ac): Remove tests now contained in
55200         m4/acl.m4.
55201
55202 2008-06-02  Jim Meyering  <meyering@redhat.com>
55203
55204         announce-gen: use a better key-server host name
55205         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55206         it may be more consistently reliable.  Suggested by Werner Koch
55207         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55208
55209 2008-06-01  Bruno Haible  <bruno@clisp.org>
55210
55211         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55212         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55213
55214 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55215
55216         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55217
55218 2008-06-01  Bruno Haible  <bruno@clisp.org>
55219
55220         New ACL tests.
55221         * tests/test-file-has-acl.sh: New file.
55222         * tests/test-file-has-acl.c: New file.
55223         * tests/test-set-mode-acl.sh: New file.
55224         * tests/test-set-mode-acl.c: New file.
55225         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55226         * tests/test-copy-acl.c: New file.
55227         * modules/acl-tests: New file, based on modules/copy-file-tests.
55228         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55229         (Depends-on): Add acl-tests.
55230         (configure.ac): Remove checks.
55231         (Makefile.am): Don't create test-sameacls program here any more.
55232
55233 2008-06-01  Bruno Haible  <bruno@clisp.org>
55234
55235         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55236         * tests/test-sameacls.c: Include progname.h.
55237         (main): Invoke set_program_name. Portability fixes for MacOS X,
55238         Solaris, HP-UX.
55239
55240 2008-06-01  Bruno Haible  <bruno@clisp.org>
55241
55242         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55243         function.
55244         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55245
55246 2008-06-01  Bruno Haible  <bruno@clisp.org>
55247
55248         * modules/rpmatch (Depends-on): Add strdup.
55249
55250 2008-06-01  Bruno Haible  <bruno@clisp.org>
55251
55252         * lib/pipe.c: Include unistd-safer.h.
55253         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55254         * modules/pipe (Depends-on): Add unistd-safer.
55255
55256 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55257
55258         * modules/autobuild (configure.ac): Call AB_INIT.
55259
55260 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55261
55262         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55263         Suggested by Bruno Haible <bruno@clisp.org>.
55264
55265 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55266
55267         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55268         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55269         <bruno@clisp.org>.
55270
55271 2008-05-29  Eric Blake  <ebb9@byu.net>
55272
55273         Prefer new POSIX 200x interfaces over futimesat.
55274         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55275         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55276         when available.
55277         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55278
55279 2008-05-28  Bruno Haible  <bruno@clisp.org>
55280
55281         * modules/stpcpy (License): Change to LGPLv2+.
55282         Requested by David Lutterkort <dlutter@redhat.com>.
55283
55284 2008-05-27  Bruno Haible  <bruno@clisp.org>
55285
55286         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55287         current mingw.
55288         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55289
55290 2008-05-27  Bruno Haible  <bruno@clisp.org>
55291
55292         * modules/iconv_open (Link): New section, from module 'iconv'.
55293         * modules/striconv (Link): Likewise.
55294         * modules/striconveh (Link): Likewise.
55295         * modules/xstriconv (Link): Likewise.
55296         * modules/unicodeio (Link): Likewise.
55297         * modules/propername (Link): Likewise.
55298         Reported by Jim Meyering.
55299
55300 2008-05-26  Jim Meyering  <meyering@redhat.com>
55301
55302         sha256: do not artificially restrict buffer length to be < 2^32
55303         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55304         uint32_t to size_t.
55305         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55306         to match.
55307
55308         avoid unaligned access errors, e.g., on sparc
55309         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55310         direct access through a possibly-unaligned uint64* pointer.
55311         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55312         direct access through a possibly-unaligned uint32* pointer.
55313         Prompted by this patch from Tom "spot" Callaway:
55314         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55315
55316         sha512.c: fix typo in comment
55317         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55318
55319 2008-05-25  Bruno Haible  <bruno@clisp.org>
55320
55321         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55322         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55323         (Makefile.am): Update lib_SOURCES.
55324
55325 2008-05-25  Bruno Haible  <bruno@clisp.org>
55326
55327         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55328
55329 2008-05-25  Jim Meyering  <meyering@redhat.com>
55330
55331         useless-if-before-free: freed expr may have white-space differences
55332         * build-aux/useless-if-before-free: Recognize cases in which the
55333         freed expression differs from the tested one in embedded white
55334         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55335         $1 was used, so we can't make any regexp shy.  Improved tests now
55336         detect this.
55337
55338         useless-if-before-free: accept white space in the expression.
55339         * build-aux/useless-if-before-free: For now, any white space
55340         in the expression must be identical in the free argument.
55341
55342         useless-if-before-free: efficiency tweak
55343         * build-aux/useless-if-before-free: Make the expression-matching
55344         regexp "shy".
55345         Make the *outer* regexp shy, not the expr-matching one.
55346
55347         update code-in-comment to accept cast of free arg
55348         * build-aux/useless-if-before-free: Update regexp.
55349
55350 2008-05-25  Bruno Haible  <bruno@clisp.org>
55351
55352         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55353         * modules/copy-file-tests (Files, Makefile.am): Update.
55354         * tests/test-copy-file.c (func_test_copy): Update.
55355
55356 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55357
55358         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55359
55360 2008-05-23  Bruno Haible  <bruno@clisp.org>
55361
55362         Improve support for ACLs on OSF/1.
55363         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55364         Remove fallback for unknown flavors of ACLs.
55365
55366 2008-05-22  Bruno Haible  <bruno@clisp.org>
55367
55368         Add support for ACLs on OSF/1.
55369         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55370         replacements.
55371         (acl_free_text): New macro fallback.
55372         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55373         acl_free.
55374         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55375         acl_free_text function. Require AC_C_INLINE.
55376
55377 2008-05-22  Bruno Haible  <bruno@clisp.org>
55378
55379         Make copy_acl work on MacOS X 10.5.
55380         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55381         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55382         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55383         If MODE_INSIDE_ACL, don't assume that every system has the same text
55384         representation for ACLs as FreeBSD.
55385         * lib/copy-acl.c (copy_acl): Add support for platforms with
55386         !MODE_INSIDE_ACL.
55387         * lib/file-has-acl.c (file_has_acl): Likewise.
55388         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55389         FreeBSD, MacOS X, or IRIX, respectively.
55390
55391 2008-05-22  Bruno Haible  <bruno@clisp.org>
55392
55393         * lib/acl.h: Don't include <sys/acl.h>.
55394         (GETACLCNT): Move fallback to lib/acl-internal.h.
55395         * lib/acl-internal.h: Include <sys/acl.h> here.
55396         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55397
55398 2008-05-22  Bruno Haible  <bruno@clisp.org>
55399
55400         Split off copy_acl function to separate file.
55401         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55402         * lib/acl.c (copy_acl): Moved function to separate file.
55403         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55404         * modules/acl (Files): Add lib/copy-acl.c.
55405         (Makefiles.am): Augment lib_SOURCES.
55406
55407 2008-05-22  Bruno Haible  <bruno@clisp.org>
55408
55409         * modules/copy-file-tests: New file.
55410         * tests/test-copy-file.sh: New file.
55411         * tests/test-copy-file.c: New file.
55412         * tests/test-copy-file-sameacls.c: New file.
55413
55414 2008-05-22  Eric Blake  <ebb9@byu.net>
55415
55416         Avoid gcc warning.
55417         * tests/test-memcmp.c (main): Pass NULL indirectly.
55418
55419 2008-05-21  Bruno Haible  <bruno@clisp.org>
55420
55421         Add reference doc about ACLs.
55422         * doc/acl-resources.txt: New file.
55423         * doc/acl-cygwin.txt: New file.
55424
55425 2008-05-21  Bruno Haible  <bruno@clisp.org>
55426
55427         Avoid one more warning from gcc.
55428         * lib/vasnprintf.c (IF_LINT): Update comments.
55429         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55430
55431 2008-05-21  Jim Meyering  <meyering@redhat.com>
55432
55433         avoid a warning from gcc
55434         * lib/vasnprintf.c (IF_LINT): Define.
55435         (scale10_round_decimal_long_double):
55436         Use it to avoid a "may be used uninitialized" warning.
55437         (scale10_round_decimal_double): Likewise.
55438
55439 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55440
55441         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55442         declared.
55443
55444 2008-05-20  Bruno Haible  <bruno@clisp.org>
55445
55446         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55447         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55448
55449 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55450
55451         * modules/memcmp-tests: New file.
55452         * tests/test-memcmp.c: New file.
55453
55454 2008-05-19  Bruno Haible  <bruno@clisp.org>
55455
55456         * modules/propername (Notice, configure.ac): Put quoted "..." into
55457         --keyword option.
55458         * lib/propername.h: Update comments accordingly.
55459         Reported by Eric Blake.
55460
55461 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55462
55463         * modules/getpass-gnu (Depends-on): Add fseeko.
55464
55465 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55466
55467         * modules/base64-tests: New file.
55468
55469 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55470
55471         * lib/base64.c (base64_decode_ctx): If a decode context structure
55472         was passed in use it to ignore newlines.  If a context structure
55473         was _not_ passed in, continue to treat newlines as garbage (this
55474         is the historical behavior).  Formerly base64_decode.
55475         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55476         takes a decode context structure.
55477         * lib/base64.h (base64_decode): Macro for four-argument calls.
55478         (base64_decode_alloc): Likewise.
55479         * lib/base64.c (base64_decode_ctx): If a decode context structure
55480         was passed in use it to ignore newlines.  If a context structure
55481         was _not_ passed in, continue to treat newlines as garbage (this
55482         is the historical behavior).  Formerly base64_decode.
55483         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55484         takes a decode context structure.
55485         * lib/base64.h (base64_decode): Macro for four-argument calls.
55486         (base64_decode_alloc): Likewise.
55487
55488 2008-05-19  Jim Meyering  <meyering@redhat.com>
55489
55490         avoid a warning from gcc
55491         * lib/trim.c (IF_LINT): Define.
55492         (trim2): Use it to avoid a "may be used uninitialized" warning.
55493
55494         Fix doc typo.
55495         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55496
55497 2008-05-19  Bruno Haible  <bruno@clisp.org>
55498
55499         * doc/glibc-functions/getpass.texi: Document limits of other
55500         implementations.
55501
55502 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55503             Bruno Haible <bruno@clisp.org>
55504
55505         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55506
55507 2008-05-18  Bruno Haible  <bruno@clisp.org>
55508
55509         * modules/propername: New file, from GNU gettext.
55510         * lib/propername.h: New file, from GNU gettext.
55511         * lib/propername.c: New file, from GNU gettext.
55512         * MODULES.html.sh (Internationalization functions): Add propername.
55513
55514 2008-05-16  Jim Meyering  <meyering@redhat.com>
55515             Bruno Haible  <bruno@clisp.org>
55516
55517         Avoid some warnings from "gcc -Wshadow".
55518         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55519
55520 2008-05-15  Eric Blake  <ebb9@byu.net>
55521
55522         Extend previous patch to cygwin 1.7.0.
55523         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55524         fast implementation in cygwin >= 1.7.0.
55525         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55527
55528 2008-05-15  Bruno Haible  <bruno@clisp.org>
55529
55530         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55531         implementation in glibc >= 2.9.
55532         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55533         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55534
55535 2008-05-15  Bruno Haible  <bruno@clisp.org>
55536
55537         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55538         (Unicode string functions): Add unilbrk/*.
55539         Reported by Karl Berry.
55540
55541 2008-05-15  Eric Blake  <ebb9@byu.net>
55542
55543         Fix violation of <stdbool.h> replacement in regex.
55544         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55545         * lib/regexec.c (re_search_internal): Likewise.
55546         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55547
55548 2008-05-15  Jim Meyering  <meyering@redhat.com>
55549
55550         avoid distracting test output when git or cvs is not found
55551         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55552         * tests/test-vc-list-files-git.sh: Likewise.
55553
55554 2008-05-15  Eric Blake  <ebb9@byu.net>
55555
55556         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55557         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55558         glibc version.
55559         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55560         * doc/posix-functions/strstr.texi (strstr): Likewise.
55561         * lib/str-two-way.h (MAX): Sychronize with glibc.
55562
55563 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55564
55565         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55566         opr.ctx_type.
55567         (calc_first): Initialize constraint field.
55568         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55569         Fix grammar.
55570         (duplicate_node): Merge constraint field for all node types.
55571         (calc_eclosure_iter): Look at constraint field for all node types.
55572         * lib/regex_internal.c (create_cd_newstate): Don't look at
55573         opr.ctx_type.
55574
55575 2008-05-14  Bruno Haible  <bruno@clisp.org>
55576
55577         Help GCC to do better code generation.
55578         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55579         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55580         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55581         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55582         Declare with attribute 'malloc' if supported.
55583
55584 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55585
55586         use "echo STR|wc -c" rather than unportable "expr length STR"
55587         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55588         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55589
55590 2008-05-14  Jim Meyering  <meyering@redhat.com>
55591
55592         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55593         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55594         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55595         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55596         via Collin Lasse.
55597
55598 2008-05-14  Eric Blake  <ebb9@byu.net>
55599
55600         Avoid quadratic growth in gl_LIBSOURCES.
55601         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55602         Suggested by Bruno Haible.
55603
55604         Test xmemdup0.
55605         * modules/xmemdup0-tests: New file.
55606         * tests/test-xmemdup0.c: Likewise.
55607
55608 2008-05-13  Eric Blake  <ebb9@byu.net>
55609
55610         Split xmemdup0 into its own module.
55611         * modules/xmemdup0: New file.
55612         * lib/xmemdup0.h: Likewise.
55613         * lib/xmemdup0.c: Likewise.
55614         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55615         * lib/xalloc.h (xmemdup0): Remove.
55616         * lib/xmalloc.c (xmemdup0): Likewise.
55617
55618 2008-05-13  Eric Blake  <ebb9@byu.net>
55619             Bruno Haible  <bruno@clisp.org>
55620
55621         Reduce number of forks required during autoconf.
55622         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55623         and gl_LIBSOURCES_DIR.
55624         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55625         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55626         m4_syscmd per file.
55627         <m4_foreach_w>: Move...
55628         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55629
55630 2008-05-13  Eric Blake  <ebb9@byu.net>
55631
55632         * gnulib-tool: Fix various comment typos.
55633
55634 2008-05-12  Bruno Haible  <bruno@clisp.org>
55635
55636         Tailor the linebreaking algorithm.
55637         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55638
55639 2008-05-12  Bruno Haible  <bruno@clisp.org>
55640
55641         Update to Unicode 5.0.0.
55642         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55643         LBP_JV, LBP_JT. Redistribute values.
55644         (unilbrk_table): Change size.
55645         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55646         Unicode TR#14 rev. 22.
55647         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55648         LBP_JV, LBP_JT. Redistribute values.
55649         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55650         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55651         Update.
55652         * lib/unilbrk/lbrkprop1.h: Regenerated.
55653         * lib/unilbrk/lbrkprop2.h: Regenerated.
55654         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55655         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55656         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55657         Likewise.
55658         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55659         Likewise.
55660         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55661         result.
55662         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55663         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55664         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55665         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55666         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55667         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55668
55669 2008-05-11  Bruno Haible  <bruno@clisp.org>
55670
55671         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55672
55673 2008-05-11  Bruno Haible  <bruno@clisp.org>
55674
55675         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55676         * modules/unilbrk/gen-lbrk: New file.
55677
55678 2008-05-11  Bruno Haible  <bruno@clisp.org>
55679
55680         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55681         * m4/sha512.m4 (gl_SHA512): Likewise.
55682
55683 2008-05-11  Jim Meyering  <meyering@redhat.com>
55684
55685         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55686         * modules/crypto/sha256: New file.
55687         * modules/crypto/sha512: Likewise.
55688         * lib/sha256.c: Likewise.
55689         * lib/sha256.h: Likewise.
55690         * lib/sha512.c: Likewise.
55691         * lib/sha512.h: Likewise.
55692         * lib/u64.h: Likewise.
55693         * m4/sha256.m4: Likewise.
55694         * m4/sha512.m4: Likewise.
55695         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55696
55697 2008-05-10  Bruno Haible  <bruno@clisp.org>
55698
55699         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55700         (Input/Output <stdio.h>): Add xprintf.
55701         (Signal handling <signal.h>): Add strsignal.
55702         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55703         (Core language properties): Add func.
55704         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55705         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55706         strings.
55707         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55708         (Input/output): New section.
55709         (File system functions): Add openat-die, stat-macros.
55710         (Networking functions): Add sockets.
55711         (Unicode string functions): Add unictype/*.
55712         (Support for building libraries and executables): Add gperf.
55713         (Support for building documentation): Add agpl-3.0.
55714         (Misc): Add nocrash.
55715
55716 2008-05-10  Bruno Haible  <bruno@clisp.org>
55717
55718         * modules/unictype/gen-ctype: New file.
55719
55720 2008-05-10  Jim Meyering  <meyering@redhat.com>
55721
55722         Make chdir-safer.c more efficient on a system with no symlinks.
55723         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55724         also if ELOOP is zero.  Suggested by Bruno Haible.
55725
55726         Make chdir-safer.c slightly safer.
55727         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55728         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55729
55730         Avoid compile failure on systems without ELOOP (like mingw).
55731         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55732         Reported by Bruno Haible.
55733
55734 2008-05-10  Bruno Haible  <bruno@clisp.org>
55735
55736         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55737         (is_utf8_encoding): Use a case-insensitive comparison.
55738         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55739         streq.
55740
55741 2008-05-10  Bruno Haible  <bruno@clisp.org>
55742
55743         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55744         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55745         * lib/unilbrk/ulc-common.h (iconv_string_length,
55746         iconv_string_keeping_offsets): Remove declarations.
55747         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55748         Don't include <iconv.h>, streq.h, xsize.h.
55749         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55750         conversion.
55751         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55752         <iconv.h>, streq.h, xsize.h.
55753         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55754         conversion.
55755         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55756         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55757         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55758         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55759
55760 2008-05-10  Bruno Haible  <bruno@clisp.org>
55761
55762         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55763         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55764
55765         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55766         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55767
55768         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55769         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55770
55771         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55772         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55773
55774         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55775         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55776
55777         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55778         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55779
55780         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55781         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55782
55783         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55784         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55785
55786 2008-05-10  Bruno Haible  <bruno@clisp.org>
55787
55788         Split up 'linebreak' module.
55789         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55790         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55791         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55792         modifications.
55793         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55794         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55795         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55796         lib/linebreak.c.
55797         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55798         lib/linebreak.c.
55799         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55800         lib/linebreak.c.
55801         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55802         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55803         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55804         lib/linebreak.c.
55805         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55806         lib/linebreak.c.
55807         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55808         lib/linebreak.c.
55809         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55810         lib/linebreak.c.
55811         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55812         lib/linebreak.c.
55813         * modules/unilbrk/base: New file.
55814         * modules/unilbrk/tables: New file.
55815         * modules/unilbrk/u8-possible-linebreaks: New file.
55816         * modules/unilbrk/u16-possible-linebreaks: New file.
55817         * modules/unilbrk/u32-possible-linebreaks: New file.
55818         * modules/unilbrk/ulc-common: New file.
55819         * modules/unilbrk/ulc-possible-linebreaks: New file.
55820         * modules/unilbrk/u8-width-linebreaks: New file.
55821         * modules/unilbrk/u16-width-linebreaks: New file.
55822         * modules/unilbrk/u32-width-linebreaks: New file.
55823         * modules/unilbrk/ulc-width-linebreaks: New file.
55824         * lib/linebreak.h: Remove file.
55825         * lib/linebreak.c: Remove file.
55826         * m4/linebreak.m4: Remove file.
55827         * modules/linebreak: Remove file.
55828         * NEWS: Mention the changes.
55829
55830 2008-05-09  Eric Blake  <ebb9@byu.net>
55831
55832         Add xmemdup0.
55833         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55834         implementation.
55835         * lib/xmalloc.c (xmemdup0): New C implementation.
55836
55837 2008-05-08  Bruno Haible  <bruno@clisp.org>
55838
55839         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55840
55841 2008-05-07  Eric Blake  <ebb9@byu.net>
55842
55843         Support cross-compilation of <wctype.h>.
55844         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55845         AC_CACHE_CHECK.
55846
55847 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55848
55849         * build-aux/vc-list-files: Add support for bzr.
55850
55851 2008-05-03  Jim Meyering  <meyering@redhat.com>
55852
55853         avoid failed assertion with tight malloc
55854         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55855
55856 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55857
55858         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55859         are needed from arpa/inet.h.
55860         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55861         Reported by Bruno Haible.
55862
55863 2008-05-02  Jim Meyering  <meyering@redhat.com>
55864
55865         avoid compilation error on FreeBSD 6
55866         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55867
55868 2008-05-01  Jim Meyering  <meyering@redhat.com>
55869
55870         useless-if-before-free: correct --help's exit status description
55871         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55872         for one or more matches, etc.  Reported by Bruno Haible.
55873
55874         vc-list-files: make the stand-alone gnulib test work
55875         * modules/vc-list-files-tests (configure.ac):
55876         Define and AC_SUBST abs_aux_dir.
55877         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55878         $(abs_top_srcdir) to each script and having each of them
55879         duplicate the work of setting PATH, set PATH here, using
55880         the new variable, abs_aux_dir instead.
55881         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55882         * tests/test-vc-list-files-git.sh: Likewise.
55883         Reported by Bruno Haible.
55884
55885 2008-05-01  Bruno Haible  <bruno@clisp.org>
55886
55887         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55888         reallocation. Rename 'done' to 'found_delimiter'.
55889
55890 2008-05-01  Jim Meyering  <meyering@redhat.com>
55891
55892         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55893         * build-aux/vc-list-files: Use `...`, not $(...).
55894
55895 2008-04-30  Jim Meyering  <meyering@redhat.com>
55896
55897         add tests for vc-list-files
55898         * modules/vc-list-files-tests: New module.
55899         * tests/test-vc-list-files-cvs.sh: New file.
55900         * tests/test-vc-list-files-git.sh: New file.
55901
55902         avoid a warning from gcc
55903         * lib/getndelim2.c (IF_LINT): Define.
55904         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55905
55906         vc-list-files: work properly with build-aux/cvsu, too
55907         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55908         to all cvs-based clauses.
55909
55910         vc-list-files: work properly in the CVS+awk case, too
55911         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55912
55913         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55914         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55915         take more than one file argument, so .  Add quotes, just in case $dir
55916         ever contains a shell meta-character.  Prompted by Soren Hansen in
55917         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55918
55919 2008-04-29  Eric Blake  <ebb9@byu.net>
55920
55921         Optimize getndelim2 to use block operations when possible.
55922         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55923         freadseek, and memchr2.
55924         * lib/getndelim2.c (getndelim2): Use them for block reads.
55925
55926 2008-04-29  Bruno Haible  <bruno@clisp.org>
55927
55928         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55929         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55930         * modules/inet_ntop (Depends-on): Add extensions.
55931         * modules/inet_pton (Depends-on): Likewise.
55932         Reported by Simon Josefsson.
55933
55934 2008-04-29  Jim Meyering  <meyering@redhat.com>
55935
55936         When the is more than one match in a block, match all of them.
55937         * build-aux/useless-if-before-free: Iterate through each block
55938         until there are no more matches.
55939
55940         Fix broken useless-if-before-free script.
55941         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55942         the expression to match cast of argument to free-like function.
55943
55944 2008-04-29  Eric Blake  <ebb9@byu.net>
55945
55946         Use new header.
55947         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55948
55949 2008-04-29  Jim Meyering  <meyering@redhat.com>
55950
55951         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55952         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55953         by gnulib to exist and to declare e.g., inet_ntop.
55954         Don't include "inet_ntop.h", now removed.
55955
55956         * m4/arpa_inet_h.m4: Remove trailing blanks.
55957
55958 2008-04-29  Eric Blake  <ebb9@byu.net>
55959
55960         Silence valgrind on safe reads beyond potential array bounds.
55961         * lib/rawmemchr.valgrind: New file.
55962         * lib/strchrnul.valgrind: Likewise.
55963         * modules/rawmemchr (Files): Distribute new file.
55964         * modules/strchrnul (Files): Likewise.
55965         Suggested by Bruno Haible.
55966
55967 2008-04-29  Bruno Haible  <bruno@clisp.org>
55968
55969         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55970         (inet_ntop, inet_pton): Change portability warning's wording.
55971         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55972         Invoke gl_CHECK_NEXT_HEADERS.
55973         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55974         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55975         set ARPA_INET_H.
55976         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55977         * modules/arpa_inet (Description): No longer only for systems that
55978         lack it.
55979         (Depends-on): Add include_next.
55980         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55981         HAVE_ARPA_INET_H.
55982
55983 2008-04-29  Jim Meyering  <meyering@redhat.com>
55984
55985         * modules/mkdir (License): Re-license as LGPLv2+.
55986
55987 2008-04-29  Bruno Haible  <bruno@clisp.org>
55988
55989         * modules/rawmemchr (Maintainer): Set to Eric.
55990         * modules/strchrnul (Maintainer): Likewise.
55991
55992 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55993
55994         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55995         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55996
55997         * modules/arpa_inet (arpa/inet.h): Use them.
55998
55999 2008-04-28  Eric Blake  <ebb9@byu.net>
56000
56001         Test getndelim2.
56002         * modules/getndelim2-tests: New file.
56003         * tests/test-getndelim2.c: Likewise.
56004         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56005         stream.
56006         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56007
56008         * MODULES.html.sh: Document new module.
56009
56010 2008-04-20  Bruno Haible  <bruno@clisp.org>
56011
56012         * lib/c-stack.c (die): Use raise.
56013         * modules/c-stack (Depends-on): Add raise.
56014
56015 2008-04-28  Bruno Haible  <bruno@clisp.org>
56016
56017         Expect rpmatch to be declared.
56018         * lib/yesno.c (rpmatch): Remove declaration.
56019
56020         Declare rpmatch.
56021         * lib/stdlib.in.h (rpmatch): New declaration.
56022         * lib/rpmatch.c: Include <stdlib.h> first.
56023         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56024         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56026         HAVE_RPMATCH.
56027         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56028         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56029         (Include): Set to <stdlib.h>.
56030         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56031         HAVE_RPMATCH.
56032         * NEWS: Document the change.
56033
56034 2008-04-28  Bruno Haible  <bruno@clisp.org>
56035
56036         Change rpmatch to use nl_langinfo when appropriate.
56037         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56038         (N_): New macro.
56039         (localized_pattern): New function/macro.
56040         (try): Remove match, nomatch arguments. Copy the pattern into safe
56041         memory before caching it.
56042         (rpmatch): Use localized_pattern. Add translator comments.
56043         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56044         Suggested by Eric Blake.
56045         * modules/rpmatch (Depends-on): Add stdbool.
56046
56047 2008-04-28  Eric Blake  <ebb9@byu.net>
56048
56049         Add rawmemchr module, matching glibc.
56050         * modules/string (Makefile.am): New indicator.
56051         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56052         * lib/string.in.h (rawmemchr): Declare when appropriate.
56053         * modules/rawmemchr: New file.
56054         * m4/rawmemchr.m4: Likewise.
56055         * lib/rawmemchr.c: Likewise.
56056         * modules/rawmemchr-tests: Likewise.
56057         * tests/test-rawmemchr.c: Likewise.
56058         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56059         module.
56060         * modules/strchrnul (Depends-on): Add rawmemchr.
56061         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56062
56063         Whitespace cleanup.
56064         * tests/test-strchrnul.c: Reindent.
56065         * lib/strchrnul.c: Likewise.
56066
56067         Optimize and test strchrnul.
56068         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56069         * modules/strchrnul-tests: New file.
56070         * tests/test-strchrnul.c: Likewise.
56071
56072         Remove intprops dependency.
56073         * modules/memchr (Depends-on): Remove intprops.
56074         * modules/memrchr (Depends-on): Likewise.
56075         * modules/memchr2 (Depends-on): Likewise.
56076         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56077         * lib/memrchr.c (__memrchr): Likewise.
56078         * lib/memrchr2.c (memchr2): Likewise.
56079         Reported by Simon Josefsson.
56080
56081 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56082
56083         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56084         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56085
56086 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56087
56088         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56089
56090         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56091
56092         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56093
56094         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56095         declarations.
56096         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56097
56098         * m4/inet_pton.m4: Don't check for header files.
56099
56100         * m4/inet_ntop.m4: Don't check for header files.
56101
56102 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56103
56104         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56105         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56106         trigger for cygwin).
56107         Reported by Bruno Haible  <bruno@clisp.org>.
56108
56109 2008-04-28  Bruno Haible  <bruno@clisp.org>
56110
56111         * doc/posix-functions/strdup.texi: Mention mingw problem.
56112
56113 2008-04-27  Bruno Haible  <bruno@clisp.org>
56114
56115         * modules/stat-time-tests (Depends-on): Add sleep.
56116         * tests/test-stat-time.c (force_unlink): New function.
56117         (cleanup): Use it.
56118         (test_mtime): Remove the ctime related tests.
56119         (test_ctime): New function, containing the ctime related tests.
56120         (main): Call test_ctime, except on native Windows platforms.
56121
56122 2008-04-27  Bruno Haible  <bruno@clisp.org>
56123
56124         * lib/rpmatch.c (rpmatch): Add some comments.
56125         Reported by James Youngman <jay@gnu.org>.
56126
56127 2008-04-27  Bruno Haible  <bruno@clisp.org>
56128
56129         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56130         quiet NaNs.
56131
56132 2008-04-27  Bruno Haible  <bruno@clisp.org>
56133
56134         Make test-yesno.sh work on mingw.
56135         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56136         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56137         (main): Set stdin to binary mode.
56138         * modules/yesno-tests (Depends-on): Add binary-io.
56139
56140 2008-04-27  Bruno Haible  <bruno@clisp.org>
56141
56142         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56143         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56144         argument that lie outside the IEEE 854 domain.
56145         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56146         (gl_ISFINITE): Use it.
56147         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56148
56149 2008-04-27  Bruno Haible  <bruno@clisp.org>
56150
56151         Allow local renaming in config.h.
56152         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56153
56154 2008-04-27  Bruno Haible  <bruno@clisp.org>
56155
56156         * lib/memchr.c (__memchr): Change type of 'i'.
56157         * lib/memchr2.c (memchr2): Likewise.
56158
56159 2008-04-26  Eric Blake  <ebb9@byu.net>
56160         and Bruno Haible  <bruno@clisp.org>
56161
56162         Optimize and test memrchr.
56163         * modules/memrchr (Depends-on): Add intprops.
56164         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56165         * modules/memrchr-tests: New file.
56166         * tests/test-memrchr.c: New file.
56167
56168 2008-04-26  Bruno Haible  <bruno@clisp.org>
56169
56170         Add tentative support for DragonFly BSD.
56171         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56172         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56173         fp.
56174         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56175         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56176         * lib/fpurge.c (fpurge): Likewise.
56177         * lib/freadable.c (freaadable): Likewise.
56178         * lib/freadahead.c (freadahead): Likewise.
56179         * lib/freading.c (freading): Likewise.
56180         * lib/freadptr.c (freadptr): Likewise.
56181         * lib/freadseek.c (freadptrinc): Likewise.
56182         * lib/fseeko.c (fseeko): Likewise.
56183         * lib/fseterr.c (fseterr): Likewise.
56184         * lib/fwritable.c (fwritable): Likewise.
56185         * lib/fwriting.c (fwriting): Likewise.
56186
56187 2008-04-26  Bruno Haible  <bruno@clisp.org>
56188
56189         * lib/stdio-impl.h: New file.
56190         * lib/fbufmode.c: Include stdio-impl.h.
56191         (fbufmode): Use fp_, remove redundant #defines.
56192         * lib/fflush.c: Include stdio-impl.h.
56193         (clear_ungetc_buffer): Remove redundant #defines.
56194         * lib/fpurge.c: Include stdio-impl.h.
56195         (fpurge): Remove redundant #defines.
56196         * lib/freadable.c: Include stdio-impl.h.
56197         (freadable): Remove redundant #defines.
56198         * lib/freadahead.c: Include stdio-impl.h.
56199         (freadahead): Remove redundant #defines.
56200         * lib/freading.c: Include stdio-impl.h.
56201         (freading): Remove redundant #defines.
56202         * lib/freadptr.c: Include stdio-impl.h.
56203         (freadptr): Remove redundant #defines.
56204         * lib/freadseek.c: Include stdio-impl.h.
56205         (freadptrinc): Remove redundant #defines.
56206         * lib/fseeko.c: Include stdio-impl.h.
56207         (rpl_fseeko): Remove redundant #defines.
56208         * lib/fseterr.c: Include stdio-impl.h.
56209         (fseterr): Remove redundant #defines.
56210         * lib/fwritable.c: Include stdio-impl.h.
56211         (fwritable: Remove redundant #defines.
56212         * lib/fwriting.c: Include stdio-impl.h.
56213         (fwriting): Remove redundant #defines.
56214         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56215         * modules/fflush (Files): Likewise.
56216         * modules/fpurge (Files): Likewise.
56217         * modules/freadable (Files): Likewise.
56218         * modules/freadahead (Files): Likewise.
56219         * modules/freading (Files): Likewise.
56220         * modules/freadptr (Files): Likewise.
56221         * modules/freadseek (Files): Likewise.
56222         * modules/fseeko (Files): Likewise.
56223         * modules/fseterr (Files): Likewise.
56224         * modules/fwritable (Files): Likewise.
56225         * modules/fwriting (Files): Likewise.
56226
56227 2008-04-26  Bruno Haible  <bruno@clisp.org>
56228
56229         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56230         restore_seek_optimization, update_fpos_cache): New functions, extracted
56231         from rpl_fflush.
56232         (rpl_fflush): Use them.
56233         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56234         (gl_REPLACE_FFLUSH): Use it.
56235
56236 2008-04-26  Bruno Haible  <bruno@clisp.org>
56237
56238         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56239         on Solaris.
56240         * tests/test-xstrtoimax.sh: Likewise.
56241         * tests/test-xstrtoumax.sh: Likewise.
56242         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56243
56244 2008-04-26  Bruno Haible  <bruno@clisp.org>
56245
56246         * modules/memchr-tests: New file.
56247         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56248
56249 2008-04-26  Eric Blake  <ebb9@byu.net>
56250             Bruno Haible  <bruno@clisp.org>
56251
56252         * lib/memchr.c: Include intprops.h.
56253         (__memchr): Optimize parallel detection of matching bytes. Rename local
56254         variables. Add explanatory comments.
56255
56256 2008-04-26  Bruno Haible  <bruno@clisp.org>
56257
56258         Fix module 'memchr', broken since 2000-10-28.
56259         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56260
56261 2008-04-26  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56264         comments.
56265
56266 2008-04-25  Eric Blake  <ebb9@byu.net>
56267
56268         Use native fstatat on cygwin 1.7.0.
56269         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56270         first.
56271
56272 2008-04-23  Eric Blake  <ebb9@byu.net>
56273
56274         Improve memchr2 performance.
56275         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56276         NUL bytes.
56277         * modules/memchr2 (Depends-on): Use intprops.h.
56278
56279 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56280
56281         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56282         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56283         <blp@cs.stanford.edu>.
56284
56285 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56286
56287         * lib/arpa_inet.in.h: New file.
56288
56289         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56290         (Makefile.am): Sed in substitute header file.
56291
56292         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56293         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56294
56295         * modules/inet_ntop (configure.ac): Use
56296         gl_ARPA_INET_MODULE_INDICATOR.
56297
56298         * modules/inet_pton (configure.ac): Use
56299         gl_ARPA_INET_MODULE_INDICATOR.
56300
56301 2008-04-22  Jim Meyering  <meyering@redhat.com>
56302
56303         * modules/verify (License): Re-license as LGPLv2+.
56304
56305 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56306
56307         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56308         parameter to void* as per POSIX standard (MinGW uses char*).
56309
56310 2008-04-21  Bruno Haible  <bruno@clisp.org>
56311
56312         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56313         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56314         Define to replacements if REPLACE_ISWCNTRL is 1.
56315         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56316         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56317         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56318         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56319         what it fixes.
56320         * doc/posix-functions/iswalpha.texi: Likewise.
56321         * doc/posix-functions/iswblank.texi: Likewise.
56322         * doc/posix-functions/iswcntrl.texi: Likewise.
56323         * doc/posix-functions/iswdigit.texi: Likewise.
56324         * doc/posix-functions/iswgraph.texi: Likewise.
56325         * doc/posix-functions/iswlower.texi: Likewise.
56326         * doc/posix-functions/iswprint.texi: Likewise.
56327         * doc/posix-functions/iswpunct.texi: Likewise.
56328         * doc/posix-functions/iswspace.texi: Likewise.
56329         * doc/posix-functions/iswupper.texi: Likewise.
56330         * doc/posix-functions/iswxdigit.texi: Likewise.
56331         Reported by Alain Guibert.
56332
56333 2008-04-21  Bruno Haible  <bruno@clisp.org>
56334
56335         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56336         Patch by Alain Guibert.
56337
56338 2008-04-21  Bruno Haible  <bruno@clisp.org>
56339
56340         Fix test failures on mingw.
56341         * tests/test-xstrtol.c (print_no_progname): New function.
56342         (main): Install it in error_print_progname hook.
56343         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56344         * tests/test-xstrtoimax.sh: Likewise.
56345         * tests/test-xstrtoumax.sh: Likewise.
56346
56347 2008-04-21  Bruno Haible  <bruno@clisp.org>
56348
56349         Fix test failure on mingw.
56350         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56351
56352 2008-04-21  Bruno Haible  <bruno@clisp.org>
56353
56354         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56355         Actually assign a value.
56356
56357 2008-04-20  Bruno Haible  <bruno@clisp.org>
56358
56359         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56360         take 2.
56361         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56362         'canonicalize-lgpl' module is also used.
56363         * lib/canonicalize-lgpl.c: Undo last change.
56364         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56365
56366 2008-04-20  Bruno Haible  <bruno@clisp.org>
56367
56368         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56369         config.h. Provide _mkdir based fallback for mingw.
56370         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56371         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56372         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56373         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56374         rather than defining mkdir in config.h.
56375         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56376         (gl_SYS_STAT_H_DEFAULTS): New macro.
56377         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56378         HAVE_IO_H any more.
56379         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56380         HAVE_DECL_MKDIR and HAVE_IO_H.
56381
56382 2008-04-20  Bruno Haible  <bruno@clisp.org>
56383
56384         * lib/isapipe.c: Port to native Windows platforms.
56385
56386 2008-04-20  Bruno Haible  <bruno@clisp.org>
56387
56388         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56389
56390 2008-04-21  Eric Blake  <ebb9@byu.net>
56391
56392         Work around preprocessors that don't handle UINTMAX_MAX.
56393         * lib/memchr2.c (memchr2): Avoid embedded #if.
56394         Reported by Alain Guibert, fix suggested by Bruno Haible.
56395
56396 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56397
56398         * doc/posix-functions/strftime.texi (strftime): Explain better
56399         Windows incompatibility.  Suggested by Micah Cowan
56400         <micah@cowan.name>.
56401
56402 2008-04-20  Bruno Haible  <bruno@clisp.org>
56403
56404         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56405         unistr/u8-mblen.
56406
56407 2008-04-20  Bruno Haible  <bruno@clisp.org>
56408
56409         Fix test failure on platforms with non-GNU iconv.
56410         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56411         (U_TO_U8): Use it, rather than u16_to_u8.
56412         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56413         units at the end of the input string.
56414         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56415
56416 2008-04-20  Bruno Haible  <bruno@clisp.org>
56417
56418         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56419         when the resulting length is 0.
56420         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56421
56422 2008-04-20  Bruno Haible  <bruno@clisp.org>
56423
56424         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56425         works.
56426         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56427
56428 2008-04-20  Bruno Haible  <bruno@clisp.org>
56429
56430         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56431         * modules/tsearch-tests (configure.ac): Test for initstate function.
56432
56433 2008-04-20  Bruno Haible  <bruno@clisp.org>
56434
56435         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56436         for nlink_t if missing.
56437         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56438
56439 2008-04-19  Bruno Haible  <bruno@clisp.org>
56440
56441         Work around snprintf bug on Linux libc5.
56442         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56443         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56444         gl_SNPRINTF_SIZE1.
56445         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56446         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56447         that test failed.
56448         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56449         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56450         * modules/snprintf (Files): Add m4/printf.m4.
56451         * modules/vsnprintf (Files): Likewise.
56452         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56453         * doc/posix-functions/vsnprintf.texi: Likewise.
56454
56455 2008-04-19  Bruno Haible  <bruno@clisp.org>
56456
56457         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56458         from 0.0058 to less than 10^-7.
56459
56460 2008-04-19  Bruno Haible  <bruno@clisp.org>
56461
56462         Fix rounding when a precision is given.
56463         * lib/vasnprintf.c (is_borderline): New function.
56464         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56465         9...9x.
56466         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56467         %e, %g.
56468         * tests/test-vasprintf-posix.c (test_function): Likewise.
56469         * tests/test-snprintf-posix.h (test_function): Likewise.
56470         * tests/test-sprintf-posix.h (test_function): Likewise.
56471         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56472         * tests/test-printf-posix.h (test_function): Likewise.
56473         * tests/test-printf-posix.output: Update.
56474         Reported by John Darrington <john@darrington.wattle.id.au> via
56475         Ben Pfaff <blp@cs.stanford.edu>.
56476
56477 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56478
56479         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56480         Suggested by Bruno Haible <bruno@clisp.org>.
56481
56482 2008-04-17  Bruno Haible  <bruno@clisp.org>
56483
56484         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56485         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56486         implementation.
56487         Patch by Bruce Merry <bmerry@gmail.com>.
56488
56489 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56490
56491         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56492         doesn't work under Windows.
56493
56494 2008-04-16  Bruno Haible  <bruno@clisp.org>
56495
56496         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56497         New macros.
56498         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56499         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56500         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56501         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56502         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56503         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56504         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56505         macros.
56506         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56507         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56508         Northern Sotho, Uighur.
56509
56510 2008-04-16  Bruno Haible  <bruno@clisp.org>
56511
56512         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56513         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56514         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56515         Reported by Daniel Bergström <daniel@octocode.com>.
56516
56517 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56518             Bruno Haible  <bruno@clisp.org>
56519
56520         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56521         function.
56522         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56523         New functions, mostly extracted from gl_locale_name_default.
56524         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56525
56526 2008-04-16  Eric Blake  <ebb9@byu.net>
56527
56528         Adjust strtod detection to catch glibc 2.7 bug.
56529         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56530         Reported by John Gatewood Ham.
56531
56532 2008-04-16  Bruno Haible  <bruno@clisp.org>
56533
56534         Add tentative support for Linux libc5.
56535         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56536         * lib/fpurge.c (fpurge): Likewise.
56537         * lib/freadable.c (freadable): Likewise.
56538         * lib/freadahead.c (freadahead): Likewise.
56539         * lib/freading.c (freading): Likewise.
56540         * lib/freadptr.c (freadptr): Likewise.
56541         * lib/freadseek.c (freadptrinc): Likewise.
56542         * lib/fseeko.c (rpl_fseeko): Likewise.
56543         * lib/fseterr.c (fseterr): Likewise.
56544         * lib/fwritable.c (fwritable): Likewise.
56545         * lib/fwriting.c (fwriting): Likewise.
56546         Reported by Alain Guibert <alguibert+bts@free.fr>.
56547
56548 2008-04-15  Bruno Haible  <bruno@clisp.org>
56549
56550         * modules/mathl (configure.ac): Define module indicator.
56551
56552 2008-04-15  Bruno Haible  <bruno@clisp.org>
56553
56554         * lib/logl.c (logl): Remove unused variables.
56555
56556 2008-04-15  Bruno Haible  <bruno@clisp.org>
56557
56558         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56559         fails.
56560
56561 2008-04-15  Bruno Haible  <bruno@clisp.org>
56562
56563         * lib/trim.c (trim2): Fix argument of isspace() macro.
56564
56565 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56566
56567         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56568         to 0.
56569         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56570
56571 2008-04-14  Bruno Haible  <bruno@clisp.org>
56572
56573         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56574         AC_LANG_PROGRAM argument.
56575         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56576         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56578         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56579         * m4/math_h.m4 (gl_MATH_H): Likewise.
56580         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56581         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56582         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56583         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56584         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56585         * m4/regex.m4 (gl_REGEX): Likewise.
56586         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56587         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56588         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56589         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56590         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56591         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56592         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56593         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56594
56595 2008-04-14  Jim Meyering  <meyering@redhat.com>
56596
56597         test-strtod: fix typos: s/abs/fabs/
56598         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56599
56600 2008-04-13  Bruno Haible  <bruno@clisp.org>
56601
56602         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56603         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56604         module is also used and while not building the reloc-wrapper.
56605
56606 2008-04-13  Bruno Haible  <bruno@clisp.org>
56607
56608         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56609
56610 2008-04-13  Bruno Haible  <bruno@clisp.org>
56611
56612         Fix AIX compilation failure introduced on 2008-04-02.
56613         * tests/test-frexp.c (exp): Undefine before redefining.
56614         * tests/test-frexpl.c (exp): Likewise.
56615
56616 2008-04-13  Bruno Haible  <bruno@clisp.org>
56617
56618         Work around a HP-UX stdio bug.
56619         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56620         * tests/test-ftello.c (main): Likewise.
56621         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56622         * doc/posix-functions/ftello.texi: Likewise.
56623
56624 2008-04-13  Bruno Haible  <bruno@clisp.org>
56625
56626         Make test-signbit pass on HP-UX/hppa.
56627         * tests/test-signbit.c (minus_zerol): New variable.
56628         (test_signbitl): Use it.
56629
56630 2008-04-13  Bruno Haible  <bruno@clisp.org>
56631
56632         Make truncl work on OSF/1 4.0.
56633         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56634         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56635         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56637         HAVE_DECL_TRUNCL.
56638         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56639         HAVE_DECL_TRUNCL.
56640         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56641
56642 2008-04-13  Bruno Haible  <bruno@clisp.org>
56643
56644         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56645
56646 2008-04-13  Bruno Haible  <bruno@clisp.org>
56647
56648         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56649         expression, so as to avoid HP-UX 11 cc compiler bug.
56650
56651 2008-04-13  Bruno Haible  <bruno@clisp.org>
56652
56653         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56654
56655 2008-04-13  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/git-merge-changelog.c: Remove empty declaration outside of
56658         functions.
56659
56660 2008-04-13  Bruno Haible  <bruno@clisp.org>
56661
56662         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56663
56664 2008-04-13  Bruno Haible  <bruno@clisp.org>
56665
56666         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56667         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56668         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56669         also if it exists but lacks definitions of the SHUT_* macros.
56670         * modules/sys_socket (Description): Update.
56671         Reported by Elbert Pol <e.pol@chello.nl>.
56672
56673 2008-04-13  Bruno Haible  <bruno@clisp.org>
56674
56675         * lib/localcharset.c (OS2): Don't redefine if already defined.
56676         Reported by Elbert Pol <e.pol@chello.nl>.
56677
56678 2008-04-13  Bruno Haible  <bruno@clisp.org>
56679
56680         * lib/binary-io.h [__EMX__]: Include <io.h>.
56681         Reported by Elbert Pol <e.pol@chello.nl>.
56682
56683 2008-04-12  Bruno Haible  <bruno@clisp.org>
56684
56685         * lib/fpucw.h: Enable the definitions also for x86_64.
56686         Needed for NetBSD/x86_64.
56687         Reported by Thomas Klausner <tk@giga.or.at>.
56688
56689 2008-04-12  Bruno Haible  <bruno@clisp.org>
56690
56691         * tests/test-strtod.c: Include isnand.h.
56692         (main): Use isnand instead of isnan.
56693         Reported by Jim Meyering.
56694
56695 2008-04-12  Bruno Haible  <bruno@clisp.org>
56696
56697         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56698         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56699
56700 2008-04-12  Jim Meyering  <meyering@redhat.com>
56701
56702         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56703
56704 2008-04-12  Bruno Haible  <bruno@clisp.org>
56705
56706         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56707         Reported by Elbert Pol <e.pol@chello.nl>.
56708
56709 2008-04-12  Eric Blake  <ebb9@byu.net>
56710
56711         Work around Solaris 10 math.h bug.
56712         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56713         (gl_MATH_H_DEFAULTS): Set up default.
56714         * modules/math (Makefile.am): Replace new indicators.
56715         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56716         * tests/test-math.c (main): Test this.
56717         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56718         * doc/posix-headers/math.texi (math.h): Mention bug.
56719         Reported by Nelson H. F. Beebe and Jim Meyering.
56720
56721 2008-04-11  Bruno Haible  <bruno@clisp.org>
56722
56723         Adapt to future versions of Apple GCC.
56724         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56725         Reported by Peter O'Gorman <peter@pogma.com>.
56726
56727 2008-04-11  Bruno Haible  <bruno@clisp.org>
56728
56729         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56730
56731 2008-04-11  Bruno Haible  <bruno@clisp.org>
56732
56733         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56734
56735         * modules/getaddrinfo-tests (Makefile.am): Define
56736         test_getaddrinfo_LDADD.
56737
56738 2008-04-11  Bruno Haible  <bruno@clisp.org>
56739
56740         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56741         (init): Fix syntax error.
56742         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56743         is declared.
56744
56745 2008-04-11  Bruno Haible  <bruno@clisp.org>
56746
56747         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56748         * modules/glob (Depends-on): Add stdbool.
56749
56750 2008-04-11  Bruno Haible  <bruno@clisp.org>
56751
56752         * lib/trim.c: Include <string.h>.
56753
56754 2008-04-11  Eric Blake  <ebb9@byu.net>
56755
56756         Avoid compile failure on OS/2.
56757         * lib/regex_internal.h (internal_function): Disable optimization
56758         on OS/2 (__EMX__), where it caused compiler error.
56759         Reported by Elbert Pol.
56760
56761 2008-04-11  Bruno Haible  <bruno@clisp.org>
56762
56763         Flush the standard error stream before aborting. Needed on mingw.
56764         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56765         * tests/test-array_list.c (ASSERT): Likewise.
56766         * tests/test-array_oset.c (ASSERT): Likewise.
56767         * tests/test-avltree_list.c (ASSERT): Likewise.
56768         * tests/test-avltree_oset.c (ASSERT): Likewise.
56769         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56770         * tests/test-binary-io.c (ASSERT): Likewise.
56771         * tests/test-byteswap.c (ASSERT): Likewise.
56772         * tests/test-c-ctype.c (ASSERT): Likewise.
56773         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56774         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56775         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56776         * tests/test-c-strstr.c (ASSERT): Likewise.
56777         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56778         * tests/test-canonicalize.c (ASSERT): Likewise.
56779         * tests/test-carray_list.c (ASSERT): Likewise.
56780         * tests/test-ceilf1.c (ASSERT): Likewise.
56781         * tests/test-ceilf2.c (ASSERT): Likewise.
56782         * tests/test-ceill.c (ASSERT): Likewise.
56783         * tests/test-count-one-bits.c (ASSERT): Likewise.
56784         * tests/test-fbufmode.c (ASSERT): Likewise.
56785         * tests/test-fflush2.c (ASSERT): Likewise.
56786         * tests/test-floorf1.c (ASSERT): Likewise.
56787         * tests/test-floorf2.c (ASSERT): Likewise.
56788         * tests/test-floorl.c (ASSERT): Likewise.
56789         * tests/test-fopen.c (ASSERT): Likewise.
56790         * tests/test-fpending.c (ASSERT): Likewise.
56791         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56792         * tests/test-fpurge.c (ASSERT): Likewise.
56793         * tests/test-freadable.c (ASSERT): Likewise.
56794         * tests/test-freadahead.c (ASSERT): Likewise.
56795         * tests/test-freading.c (ASSERT): Likewise.
56796         * tests/test-freadptr.c (ASSERT): Likewise.
56797         * tests/test-freadptr2.c (ASSERT): Likewise.
56798         * tests/test-freadseek.c (ASSERT): Likewise.
56799         * tests/test-freopen.c (ASSERT): Likewise.
56800         * tests/test-frexp.c (ASSERT): Likewise.
56801         * tests/test-frexpl.c (ASSERT): Likewise.
56802         * tests/test-fseek.c (ASSERT): Likewise.
56803         * tests/test-fseeko.c (ASSERT): Likewise.
56804         * tests/test-fstrcmp.c (ASSERT): Likewise.
56805         * tests/test-ftell.c (ASSERT): Likewise.
56806         * tests/test-ftello.c (ASSERT): Likewise.
56807         * tests/test-func.c (ASSERT): Likewise.
56808         * tests/test-fwritable.c (ASSERT): Likewise.
56809         * tests/test-fwriting.c (ASSERT): Likewise.
56810         * tests/test-getdelim.c (ASSERT): Likewise.
56811         * tests/test-getline.c (ASSERT): Likewise.
56812         * tests/test-i-ring.c (ASSERT): Likewise.
56813         * tests/test-iconv-utf.c (ASSERT): Likewise.
56814         * tests/test-iconv.c (ASSERT): Likewise.
56815         * tests/test-isfinite.c (ASSERT): Likewise.
56816         * tests/test-isnand.c (ASSERT): Likewise.
56817         * tests/test-isnanf.c (ASSERT): Likewise.
56818         * tests/test-isnanl.h (ASSERT): Likewise.
56819         * tests/test-ldexpl.c (ASSERT): Likewise.
56820         * tests/test-linked_list.c (ASSERT): Likewise.
56821         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56822         * tests/test-localename.c (ASSERT): Likewise.
56823         * tests/test-lseek.c (ASSERT): Likewise.
56824         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56825         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56826         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56827         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56828         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56829         * tests/test-mbschr.c (ASSERT): Likewise.
56830         * tests/test-mbscspn.c (ASSERT): Likewise.
56831         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56832         * tests/test-mbspbrk.c (ASSERT): Likewise.
56833         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56834         * tests/test-mbsrchr.c (ASSERT): Likewise.
56835         * tests/test-mbsspn.c (ASSERT): Likewise.
56836         * tests/test-mbsstr1.c (ASSERT): Likewise.
56837         * tests/test-mbsstr2.c (ASSERT): Likewise.
56838         * tests/test-mbsstr3.c (ASSERT): Likewise.
56839         * tests/test-memchr2.c (ASSERT): Likewise.
56840         * tests/test-memmem.c (ASSERT): Likewise.
56841         * tests/test-open.c (ASSERT): Likewise.
56842         * tests/test-printf-frexp.c (ASSERT): Likewise.
56843         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56844         * tests/test-printf-posix.c (ASSERT): Likewise.
56845         * tests/test-quotearg.c (ASSERT): Likewise.
56846         * tests/test-rbtree_list.c (ASSERT): Likewise.
56847         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56848         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56849         * tests/test-round1.c (ASSERT): Likewise.
56850         * tests/test-roundf1.c (ASSERT): Likewise.
56851         * tests/test-roundl.c (ASSERT): Likewise.
56852         * tests/test-signbit.c (ASSERT): Likewise.
56853         * tests/test-sleep.c (ASSERT): Likewise.
56854         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56855         * tests/test-snprintf.c (ASSERT): Likewise.
56856         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56857         * tests/test-stat-time.c (ASSERT): Likewise.
56858         * tests/test-strcasestr.c (ASSERT): Likewise.
56859         * tests/test-strerror.c (ASSERT): Likewise.
56860         * tests/test-striconv.c (ASSERT): Likewise.
56861         * tests/test-striconveh.c (ASSERT): Likewise.
56862         * tests/test-striconveha.c (ASSERT): Likewise.
56863         * tests/test-strsignal.c (ASSERT): Likewise.
56864         * tests/test-strstr.c (ASSERT): Likewise.
56865         * tests/test-strtod.c (ASSERT): Likewise.
56866         * tests/test-trunc1.c (ASSERT): Likewise.
56867         * tests/test-trunc2.c (ASSERT): Likewise.
56868         * tests/test-truncf1.c (ASSERT): Likewise.
56869         * tests/test-truncf2.c (ASSERT): Likewise.
56870         * tests/test-truncl.c (ASSERT): Likewise.
56871         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56872         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56873         * tests/test-vasnprintf.c (ASSERT): Likewise.
56874         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56875         * tests/test-vasprintf.c (ASSERT): Likewise.
56876         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56877         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56878         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56879         * tests/test-vsnprintf.c (ASSERT): Likewise.
56880         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56881         * tests/test-wcwidth.c (ASSERT): Likewise.
56882         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56883         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56884         * tests/test-xvasprintf.c (ASSERT): Likewise.
56885         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56886         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56887         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56888         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56889         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56890         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56891         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56892         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56893         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56894         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56895         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56896         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56897         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56898         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56899         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56900         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56901         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56902         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56903         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56904         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56905         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56906         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56907         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56908         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56909         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56910         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56911         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56912         * tests/unictype/test-combining.c (ASSERT): Likewise.
56913         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56914         * tests/unictype/test-digit.c (ASSERT): Likewise.
56915         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56916         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56917         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56918         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56919         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56920         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56921         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56922         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56923         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56924         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56925         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56926         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56927         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56928         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56929         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56930         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56931         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56932         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56933         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56934         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56935         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56936         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56937         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56938         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56939         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56940         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56941         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56942         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56943         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56944         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56945         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56946         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56947         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56948         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56949         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56950         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56951         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56952         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56953         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56954         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56955         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56956         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56957         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56958         Reported by Eric Blake.
56959
56960 2008-04-11  Bruno Haible  <bruno@clisp.org>
56961
56962         * lib/wchar.in.h: Tweak comment.
56963
56964 2008-04-11  Bruno Haible  <bruno@clisp.org>
56965
56966         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56967         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56968         gl_COMMON.
56969         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56970
56971 2008-04-11  Bruno Haible  <bruno@clisp.org>
56972
56973         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56974
56975 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56976
56977         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56978         of attempting to use non-existing /dev/*random.  Based on patch
56979         from Adam Strzelecki <ono@java.pl> in
56980         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56981
56982 2008-04-08  Bruno Haible  <bruno@clisp.org>
56983
56984         Add tentative support for emx+gcc.
56985         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56986         * lib/fpurge.c (fpurge): Likewise.
56987         * lib/freadable.c (freadable): Likewise.
56988         * lib/freadahead.c (freadahead): Likewise.
56989         * lib/freading.c (freading): Likewise.
56990         * lib/freadptr.c (freadptr): Likewise.
56991         * lib/freadseek.c (freadptrinc): Likewise.
56992         * lib/fseeko.c (rpl_fseeko): Likewise.
56993         * lib/fseterr.c (fseterr): Likewise.
56994         * lib/fwritable.c (fwritable): Likewise.
56995         * lib/fwriting.c (fwriting): Likewise.
56996         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56997
56998 2008-04-09  Eric Blake  <ebb9@byu.net>
56999
57000         Avoid some autoconf warnings.
57001         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57002         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57003         * m4/afs.m4 (gl_AFS): Likewise.
57004         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57005         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57006         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57007         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57008         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57009         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57010         (AC_CHECK_DECLS_ONCE): Likewise.
57011         Rename file...
57012         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57013         gnulib-tool requires autoconf 2.59 or better.
57014         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57015
57016 2008-04-08  Eric Blake  <ebb9@byu.net>
57017
57018         Use 'git describe --match' if present (added in git 1.5.5).
57019         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57020         if possible.
57021
57022 2008-04-08  Bruno Haible  <bruno@clisp.org>
57023
57024         Add tentative support for OpenServer.
57025         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57026         _ptr, _cnt.
57027         * lib/fpurge.c (fpurge): Likewise.
57028         * lib/freadable.c (freadable): Likewise.
57029         * lib/freadahead.c (freadahead): Likewise.
57030         * lib/freading.c (freading): Likewise.
57031         * lib/freadptr.c (freadptr): Likewise.
57032         * lib/freadseek.c (freadptrinc): Likewise.
57033         * lib/fseeko.c (rpl_fseeko): Likewise.
57034         * lib/fseterr.c (fseterr): Likewise.
57035         * lib/fwritable.c (fwritable): Likewise.
57036         * lib/fwriting.c (fwriting): Likewise.
57037         Reported by Roger Cornelius <rac@tenzing.org> and
57038         Brian K. White <brian@aljex.com>.
57039
57040 2008-04-06  Jim Meyering  <meyering@redhat.com>
57041
57042         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57043
57044 2008-04-06  Bruno Haible  <bruno@clisp.org>
57045
57046         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57047         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57048         * tests/test-printf-posix.sh: Likewise.
57049         * tests/test-vfprintf-posix.sh: Likewise.
57050         * tests/test-vprintf-posix.sh: Likewise.
57051         * tests/test-xprintf-posix.sh: Likewise.
57052
57053 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57054
57055         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57056         hide error from 'ls', needed on OS/2.
57057         Report by Elbert Pol <elbert.pol@gmail.com>.
57058
57059 2008-04-04  Eric Blake  <ebb9@byu.net>
57060
57061         Make test-fseeko.c failures meaningful.
57062         * tests/test-fseeko.c: Print line number on failure.
57063         * tests/test-fseek.c: Likewise.
57064         Reported by Nelson H. F. Beebe.
57065
57066         Improve strtod bug detection check.
57067         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57068         required for Solaris 10.
57069         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57070
57071 2008-04-04  Bruno Haible  <bruno@clisp.org>
57072
57073         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57074         by m4/setenv.m4.
57075
57076 2008-04-03  Eric Blake  <ebb9@byu.net>
57077
57078         Ensure sane .version contents.
57079         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57080         version string.
57081         * build-aux/git-version-gen: Improve documentation.
57082
57083         Make GNU make output nicer.
57084         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57085         MAKECMDGOALS to enforce message for all command line targets.  Set
57086         srcdir for use in maint.mk.
57087
57088         Another maintainer tweak.
57089         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57090         a target that regenerates version.
57091
57092 2008-04-03  Jim Meyering  <meyering@redhat.com>
57093
57094         vc-list-files: don't cause coreutils "make po-check" failure
57095         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57096
57097 2008-04-03  Eric Blake  <ebb9@byu.net>
57098
57099         Allow VPATH usage of vc-list-files.
57100         * build-aux/vc-list-files (scriptversion): Add timestamp.
57101         (options): Add --help, --version, -C.
57102         (CVS): Support installed cvsu.
57103
57104 2008-04-02  Bruno Haible  <bruno@clisp.org>
57105
57106         Avoid some "statement with no effect" warnings from gcc.
57107         * tests/test-wctype.c (main): Explicitly ignore unused values.
57108         Reported by Jim Meyering.
57109
57110 2008-04-02  Jim Meyering  <meyering@redhat.com>
57111
57112         Avoid some warnings from "gcc -Wshadow".
57113         * tests/test-frexp.c (exp): Define to a different identifier.
57114         * tests/test-frexpl.c (exp): Likewise.
57115
57116 2008-04-03  Jim Meyering  <meyering@redhat.com>
57117
57118         bootstrap: remove dangling *.[ch] symlinks from lib
57119         * build-aux/bootstrap [dangling symlink removal]: Move find's
57120         -depth option to precede all others, to avoid a warning.
57121         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57122
57123 2008-04-02  Bruno Haible  <bruno@clisp.org>
57124
57125         Avoid some warnings from "gcc -Wshadow".
57126         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57127         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57128         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57129         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57130         Reported by Jim Meyering.
57131
57132 2008-04-01  Bruno Haible  <bruno@clisp.org>
57133
57134         Fix test to work on IRIX 6.5 with cc.
57135         * tests/test-math.c (numeric_equal): New function.
57136         (main): Use it.
57137
57138 2008-04-01  Bruno Haible  <bruno@clisp.org>
57139
57140         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57141
57142 2008-04-01  Bruno Haible  <bruno@clisp.org>
57143
57144         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57145         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57146         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57147         (Depends-on): Remove math.
57148
57149         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57150         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57151         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57152         (Depends-on): Remove math.
57153
57154         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57155         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57156         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57157         (Depends-on): Remove math.
57158         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57159         (Depends-on): Remove math.
57160
57161         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57162         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57163         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57164         (Depends-on): Remove math.
57165         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57166         (Depends-on): Remove math.
57167
57168         * tests/test-round1.c: Include nan.h.
57169         (main): Use NaNd instead of NAN.
57170         * modules/round-tests (Files): Add tests/nan.h.
57171
57172         * tests/test-trunc1.c: Include nan.h.
57173         (main): Use NaNd instead of NAN.
57174         * modules/trunc-tests (Files): Add tests/nan.h.
57175
57176         * tests/test-roundf1.c: Include nan.h.
57177         (main): Use NaNf instead of NAN.
57178         * modules/roundf-tests (Files): Add tests/nan.h.
57179
57180         * tests/test-truncf1.c: Include nan.h.
57181         (main): Use NaNf instead of NAN.
57182         * modules/truncf-tests (Files): Add tests/nan.h.
57183
57184         * tests/test-ceilf1.c: Include nan.h.
57185         (main): Use NaNf instead of NAN.
57186         * modules/ceilf-tests (Files): Add tests/nan.h.
57187
57188         * tests/test-floorf1.c: Include nan.h.
57189         (main): Use NaNf instead of NAN.
57190         * modules/floorf-tests (Files): Add tests/nan.h.
57191
57192         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57193         (main): Use NaNf instead of NAN.
57194         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57195
57196         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57197         (main): Use NaNd instead of NAN.
57198         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57199
57200         * tests/test-frexp.c: Include nan.h.
57201         (main): Use NaNd instead of NAN.
57202         * modules/frexp-tests (Files): Add tests/nan.h.
57203
57204         * lib/isnan.c: Don't include <math.h>.
57205         (FUNC): Don't use NAN macro.
57206         * modules/isnand-nolibm (Depends-on): Remove math.
57207         * modules/isnanf-nolibm (Depends-on): Remove math.
57208         * modules/isnanl (Depends-on): Remove math.
57209         * modules/isnanl-nolibm (Depends-on): Remove math.
57210
57211         * tests/nan.h: New file.
57212
57213 2008-04-01  Eric Blake  <ebb9@byu.net>
57214
57215         Fix typos.
57216         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57217         values to be the right type.
57218
57219         For now, cater to gnulib strtod inaccuracies.
57220         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57221         fractional results.  While not as nice from a QoI perspective, it
57222         is a quicker patch than correctly implementing decimal to binary
57223         rounding.
57224
57225 2008-03-31  Eric Blake  <ebb9@byu.net>
57226
57227         Guarantee a definition of NAN.
57228         * lib/math.in.h (NAN): Define if missing.
57229         * tests/test-math.c (main): Test it.
57230         * doc/posix-headers/math.texi (math.h): Document this.
57231         * lib/isnan.c (rpl_isnand): Use it.
57232         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57233         * tests/test-floorf1.c (NaN): Likewise.
57234         * tests/test-frexp.c (NaN): Likewise.
57235         * tests/test-isnand.c (NaN): Likewise.
57236         * tests/test-isnanf.c (NaN): Likewise.
57237         * tests/test-round1.c (NaN): Likewise.
57238         * tests/test-roundf1.c (NaN): Likewise.
57239         * tests/test-snprintf-posix.h (NaN): Likewise.
57240         * tests/test-sprintf-posix.h (NaN): Likewise.
57241         * tests/test-trunc1.c (NaN): Likewise.
57242         * tests/test-truncf1.c (NaN): Likewise.
57243         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57244         * tests/test-vasprintf-posix.c (NaN): Likewise.
57245         * modules/isnand-nolibm (Depends-on): Add math.
57246         * modules/isnanf-nolibm (Depends-on): Likewise.
57247         * modules/isnanl (Depends-on): Likewise.
57248         * modules/isnanl-nolibm (Depends-on): Likewise.
57249         * modules/snprintf-posix-tests (Depends-on): Likewise.
57250         * modules/sprintf-posix-tests (Depends-on): Likewise.
57251         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57252         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57253         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57254         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57255
57256 2008-03-31  Bruno Haible  <bruno@clisp.org>
57257
57258         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57259         * doc/posix-functions/strtod.texi: Likewise.
57260
57261 2008-03-31  Bruno Haible  <bruno@clisp.org>
57262
57263         * tests/test-strtod.c (main): Don't use C99 syntax.
57264
57265 2008-03-31  Bruno Haible  <bruno@clisp.org>
57266
57267         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57268         Reported by Eric Blake.
57269
57270 2008-03-31  Jim Meyering  <meyering@redhat.com>
57271
57272         Don't compare actual signbit return values.
57273         * tests/test-strtod.c (main): Rather, compare only their
57274         zero/non-zero nature.
57275
57276 2008-03-31  Eric Blake  <ebb9@byu.net>
57277
57278         More strtod documentation.
57279         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57280         failures as distinct bugs.
57281
57282 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57283
57284         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57285         Problem reported by Erik Benada in
57286         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57287
57288 2008-03-30  Bruno Haible  <bruno@clisp.org>
57289
57290         * tests/test-strtod.c: Add comments about which assertion fails on which
57291         platform.
57292         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57293
57294 2008-03-30  Eric Blake  <ebb9@byu.net>
57295
57296         Test signbit behavior on zeros.
57297         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57298         (test_signbitd, test_signbitl): Likewise.
57299
57300         More strtod touchups.
57301         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57302         sign of negative underflow, for now.  Use .5, not .1.
57303         * doc/posix-functions/strtod.texi (strtod): Mention these
57304         limitations.
57305         Reported by Jim Meyering.
57306
57307 2008-03-30  Bruno Haible  <bruno@clisp.org>
57308
57309         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57310         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57311
57312 2008-03-30  Bruno Haible  <bruno@clisp.org>
57313
57314         Avoid failure when attempting to return empty iconv results on some
57315         platforms.
57316         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57317         allocation, don't report ENOMEM when the resulting string is empty.
57318
57319 2008-03-30  Bruno Haible  <bruno@clisp.org>
57320
57321         Fix buffer overrun.
57322         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57323         Don't consider the width for tmp_length. Check count against tmp_length
57324         before doing the padding. Ensure enough allocation during padding.
57325
57326 2008-03-30  Eric Blake  <ebb9@byu.net>
57327
57328         strtod touchups.
57329         * lib/strtod.c (strtod): Avoid compiler warnings.
57330         Reported by Jim Meyering.
57331
57332 2008-03-30  Bruno Haible  <bruno@clisp.org>
57333
57334         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57335         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57336         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57337         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57338         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57339         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57340         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57341         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57342
57343         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57344         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57345         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57346         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57347         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57348         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57349         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57350         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57351
57352         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57353         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57354         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57355         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57356         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57357         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57358         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57359         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57360
57361         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57362         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57363
57364         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57365         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57366
57367         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57368         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57369
57370         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57371         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57372         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57373
57374         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57376         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57377
57378         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57379         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57380         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57381
57382         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57384         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57385
57386         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57387         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57388         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57389         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57390         (Depends-on): Add EOVERFLOW.
57391         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57392         (Depends-on): Add EOVERFLOW.
57393         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57394         (Depends-on): Add EOVERFLOW.
57395         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57396         (Depends-on): Add EOVERFLOW.
57397         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57398         (Depends-on): Add EOVERFLOW.
57399         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57400         (Depends-on): Add EOVERFLOW.
57401         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57402         (Depends-on): Add EOVERFLOW.
57403         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57404         (Depends-on): Add EOVERFLOW.
57405
57406         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57407         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57408         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57409
57410         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57411         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57412         * modules/snprintf (Depends-on): Add EOVERFLOW.
57413
57414         * lib/poll.c (EOVERFLOW): Remove fallback.
57415         * modules/poll (Depends-on): Add EOVERFLOW.
57416
57417         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57418         * modules/getugroups (Depends-on): Add EOVERFLOW.
57419
57420         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57421         * modules/getdelim (Depends-on): Add EOVERFLOW.
57422
57423         * lib/ftell.c (EOVERFLOW): Remove fallback.
57424         * modules/ftell (Depends-on): Add EOVERFLOW.
57425
57426         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57427         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57428         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57429
57430         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57431
57432         * modules/EOVERFLOW-tests: New file.
57433         * tests/test-EOVERFLOW.c: New file.
57434
57435         * modules/EOVERFLOW: New file.
57436         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57437
57438 2008-03-30  Bruno Haible  <bruno@clisp.org>
57439
57440         Fix bug introduced on 2007-06-10.
57441         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57442         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57443
57444 2008-03-30  Bruno Haible  <bruno@clisp.org>
57445
57446         Improve freadseek's efficiency after ungetc.
57447         * lib/freadseek.c: Include freadahead.h.
57448         (freadptrinc): New function, extracted from freadseek.
57449         (freadseek): Use it in a loop. Use freadahead to determine the number
57450         of loop iterations.
57451         * modules/freadseek (Depends-on): Add freadahead.
57452         (configure.ac): Require AC_C_INLINE.
57453
57454 2008-03-30  Bruno Haible  <bruno@clisp.org>
57455
57456         * lib/freadseek.c (freadseek): Don't ignore the return value of
57457         freadptr.
57458
57459 2008-03-29  Eric Blake  <ebb9@byu.net>
57460
57461         Add hex float support.
57462         * modules/strtod (Depends-on): Add c-ctype.
57463         (Link): Mention POW_LIB.
57464         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57465         whitespace between 'e' and exponent.
57466         * tests/test-strtod.c (main): Enable hex float tests.
57467         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57468         now provides.
57469
57470         Document various strtod bugs, with some fixes.
57471         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57472         "-0x", "inf", "nan", and hex constants.
57473         * doc/posix-functions/atof.texi (atof): Likewise.
57474         * modules/stdlib (Makefile.am): Support strtod.
57475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57476         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57477         detect additional strtod bugs.
57478         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57479         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57480         bool where appropriate.  Parse 'inf' and 'nan'.
57481         * tests/test-strtod.c: New file.
57482         * modules/strtod (Depends-on): Add stdbool, stdlib.
57483         (configure.ac): Turn on module indicator.
57484         * modules/strtod-tests: New module.
57485
57486 2008-03-29  Eric Blake  <ebb9@byu.net>
57487
57488         Fix ftell on mingw.
57489         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57490         * modules/ftell-tests (Depends-on): Add binary-io.
57491         * modules/ftello-tests (Depends-on): Likewise.
57492         * tests/test-ftell.c (main): Enhance test to cover behavior after
57493         ungetc.  Enforce binary mode.
57494         * tests/test-ftello.c (main): Likewise.
57495
57496         Pass test-freadseek on cygwin.
57497         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57498         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57499         ungetc buffer.
57500
57501         * tests/test-fflush2.c (main): Fix typo.
57502
57503 2008-03-29  Bruno Haible  <bruno@clisp.org>
57504
57505         * tests/test-fflush2.c (main): Temporarily disable the contents of
57506         this test.
57507         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57508         Reported by Eric Blake.
57509
57510 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57511
57512         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57513         (GC_SHA224_DIGEST_SIZE): Add.
57514
57515         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57516         (gc_hash_digest_length): Likewise.
57517         (gc_hash_buffer): Likewise.
57518
57519 2008-03-25  Bruno Haible  <bruno@clisp.org>
57520
57521         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57522         detail which gettext release to use.
57523         Reported by Simon Josefsson.
57524
57525 2008-03-26  Jim Meyering  <meyering@redhat.com>
57526
57527         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57528         * modules/gnumakefile (clean-GNUmakefile): Also, use
57529         test ... && ... || : syntax rather than if-then ... fi.
57530
57531         gnumakefile: Don't double-quote-expand $(VPATH) value.
57532         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57533
57534 2008-03-24  Eric Blake  <ebb9@byu.net>
57535
57536         Alter GNUmakefile to install into top directory.
57537         * modules/maintainer-makefile: Split, and add dependency...
57538         * modules/gnumakefile: to this new module.
57539         * build-aux/GNUmakefile: Move...
57540         * top/GNUmakefile: ...here.
57541         * build-aux/maint.mk: Move...
57542         * top/maint.mk: ...here.
57543         * MODULES.html.sh (Support for maintaining...): Document new
57544         module.
57545
57546 2008-03-23  Bruno Haible  <bruno@clisp.org>
57547
57548         * gnulib-tool: New options --vc-files, --no-vc-files.
57549         (func_usage): Document them.
57550         (vc_files): New variable.
57551         (func_import): Consider vc_files.
57552         (func_create_testdir): Set vc_files to empty.
57553         Suggested by Jim Meyering and Karl Berry.
57554
57555 2008-03-23  Bruno Haible  <bruno@clisp.org>
57556
57557         Fix regex compilation error on HP-UX 11.
57558         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57559         * modules/regex (Files): Add m4/mbstate_t.m4.
57560         Reported by Ton Voon <ton.voon@altinity.com>.
57561
57562 2008-03-23  Bruno Haible  <bruno@clisp.org>
57563
57564         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57565
57566 2008-03-23  Eric Blake  <ebb9@byu.net>
57567             Bruno Haible  <bruno@clisp.org>
57568
57569         Install files from top/ in the destination directory.
57570         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57571         augmentation also for the files from top/.
57572         (func_import, func_create_testdir): Rewrite file names:
57573         top/filename -> filename.
57574
57575 2008-03-23  Bruno Haible  <bruno@clisp.org>
57576
57577         Tweak "gnulib --version" output.
57578         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57579
57580 2008-03-23  Bruno Haible  <bruno@clisp.org>
57581
57582         Tweak "gnulib --version" output.
57583         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57584         rather than contents of ChangeLog, when possible.
57585
57586 2008-03-21  Eric Blake  <ebb9@byu.net>
57587
57588         More --version tweaks.
57589         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57590         date of last ChangeLog entry.
57591
57592 2008-03-21  Jim Meyering  <meyering@redhat.com>
57593
57594         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57595
57596 2008-03-20  Eric Blake  <ebb9@byu.net>
57597
57598         VPATH fix.
57599         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57600
57601 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57602
57603         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57604         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57605
57606 2008-03-20  Eric Blake  <ebb9@byu.net>
57607
57608         Sync GNUmakefile with coreutils.
57609         * build-aux/GNUmakefile (have-Makefile): Rename...
57610         (_have-Makefile): ...to this, for namespace consideration.
57611         (GNUmakefile.cfg): Include, if present.
57612         (_autoreconf): Define a default.
57613         (_is-dist-target): New rule for rebuilds to pick up intra-release
57614         version.
57615         (maint-cfg.mk): Rename...
57616         (cfg.mk): ...to this.
57617
57618 2008-03-18  Jim Meyering  <meyering@redhat.com>
57619
57620         New script and module: mktempd
57621         * MODULES.html.sh (maint+release support): Add mktempd.
57622         * build-aux/mktempd: New file.
57623         * modules/mktempd: New file.
57624
57625 2008-03-15  Jim Meyering  <meyering@redhat.com>
57626
57627         Undo last change.
57628         * lib/sha1.c, lib/md5.c: 63 != ~63.
57629         Reported by Andreas Schwab.
57630
57631         sha1.c, md5.c: Hoist a redundant expression.
57632         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57633         "ctx->buflen" only once, before calling *_process_block.
57634         * lib/md5.c (md5_process_bytes): Likewise.
57635
57636 2008-03-14  Eric Blake  <ebb9@byu.net>
57637
57638         Bump copyright year in files generated by gnulib-tool.
57639         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57640         gnulib-tool, rather than hard-coding it.
57641
57642         Fix 'gnulib-tool --version' output to work with git.
57643         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57644         (startup): ...here.
57645         (func_version): Use it to invoke git-version-gen, rather than
57646         relying on CVS keyword expansion.  Modernize wording.
57647         (cvsdatestamp, last_checkin_date, version): Kill unused
57648         variables.
57649
57650 2008-03-12  Jim Meyering  <meyering@redhat.com>
57651
57652         Recognize optional cast of the argument to free.
57653         * build-aux/useless-if-before-free: Update regexps.
57654
57655         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57656
57657 2008-03-11  Bruno Haible  <bruno@clisp.org>
57658
57659         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57660         by a single package.
57661         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57662         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57663         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57664         Reported by Sam Steingold <sds@gnu.org>.
57665
57666 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57667
57668         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57669         repositories.
57670
57671 2008-03-11  Bruno Haible  <bruno@clisp.org>
57672
57673         Avoid conflicts between local macro definitions.
57674         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57675         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57676
57677 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57678             Bruno Haible  <bruno@clisp.org>
57679
57680         Make va_copy work with some version of xlc on AIX 5.1.
57681         * lib/stdarg.in.h: New file.
57682         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57683         On AIX, use a <stdarg.h> file substitute.
57684         * modules/stdarg (Files): Add lib/stdarg.in.h.
57685         (Depends-on): Add include_next.
57686         (Makefile.am): Build a stdarg.h substitute if requested.
57687         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57688
57689 2008-03-10  Bruno Haible  <bruno@clisp.org>
57690
57691         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57692         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57693         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57694
57695 2008-03-10  Bruno Haible  <bruno@clisp.org>
57696
57697         * modules/stdlib (Depends-on): Add include_next, remove
57698         absolute-header.
57699
57700 2008-03-09  Bruno Haible  <bruno@clisp.org>
57701
57702         * lib/freadahead.h (freadahead): Document more precisely.
57703         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57704         the sum of both buffer sizes.
57705         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57706         * NEWS: Document the change.
57707
57708 2008-03-09  Bruno Haible  <bruno@clisp.org>
57709
57710         Extend freadptr to return also the buffer size.
57711         * lib/freadptr.h (freadptr): Add sizep argument.
57712         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57713         (freadptr): Add sizep argument. Determine buffer size like freadahead
57714         does.
57715         * tests/test-freadptr.c: Don't include freadahead.h.
57716         (main): Adapt for new calling convention of freadptr.
57717         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57718         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57719         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57720         tests/test-freadptr2.sh.
57721         (Depends): Remove freadahead.
57722         (TESTS): Add test-freadptr2.sh.
57723         (check_PROGRAMS): Add test-freadptr2.
57724
57725 2008-03-09  Bruno Haible  <bruno@clisp.org>
57726
57727         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57728         Report and solution by Simon Josefsson.
57729
57730 2008-03-06  Bruno Haible  <bruno@clisp.org>
57731
57732         Make fflush after ungetc work on BSD platforms.
57733         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57734         * tests/test-fflush2.c: New file.
57735         * tests/test-fflush2.sh: New file.
57736         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57737         tests/test-fflush2.c.
57738         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57739         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57740
57741 2008-03-06  Eric Blake  <ebb9@byu.net>
57742
57743         Likewise for ftello.
57744         * modules/ftello (Dependencies): Add extensions.
57745         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57746
57747 2008-03-06  Bruno Haible  <bruno@clisp.org>
57748
57749         * modules/fseeko (Dependencies): Add extensions.
57750         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57751         Needed on glibc systems.
57752
57753 2008-03-06  Bruno Haible  <bruno@clisp.org>
57754
57755         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57756         email address.
57757         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57758
57759 2008-03-06  Bruno Haible  <bruno@clisp.org>
57760
57761         * users.txt: Add libgnupdf.
57762
57763 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57764
57765         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57766         (Header File Substitutes, Function Substitutes,
57767         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57768         (Build robot for gnulib): Fix typo.
57769
57770 2008-03-06  Bruno Haible  <bruno@clisp.org>
57771
57772         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57773         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57774
57775 2008-03-06  Bruno Haible  <bruno@clisp.org>
57776
57777         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57778         * doc/gnulib.texi: Include it.
57779
57780 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57781
57782         * modules/func (License): Change license to unlimited; there was
57783         no LGPL parts in the module anyway.
57784
57785 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57786
57787         * modules/__func__: Renamed to modules/func.
57788         * modules/__func__-tests: Renamed to modules/func-tests.
57789         * tests/test-__func__.c: Renamed to tests/test-func.c.
57790         * m4/__func__.m4: Renamed to m4/func.m4.
57791         * doc/gnulib.texi (__func__): Section renamed to func.
57792         Suggested by Eric Blake <ebb9@byu.net>.
57793
57794 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57795
57796         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57797         about __func__.  Make example self-contained.  Suggested by Eric
57798         Blake <ebb9@byu.net>.
57799
57800         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57801         Suggested by Eric Blake <ebb9@byu.net>.
57802
57803 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57804
57805         * modules/__func__: New file.
57806         * modules/__func__-tests: New file.
57807         * tests/test-__func__.c: New file.
57808         * m4/__func__.m4: New file.
57809         * doc/gnulib.texi (__func__): Document __func__ module.
57810
57811 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57812
57813         * modules/byteswap (License): Re-license as LGPLv2+.
57814
57815 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57816
57817         * doc/Makefile: Add pdf target.
57818
57819 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57820
57821         * modules/inline (License): Use 'unlimited', since there are only
57822         *.m4 files in this module.
57823
57824 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57825             Bruno Haible  <bruno@clisp.org>
57826
57827         Add support for HP C 7.1 on OpenVMS 8.3.
57828         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57829
57830 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57831
57832         Update VMS specifics.
57833         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57834
57835 2008-03-02  Jim Meyering  <meyering@redhat.com>
57836
57837         Remove the last dependency on the "free" module.
57838         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57839         Reported by Bob Proulx.
57840
57841         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57842
57843         Remove useless "if" tests before free.  Deprecate "free" module.
57844         * doc/posix-functions/free.texi: Mention that this
57845         module is no longer useful.
57846         * modules/free (Notice): Say this module is obsolete.
57847         * modules/readutmp (Depends-on): Remove free.
57848         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57849         * lib/putenv.c (putenv): Likewise.
57850         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57851         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57852         * tests/test-c-strcasestr.c (main): Likewise.
57853         * tests/test-c-strstr.c (main): Likewise.
57854         * tests/test-mbscasestr1.c (main): Likewise.
57855         * tests/test-mbscasestr2.c (main): Likewise.
57856         * tests/test-mbsstr1.c (main): Likewise.
57857         * tests/test-mbsstr2.c (main): Likewise.
57858         * tests/test-memmem.c (main): Likewise.
57859         * tests/test-strcasestr.c (main): Likewise.
57860         * tests/test-striconv.c (main): Likewise.
57861         * tests/test-striconveh.c (main): Likewise.
57862         * tests/test-striconveha.c (main): Likewise.
57863         * tests/test-strstr.c (main): Likewise.
57864
57865         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57866
57867         bootstrap: sync from coreutils again
57868         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57869
57870 2008-03-01  Jim Meyering  <meyering@redhat.com>
57871
57872         bootstrap: sync from coreutils
57873         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57874         also when the target doesn't exist.
57875
57876 2008-03-01  Eric Blake  <ebb9@byu.net>
57877
57878         Fix bugs in last patch.
57879         * lib/memchr2.c (memchr2): Fix typo.
57880         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57881         extension.
57882         Reported by Bruce Korb.
57883
57884         New module 'memchr2'.
57885         * modules/memchr2: New file.
57886         * modules/memchr2-tests: Likewise.
57887         * lib/memchr2.h: Likewise.
57888         * lib/memchr2.c: Likewise, based on memchr.c.
57889         * tests/test-memchr2.c: New test.
57890         * MODULES.html.sh (String handling): Add memchr2.
57891
57892 2008-02-29  Bruno Haible  <bruno@clisp.org>
57893
57894         * modules/freadseek-tests: New file.
57895         * tests/test-freadseek.sh: New file.
57896         * tests/test-freadseek.c: New file.
57897
57898         New module 'freadseek'.
57899         * modules/freadseek: New file.
57900         * lib/freadseek.h: New file.
57901         * lib/freadseek.c: New file.
57902         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57903
57904 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57905
57906         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57907         wydawca.
57908
57909         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57910         program_invocation_name and program_invocation_short_name are
57911         present.
57912
57913 2008-02-28  Bruno Haible  <bruno@clisp.org>
57914
57915         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57916         * tests/test-freadptr.sh: Also test non-seekable stdin.
57917
57918 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57919
57920         * build-aux/bootstrap (source_base, m4_base)
57921         (doc_base, tests_base): New variables.
57922         (gnulib_tool_options): Do not hardcode base directories, use
57923         the above variables instead.
57924
57925 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57926
57927         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57928
57929 2008-02-28  Bruno Haible  <bruno@clisp.org>
57930
57931         * modules/freadptr-tests: New file.
57932         * tests/test-freadptr.sh: New file.
57933         * tests/test-freadptr.c: New file.
57934
57935         New module 'freadptr'.
57936         * modules/freadptr: New file.
57937         * lib/freadptr.h: New file.
57938         * lib/freadptr.c: New file.
57939         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57940
57941 2008-02-26  Karl Berry  <karl@freefriends.org>
57942
57943         Sync from Libtool:
57944         * libltdl/argz.c (argz_add, argz_count): New functions.
57945         * libltdl/argz.in.h: Declare them.
57946         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57947
57948 2008-02-22  Bruno Haible  <bruno@clisp.org>
57949
57950         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57951         is a pointer type.  Needed for HP-UX 10.
57952         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57953         * doc/posix-functions/gmtime_r.texi: Likewise.
57954         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57955
57956 2008-02-24  Bruno Haible  <bruno@clisp.org>
57957
57958         * modules/environ-tests: New file.
57959         * tests/test-environ.c: New file.
57960
57961         New module 'environ'.
57962         * modules/environ: New file.
57963         * lib/unistd.in.h (environ): New declaration.
57964         * m4/environ.m4: New file.
57965         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57966         after use.
57967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57968         HAVE_DECL_ENVIRON.
57969         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57970         HAVE_DECL_ENVIRON.
57971         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57972         wrong claim that 'environ' is missing on some systems.
57973         * modules/execute (Depends-on): Add environ.
57974         * lib/execute.c (environ): Remove fallback declaration.
57975         * modules/pipe (Depends-on): Add environ.
57976         * lib/pipe.c (environ): Remove fallback declaration.
57977         * modules/setenv (Depends-on): Add environ.
57978         * lib/setenv.c (environ): Remove fallback declaration.
57979         * modules/unsetenv (Depends-on): Add environ.
57980         * lib/unsetenv.c (environ): Remove fallback declaration.
57981         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57982         m4/environ.m4.
57983         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57984         (gl_PREREQ_UNSETENV): Likewise.
57985
57986 2008-02-24  Bruno Haible  <bruno@clisp.org>
57987
57988         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57989
57990 2008-02-20  Bob Proulx  <bob@proulx.com>
57991
57992         Enable use of older two part flavor 'git describe'.
57993         * build-aux/git-version-gen: If using the older two part flavor of
57994         git version then recreate the third part now present in the
57995         newer three part flavor of git describe.
57996
57997 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57998
57999         * lib/fts.c (fts_build): Typo correction to comment.
58000
58001 2008-02-17  Bruno Haible  <bruno@clisp.org>
58002
58003         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58004         generating no-op conflicts.
58005
58006 2008-02-17  Bruno Haible  <bruno@clisp.org>
58007
58008         Speed up by 10%.
58009         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58010         result_entries, rather than an index-based loop.
58011
58012 2008-02-17  Bruno Haible  <bruno@clisp.org>
58013
58014         Speed up by 25%.
58015         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58016         'hashcode_cached'.
58017         (entry_create): New function.
58018         (entry_hashcode): Use the cached hashcode if possible.
58019         (read_changelog_file, try_split_merged_entry): Use entry_create.
58020
58021 2008-02-17  Bruno Haible  <bruno@clisp.org>
58022
58023         Speed up from O(n^2) to O(n) for long ChangeLog files.
58024         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58025         (read_changelog_file): Change implementation of entries_reversed list
58026         to rbtreehash.
58027         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58028
58029 2008-02-17  Bruno Haible  <bruno@clisp.org>
58030
58031         New option --split-merged-entry.
58032         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58033         (find_paragraph_end, try_split_merged_entry): New functions.
58034         (long_options): Add option --split-merged-entry.
58035         (usage): Document option --split-merged-entry.
58036         (main): Implement option --split-merged-entry.
58037         Reported by Eric Blake.
58038
58039 2008-02-17  Bruno Haible  <bruno@clisp.org>
58040
58041         * lib/git-merge-changelog.c: Include c-strstr.h.
58042         (main): Support the "git pull --rebase" situation.
58043         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58044         Reported by Eric Blake.
58045
58046 2008-02-16  Eric Blake  <ebb9@byu.net>
58047
58048         Avoid doubling \ in common case of "c-maybe" quoting style.
58049         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58050         eliding outer quotes.
58051         * lib/quotearg.h: Document this.
58052         * tests/test-quotearg.c (result_strings, inputs, results_g)
58053         (flag_results, locale_results): Test it by adding a new string to
58054         each test group.
58055         (compare_strings): Test new string.
58056
58057 2008-02-13  Eric Blake  <ebb9@byu.net>
58058
58059         Avoid trigraph quoting in default output.
58060         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58061         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58062         unless explicitly requested.
58063         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58064
58065 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58066
58067         Don't rely on signed integer overflowing to negative value.
58068         * lib/getugroups.c (getugroups): Include <limits.h>.
58069         Instead, compare against INT_MAX, and increment only if the test passes.
58070
58071 2008-02-13  Jim Meyering  <meyering@redhat.com>
58072         and Eric Blake  <ebb9@byu.net>
58073
58074         Avoid shadowing warning and compile errors on Linux.
58075         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58076         forwarding macros on Linux.
58077         (dcgettext): Define a stub, for Linux.
58078         (results_g, main): Avoid warnings.
58079
58080 2008-02-12  Eric Blake  <ebb9@byu.net>
58081
58082         Silence warning in last patch.
58083         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58084
58085         Quotearg part 4: add tests, fix c-maybe colon quoting.
58086         * lib/quotearg.h: Improve documentation.
58087         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58088         escapes when adding outer quotes.  When quoting trigraphs, use
58089         valid C notation.  When quoting NUL, omit extra characters if next
58090         character is not digit.  Alter prototype.
58091         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58092         callers.
58093         * modules/quotearg-tests: New module.
58094         * tests/test-quotearg.c: New test.
58095
58096 2008-02-07  Eric Blake  <ebb9@byu.net>
58097
58098         Quotearg part 3: add flag to control outer quote elision.
58099         * lib/quotearg.h (c_maybe_quoting_style): New style.
58100         (enum quoting_flags): Better documentation of flags.
58101         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58102         c-maybe style.
58103         (quotearg_buffer_restyled): Handle new flag to elide outer
58104         quotes.
58105
58106         Quotearg part 2: add flag that can control NUL elision.
58107         * lib/quotearg.h (set_quoting_flags): New prototype.
58108         * lib/quotearg.c (struct quoting_options): Add flag field.
58109         (set_quoting_flags): New function.
58110         (quotearg_buffer_restyled): Add flags parameter.
58111         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58112         (quotearg_n_options): Set the flag, since length cannot be
58113         returned.
58114         (quoting_options_from_style): Default flags correctly.
58115
58116         Quotearg part 1: more wrappers, restore quotearg_char state.
58117         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58118         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58119         (quotearg_colon_mem): New wrappers.
58120         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58121         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58122         functions.
58123         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58124         (quotearg_colon_mem): New functions.
58125
58126 2008-02-11  Bruno Haible  <bruno@clisp.org>
58127
58128         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58129         library in the current directory: it does not work with parallel make.
58130         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58131
58132 2008-02-11  Bruno Haible  <bruno@clisp.org>
58133
58134         * .gitattributes: New file.
58135
58136 2008-02-11  Jim Meyering  <meyering@redhat.com>
58137
58138         useless-if-before-free: Fix reversed exit values.
58139         * build-aux/useless-if-before-free: Use correct values
58140         for EXIT_MATCH and EXIT_NO_MATCH.
58141
58142         * build-aux/useless-if-before-free: Close stdout carefully.
58143
58144 2008-02-10  Bruno Haible  <bruno@clisp.org>
58145
58146         New module 'git-merge-changelog'.
58147         * modules/git-merge-changelog: New file.
58148         * lib/git-merge-changelog.c: New file.
58149
58150 2008-02-10  Jim Meyering  <meyering@redhat.com>
58151
58152         useless-if-before-free: New option: --list (-l).
58153
58154         useless-if-before-free: Don't exit immediately upon open failure.
58155         * build-aux/useless-if-before-free: Exit 2 for errors.
58156         Upon failure to open a file, don't exit immediately.
58157         Rather, just warn and continue with any remaining files.
58158
58159 2008-02-10  Bruno Haible  <bruno@clisp.org>
58160
58161         New abstract list operation 'node_set_value'.
58162         * lib/gl_list.h (gl_list_node_set_value): New function.
58163         (struct gl_list_implementation): New field node_set_value.
58164         * lib/gl_list.c (gl_list_node_set_value): New function.
58165         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58166         (gl_array_list_implementation): Update.
58167         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58168         (gl_carray_list_implementation): Update.
58169         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58170         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58171         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58172         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58173         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58174         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58175         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58176         Update.
58177         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58178         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58179         (gl_sublist_list_implementation): Update.
58180
58181 2008-02-10  Bruno Haible  <bruno@clisp.org>
58182
58183         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58184         Needed when ELEMENT is #defined to 'some_type *'.
58185
58186 2008-02-10  Jim Meyering  <meyering@redhat.com>
58187
58188         New script and module: useless-if-before-free
58189         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58190         * build-aux/useless-if-before-free: New file.
58191         * modules/useless-if-before-free: New file.
58192
58193         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58194
58195         xstrtol_error: Fix typo.
58196         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58197         s/exit_failure/exit_status/.
58198
58199 2008-02-09  Jim Meyering  <meyering@redhat.com>
58200
58201         New script and module: gitlog-to-changelog
58202         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58203         * modules/gitlog-to-changelog: New file.
58204         * build-aux/gitlog-to-changelog: New file.
58205
58206 2008-02-08  Jim Meyering  <meyering@redhat.com>
58207
58208         Avoid two "parameter unused" warnings.
58209         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58210         Mark "st" as used.
58211
58212         Use "git COMMAND", not "git-COMMAND".
58213         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58214         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58215         * build-aux/git-version-gen: Use "git status", not "git-status".
58216
58217 2008-02-07  Bruno Haible  <bruno@clisp.org>
58218
58219         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58220         Avoids a crash on Windows Vista.
58221         Reported by Adam Strzelecki <ono@java.pl> via
58222         Simon Josefsson <simon@josefsson.org>.
58223
58224 2008-02-06  Bruno Haible  <bruno@clisp.org>
58225
58226         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58227         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58228         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58230         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58231         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58232         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58233         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58234         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58235         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58236         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58237         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58238         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58239         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58240         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58241         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58242         left-adjust flag.
58243         * tests/test-snprintf-posix.h (test_function): Likewise.
58244         * tests/test-sprintf-posix.h (test_function): Likewise.
58245         * tests/test-vasprintf-posix.c (test_function): Likewise.
58246         * doc/posix-functions/fprintf.texi: Update.
58247         * doc/posix-functions/printf.texi: Update.
58248         * doc/posix-functions/snprintf.texi: Update.
58249         * doc/posix-functions/sprintf.texi: Update.
58250         * doc/posix-functions/vfprintf.texi: Update.
58251         * doc/posix-functions/vprintf.texi: Update.
58252         * doc/posix-functions/vsnprintf.texi: Update.
58253         * doc/posix-functions/vsprintf.texi: Update.
58254         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58255
58256 2008-02-06  Bruno Haible  <bruno@clisp.org>
58257
58258         Fix bug introduced on 2008-01-26.
58259         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58260
58261 2008-02-06  Bruno Haible  <bruno@clisp.org>
58262
58263         Fix bug introduced on 2007-06-10.
58264         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58265         !NEED_PRINTF_FLAG_ZERO.
58266
58267 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58268
58269         getloadavg: use libperfstat on AIX5
58270         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58271
58272 2008-02-03  Bruno Haible  <bruno@clisp.org>
58273
58274         * lib/diffseq.h: Add comments about required #includes.
58275         Reported by Michael Biggs <gnulib@doubleplum.net>.
58276
58277 2008-02-01  Bruno Haible  <bruno@clisp.org>
58278
58279         * users.txt: Add gnuit.
58280
58281 2008-01-31  Bruno Haible  <bruno@clisp.org>
58282
58283         * lib/md4.c (set_uint32): Mark as inline.
58284         * lib/md5.c (set_uint32): Likewise.
58285         * lib/sha1.c (set_uint32): Likewise.
58286         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58287         * m4/md5.m4 (gl_MD5): Likewise.
58288         * m4/sha1.m4 (gl_SHA1): Likewise.
58289
58290 2008-01-31  Jim Meyering  <meyering@redhat.com>
58291
58292         Use "sizeof VAR", rather than a literal "4".
58293         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58294         * lib/md4.c (md4_read_ctx): Likewise.
58295         * lib/sha1.c (sha1_read_ctx): Likewise.
58296
58297 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58298
58299         * tests/test-sha1.c: New file, based on test-md5.c.
58300
58301         * modules/crypto/sha1-tests: New file.
58302
58303 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58304
58305         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58306
58307 2008-01-31  Jim Meyering  <meyering@redhat.com>
58308
58309         Prefer "sizeof v" over the equivalent "4".
58310         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58311         * lib/md5.c (set_uint32): Likewise.
58312         * lib/sha1.c (set_uint32): Likewise.
58313
58314 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58315
58316         * lib/sha1.c (set_uint32): Mark function as static.
58317
58318 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58319
58320         md2: clarify comments to say that alignment is not required.
58321         * lib/md2.h: Remove warning about alignment in comment.
58322         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58323         never been required.
58324
58325 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58326
58327         md4: adapt alignment constraint fix from sha1.
58328         * lib/md4.c (set_uint32): New function, from sha1.c
58329         (md4_read_ctx): Use it.
58330         (md4_finish_ctx): Doc fix.
58331         * lib/md4.h: Doc fix.
58332
58333 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58334
58335         md5: adapt alignment constraint fix from sha1.
58336         * lib/md5.c (set_uint32): New function, from sha1.c
58337         (md5_read_ctx): Use it.
58338         (md5_finish_ctx): Doc fix.
58339         * lib/md5.h: Doc fix.
58340
58341 2008-01-30  Peter Palfrader  <weasel@debian.org>
58342
58343         sha1: remove the result buffer alignment constraint
58344         * lib/sha1.c (set_uint32): New function.
58345         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58346         constraint.
58347         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58348         * lib/sha1.h: Likewise.
58349
58350 2008-01-30  Andreas Schwab  <schwab@suse.de>
58351             Bruno Haible  <bruno@clisp.org>
58352
58353         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58354         correct definition of LDBL_MIN_EXP.
58355
58356 2008-01-30  Karl Berry  <karl@gnu.org>
58357
58358         * config/srclist-update: try to preserve x bit on updates.
58359         * config/srclistvars.sh: update for karl.
58360
58361 2008-01-29  Jim Meyering  <meyering@redhat.com>
58362
58363         vasnprintf.c: Avoid warning about unused label
58364         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58365         "overflow" label definition and associated code with the
58366         same cpp condition that guards the sole use of that label.
58367
58368 2008-01-26  Bruno Haible  <bruno@clisp.org>
58369
58370         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58371         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58372         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58373         * lib/isnanl-nolibm.h (isnanl): Likewise.
58374         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58375
58376 2008-01-26  Bruno Haible  <bruno@clisp.org>
58377
58378         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58379         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58380
58381 2008-01-26  Bruno Haible  <bruno@clisp.org>
58382
58383         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58384         GCC >= 4.0 built-in.
58385         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58386
58387 2008-01-26  Bruno Haible  <bruno@clisp.org>
58388
58389         Rename isnan, applicable to 'double' only, to isnand.
58390         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58391         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58392         (configure.ac): Update.
58393         (Include): Replace "isnan.h" with "isnand.h".
58394         * m4/isnand.m4: Renamed from m4/isnan.m4.
58395         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58396         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58397         instead of isnan.c.
58398         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58399         instead of HAVE_ISNAN_IN_LIBC.
58400         (isnand): Renamed from isnan.
58401         * lib/isnand.c: New file.
58402         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58403         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58404         (Makefile.am): Update.
58405         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58406         Include isnand.h instead of isnan.h.
58407         (main): Test isnand instead of isnan.
58408         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58409         isnan-nolibm.
58410         * modules/frexp (Depends-on): Likewise.
58411         * modules/frexp-tests (Depends-on): Likewise.
58412         * modules/frexp-nolibm (Depends-on): Likewise.
58413         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58414         * modules/isfinite (Depends-on): Likewise.
58415         * modules/round-tests (Depends-on): Likewise.
58416         * modules/signbit (Depends-on): Likewise.
58417         * modules/signbit-tests (Depends-on): Likewise.
58418         * modules/snprintf-posix (Depends-on): Likewise.
58419         * modules/sprintf-posix (Depends-on): Likewise.
58420         * modules/trunc-tests (Depends-on): Likewise.
58421         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58422         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58423         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58424         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58425         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58426         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58427         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58428         * modules/vasnprintf-posix (Depends-on): Likewise.
58429         * modules/vasprintf-posix (Depends-on): Likewise.
58430         * modules/vfprintf-posix (Depends-on): Likewise.
58431         * modules/vsnprintf-posix (Depends-on): Likewise.
58432         * modules/vsprintf-posix (Depends-on): Likewise.
58433         * lib/frexp.c: Include isnand.h instead of isnan.h.
58434         (ISNAN): Set to isnand instead of isnan.
58435         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58436         (gl_isfinited): Use isnand instead of isnan.
58437         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58438         (gl_signbitd): Use isnand instead of isnan.
58439         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58440         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58441         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58442         (main): Use isnand instead of isnan.
58443         * tests/test-round1.c: Include isnand.h.
58444         (main): Use isnand instead of isnan.
58445         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58446         (ISNAN): Set to isnand instead of isnan.
58447         * tests/test-trunc1.c: Include isnand.h.
58448         (main): Use isnand instead of isnan.
58449         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58450         (equal): Use isnand instead of isnan.
58451         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58452         isnand-nolibm.
58453         * NEWS: Mention the change.
58454
58455 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58456             Bruno Haible  <bruno@clisp.org>
58457
58458         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58459         the GCC builtins for signbits are present and set
58460         REPLACE_SIGNBIT_USING_GCC if so.
58461         * lib/math.in.h (signbit): Define using GCC builtins if
58462         REPLACE_SIGNBIT_USING_GCC is set.
58463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58464         REPLACE_SIGNBIT_USING_GCC.
58465         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58466
58467 2008-01-25  Jim Meyering  <meyering@redhat.com>
58468
58469         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58470         * lib/poll.c: Include <config.h>, not "config.h".
58471         * tests/test-getaddrinfo.c: Likewise.
58472
58473 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58474
58475         * modules/sockets-tests: New file.
58476
58477 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58478
58479         * modules/sockets: New module, can be used to call WSA_Startup and
58480         WSA_Cleanup when needed.
58481
58482         * lib/sockets.h, lib/sockets.c: New files.
58483
58484         * m4/sockets.m4: New file.
58485
58486         * tests/test-sockets.c: New file.
58487
58488 2008-01-19  Bruno Haible  <bruno@clisp.org>
58489
58490         * doc/posix-headers: Renamed from doc/headers.
58491         * doc/posix-functions: Renamed from doc/functions.
58492         * doc/gnulib.texi: Update.
58493
58494 2008-01-19  Bruno Haible  <bruno@clisp.org>
58495
58496         * doc/glibc-functions/strcasestr.texi: Include contents of
58497         doc/functions/strcasestr.texi, fixing the list of platforms.
58498         * doc/functions/strcasestr.texi: Remove file.
58499
58500 2008-01-19  Bruno Haible  <bruno@clisp.org>
58501
58502         * doc/glibc-functions/memmem.texi: Include contents of
58503         doc/functions/memmem.texi.
58504         * doc/functions/memmem.texi: Remove file.
58505
58506 2008-01-18  Bruno Haible  <bruno@clisp.org>
58507
58508         * doc/glibc-functions/*.texi: New files.
58509         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58510         to use the new files.
58511
58512 2008-01-17  Bruno Haible  <bruno@clisp.org>
58513
58514         * tests/test-gethostname.c (main): Fix printf statement.
58515
58516 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58517
58518         * modules/gethostname-tests: New file.
58519
58520         * tests/test-gethostname.c: New file.
58521
58522 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58523
58524         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58525         used by the UNAME case.  Reported by Bruno Haible
58526         <bruno@clisp.org>.
58527
58528 2008-01-17  Eric Blake  <ebb9@byu.net>
58529
58530         Convert c-strcasestr to be more efficient.
58531         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58532         (Depends-on): Add c-strcase, remove malloca, strnlen.
58533         * tests/test-c-strcasestr.c (main): Enhance test.
58534         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58535
58536 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58537
58538         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58539         Use it in creating po/Makevars.
58540
58541 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58542
58543         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58544         Applications that requires it should initialize libgcrypt
58545         manually.
58546
58547 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58548
58549         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58550
58551 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58552
58553         Fix problem with getdate on mingw32 reported by Simon Josefsson
58554         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58555         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58556         tzname", when deciding whether to declare tzname.
58557         * lib/strftime.c (tzname): Likewise.
58558
58559 2008-01-15  Bruno Haible  <bruno@clisp.org>
58560
58561         Work around a MacOS X 10.5 bug in frexpl().
58562         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58563         * doc/functions/frexpl.texi: Document the bug.
58564         Reported by Elias Pipping <pipping@gentoo.org>.
58565
58566 2008-01-14  Eric Blake  <ebb9@byu.net>
58567
58568         Touch up previous patch.
58569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58570         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58571
58572         Convert strcasestr module to use Two-Way algorithm.
58573         * modules/strcasestr-simple: New module, based on the old
58574         strcasestr, but with Two-Way rather than KMP.
58575         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58576         * lib/string.in.h (rpl_strcasestr): Declare.
58577         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58578         performance.
58579         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58580         * modules/string (Makefile.am): Support strcasestr.
58581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58582         * modules/strcasestr-tests (Depends-on): Check for alarm.
58583         * tests/test-strcasestr.c: Augment test.
58584         * lib/str-two-way.h: Clean up stray macro.
58585         * NEWS: Document new module.
58586         * MODULES.html.sh (string handling): Likewise.
58587         * doc/functions/strcasestr.texi: New file.
58588         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58589         here, since it is not a POSIX function.
58590
58591 2008-01-14  Colin Watson  <cjwatson@debian.org>
58592             Bruno Haible  <bruno@clisp.org>
58593
58594         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58595         works fine; if not, set REPLACE_STRSIGNAL.
58596         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58598         REPLACE_STRSIGNAL.
58599         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58600         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58601         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58602
58603 2008-01-14  Bruno Haible  <bruno@clisp.org>
58604
58605         * modules/strsignal (Include): Change to <string.h>.
58606
58607 2008-01-14  Colin Watson  <cjwatson@debian.org>
58608
58609         * modules/argp (Notice): Add a notice recommending to change
58610         XGETTEXT_OPTIONS.
58611         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58612
58613 2008-01-13  Colin Watson  <cjwatson@debian.org>
58614
58615         * modules/strsignal-tests: New file.
58616         * tests/test-strsignal.c: New file.
58617
58618         * lib/strsignal.c: New file, from glibc with modifications.
58619         * lib/siglist.h: New file, from glibc with modifications.
58620         * lib/string.in.h (strsignal): New declaration.
58621         * m4/strsignal.m4: New file.
58622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58623         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58624         * modules/strsignal: New file.
58625         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58626         HAVE_DECL_STRSIGNAL.
58627
58628 2008-01-13  Bruno Haible  <bruno@clisp.org>
58629
58630         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58631         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58632         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58633         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58634
58635 2008-01-13  Bruno Haible  <bruno@clisp.org>
58636
58637         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58638         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58639         * lib/argp.h (__attribute__): Likewise.
58640         * lib/c-stack.c (__attribute__): Likewise.
58641         * lib/error.h (__attribute__): Likewise.
58642         * lib/fts.c (__attribute__): Likewise.
58643         * lib/openat.h (__attribute__): Likewise.
58644         * lib/stdio.in.h (__attribute__): Likewise.
58645         * lib/string.in.h (__attribute__): Likewise.
58646         * lib/utimens.c (__attribute__): Likewise.
58647         * lib/vasnprintf.h (__attribute__): Likewise.
58648         * lib/xalloc.h (__attribute__): Likewise.
58649         * lib/xprintf.h (__attribute__): Likewise.
58650         * lib/xstrtol.h (__attribute__): Likewise.
58651         * lib/xvasprintf.h (__attribute__): Likewise.
58652
58653 2008-01-12  Bruno Haible  <bruno@clisp.org>
58654
58655         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58656         * doc/glibc-headers/a.out.texi: New file.
58657         * doc/glibc-headers/aliases.texi: New file.
58658         * doc/glibc-headers/alloca.texi: New file.
58659         * doc/glibc-headers/ar.texi: New file.
58660         * doc/glibc-headers/argp.texi: New file.
58661         * doc/glibc-headers/argz.texi: New file.
58662         * doc/glibc-headers/byteswap.texi: New file.
58663         * doc/glibc-headers/crypt.texi: New file.
58664         * doc/glibc-headers/endian.texi: New file.
58665         * doc/glibc-headers/envz.texi: New file.
58666         * doc/glibc-headers/err.texi: New file.
58667         * doc/glibc-headers/error.texi: New file.
58668         * doc/glibc-headers/execinfo.texi: New file.
58669         * doc/glibc-headers/fpu_control.texi: New file.
58670         * doc/glibc-headers/fstab.texi: New file.
58671         * doc/glibc-headers/fts.texi: New file.
58672         * doc/glibc-headers/getopt.texi: New file.
58673         * doc/glibc-headers/ieee754.texi: New file.
58674         * doc/glibc-headers/ifaddrs.texi: New file.
58675         * doc/glibc-headers/libintl.texi: New file.
58676         * doc/glibc-headers/mcheck.texi: New file.
58677         * doc/glibc-headers/mntent.texi: New file.
58678         * doc/glibc-headers/obstack.texi: New file.
58679         * doc/glibc-headers/paths.texi: New file.
58680         * doc/glibc-headers/printf.texi: New file.
58681         * doc/glibc-headers/pty.texi: New file.
58682         * doc/glibc-headers/resolv.texi: New file.
58683         * doc/glibc-headers/shadow.texi: New file.
58684         * doc/glibc-headers/sysexits.texi: New file.
58685         * doc/glibc-headers/ttyent.texi: New file.
58686
58687 2008-01-12  Jim Meyering  <meyering@redhat.com>
58688
58689         announce-gen: emit Gnulib's git-based version string.
58690         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58691         New option --gnulib-version=V, where V is expected to be
58692         the output of running git describe in the gnulib directory.
58693         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58694         not useful, and plan to stop publishing an xdelta file with each
58695         coreutils release.
58696
58697         * build-aux/announce-gen: Also check for lzma-compressed files.
58698
58699 2008-01-11  Bruno Haible  <bruno@clisp.org>
58700
58701         * tests/test-memmem.c (main): Increase maximum allowed time.
58702         * tests/test-strstr.c (main): Likewise.
58703
58704 2008-01-11  Bruno Haible  <bruno@clisp.org>
58705
58706         * doc/functions/memmem.texi: Add more precisions about platforms.
58707         * doc/functions/strstr.texi: Likewise.
58708
58709 2008-01-10  Eric Blake  <ebb9@byu.net>
58710
58711         * m4/strstr.m4: Delete cruft from copy-n-paste.
58712         Reported by Bruno Haible.
58713
58714 2008-01-10  Bruno Haible  <bruno@clisp.org>
58715
58716         Make c-strstr rely on strstr.
58717         * lib/c-strstr.c: Don't include str-kmp.h.
58718         (c_strstr): Define in terms of strstr.
58719         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58720         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58721
58722 2008-01-10  Bruno Haible  <bruno@clisp.org>
58723
58724         * doc/gnulib.texi (String Functions in C Locale): New section.
58725         * doc/c-ctype.texi: New file.
58726         * doc/c-strcase.texi: New file.
58727         * doc/c-strcaseeq.texi: New file.
58728         * doc/c-strcasestr.texi: New file.
58729         * doc/c-strstr.texi: New file.
58730         * doc/c-strtod.texi: New file.
58731         * doc/c-strtold.texi: New file.
58732
58733 2008-01-10  Eric Blake  <ebb9@byu.net>
58734
58735         * lib/relocatable.h: Fix a comment.
58736
58737 2008-01-10  Eric Blake  <ebb9@byu.net>
58738
58739         Share two-way algorithm.
58740         * lib/str-two-way.h: New file, merged from...
58741         * lib/memmem.c: ...here...
58742         * lib/strstr.c: ...and here.
58743         * modules/memmem (Files): Use it.
58744         * modules/strstr (Files): Likewise.
58745
58746         Avoid quadratic strstr implementations.
58747         * lib/strstr.c: New file.
58748         * m4/strstr.m4: Likewise.
58749         * modules/strstr: Likewise.
58750         * modules/strstr-tests: Likewise.
58751         * tests/test-strstr.c: Likewise.
58752         * lib/string.in.h (rpl_strstr): Declare.
58753         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58755         * modules/string (Makefile.am): Likewise.
58756         * MODULES.html.sh (string handling): Mention new module.
58757         * doc/functions/strstr.texi (strstr): Document the bug.
58758
58759 2008-01-10  Bruno Haible  <bruno@clisp.org>
58760
58761         * lib/relocatable.h (relocate): State whether result is freshly
58762         allocated or not.
58763         * lib/relocatable.c (relocate): Return a freshly allocated string
58764         instead of a pointer to a privately held string.
58765         Reported by Sylvain Beucler <beuc@gnu.org>.
58766
58767 2008-01-10  Colin Watson  <cjwatson@debian.org>
58768
58769         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58770         s/S_ISNLK/S_ISLNK/.
58771
58772 2008-01-09  Bruno Haible  <bruno@clisp.org>
58773
58774         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58775         and other files.
58776         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58777         if it's only a guess.
58778         * modules/memmem: Simplify by depending on memmem-simple.
58779
58780 2008-01-09  Bruno Haible  <bruno@clisp.org>
58781
58782         Work around OpenBSD 4.0 tdelete() bug.
58783         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58784         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58785         macros and don't redefine the enum values.
58786         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58787         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58788         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58789
58790 2008-01-09  Bruno Haible  <bruno@clisp.org>
58791
58792         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58793         (main): Don't perform the tests if setlocale did not install a UTF-8
58794         locale. Needed on OpenBSD 4.0.
58795         * modules/wcwidth-tests (Depends-on): Add localcharset.
58796
58797 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58798
58799         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58800         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58801         * NEWS: announce this.
58802         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58803
58804 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58805         and Eric Blake  <ebb9@byu.net>
58806
58807         Add memmem-simple module.
58808         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58809         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58810         * modules/memmem-simple: New file.
58811         * modules/memmem (Description): Tweak.
58812         * MODULES.html.sh (string handling): Mention new module.
58813         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58814         addressed by memmem-simple.
58815         * NEWS: Document the difference.
58816
58817 2008-01-09  Eric Blake  <ebb9@byu.net>
58818
58819         Give gcc some memmem optimization hints.
58820         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58821         (strcasestr): Declare as pure.
58822         * modules/memmem (Maintainer): Claim my implementation.
58823
58824 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58825
58826         Support AIX 6.1 and higher.
58827         * build-aux/config.libpath: Likewise.
58828         * build-aux/config.rpath: Likewise.
58829
58830 2008-01-08  Jim Meyering  <meyering@redhat.com>
58831             Bruno Haible  <bruno@clisp.org>
58832
58833         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58834         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58835         Reported by Peter Fales in
58836         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58837
58838 2008-01-08  Bruno Haible  <bruno@clisp.org>
58839
58840         * modules/unictype/category-of (Depends-on): Add
58841         unictype/category-none.
58842         * modules/unictype/category-and-tests (Depends-on): Add
58843         unictype/category-{L,N,Lu,Nd}.
58844         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58845         * modules/unictype/category-or-tests (Depends-on): Add
58846         unictype/category-{L,N}.
58847         * modules/unictype/category-name-tests (Depends-on): Add
58848         unictype/category-{Z,Nl}.
58849         Reported by Simon Josefsson.
58850
58851 2008-01-08  Bruno Haible  <bruno@clisp.org>
58852
58853         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58854         convention better.
58855         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58856         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58857         Reported by Peter Miller <millerp@canb.auug.org.au>.
58858
58859 2008-01-08  Eric Blake  <ebb9@byu.net>
58860
58861         Rewrite memmem to guarantee linear complexity without malloc.
58862         * lib/memmem.c (memmem): Use Two-Way rather than
58863         Knuth-Morris-Pratt, to allow O(1) space usage.
58864         (critical_factorization, two_way_short_needle)
58865         (two_way_long_needle): New functions.
58866         (knuth_morris_pratt): Delete.
58867         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58868         Add stdint.
58869         * tests/test-memmem.c (main): Add tests for periodic needle and
58870         sublinear performance.
58871         * doc/functions/memmem.texi (memmem): Document other deficiencies
58872         in cygwin and older glibc.
58873
58874 2008-01-08  Bruno Haible  <bruno@clisp.org>
58875
58876         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58877         augmentation.
58878
58879 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58880
58881         Add a configure time option: --disable-acl.
58882         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58883         AC_ARG_ENABLE(acl).
58884
58885 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58886
58887         * tests/test-localename.c: Don't include obsolete "setenv.h".
58888
58889         * modules/localename-tests (Depends-on): Need unsetenv.
58890
58891 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58892
58893         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58894
58895 2008-01-06  Colin Watson  <cjwatson@debian.org>
58896
58897         * users.txt: Add man-db.
58898
58899 2008-01-07  Bruno Haible  <bruno@clisp.org>
58900
58901         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58902         previous section name.
58903
58904 2008-01-07  Bruno Haible  <bruno@clisp.org>
58905
58906         * lib/progname.c (set_program_name): Don't strip off a leading
58907         "lt-" prefix outside a .libs directory.
58908         Suggested by Paul Eggert.
58909
58910 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58911             Bruno Haible  <bruno@clisp.org>
58912
58913         Improve memory cleanup in 'relocatable' module.
58914         * lib/relocatable.h (compute_curr_prefix): Change return type to
58915         'char *'.
58916         * lib/relocatable.c (compute_curr_prefix): Change return type to
58917         'char *'. Free curr_installdir after use.
58918         (relocate): Free curr_prefix_better after use.
58919         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58920
58921 2008-01-01  Bruno Haible  <bruno@clisp.org>
58922
58923         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58924         failure on older glibc systems.
58925         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58926
58927 2008-01-05  Eric Blake  <ebb9@byu.net>
58928
58929         Avoid quadratic system memmem.
58930         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58931         Reported by Ralf Wildenhues.
58932
58933         Fix memmem test for mingw.
58934         * modules/memmem-tests (configure.ac): Check for alarm.
58935         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58936         it.
58937         * doc/functions/memmem.texi: New file.
58938         * doc/gnulib.texi (Function Substitutes): Add memmem.
58939         Reported by Bruno Haible.
58940
58941 2008-01-04  Bruno Haible  <bruno@clisp.org>
58942
58943         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58944         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58945         gl_HEADER_STRING_H_DEFAULTS.
58946
58947 2008-01-04  Eric Blake  <ebb9@byu.net>
58948
58949         Shorten duration of memmem test.
58950         * tests/test-memmem.c (main): Use alarm to declare failure if test
58951         is taking too long.
58952         Reported by Ralf Wildenhues.
58953
58954 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58955
58956         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58957         string, needed by strerror.
58958
58959 2008-01-03  Colin Watson  <cjwatson@debian.org>
58960             Bruno Haible  <bruno@clisp.org>
58961
58962         * doc/gnulib-tool.texi (Localization): New section.
58963
58964 2008-01-02  Bruno Haible  <bruno@clisp.org>
58965
58966         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58967         variables to 'unsigned char *' type.
58968         Reported by Paul Eggert.
58969
58970 2008-01-02  Jim Meyering  <jim@meyering.net>
58971
58972         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58973
58974 2007-12-31  Jim Meyering  <jim@meyering.net>
58975
58976         Avoid use of private FTS type name.
58977         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58978
58979 2007-12-30  Karl Berry  <karl@gnu.org>
58980
58981         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58982         work around defect in Texinfo and/or the standalone Info browser.
58983
58984 2007-12-30  Bruno Haible  <bruno@clisp.org>
58985
58986         Unify 5 copies of the KMP code.
58987         * lib/str-kmp.h: New file.
58988         * lib/c-strcasestr.c: Include str-kmp.h.
58989         (knuth_morris_pratt): Remove function.
58990         (c_strcasestr): Update.
58991         * lib/c-strstr.c: Include str-kmp.h.
58992         (knuth_morris_pratt): Remove function.
58993         (c_strcasestr): Update.
58994         * lib/mbscasestr.c: Include str-kmp.h.
58995         (knuth_morris_pratt_unibyte): Remove function.
58996         * lib/mbsstr.c: Include str-kmp.h.
58997         (knuth_morris_pratt_unibyte): Remove function.
58998         * lib/strcasestr.c: Include str-kmp.h.
58999         (knuth_morris_pratt): Remove function.
59000         (strcasestr): Update.
59001         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59002         * modules/c-strstr (Files): Likewise.
59003         * modules/mbscasestr (Files): Likewise.
59004         * modules/mbsstr (Files): Likewise.
59005         * modules/strcasestr (Files): Likewise.
59006         Suggested by Paul Eggert.
59007
59008 2007-12-30  Bruno Haible  <bruno@clisp.org>
59009
59010         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59011         defined.
59012
59013 2007-12-30  Bruno Haible  <bruno@clisp.org>
59014
59015         * lib/xmalloca.h: Include xalloc.h.
59016         (xnmalloca): New macro.
59017
59018 2007-12-30  Bruno Haible  <bruno@clisp.org>
59019
59020         * lib/malloca.h (nmalloca): New macro.
59021         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59022         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59023         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59024         knuth_morris_pratt_multibyte): Likewise.
59025         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59026         knuth_morris_pratt_multibyte): Likewise.
59027         * lib/memmem.c (knuth_morris_pratt): Likewise.
59028         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59029
59030 2007-12-25  Bruno Haible  <bruno@clisp.org>
59031
59032         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59033         * lib/glob.c: Don't include openat.h.
59034         (link_exists2_p): Add back the code that deals with the
59035         !GLOB_ALTDIRFUNC case.
59036         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59037         let it do the filename concatenation.
59038         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59039         * modules/glob (Depends-on): Remove openat.
59040
59041 2007-12-31  Bruno Haible  <bruno@clisp.org>
59042
59043         * modules/dirfd (License): Change to LGPLv2+.
59044         Approved by Jim Meyering.
59045
59046 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59047
59048         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59049         when multiplying M by sizeof (size_t).
59050
59051 2007-12-10  Martin Lambers  <marlam@marlam.de>
59052
59053         Override getpagesize on mingw.
59054         * lib/getpagesize.c: New file.
59055         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59056         * modules/getpagesize (Files): Add lib/getpagesize.c.
59057         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59059         REPLACE_GETPAGESIZE.
59060         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59061
59062 2007-12-25  Bruno Haible  <bruno@clisp.org>
59063
59064         * modules/localcharset (Notice): New field.
59065         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59066         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59067
59068 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59069             Bruno Haible  <bruno@clisp.org>
59070
59071         Avoid using the syntax symbol() in formatted documentation.
59072         * MODULES.html.sh (func_module): When replacing symbol() with a
59073         hyperlink, remove the parentheses. Show an error if some remain.
59074         Recognize and render the '...' syntax.
59075         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59076         Rework. Add paragraph about GCC's inlining.
59077         * doc/alloca.texi: Likewise.
59078         * doc/error.texi: Remove parentheses from symbol reference.
59079         * doc/gnulib-intro.texi: Likewise.
59080         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59081         * modules/fnmatch (Description): Reword to say "the ... function".
59082         * modules/full-read (Description): Likewise.
59083         * modules/full-write (Description): Likewise.
59084         * modules/safe-read (Description): Likewise.
59085         * modules/safe-write (Description): Likewise.
59086         * modules/strchrnul (Description): Likewise.
59087         * modules/trim (Description): Likewise.
59088         * modules/error (Description): Remove parentheses from symbol
59089         references.
59090         * modules/verror (Description): Likewise.
59091         Reported by Karl Berry.
59092
59093 2007-12-25  Bruno Haible  <bruno@clisp.org>
59094
59095         Fixup after 2007-10-16 commit.
59096         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59097
59098 2007-12-24  Bruno Haible  <bruno@clisp.org>
59099
59100         Make --enable-relocatable work with DESTDIR.
59101         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59102         to compute installdir from destprog.
59103         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59104         also set the RELOC_DESTDIR variable.
59105         Reported by Левашев Иван <octagram@bluebottle.com>.
59106
59107 2007-12-24  Bruno Haible  <bruno@clisp.org>
59108
59109         Fix link error due to xalloc_die().
59110         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59111         of xreadlink.
59112         * lib/relocwrapper.c: Update comments.
59113         * build-aux/install-reloc: Remove xreadlink.c from file list.
59114         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59115         xreadlink.c.
59116         Reported by Левашев Иван <octagram@bluebottle.com>.
59117
59118 2007-12-24  Bruno Haible  <bruno@clisp.org>
59119
59120         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59121         * lib/setenv.h: Remove file.
59122         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59123         lib/setenv.h.
59124         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59125         (Depends-on): Add stdlib.
59126         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59127         gl_FUNC_UNSETENV.
59128         (Include): Replace setenv.h with <stdlib.h>.
59129         * modules/unsetenv: New file.
59130         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59131         * lib/unsetenv.c: Include <stdlib.h> first.
59132         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59133         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59134         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59135         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59136         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59137         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59139         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59140         * doc/functions/unsetenv.texi: Update.
59141         * modules/xsetenv (Depends-on): Add unsetenv.
59142         * modules/getdate (Depends-on): Likewise.
59143         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59144         * lib/xsetenv.c: Don't include setenv.h.
59145         * lib/getdate.y: Likewise.
59146         * lib/relocwrapper.c: Likewise.
59147         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59148         (Depends-on): Add stdlib.
59149         * NEWS: Mention the changes.
59150         Reported by Левашев Иван <octagram@bluebottle.com>.
59151
59152 2007-12-23  Bruno Haible  <bruno@clisp.org>
59153
59154         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59155         indentation.
59156
59157 2007-12-23  Bruno Haible  <bruno@clisp.org>
59158
59159         * lib/c-strcasestr.c: Add more comments.
59160         * lib/c-strstr.c: Likewise.
59161         * lib/mbscasestr.c: Likewise.
59162         * lib/mbsstr.c: Likewise.
59163         * lib/strcasestr.c: Likewise.
59164         * lib/memmem.c: Likewise.
59165
59166 2007-12-23  Bruno Haible  <bruno@clisp.org>
59167
59168         * tests/test-memmem.c: Include <string.h> first.
59169
59170 2007-12-22  Bruno Haible  <bruno@clisp.org>
59171
59172         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59173         the contents of $testsbase.
59174         Reported by Ralf Wildenhues.
59175
59176 2007-12-22  Bruno Haible  <bruno@clisp.org>
59177
59178         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59179         two variables local_ldadd_before, local_ldadd_last.
59180
59181 2007-12-20  Eric Blake  <ebb9@byu.net>
59182
59183         Work around circular library issue when cross-compiling.
59184         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59185         that progname.o does not need to pull in rpl_memcmp.
59186
59187 2007-12-19  Eric Blake  <ebb9@byu.net>
59188
59189         Fix memmem to avoid O(n^2) worst-case complexity.
59190         * lib/memmem.c (knuth_morris_pratt): New function.
59191         (memmem): Use it if first few naive iterations fail.
59192         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59193         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59194         * modules/memchr (License): Likewise.
59195         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59196         malloca.
59197         * tests/test-memmem.c: Rewrite, borrowing ideas from
59198         test-mbsstr1.c; the old version wouldn't even compile!
59199         * modules/memmem-tests: New file.
59200         * lib/string.in.h (rpl_memmem): Add declaration.
59201         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59203         REPLACE_MEMMEM.
59204
59205 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59206
59207         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59208         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59209         before any system include files, and undef after them all.  This
59210         should fix a problem on VMS reported by John E. Malmberg in
59211         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59212
59213 2007-12-17  Eric Blake  <ebb9@byu.net>
59214
59215         Revert addition of verify, for BSD/OS.
59216         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59217         can't handle large files, for the sake of obsolete platforms.
59218         * modules/fseeko (Depends-on): Remove verify.
59219         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59220         * doc/functions/ftello.texi (ftello): Likewise.
59221         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59222         Reported by Larry Jones.
59223
59224 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59225
59226         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59227         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59228
59229 2007-12-17  Jim Meyering  <meyering@redhat.com>
59230
59231         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59232         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59233         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59234         * modules/getcwd (Depends-on): Add openat.
59235         Reported by Petr Salinger.
59236
59237 2007-12-17  Bruno Haible  <bruno@clisp.org>
59238
59239         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59240         avoid a segmentation fault of the configure test on x86_64 systems.
59241
59242 2007-12-15  Jim Meyering  <meyering@redhat.com>
59243
59244         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59245
59246 2007-12-13  Eric Blake  <ebb9@byu.net>
59247
59248         Another fseek test.
59249         * tests/test-fseek.c (main): Also test ungetc handling.
59250         * tests/test-fseeko.c (main): Likewise.
59251         * modules/fseeko (Depends-on): Add verify.
59252         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59253         large.
59254         Reported by Larry Jones.
59255
59256         Fix fseeko on mingw.
59257         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59258         seek.
59259
59260         Beef up fseek tests.
59261         * tests/test-fseek.c (main): Also test eof handling.
59262         * tests/test-fseeko.c (main): Likewise.
59263         Reported by Larry Jones.
59264
59265 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59266
59267         Fix fseeko on BSD-based platforms.
59268         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59269         successful seek.
59270
59271 2007-12-12  Eric Blake  <ebb9@byu.net>
59272
59273         Allow circular dependency of separate libtests.a
59274         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59275         when use_libtests.
59276
59277 2007-12-11  Eric Blake  <ebb9@byu.net>
59278
59279         Fix bug with -0.0L in previous patch.
59280         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59281         * tests/test-isnan.c (main): Also test on zeroes.
59282         * tests/test-isnanf.c (main): Likewise.
59283         * tests/test-isnanl.h (main): Likewise.
59284
59285         Detect pseudo-denormals on x86 even when cross-compiling.
59286         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59287         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59288         invalid bit patterns that happen to satisfy ==.
59289
59290         Avoid link failures with separate libtests.a.
59291         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59292         last, to satisfy circular dependencies.
59293
59294 2007-12-11  Eric Blake  <ebb9@byu.net>
59295         and Bruno Haible  <bruno@clisp.org>
59296
59297         Fix OpenBSD 4.0 <float.h> handling of long double.
59298         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59299         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59300         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59301
59302 2007-12-11  Jim Meyering  <meyering@redhat.com>
59303
59304         * users.txt: Add libvirt.
59305
59306         Support versions of autoconf prior to 2.59c.
59307         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59308         if it is not already defined.
59309
59310 2007-12-09  Bruno Haible  <bruno@clisp.org>
59311
59312         Let 'gnulib-tool --import' collect sources needed for the tests in
59313         tests/ rather than in lib/.
59314         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59315         argument. If true, add rules to generate libtests.a, and put libtests.a
59316         into $(LDADD). Consider source files in subdirectories and set
59317         uses_subdirs.
59318         (func_emit_initmacro_start, func_emit_initmacro_end,
59319         func_emit_initmacro_done): Pass all arguments explicitly.
59320         (func_import): Determine two module lists main_modules,
59321         testsrelated_modules. Determine use_libtests. Determine two variables
59322         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59323         instead of just sed_transform_lib_file. Determine two variables
59324         main_files and testsrelated_files. Compute 'files' as the union of
59325         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59326         func_add_or_update. In the generated gnulib-comp.m4, collect the
59327         object files for tests/ in different variables than those for lib/.
59328         Substitute LIBTESTS_LIBDEPS.
59329         (func_create_testdir): Combine the uses_subdirs results from
59330         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59331
59332 2007-12-09  Bruno Haible  <bruno@clisp.org>
59333
59334         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59335         the build-aux directory.
59336
59337 2007-12-09  Bruno Haible  <bruno@clisp.org>
59338
59339         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59340         introduced on 2006-09-09.
59341
59342 2007-12-07  Jim Meyering  <meyering@redhat.com>
59343
59344         Let these macros work also with autoconf-2.59.
59345         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59346         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59347         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59348
59349 2007-12-06  Jim Meyering  <meyering@redhat.com>
59350
59351         Avoid a configure-time syntax error in gl_FUNC_ACL.
59352         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59353         function in each branch, before testing the cache variable.
59354
59355 2007-12-04  Eric Blake  <ebb9@byu.net>
59356
59357         Make scripts executable.
59358         * build-aux/config.guess: Add execute permissions.
59359         * build-aux/config.sub: Likewise.
59360         * build-aux/gendocs.sh: Likewise.
59361
59362         Fix frexp on mingw.
59363         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59364         cross-compiling.
59365         * doc/functions/frexp.texi (frexp): Document the bug.
59366
59367         Make cygwin fseeko check more reliable.
59368         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59369         version numbers, rather than unrelated feature check.
59370         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59371         * doc/functions/ftello.texi (ftello): Likewise.
59372         Reported by Bruno Haible.
59373
59374         * m4/strerror.m4: Bump version number.
59375
59376 2007-12-03  Bruno Haible  <bruno@clisp.org>
59377
59378         * doc/functions/mprotect.texi: Mention the mingw problem.
59379
59380 2007-12-03  Eric Blake  <ebb9@byu.net>
59381
59382         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59383         REPLACE_STRERROR is initialized before this macro.
59384
59385 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59386
59387         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59388         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59389         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59390         put -lsec in even for programs other than 'ls'.  This fixes a problem
59391         for gettext reported by Bruno Haible in
59392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59393         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59394         Add support for Solaris 10.  This isn't efficient, but should get the
59395         job done for now.
59396
59397 2007-12-03  James Youngman  <jay@gnu.org>
59398
59399         * doc/regexprops-generic.texi: change "an close-group" to "a
59400         close-group" and "illegal" to "not allowed".
59401
59402 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59403
59404         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59405         pr_byname.h. Needed for the rare case when the maintainer has done
59406         "make maintainer-clean" in the source directory and then attempts a
59407         build outside the source directory.
59408         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59409         scripts_byname.h.
59410
59411 2007-12-02  Martin Lambers <marlam@marlam.de>
59412             Bruno Haible  <bruno@clisp.org>
59413
59414         * lib/getpagesize.h: Remove file.
59415         * lib/unistd.in.h: Include declaration of getpagesize here.
59416         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59417         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59418         HAVE_SYS_PARAM_H.
59419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59420         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59421         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59422         (Depends-on): Add unistd.
59423         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59424         (Include): Use <unistd.h> instead of getpagesize.h.
59425         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59426         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59427         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59428         gl_GETPAGESIZE invocation, already handled by module dependency.
59429         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59430
59431 2007-12-02  Bruno Haible  <bruno@clisp.org>
59432
59433         * modules/strings-tests: New file.
59434         * tests/test-strings.c: New file.
59435
59436         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59437         * lib/strings.in.h: New file.
59438         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59439         * m4/strings_h.m4: New file.
59440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59441         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59442         * modules/strings: New file.
59443         * modules/string (Makefile.am): Update.
59444         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59445         Reported by Karl Berry.
59446
59447 2007-12-01  Eric Blake  <ebb9@byu.net>
59448
59449         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59450         accommodate fix in cygwin 1.5.25.
59451
59452 2007-12-01  Jim Meyering  <meyering@redhat.com>
59453
59454         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59455         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59456         that would inhibit utf8-optimization of a regexp containing line-
59457         or buffer-anchors, e.g., `^', `$'.
59458
59459 2007-11-30  Bruno Haible  <bruno@clisp.org>
59460
59461         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59462         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59463         glthread_recursive_lock_init.
59464         * lib/lock.c (glthread_recursive_lock_init)
59465         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59466         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59467
59468 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59469
59470         New function qset_acl, like set_acl but with syscall semantics.
59471         * lib/acl.h (qset_acl): New decl.
59472         * lib/acl.c (qset_acl): New function.
59473         (set_acl): Use new function.  Use more-consistent diagnostics.
59474
59475 2007-11-28  Jim Meyering  <meyering@redhat.com>
59476
59477         * modules/physmem (License): Change from GPL to LGPLv2+.
59478
59479 2007-11-26  Bruno Haible  <bruno@clisp.org>
59480
59481         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59482         'long double' type has excess precision.
59483         Reported by Jim Meyering in
59484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59485
59486 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59487
59488         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59489         Sync from <http://gnu.org/licenses>.
59490         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59491         with license text from same location.
59492         * doc/maintain.texi, doc/standards.texi:  Sync from
59493         <http://savannah.gnu.org/projects/gnustandards>.
59494
59495 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
59496         and Jim Meyering  <meyering@redhat.com>
59497
59498         Adjust getdate' grammar to accept a slightly more regular language.
59499         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59500         Before, the former was rejected.
59501         * lib/getdate.y (digits_to_date_time): New function, factored
59502         out of ...
59503         (number): ...here.  Just call digits_to_date_time.
59504         (hybrid): New non-terminal to handle an <unsigned number,
59505         signed relative offset> sequence consistently.
59506
59507 2007-11-18  Jim Meyering  <meyering@redhat.com>
59508
59509         Pull my changes from coreutils:
59510         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59511         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59512         use of $gnulib_tool_option_extras, so that it's separated from the
59513         preceding argument.
59514
59515         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59516         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59517         parent destination directories before copying a file into place.
59518
59519 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59520
59521         bootstrap: work also with 4-argument variant of AC_INIT
59522         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59523
59524 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59525
59526         Port test-getaddrinfo to Solaris.
59527         Problem reported by Bruno Haible in
59528         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59529         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59530         explanation of setting 'hints'.
59531         Don't reject an implementation merely because it returns EAI_SERVICE.
59532         (EAI_SERVICE): Define to 0 if not defined.
59533
59534 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59535
59536         The license of gnu-make and posix-shell is now "GPLed build tool".
59537         * modules/gnu-make (License): Likewise.
59538         * modules/posix-shell (License): Likewise.
59539
59540         New module posix-shell, for determining a POSIX shell
59541         or perhaps something that is close enough to a POSIX shell.
59542         * m4/posix-shell.m4: New file.
59543         * modules/posix-shell: New file.
59544
59545         * MODULES.html.sh: Mention new module.
59546
59547         New module gnu-make, for determining whether we're using GNU Make.
59548         * m4/gnu-make.m4: New file.
59549         * modules/gnu-make: New file.
59550         * MODULES.html.sh: Mention new module.
59551
59552 2007-11-14  Jim Meyering  <meyering@redhat.com>
59553
59554         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59555         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59556         use this macro to create a function _definition_.
59557         Remove useless "#undef ARGMATCH_DIE".
59558
59559 2007-11-14  Bruno Haible  <bruno@clisp.org>
59560
59561         * lib/config.charset: Update for OpenBSD 4.1.
59562         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59563
59564 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59565
59566         Document 64-bit #if problems in stdint.texi.
59567         * doc/headers/stdint.texi (stdint.h): Mention problems with
59568         64-bit-#if, and how to work around them.
59569
59570         Don't insist on 'long long int' support in the preprocessor.  It
59571         breaks too many things.  For example, PRIdMAX still uses a 'long
59572         long int' format with the latest Sun compiler, even though
59573         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59574         preprocessor problem.  This causes the latest coreutils to dump
59575         core on Solaris 10 sparc with the Sun C compiler.
59576         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59577         the troublesome expressions at configure-time, not at #if-time.
59578         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59579         preprocessor.
59580         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59581         compile-time C checks, done at 'configure'-time.
59582         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59583         * modules/inttypes (Makefile): Substitute the new symbols that
59584         gl_INTTYPES_H now generates.
59585         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59586
59587 2007-11-12  Bruno Haible  <bruno@clisp.org>
59588
59589         Tests for Unicode character classification functions.
59590
59591         * modules/unictype/bidicategory-byname-tests: New file.
59592         * modules/unictype/bidicategory-name-tests: New file.
59593         * modules/unictype/bidicategory-of-tests: New file.
59594         * modules/unictype/bidicategory-test-tests: New file.
59595         * modules/unictype/block-list-tests: New file.
59596         * modules/unictype/block-of-tests: New file.
59597         * modules/unictype/block-test-tests: New file.
59598         * modules/unictype/category-C-tests: New file.
59599         * modules/unictype/category-Cc-tests: New file.
59600         * modules/unictype/category-Cf-tests: New file.
59601         * modules/unictype/category-Cn-tests: New file.
59602         * modules/unictype/category-Co-tests: New file.
59603         * modules/unictype/category-Cs-tests: New file.
59604         * modules/unictype/category-L-tests: New file.
59605         * modules/unictype/category-Ll-tests: New file.
59606         * modules/unictype/category-Lm-tests: New file.
59607         * modules/unictype/category-Lo-tests: New file.
59608         * modules/unictype/category-Lt-tests: New file.
59609         * modules/unictype/category-Lu-tests: New file.
59610         * modules/unictype/category-M-tests: New file.
59611         * modules/unictype/category-Mc-tests: New file.
59612         * modules/unictype/category-Me-tests: New file.
59613         * modules/unictype/category-Mn-tests: New file.
59614         * modules/unictype/category-N-tests: New file.
59615         * modules/unictype/category-Nd-tests: New file.
59616         * modules/unictype/category-Nl-tests: New file.
59617         * modules/unictype/category-No-tests: New file.
59618         * modules/unictype/category-P-tests: New file.
59619         * modules/unictype/category-Pc-tests: New file.
59620         * modules/unictype/category-Pd-tests: New file.
59621         * modules/unictype/category-Pe-tests: New file.
59622         * modules/unictype/category-Pf-tests: New file.
59623         * modules/unictype/category-Pi-tests: New file.
59624         * modules/unictype/category-Po-tests: New file.
59625         * modules/unictype/category-Ps-tests: New file.
59626         * modules/unictype/category-S-tests: New file.
59627         * modules/unictype/category-Sc-tests: New file.
59628         * modules/unictype/category-Sk-tests: New file.
59629         * modules/unictype/category-Sm-tests: New file.
59630         * modules/unictype/category-So-tests: New file.
59631         * modules/unictype/category-Z-tests: New file.
59632         * modules/unictype/category-Zl-tests: New file.
59633         * modules/unictype/category-Zp-tests: New file.
59634         * modules/unictype/category-Zs-tests: New file.
59635         * modules/unictype/category-and-not-tests: New file.
59636         * modules/unictype/category-and-tests: New file.
59637         * modules/unictype/category-byname-tests: New file.
59638         * modules/unictype/category-name-tests: New file.
59639         * modules/unictype/category-none-tests: New file.
59640         * modules/unictype/category-of-tests: New file.
59641         * modules/unictype/category-or-tests: New file.
59642         * modules/unictype/category-test-withtable-tests: New file.
59643         * modules/unictype/combining-class-tests: New file.
59644         * modules/unictype/ctype-alnum-tests: New file.
59645         * modules/unictype/ctype-alpha-tests: New file.
59646         * modules/unictype/ctype-blank-tests: New file.
59647         * modules/unictype/ctype-cntrl-tests: New file.
59648         * modules/unictype/ctype-digit-tests: New file.
59649         * modules/unictype/ctype-graph-tests: New file.
59650         * modules/unictype/ctype-lower-tests: New file.
59651         * modules/unictype/ctype-print-tests: New file.
59652         * modules/unictype/ctype-punct-tests: New file.
59653         * modules/unictype/ctype-space-tests: New file.
59654         * modules/unictype/ctype-upper-tests: New file.
59655         * modules/unictype/ctype-xdigit-tests: New file.
59656         * modules/unictype/decimal-digit-tests: New file.
59657         * modules/unictype/digit-tests: New file.
59658         * modules/unictype/mirror-tests: New file.
59659         * modules/unictype/numeric-tests: New file.
59660         * modules/unictype/property-alphabetic-tests: New file.
59661         * modules/unictype/property-ascii-hex-digit-tests: New file.
59662         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59663         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59664         * modules/unictype/property-bidi-block-separator-tests: New file.
59665         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59666         * modules/unictype/property-bidi-common-separator-tests: New file.
59667         * modules/unictype/property-bidi-control-tests: New file.
59668         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59669         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59670         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59671         * modules/unictype/property-bidi-european-digit-tests: New file.
59672         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59673         * modules/unictype/property-bidi-left-to-right-tests: New file.
59674         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59675         * modules/unictype/property-bidi-other-neutral-tests: New file.
59676         * modules/unictype/property-bidi-pdf-tests: New file.
59677         * modules/unictype/property-bidi-segment-separator-tests: New file.
59678         * modules/unictype/property-bidi-whitespace-tests: New file.
59679         * modules/unictype/property-byname-tests: New file.
59680         * modules/unictype/property-combining-tests: New file.
59681         * modules/unictype/property-composite-tests: New file.
59682         * modules/unictype/property-currency-symbol-tests: New file.
59683         * modules/unictype/property-dash-tests: New file.
59684         * modules/unictype/property-decimal-digit-tests: New file.
59685         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59686         * modules/unictype/property-deprecated-tests: New file.
59687         * modules/unictype/property-diacritic-tests: New file.
59688         * modules/unictype/property-extender-tests: New file.
59689         * modules/unictype/property-format-control-tests: New file.
59690         * modules/unictype/property-grapheme-base-tests: New file.
59691         * modules/unictype/property-grapheme-extend-tests: New file.
59692         * modules/unictype/property-grapheme-link-tests: New file.
59693         * modules/unictype/property-hex-digit-tests: New file.
59694         * modules/unictype/property-hyphen-tests: New file.
59695         * modules/unictype/property-id-continue-tests: New file.
59696         * modules/unictype/property-id-start-tests: New file.
59697         * modules/unictype/property-ideographic-tests: New file.
59698         * modules/unictype/property-ids-binary-operator-tests: New file.
59699         * modules/unictype/property-ids-trinary-operator-tests: New file.
59700         * modules/unictype/property-ignorable-control-tests: New file.
59701         * modules/unictype/property-iso-control-tests: New file.
59702         * modules/unictype/property-join-control-tests: New file.
59703         * modules/unictype/property-left-of-pair-tests: New file.
59704         * modules/unictype/property-line-separator-tests: New file.
59705         * modules/unictype/property-logical-order-exception-tests: New file.
59706         * modules/unictype/property-lowercase-tests: New file.
59707         * modules/unictype/property-math-tests: New file.
59708         * modules/unictype/property-non-break-tests: New file.
59709         * modules/unictype/property-not-a-character-tests: New file.
59710         * modules/unictype/property-numeric-tests: New file.
59711         * modules/unictype/property-other-alphabetic-tests: New file.
59712         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59713         * modules/unictype/property-other-grapheme-extend-tests: New file.
59714         * modules/unictype/property-other-id-continue-tests: New file.
59715         * modules/unictype/property-other-id-start-tests: New file.
59716         * modules/unictype/property-other-lowercase-tests: New file.
59717         * modules/unictype/property-other-math-tests: New file.
59718         * modules/unictype/property-other-uppercase-tests: New file.
59719         * modules/unictype/property-paired-punctuation-tests: New file.
59720         * modules/unictype/property-paragraph-separator-tests: New file.
59721         * modules/unictype/property-pattern-syntax-tests: New file.
59722         * modules/unictype/property-pattern-white-space-tests: New file.
59723         * modules/unictype/property-private-use-tests: New file.
59724         * modules/unictype/property-punctuation-tests: New file.
59725         * modules/unictype/property-quotation-mark-tests: New file.
59726         * modules/unictype/property-radical-tests: New file.
59727         * modules/unictype/property-sentence-terminal-tests: New file.
59728         * modules/unictype/property-soft-dotted-tests: New file.
59729         * modules/unictype/property-space-tests: New file.
59730         * modules/unictype/property-terminal-punctuation-tests: New file.
59731         * modules/unictype/property-test-tests: New file.
59732         * modules/unictype/property-titlecase-tests: New file.
59733         * modules/unictype/property-unassigned-code-value-tests: New file.
59734         * modules/unictype/property-unified-ideograph-tests: New file.
59735         * modules/unictype/property-uppercase-tests: New file.
59736         * modules/unictype/property-variation-selector-tests: New file.
59737         * modules/unictype/property-white-space-tests: New file.
59738         * modules/unictype/property-xid-continue-tests: New file.
59739         * modules/unictype/property-xid-start-tests: New file.
59740         * modules/unictype/property-zero-width-tests: New file.
59741         * modules/unictype/scripts-tests: New file.
59742         * modules/unictype/syntax-c-ident-tests: New file.
59743         * modules/unictype/syntax-c-whitespace-tests: New file.
59744         * modules/unictype/syntax-java-ident-tests: New file.
59745         * modules/unictype/syntax-java-whitespace-tests: New file.
59746         * tests/unictype/test-bidi_byname.c: New file.
59747         * tests/unictype/test-bidi_name.c: New file.
59748         * tests/unictype/test-bidi_of.c: New file.
59749         * tests/unictype/test-bidi_test.c: New file.
59750         * tests/unictype/test-block_list.c: New file.
59751         * tests/unictype/test-block_of.c: New file.
59752         * tests/unictype/test-block_test.c: New file.
59753         * tests/unictype/test-categ_and.c: New file.
59754         * tests/unictype/test-categ_and_not.c: New file.
59755         * tests/unictype/test-categ_byname.c: New file.
59756         * tests/unictype/test-categ_name.c: New file.
59757         * tests/unictype/test-categ_none.c: New file.
59758         * tests/unictype/test-categ_of.c: New file.
59759         * tests/unictype/test-categ_or.c: New file.
59760         * tests/unictype/test-categ_test_withtable.c: New file.
59761         * tests/unictype/test-combining.c: New file.
59762         * tests/unictype/test-decdigit.c: New file.
59763         * tests/unictype/test-digit.c: New file.
59764         * tests/unictype/test-mirror.c: New file.
59765         * tests/unictype/test-numeric.c: New file.
59766         * tests/unictype/test-pr_byname.c: New file.
59767         * tests/unictype/test-pr_test.c: New file.
59768         * tests/unictype/test-predicate-part1.h: New file.
59769         * tests/unictype/test-predicate-part2.h: New file.
59770         * tests/unictype/test-scripts.c: New file.
59771         * tests/unictype/test-sy_c_ident.c: New file.
59772         * tests/unictype/test-sy_java_ident.c: New file.
59773
59774         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59775         for Unicode 5.0.0.
59776         * tests/unictype/test-categ_Cc.c: Likewise.
59777         * tests/unictype/test-categ_Cf.c: Likewise.
59778         * tests/unictype/test-categ_Cn.c: Likewise.
59779         * tests/unictype/test-categ_Co.c: Likewise.
59780         * tests/unictype/test-categ_Cs.c: Likewise.
59781         * tests/unictype/test-categ_L.c: Likewise.
59782         * tests/unictype/test-categ_Ll.c: Likewise.
59783         * tests/unictype/test-categ_Lm.c: Likewise.
59784         * tests/unictype/test-categ_Lo.c: Likewise.
59785         * tests/unictype/test-categ_Lt.c: Likewise.
59786         * tests/unictype/test-categ_Lu.c: Likewise.
59787         * tests/unictype/test-categ_M.c: Likewise.
59788         * tests/unictype/test-categ_Mc.c: Likewise.
59789         * tests/unictype/test-categ_Me.c: Likewise.
59790         * tests/unictype/test-categ_Mn.c: Likewise.
59791         * tests/unictype/test-categ_N.c: Likewise.
59792         * tests/unictype/test-categ_Nd.c: Likewise.
59793         * tests/unictype/test-categ_Nl.c: Likewise.
59794         * tests/unictype/test-categ_No.c: Likewise.
59795         * tests/unictype/test-categ_P.c: Likewise.
59796         * tests/unictype/test-categ_Pc.c: Likewise.
59797         * tests/unictype/test-categ_Pd.c: Likewise.
59798         * tests/unictype/test-categ_Pe.c: Likewise.
59799         * tests/unictype/test-categ_Pf.c: Likewise.
59800         * tests/unictype/test-categ_Pi.c: Likewise.
59801         * tests/unictype/test-categ_Po.c: Likewise.
59802         * tests/unictype/test-categ_Ps.c: Likewise.
59803         * tests/unictype/test-categ_S.c: Likewise.
59804         * tests/unictype/test-categ_Sc.c: Likewise.
59805         * tests/unictype/test-categ_Sk.c: Likewise.
59806         * tests/unictype/test-categ_Sm.c: Likewise.
59807         * tests/unictype/test-categ_So.c: Likewise.
59808         * tests/unictype/test-categ_Z.c: Likewise.
59809         * tests/unictype/test-categ_Zl.c: Likewise.
59810         * tests/unictype/test-categ_Zp.c: Likewise.
59811         * tests/unictype/test-categ_Zs.c: Likewise.
59812         * tests/unictype/test-ctype_alnum.c: Likewise.
59813         * tests/unictype/test-ctype_alpha.c: Likewise.
59814         * tests/unictype/test-ctype_blank.c: Likewise.
59815         * tests/unictype/test-ctype_cntrl.c: Likewise.
59816         * tests/unictype/test-ctype_digit.c: Likewise.
59817         * tests/unictype/test-ctype_graph.c: Likewise.
59818         * tests/unictype/test-ctype_lower.c: Likewise.
59819         * tests/unictype/test-ctype_print.c: Likewise.
59820         * tests/unictype/test-ctype_punct.c: Likewise.
59821         * tests/unictype/test-ctype_space.c: Likewise.
59822         * tests/unictype/test-ctype_upper.c: Likewise.
59823         * tests/unictype/test-ctype_xdigit.c: Likewise.
59824         * tests/unictype/test-decdigit.h: Likewise.
59825         * tests/unictype/test-digit.h: Likewise.
59826         * tests/unictype/test-numeric.h: Likewise.
59827         * tests/unictype/test-pr_alphabetic.c: Likewise.
59828         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59829         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59830         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59831         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59832         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59833         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59834         * tests/unictype/test-pr_bidi_control.c: Likewise.
59835         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59836         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59837         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59838         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59839         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59840         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59841         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59842         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59843         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59844         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59845         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59846         * tests/unictype/test-pr_combining.c: Likewise.
59847         * tests/unictype/test-pr_composite.c: Likewise.
59848         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59849         * tests/unictype/test-pr_dash.c: Likewise.
59850         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59851         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59852         * tests/unictype/test-pr_deprecated.c: Likewise.
59853         * tests/unictype/test-pr_diacritic.c: Likewise.
59854         * tests/unictype/test-pr_extender.c: Likewise.
59855         * tests/unictype/test-pr_format_control.c: Likewise.
59856         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59857         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59858         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59859         * tests/unictype/test-pr_hex_digit.c: Likewise.
59860         * tests/unictype/test-pr_hyphen.c: Likewise.
59861         * tests/unictype/test-pr_id_continue.c: Likewise.
59862         * tests/unictype/test-pr_id_start.c: Likewise.
59863         * tests/unictype/test-pr_ideographic.c: Likewise.
59864         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59865         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59866         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59867         * tests/unictype/test-pr_iso_control.c: Likewise.
59868         * tests/unictype/test-pr_join_control.c: Likewise.
59869         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59870         * tests/unictype/test-pr_line_separator.c: Likewise.
59871         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59872         * tests/unictype/test-pr_lowercase.c: Likewise.
59873         * tests/unictype/test-pr_math.c: Likewise.
59874         * tests/unictype/test-pr_non_break.c: Likewise.
59875         * tests/unictype/test-pr_not_a_character.c: Likewise.
59876         * tests/unictype/test-pr_numeric.c: Likewise.
59877         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59878         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59879         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59880         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59881         * tests/unictype/test-pr_other_id_start.c: Likewise.
59882         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59883         * tests/unictype/test-pr_other_math.c: Likewise.
59884         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59885         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59886         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59887         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59888         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59889         * tests/unictype/test-pr_private_use.c: Likewise.
59890         * tests/unictype/test-pr_punctuation.c: Likewise.
59891         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59892         * tests/unictype/test-pr_radical.c: Likewise.
59893         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59894         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59895         * tests/unictype/test-pr_space.c: Likewise.
59896         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59897         * tests/unictype/test-pr_titlecase.c: Likewise.
59898         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59899         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59900         * tests/unictype/test-pr_uppercase.c: Likewise.
59901         * tests/unictype/test-pr_variation_selector.c: Likewise.
59902         * tests/unictype/test-pr_white_space.c: Likewise.
59903         * tests/unictype/test-pr_xid_continue.c: Likewise.
59904         * tests/unictype/test-pr_xid_start.c: Likewise.
59905         * tests/unictype/test-pr_zero_width.c: Likewise.
59906         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59907         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59908
59909 2007-11-12  Bruno Haible  <bruno@clisp.org>
59910
59911         Unicode character classification functions.
59912         * lib/unictype.h: New file.
59913         * modules/unictype/base: New file.
59914         * modules/unictype/category-L: New file.
59915         * modules/unictype/category-Lu: New file.
59916         * modules/unictype/category-Ll: New file.
59917         * modules/unictype/category-Lt: New file.
59918         * modules/unictype/category-Lm: New file.
59919         * modules/unictype/category-Lo: New file.
59920         * modules/unictype/category-M: New file.
59921         * modules/unictype/category-Mn: New file.
59922         * modules/unictype/category-Mc: New file.
59923         * modules/unictype/category-Me: New file.
59924         * modules/unictype/category-N: New file.
59925         * modules/unictype/category-Nd: New file.
59926         * modules/unictype/category-Nl: New file.
59927         * modules/unictype/category-No: New file.
59928         * modules/unictype/category-P: New file.
59929         * modules/unictype/category-Pc: New file.
59930         * modules/unictype/category-Pd: New file.
59931         * modules/unictype/category-Ps: New file.
59932         * modules/unictype/category-Pe: New file.
59933         * modules/unictype/category-Pi: New file.
59934         * modules/unictype/category-Pf: New file.
59935         * modules/unictype/category-Po: New file.
59936         * modules/unictype/category-S: New file.
59937         * modules/unictype/category-Sm: New file.
59938         * modules/unictype/category-Sc: New file.
59939         * modules/unictype/category-Sk: New file.
59940         * modules/unictype/category-So: New file.
59941         * modules/unictype/category-Z: New file.
59942         * modules/unictype/category-Zs: New file.
59943         * modules/unictype/category-Zl: New file.
59944         * modules/unictype/category-Zp: New file.
59945         * modules/unictype/category-C: New file.
59946         * modules/unictype/category-Cc: New file.
59947         * modules/unictype/category-Cf: New file.
59948         * modules/unictype/category-Cs: New file.
59949         * modules/unictype/category-Co: New file.
59950         * modules/unictype/category-Cn: New file.
59951         * modules/unictype/category-or: New file.
59952         * modules/unictype/category-of: New file.
59953         * modules/unictype/category-test: New file.
59954         * modules/unictype/category-test-withtable: New file.
59955         * modules/unictype/category-byname: New file.
59956         * modules/unictype/category-none: New file.
59957         * modules/unictype/category-and: New file.
59958         * modules/unictype/category-and-not: New file.
59959         * modules/unictype/category-name: New file.
59960         * modules/unictype/combining-class: New file.
59961         * modules/unictype/category-all: New file.
59962         * modules/unictype/bidicategory-all: New file.
59963         * modules/unictype/bidicategory-byname: New file.
59964         * modules/unictype/bidicategory-name: New file.
59965         * modules/unictype/bidicategory-of: New file.
59966         * modules/unictype/bidicategory-test: New file.
59967         * modules/unictype/decimal-digit: New file.
59968         * modules/unictype/digit: New file.
59969         * modules/unictype/numeric: New file.
59970         * modules/unictype/mirror: New file.
59971         * modules/unictype/property-white-space: New file.
59972         * modules/unictype/property-alphabetic: New file.
59973         * modules/unictype/property-other-alphabetic: New file.
59974         * modules/unictype/property-not-a-character: New file.
59975         * modules/unictype/property-default-ignorable-code-point: New file.
59976         * modules/unictype/property-other-default-ignorable-code-point: New
59977         file.
59978         * modules/unictype/property-deprecated: New file.
59979         * modules/unictype/property-logical-order-exception: New file.
59980         * modules/unictype/property-variation-selector: New file.
59981         * modules/unictype/property-private-use: New file.
59982         * modules/unictype/property-unassigned-code-value: New file.
59983         * modules/unictype/property-uppercase: New file.
59984         * modules/unictype/property-other-uppercase: New file.
59985         * modules/unictype/property-lowercase: New file.
59986         * modules/unictype/property-other-lowercase: New file.
59987         * modules/unictype/property-titlecase: New file.
59988         * modules/unictype/property-soft-dotted: New file.
59989         * modules/unictype/property-id-start: New file.
59990         * modules/unictype/property-other-id-start: New file.
59991         * modules/unictype/property-id-continue: New file.
59992         * modules/unictype/property-other-id-continue: New file.
59993         * modules/unictype/property-xid-start: New file.
59994         * modules/unictype/property-xid-continue: New file.
59995         * modules/unictype/property-pattern-white-space: New file.
59996         * modules/unictype/property-pattern-syntax: New file.
59997         * modules/unictype/property-join-control: New file.
59998         * modules/unictype/property-grapheme-base: New file.
59999         * modules/unictype/property-grapheme-extend: New file.
60000         * modules/unictype/property-other-grapheme-extend: New file.
60001         * modules/unictype/property-grapheme-link: New file.
60002         * modules/unictype/property-bidi-control: New file.
60003         * modules/unictype/property-bidi-left-to-right: New file.
60004         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60005         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60006         * modules/unictype/property-bidi-european-digit: New file.
60007         * modules/unictype/property-bidi-eur-num-separator: New file.
60008         * modules/unictype/property-bidi-eur-num-terminator: New file.
60009         * modules/unictype/property-bidi-arabic-digit: New file.
60010         * modules/unictype/property-bidi-common-separator: New file.
60011         * modules/unictype/property-bidi-block-separator: New file.
60012         * modules/unictype/property-bidi-segment-separator: New file.
60013         * modules/unictype/property-bidi-whitespace: New file.
60014         * modules/unictype/property-bidi-non-spacing-mark: New file.
60015         * modules/unictype/property-bidi-boundary-neutral: New file.
60016         * modules/unictype/property-bidi-pdf: New file.
60017         * modules/unictype/property-bidi-embedding-or-override: New file.
60018         * modules/unictype/property-bidi-other-neutral: New file.
60019         * modules/unictype/property-hex-digit: New file.
60020         * modules/unictype/property-ascii-hex-digit: New file.
60021         * modules/unictype/property-ideographic: New file.
60022         * modules/unictype/property-unified-ideograph: New file.
60023         * modules/unictype/property-radical: New file.
60024         * modules/unictype/property-ids-binary-operator: New file.
60025         * modules/unictype/property-ids-trinary-operator: New file.
60026         * modules/unictype/property-zero-width: New file.
60027         * modules/unictype/property-space: New file.
60028         * modules/unictype/property-non-break: New file.
60029         * modules/unictype/property-iso-control: New file.
60030         * modules/unictype/property-format-control: New file.
60031         * modules/unictype/property-dash: New file.
60032         * modules/unictype/property-hyphen: New file.
60033         * modules/unictype/property-punctuation: New file.
60034         * modules/unictype/property-line-separator: New file.
60035         * modules/unictype/property-paragraph-separator: New file.
60036         * modules/unictype/property-quotation-mark: New file.
60037         * modules/unictype/property-sentence-terminal: New file.
60038         * modules/unictype/property-terminal-punctuation: New file.
60039         * modules/unictype/property-currency-symbol: New file.
60040         * modules/unictype/property-math: New file.
60041         * modules/unictype/property-other-math: New file.
60042         * modules/unictype/property-paired-punctuation: New file.
60043         * modules/unictype/property-left-of-pair: New file.
60044         * modules/unictype/property-combining: New file.
60045         * modules/unictype/property-composite: New file.
60046         * modules/unictype/property-decimal-digit: New file.
60047         * modules/unictype/property-numeric: New file.
60048         * modules/unictype/property-diacritic: New file.
60049         * modules/unictype/property-extender: New file.
60050         * modules/unictype/property-ignorable-control: New file.
60051         * modules/unictype/property-test: New file.
60052         * modules/unictype/property-byname: New file.
60053         * modules/unictype/property-all: New file.
60054         * modules/unictype/scripts: New file.
60055         * modules/unictype/scripts-all: New file.
60056         * modules/unictype/block-of: New file.
60057         * modules/unictype/block-test: New file.
60058         * modules/unictype/block-list: New file.
60059         * modules/unictype/block-all: New file.
60060         * modules/unictype/syntax-c-whitespace: New file.
60061         * modules/unictype/syntax-java-whitespace: New file.
60062         * modules/unictype/syntax-c-ident: New file.
60063         * modules/unictype/syntax-java-ident: New file.
60064         * modules/unictype/ctype-alnum: New file.
60065         * modules/unictype/ctype-alpha: New file.
60066         * modules/unictype/ctype-cntrl: New file.
60067         * modules/unictype/ctype-digit: New file.
60068         * modules/unictype/ctype-graph: New file.
60069         * modules/unictype/ctype-lower: New file.
60070         * modules/unictype/ctype-print: New file.
60071         * modules/unictype/ctype-punct: New file.
60072         * modules/unictype/ctype-space: New file.
60073         * modules/unictype/ctype-upper: New file.
60074         * modules/unictype/ctype-xdigit: New file.
60075         * modules/unictype/ctype-blank: New file.
60076         * lib/unictype/bidi_byname.c: New file.
60077         * lib/unictype/bidi_name.c: New file.
60078         * lib/unictype/bidi_of.c: New file.
60079         * lib/unictype/bidi_test.c: New file.
60080         * lib/unictype/bitmap.h: New file.
60081         * lib/unictype/block_test.c: New file.
60082         * lib/unictype/blocks.c: New file.
60083         * lib/unictype/categ_C.c: New file.
60084         * lib/unictype/categ_Cc.c: New file.
60085         * lib/unictype/categ_Cf.c: New file.
60086         * lib/unictype/categ_Cn.c: New file.
60087         * lib/unictype/categ_Co.c: New file.
60088         * lib/unictype/categ_Cs.c: New file.
60089         * lib/unictype/categ_L.c: New file.
60090         * lib/unictype/categ_Ll.c: New file.
60091         * lib/unictype/categ_Lm.c: New file.
60092         * lib/unictype/categ_Lo.c: New file.
60093         * lib/unictype/categ_Lt.c: New file.
60094         * lib/unictype/categ_Lu.c: New file.
60095         * lib/unictype/categ_M.c: New file.
60096         * lib/unictype/categ_Mc.c: New file.
60097         * lib/unictype/categ_Me.c: New file.
60098         * lib/unictype/categ_Mn.c: New file.
60099         * lib/unictype/categ_N.c: New file.
60100         * lib/unictype/categ_Nd.c: New file.
60101         * lib/unictype/categ_Nl.c: New file.
60102         * lib/unictype/categ_No.c: New file.
60103         * lib/unictype/categ_P.c: New file.
60104         * lib/unictype/categ_Pc.c: New file.
60105         * lib/unictype/categ_Pd.c: New file.
60106         * lib/unictype/categ_Pe.c: New file.
60107         * lib/unictype/categ_Pf.c: New file.
60108         * lib/unictype/categ_Pi.c: New file.
60109         * lib/unictype/categ_Po.c: New file.
60110         * lib/unictype/categ_Ps.c: New file.
60111         * lib/unictype/categ_S.c: New file.
60112         * lib/unictype/categ_Sc.c: New file.
60113         * lib/unictype/categ_Sk.c: New file.
60114         * lib/unictype/categ_Sm.c: New file.
60115         * lib/unictype/categ_So.c: New file.
60116         * lib/unictype/categ_Z.c: New file.
60117         * lib/unictype/categ_Zl.c: New file.
60118         * lib/unictype/categ_Zp.c: New file.
60119         * lib/unictype/categ_Zs.c: New file.
60120         * lib/unictype/categ_and.c: New file.
60121         * lib/unictype/categ_and_not.c: New file.
60122         * lib/unictype/categ_byname.c: New file.
60123         * lib/unictype/categ_name.c: New file.
60124         * lib/unictype/categ_none.c: New file.
60125         * lib/unictype/categ_of.c: New file.
60126         * lib/unictype/categ_or.c: New file.
60127         * lib/unictype/categ_test.c: New file.
60128         * lib/unictype/combining.c: New file.
60129         * lib/unictype/ctype_alnum.c: New file.
60130         * lib/unictype/ctype_alpha.c: New file.
60131         * lib/unictype/ctype_blank.c: New file.
60132         * lib/unictype/ctype_cntrl.c: New file.
60133         * lib/unictype/ctype_digit.c: New file.
60134         * lib/unictype/ctype_graph.c: New file.
60135         * lib/unictype/ctype_lower.c: New file.
60136         * lib/unictype/ctype_print.c: New file.
60137         * lib/unictype/ctype_punct.c: New file.
60138         * lib/unictype/ctype_space.c: New file.
60139         * lib/unictype/ctype_upper.c: New file.
60140         * lib/unictype/ctype_xdigit.c: New file.
60141         * lib/unictype/decdigit.c: New file.
60142         * lib/unictype/digit.c: New file.
60143         * lib/unictype/identsyntaxmap.h: New file.
60144         * lib/unictype/mirror.c: New file.
60145         * lib/unictype/numeric.c: New file.
60146         * lib/unictype/pr_alphabetic.c: New file.
60147         * lib/unictype/pr_ascii_hex_digit.c: New file.
60148         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60149         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60150         * lib/unictype/pr_bidi_block_separator.c: New file.
60151         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60152         * lib/unictype/pr_bidi_common_separator.c: New file.
60153         * lib/unictype/pr_bidi_control.c: New file.
60154         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60155         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60156         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60157         * lib/unictype/pr_bidi_european_digit.c: New file.
60158         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60159         * lib/unictype/pr_bidi_left_to_right.c: New file.
60160         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60161         * lib/unictype/pr_bidi_other_neutral.c: New file.
60162         * lib/unictype/pr_bidi_pdf.c: New file.
60163         * lib/unictype/pr_bidi_segment_separator.c: New file.
60164         * lib/unictype/pr_bidi_whitespace.c: New file.
60165         * lib/unictype/pr_byname.c: New file.
60166         * lib/unictype/pr_byname.gperf: New file.
60167         * lib/unictype/pr_combining.c: New file.
60168         * lib/unictype/pr_composite.c: New file.
60169         * lib/unictype/pr_currency_symbol.c: New file.
60170         * lib/unictype/pr_dash.c: New file.
60171         * lib/unictype/pr_decimal_digit.c: New file.
60172         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60173         * lib/unictype/pr_deprecated.c: New file.
60174         * lib/unictype/pr_diacritic.c: New file.
60175         * lib/unictype/pr_extender.c: New file.
60176         * lib/unictype/pr_format_control.c: New file.
60177         * lib/unictype/pr_grapheme_base.c: New file.
60178         * lib/unictype/pr_grapheme_extend.c: New file.
60179         * lib/unictype/pr_grapheme_link.c: New file.
60180         * lib/unictype/pr_hex_digit.c: New file.
60181         * lib/unictype/pr_hyphen.c: New file.
60182         * lib/unictype/pr_id_continue.c: New file.
60183         * lib/unictype/pr_id_start.c: New file.
60184         * lib/unictype/pr_ideographic.c: New file.
60185         * lib/unictype/pr_ids_binary_operator.c: New file.
60186         * lib/unictype/pr_ids_trinary_operator.c: New file.
60187         * lib/unictype/pr_ignorable_control.c: New file.
60188         * lib/unictype/pr_iso_control.c: New file.
60189         * lib/unictype/pr_join_control.c: New file.
60190         * lib/unictype/pr_left_of_pair.c: New file.
60191         * lib/unictype/pr_line_separator.c: New file.
60192         * lib/unictype/pr_logical_order_exception.c: New file.
60193         * lib/unictype/pr_lowercase.c: New file.
60194         * lib/unictype/pr_math.c: New file.
60195         * lib/unictype/pr_non_break.c: New file.
60196         * lib/unictype/pr_not_a_character.c: New file.
60197         * lib/unictype/pr_numeric.c: New file.
60198         * lib/unictype/pr_other_alphabetic.c: New file.
60199         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60200         * lib/unictype/pr_other_grapheme_extend.c: New file.
60201         * lib/unictype/pr_other_id_continue.c: New file.
60202         * lib/unictype/pr_other_id_start.c: New file.
60203         * lib/unictype/pr_other_lowercase.c: New file.
60204         * lib/unictype/pr_other_math.c: New file.
60205         * lib/unictype/pr_other_uppercase.c: New file.
60206         * lib/unictype/pr_paired_punctuation.c: New file.
60207         * lib/unictype/pr_paragraph_separator.c: New file.
60208         * lib/unictype/pr_pattern_syntax.c: New file.
60209         * lib/unictype/pr_pattern_white_space.c: New file.
60210         * lib/unictype/pr_private_use.c: New file.
60211         * lib/unictype/pr_punctuation.c: New file.
60212         * lib/unictype/pr_quotation_mark.c: New file.
60213         * lib/unictype/pr_radical.c: New file.
60214         * lib/unictype/pr_sentence_terminal.c: New file.
60215         * lib/unictype/pr_soft_dotted.c: New file.
60216         * lib/unictype/pr_space.c: New file.
60217         * lib/unictype/pr_terminal_punctuation.c: New file.
60218         * lib/unictype/pr_test.c: New file.
60219         * lib/unictype/pr_titlecase.c: New file.
60220         * lib/unictype/pr_unassigned_code_value.c: New file.
60221         * lib/unictype/pr_unified_ideograph.c: New file.
60222         * lib/unictype/pr_uppercase.c: New file.
60223         * lib/unictype/pr_variation_selector.c: New file.
60224         * lib/unictype/pr_white_space.c: New file.
60225         * lib/unictype/pr_xid_continue.c: New file.
60226         * lib/unictype/pr_xid_start.c: New file.
60227         * lib/unictype/pr_zero_width.c: New file.
60228         * lib/unictype/scripts.c: New file.
60229         * lib/unictype/sy_c_ident.c: New file.
60230         * lib/unictype/sy_c_whitespace.c: New file.
60231         * lib/unictype/sy_java_ident.c: New file.
60232         * lib/unictype/sy_java_whitespace.c: New file.
60233
60234         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60235         Unicode 5.0.0.
60236         * lib/unictype/blocks.h: Likewise.
60237         * lib/unictype/categ_C.h: Likewise.
60238         * lib/unictype/categ_Cc.h: Likewise.
60239         * lib/unictype/categ_Cf.h: Likewise.
60240         * lib/unictype/categ_Cn.h: Likewise.
60241         * lib/unictype/categ_Co.h: Likewise.
60242         * lib/unictype/categ_Cs.h: Likewise.
60243         * lib/unictype/categ_L.h: Likewise.
60244         * lib/unictype/categ_Ll.h: Likewise.
60245         * lib/unictype/categ_Lm.h: Likewise.
60246         * lib/unictype/categ_Lo.h: Likewise.
60247         * lib/unictype/categ_Lt.h: Likewise.
60248         * lib/unictype/categ_Lu.h: Likewise.
60249         * lib/unictype/categ_M.h: Likewise.
60250         * lib/unictype/categ_Mc.h: Likewise.
60251         * lib/unictype/categ_Me.h: Likewise.
60252         * lib/unictype/categ_Mn.h: Likewise.
60253         * lib/unictype/categ_N.h: Likewise.
60254         * lib/unictype/categ_Nd.h: Likewise.
60255         * lib/unictype/categ_Nl.h: Likewise.
60256         * lib/unictype/categ_No.h: Likewise.
60257         * lib/unictype/categ_P.h: Likewise.
60258         * lib/unictype/categ_Pc.h: Likewise.
60259         * lib/unictype/categ_Pd.h: Likewise.
60260         * lib/unictype/categ_Pe.h: Likewise.
60261         * lib/unictype/categ_Pf.h: Likewise.
60262         * lib/unictype/categ_Pi.h: Likewise.
60263         * lib/unictype/categ_Po.h: Likewise.
60264         * lib/unictype/categ_Ps.h: Likewise.
60265         * lib/unictype/categ_S.h: Likewise.
60266         * lib/unictype/categ_Sc.h: Likewise.
60267         * lib/unictype/categ_Sk.h: Likewise.
60268         * lib/unictype/categ_Sm.h: Likewise.
60269         * lib/unictype/categ_So.h: Likewise.
60270         * lib/unictype/categ_Z.h: Likewise.
60271         * lib/unictype/categ_Zl.h: Likewise.
60272         * lib/unictype/categ_Zp.h: Likewise.
60273         * lib/unictype/categ_Zs.h: Likewise.
60274         * lib/unictype/categ_of.h: Likewise.
60275         * lib/unictype/combining.h: Likewise.
60276         * lib/unictype/ctype_alnum.h: Likewise.
60277         * lib/unictype/ctype_alpha.h: Likewise.
60278         * lib/unictype/ctype_blank.h: Likewise.
60279         * lib/unictype/ctype_cntrl.h: Likewise.
60280         * lib/unictype/ctype_digit.h: Likewise.
60281         * lib/unictype/ctype_graph.h: Likewise.
60282         * lib/unictype/ctype_lower.h: Likewise.
60283         * lib/unictype/ctype_print.h: Likewise.
60284         * lib/unictype/ctype_punct.h: Likewise.
60285         * lib/unictype/ctype_space.h: Likewise.
60286         * lib/unictype/ctype_upper.h: Likewise.
60287         * lib/unictype/ctype_xdigit.h: Likewise.
60288         * lib/unictype/decdigit.h: Likewise.
60289         * lib/unictype/digit.h: Likewise.
60290         * lib/unictype/mirror.h: Likewise.
60291         * lib/unictype/numeric.h: Likewise.
60292         * lib/unictype/pr_alphabetic.h: Likewise.
60293         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60294         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60295         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60296         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60297         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60298         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60299         * lib/unictype/pr_bidi_control.h: Likewise.
60300         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60301         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60302         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60303         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60304         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60305         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60306         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60307         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60308         * lib/unictype/pr_bidi_pdf.h: Likewise.
60309         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60310         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60311         * lib/unictype/pr_combining.h: Likewise.
60312         * lib/unictype/pr_composite.h: Likewise.
60313         * lib/unictype/pr_currency_symbol.h: Likewise.
60314         * lib/unictype/pr_dash.h: Likewise.
60315         * lib/unictype/pr_decimal_digit.h: Likewise.
60316         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60317         * lib/unictype/pr_deprecated.h: Likewise.
60318         * lib/unictype/pr_diacritic.h: Likewise.
60319         * lib/unictype/pr_extender.h: Likewise.
60320         * lib/unictype/pr_format_control.h: Likewise.
60321         * lib/unictype/pr_grapheme_base.h: Likewise.
60322         * lib/unictype/pr_grapheme_extend.h: Likewise.
60323         * lib/unictype/pr_grapheme_link.h: Likewise.
60324         * lib/unictype/pr_hex_digit.h: Likewise.
60325         * lib/unictype/pr_hyphen.h: Likewise.
60326         * lib/unictype/pr_id_continue.h: Likewise.
60327         * lib/unictype/pr_id_start.h: Likewise.
60328         * lib/unictype/pr_ideographic.h: Likewise.
60329         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60330         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60331         * lib/unictype/pr_ignorable_control.h: Likewise.
60332         * lib/unictype/pr_iso_control.h: Likewise.
60333         * lib/unictype/pr_join_control.h: Likewise.
60334         * lib/unictype/pr_left_of_pair.h: Likewise.
60335         * lib/unictype/pr_line_separator.h: Likewise.
60336         * lib/unictype/pr_logical_order_exception.h: Likewise.
60337         * lib/unictype/pr_lowercase.h: Likewise.
60338         * lib/unictype/pr_math.h: Likewise.
60339         * lib/unictype/pr_non_break.h: Likewise.
60340         * lib/unictype/pr_not_a_character.h: Likewise.
60341         * lib/unictype/pr_numeric.h: Likewise.
60342         * lib/unictype/pr_other_alphabetic.h: Likewise.
60343         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60344         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60345         * lib/unictype/pr_other_id_continue.h: Likewise.
60346         * lib/unictype/pr_other_id_start.h: Likewise.
60347         * lib/unictype/pr_other_lowercase.h: Likewise.
60348         * lib/unictype/pr_other_math.h: Likewise.
60349         * lib/unictype/pr_other_uppercase.h: Likewise.
60350         * lib/unictype/pr_paired_punctuation.h: Likewise.
60351         * lib/unictype/pr_paragraph_separator.h: Likewise.
60352         * lib/unictype/pr_pattern_syntax.h: Likewise.
60353         * lib/unictype/pr_pattern_white_space.h: Likewise.
60354         * lib/unictype/pr_private_use.h: Likewise.
60355         * lib/unictype/pr_punctuation.h: Likewise.
60356         * lib/unictype/pr_quotation_mark.h: Likewise.
60357         * lib/unictype/pr_radical.h: Likewise.
60358         * lib/unictype/pr_sentence_terminal.h: Likewise.
60359         * lib/unictype/pr_soft_dotted.h: Likewise.
60360         * lib/unictype/pr_space.h: Likewise.
60361         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60362         * lib/unictype/pr_titlecase.h: Likewise.
60363         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60364         * lib/unictype/pr_unified_ideograph.h: Likewise.
60365         * lib/unictype/pr_uppercase.h: Likewise.
60366         * lib/unictype/pr_variation_selector.h: Likewise.
60367         * lib/unictype/pr_white_space.h: Likewise.
60368         * lib/unictype/pr_xid_continue.h: Likewise.
60369         * lib/unictype/pr_xid_start.h: Likewise.
60370         * lib/unictype/pr_zero_width.h: Likewise.
60371         * lib/unictype/scripts.h: Likewise.
60372         * lib/unictype/scripts_byname.gperf: Likewise.
60373         * lib/unictype/sy_c_ident.h: Likewise.
60374         * lib/unictype/sy_c_whitespace.h: Likewise.
60375         * lib/unictype/sy_java_ident.h: Likewise.
60376         * lib/unictype/sy_java_whitespace.h: Likewise.
60377
60378         * lib/unictype/Makefile: New file.
60379         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60380         glibc.
60381         * lib/unictype/3level.h: New file, copied from glibc.
60382         * lib/unictype/3levelbit.h: New file.
60383
60384 2007-11-11  Bruno Haible  <bruno@clisp.org>
60385
60386         * modules/gperf: New file.
60387         * modules/iconv_open (Depends-on): Add it.
60388         (Makefile.am): Remove the GPERF definition.
60389
60390 2007-11-11  Bruno Haible  <bruno@clisp.org>
60391
60392         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60393         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60394
60395 2007-11-11  Bruno Haible  <bruno@clisp.org>
60396
60397         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60398         (usage): Remove function.
60399
60400 2007-11-11  Bruno Haible  <bruno@clisp.org>
60401
60402         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60403         gl_FUNC_CEILF_LIBS.
60404         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60405         gl_FUNC_CEIL_LIBS.
60406         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60407         gl_FUNC_CEILL_LIBS.
60408         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60409         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60410         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60411
60412 2007-11-11  Bruno Haible  <bruno@clisp.org>
60413
60414         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60415         roundf were declared but do not exist on functions.
60416         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60417         roundl were declared but do not exist on functions.
60418         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60419         HAVE_FLOORL_AND_CEILL, respectively.
60420         Needed for Sun C on Solaris 10.
60421
60422 2007-11-11  Bruno Haible  <bruno@clisp.org>
60423
60424         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60425         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60426         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60427         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60428         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60429         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60430         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60431         HAVE_DECL_ROUNDF.
60432         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60433         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60435         of HAVE_DECL_ROUND*.
60436         * modules/math (Makefile.am): Update.
60437
60438 2007-11-10  Bruno Haible  <bruno@clisp.org>
60439
60440         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60441         ptrdiff_t as m4/intl.m4.
60442
60443 2007-11-10  Jim Meyering  <meyering@redhat.com>
60444
60445         Avoid link failure for the argmatch test.
60446         * tests/test-argmatch.c (usage): Define function to avoid a link
60447         failure: argmatch_die requires a usage function.
60448
60449 2007-11-09  Bruno Haible  <bruno@clisp.org>
60450
60451         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60452         * doc/functions/vsnprintf.texi: Likewise.
60453         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60454         with a size argument < 2.
60455
60456 2007-11-09  Bruno Haible  <bruno@clisp.org>
60457
60458         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60459         buffer. Fixes an inefficiency introduced on 2007-11-03.
60460
60461 2007-11-09  Bruno Haible  <bruno@clisp.org>
60462
60463         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60464         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60465
60466 2007-11-08  Jim Meyering  <meyering@redhat.com>
60467
60468         Change cache variable name prefix "jm_" to "gl_" everywhere.
60469         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60470         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60471         * m4/uptime.m4: s/gl_/jm_/
60472
60473 2007-11-07  Bruno Haible  <bruno@clisp.org>
60474
60475         Update to GNU gettext 0.17.
60476         * m4/intl.m4: Update to GNU gettext 0.17.
60477         * m4/po.m4: Likewise.
60478         * modules/gettext (Files): Remove m4/ulonglong.m4.
60479         (configure.ac): Require gettext infrastructure from version 0.17.
60480
60481 2007-11-06  Bruno Haible  <bruno@clisp.org>
60482
60483         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60484         symbolic values are not defined in a public header.
60485         * lib/freadable.c (freadable) [QNX]: Likewise.
60486         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60487         * lib/freading.c (freading) [QNX]: Likewise.
60488         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60489         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60490         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60491         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60492         Reported by Alain Magloire.
60493
60494         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60495
60496 2007-11-05  Bruno Haible  <bruno@clisp.org>
60497
60498         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60499         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60500         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60501         Reported by Eric Blake.
60502
60503 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60504             Bruno Haible  <bruno@clisp.org>
60505
60506         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60507         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60508         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60509         (malloc): Undefine also before including <stdlib.h>.
60510         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60511         Needed on OSF/1 4.0.
60512
60513 2007-11-05  Jim Meyering  <meyering@redhat.com>
60514
60515         git-version-gen: sync from coreutils.
60516         * build-aux/git-version-gen: Add comments.
60517         Change the first '-' to '.' in the snapshot version string,
60518         e.g., 6.9-377-08144 -> 6.9.377-08144
60519         Remove first parameter.
60520         Don't declare a version "-dirty" merely because a time
60521         stamp has changed.
60522
60523 2007-11-04  Bruno Haible  <bruno@clisp.org>
60524
60525         * lib/lock.h: Protect all macro definitions containing an 'if'
60526         statement through a "do { ... } while (0)".
60527         * lib/tls.h: Likewise.
60528
60529 2007-11-04  Bruno Haible  <bruno@clisp.org>
60530
60531         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60532
60533 2007-11-04  Bruno Haible  <bruno@clisp.org>
60534
60535         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60536         * modules/fprintf-posix (Depends-on): Add nocrash.
60537         * modules/snprintf-posix (Depends-on): Likewise.
60538         * modules/sprintf-posix (Depends-on): Likewise.
60539         * modules/vasnprintf-posix (Depends-on): Likewise.
60540         * modules/vasprintf-posix (Depends-on): Likewise.
60541         * modules/vfprintf-posix (Depends-on): Likewise.
60542         * modules/vsnprintf-posix (Depends-on): Likewise.
60543         * modules/vsprintf-posix (Depends-on): Likewise.
60544         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60545         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60546         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60547         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60548         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60549         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60550         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60551
60552 2007-11-04  Bruno Haible  <bruno@clisp.org>
60553
60554         * modules/nocrash: New file.
60555         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60556         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60557
60558 2007-11-04  Bruno Haible  <bruno@clisp.org>
60559
60560         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60561         precision handling.
60562         * tests/test-vasprintf-posix.c (test_function): Likewise.
60563         * tests/test-snprintf-posix.h (test_function): Likewise.
60564         * tests/test-sprintf-posix.h (test_function): Likewise.
60565
60566         Fix *printf behaviour for large precisions on mingw and BeOS.
60567         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60568         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60570         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60572         gl_PRINTF_PRECISION and test its result. Invoke
60573         gl_PREREQ_VASNPRINTF_PRECISION.
60574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60580         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60581         * doc/functions/fprintf.texi: Update.
60582         * doc/functions/printf.texi: Update.
60583         * doc/functions/snprintf.texi: Update.
60584         * doc/functions/sprintf.texi: Update.
60585         * doc/functions/vfprintf.texi: Update.
60586         * doc/functions/vprintf.texi: Update.
60587         * doc/functions/vsnprintf.texi: Update.
60588         * doc/functions/vsprintf.texi: Update.
60589
60590 2007-11-04  Bruno Haible  <bruno@clisp.org>
60591
60592         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60593
60594 2007-11-04  Bruno Haible  <bruno@clisp.org>
60595
60596         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60597         Reported by Sylvain Beucler <beuc@gnu.org>.
60598
60599 2007-11-03  Bruno Haible  <bruno@clisp.org>
60600
60601         * tests/test-fprintf-posix2.sh: New file.
60602         * tests/test-fprintf-posix2.c: New file.
60603         * modules/fprintf-posix-tests (Files): Add them.
60604         (TESTS): Add test-fprintf-posix2.sh.
60605         (configure.ac): Check for getrlimit and setrlimit.
60606         (check_PROGRAMS): Add test-fprintf-posix2.
60607
60608         * tests/test-printf-posix2.sh: New file.
60609         * tests/test-printf-posix2.c: New file.
60610         * modules/printf-posix-tests (Files): Add them.
60611         (TESTS): Add test-printf-posix2.sh.
60612         (configure.ac): Check for getrlimit and setrlimit.
60613         (check_PROGRAMS): Add test-printf-posix2.
60614
60615         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60616         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60617         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60618         (decode_double): New function, copied from decode_long_double.
60619         (scale10_round_decimal_decoded): New function, extracted from
60620         scale10_round_decimal_long_double.
60621         (scale10_round_decimal_long_double): Use it.
60622         (scale10_round_decimal_double): New function.
60623         (floorlog10): New function.
60624         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60626         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60627         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60628         gl_PRINTF_ENOMEM and test its result. Invoke
60629         gl_PREREQ_VASNPRINTF_ENOMEM.
60630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60631         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60634         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60636         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60637         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60638         * modules/snprintf-posix (Depends-on): Likewise.
60639         * modules/sprintf-posix (Depends-on): Likewise.
60640         * modules/vasnprintf-posix (Depends-on): Likewise.
60641         * modules/vasprintf-posix (Depends-on): Likewise.
60642         * modules/vfprintf-posix (Depends-on): Likewise.
60643         * modules/vsnprintf-posix (Depends-on): Likewise.
60644         * modules/vsprintf-posix (Depends-on): Likewise.
60645         * doc/functions/fprintf.texi: Update.
60646         * doc/functions/printf.texi: Update.
60647         * doc/functions/snprintf.texi: Update.
60648         * doc/functions/sprintf.texi: Update.
60649         * doc/functions/vfprintf.texi: Update.
60650         * doc/functions/vprintf.texi: Update.
60651         * doc/functions/vsnprintf.texi: Update.
60652         * doc/functions/vsprintf.texi: Update.
60653
60654 2007-11-03  Bruno Haible  <bruno@clisp.org>
60655
60656         * modules/frexp-nolibm-tests: New file.
60657
60658         * modules/frexp-nolibm: New file.
60659         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60660
60661 2007-11-03  Bruno Haible  <bruno@clisp.org>
60662
60663         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60664         value is C99 compliant.
60665         Needed for OSF/1 5.1.
60666
60667 2007-11-03  Bruno Haible  <bruno@clisp.org>
60668
60669         Fix out-of-memory handling of vasnprintf.
60670         * lib/printf-parse.c: Include <errno.h>.
60671         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60672         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60673         is already set.
60674
60675 2007-11-02  Eric Blake  <ebb9@byu.net>
60676
60677         Fix tests on cygwin.
60678         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60679
60680 2007-11-01  Bruno Haible  <bruno@clisp.org>
60681
60682         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60683         warning.
60684         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60685         needed for POSIX compatibility.
60686
60687 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60688
60689         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60690         for compatibility with GNU.
60691
60692 2007-11-01  Bruno Haible  <bruno@clisp.org>
60693
60694         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60695         (putenv): Renamed from rpl_putenv. Change argument type from
60696         'const char *' to 'char *'.
60697         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60698         of defining putenv in config.h, just set REPLACE_PUTENV.
60699         * modules/putenv (Depends-on): Add stdlib.
60700         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60701         (Include): Use <stdlib.h>.
60702         * lib/stdlib.in.h (putenv): New declaration.
60703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60704         REPLACE_PUTENV.
60705         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60706         REPLACE_PUTENV.
60707         Needed for MacOS X 10.5.0.
60708         Reported by Peter O'Gorman <peter@pogma.com>.
60709
60710 2007-11-01  Jim Meyering  <meyering@redhat.com>
60711
60712         Treat an empty date string exactly like "0".
60713         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60714         if the remaining date string (to be parsed) is empty, use "0".
60715         Reported by Mischa Molhoek and discussed in this thread:
60716         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60717
60718 2007-10-31  Bruno Haible  <bruno@clisp.org>
60719
60720         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60721         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60722         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60723         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60724         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60725         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60726
60727 2007-10-31  Bruno Haible  <bruno@clisp.org>
60728
60729         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60730         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60731         (AC_TYPE_LONG_LONG_INT): Use it.
60732         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60733         it as well.
60734         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60735         to m4/longlong.m4.
60736         * modules/stdint (Files): Remove m4/ulonglong.m4.
60737         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60738         m4/ulonglong.m4.
60739         * modules/strtoumax (Files): Likewise.
60740
60741 2007-10-30  Bruno Haible  <bruno@clisp.org>
60742
60743         * modules/xvasprintf-posix: New file.
60744         Suggested by Eric Blake.
60745
60746 2007-10-30  Bruno Haible  <bruno@clisp.org>
60747
60748         * modules/xprintf-posix-tests: New file.
60749         * tests/test-xprintf-posix.sh: New file.
60750         * tests/test-xprintf-posix.c: New file.
60751         * tests/test-xfprintf-posix.c: New file.
60752
60753         * modules/xprintf-posix: New file.
60754
60755 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60756
60757         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60758         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60759         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60760
60761 2007-10-29  Bruno Haible  <bruno@clisp.org>
60762
60763         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60764         contain the special marker '_cv_'.
60765         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60766         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60767         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60768         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60769         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60770         Reported by Ralf Wildenhues.
60771
60772 2007-10-29  Bruno Haible  <bruno@clisp.org>
60773
60774         * gnulib-tool (func_import): When --lgpl is not specified, set
60775         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60776         GPLv3.
60777         Reported by Simon Josefsson.
60778
60779 2007-10-28  Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60782         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60783         HAVE_DECL_ISFINITE.
60784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60785         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60786         HAVE_DECL_ISFINITE.
60787
60788 2007-10-28  Bruno Haible  <bruno@clisp.org>
60789
60790         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60791         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60792
60793 2007-10-28  Bruno Haible  <bruno@clisp.org>
60794
60795         Fix link errors with Sun C 5.0 on Solaris 10.
60796         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60797         function is declared but not present in the compiler's libm.
60798         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60799         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60800         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60801         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60802         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60803         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60804         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60806         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60807         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60808         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60809         HAVE_DECL_FLOORL.
60810
60811 2007-10-28  Bruno Haible  <bruno@clisp.org>
60812
60813         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60814         gl_FUNC_FLOORL. Cache the result.
60815         (gl_FUNC_FLOORL): Use it.
60816         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60817         gl_FUNC_CEILL. Cache the result.
60818         (gl_FUNC_CEILL): Use it.
60819
60820         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60821         gl_FUNC_FLOOR. Cache the result.
60822         (gl_FUNC_FLOOR): Use it.
60823         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60824         gl_FUNC_CEIL. Cache the result.
60825         (gl_FUNC_CEIL): Use it.
60826
60827         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60828         gl_FUNC_FLOORF. Cache the result.
60829         (gl_FUNC_FLOORF): Use it.
60830         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60831         gl_FUNC_CEILF. Cache the result.
60832         (gl_FUNC_CEILF): Use it.
60833
60834 2007-10-28  Bruno Haible  <bruno@clisp.org>
60835
60836         * gnulib-tool: Allow specifying the LGPL version number through
60837         --lgpl=2 or --lgpl=3.
60838         (func_usage): Document --lgpl with argument.
60839         Handle --lgpl=... arguments.
60840         (func_import): Recognize also gl_LGPL calls with an argument. When
60841         --lgpl=2 is used and the module's license is just LGPL, report an
60842         error. Set sed_transform_lib_file according to the lgpl variable. In
60843         the generated files, use --lgpl or gl_LGPL invocations with argument,
60844         if necessary.
60845         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60846         an LGPv2+ license.
60847         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60848         gl_LGPL macro.
60849
60850 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60851             Bruno Haible  <bruno@clisp.org>
60852
60853         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60854         (u16_uctomb_aux): Likewise.
60855         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60856         !HAVE_INLINE.
60857         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60858
60859 2007-10-28  Bruno Haible  <bruno@clisp.org>
60860
60861         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60862         Invoke AM_GETTEXT_OPTION if it exists.
60863         * modules/vasprintf: Likewise.
60864         * modules/verror: Likewise.
60865         * modules/xprintf: Likewise.
60866         * modules/xvasprintf: Likewise.
60867
60868 2007-10-27  Ben Pfaff  <blp@gnu.org>
60869
60870         * lib/math.in.h: Define isfinite macro and prototypes for
60871         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60872         implementations.
60873         * m4/math_h.m4: New substitutions for isfinite module.
60874         * lib/isfinite.c: New file.
60875         * m4/isfinite.m4: New file.
60876         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60877         * modules/isfinite: New file.
60878         * modules/isfinite-tests: New file.
60879         * tests/tests-isfinite.c: New file.
60880         * doc/functions/isfinite.texi: Mention isfinite module.
60881         * MODULES.html.sh: Mention new module.
60882
60883 2007-10-27  Ben Pfaff  <blp@gnu.org>
60884
60885         Ralf Wildenhues reported that Tru64 4.0D declares the round
60886         functions but does not have definitions.
60887         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60888         cannot be found in any library, set the output variable to
60889         "missing" instead of "".
60890         * m4/round.m4: Also use our substitute if we cannot find round in
60891         any library, even if it is declared.
60892         * m4/roundf.m4: Likewise for roundf.
60893         * m4/roundl.m4: Likewise for roundl.
60894         * lib/math.in.h: Undefine roundf, round, roundl before defining
60895         their replacements, to allow for hypothetical systems where these
60896         may be defined as macros but not available in libraries.
60897
60898 2007-10-27  Bruno Haible  <bruno@clisp.org>
60899
60900         * doc/gnulib.texi: Invoke @firstparagraphindent.
60901         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60902         changes in gnulib.
60903         (Source changes): New section.
60904
60905 2007-10-26  Bruno Haible  <bruno@clisp.org>
60906
60907         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60908         borrowed from autoconf.
60909
60910 2007-10-26  Bruno Haible  <bruno@clisp.org>
60911
60912         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60913         strerror returned the empty string. Needed on HP-UX 11.00.
60914
60915 2007-10-24  Micah Cowan  <micah@cowan.name>
60916
60917         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60918         * build-aux/bootstrap: Remove support for now-unnecessary option,
60919         --cvs-user, and envvars CVS_USER, CVS_RSH.
60920
60921 2007-10-24  Jim Meyering  <meyering@redhat.com>
60922
60923         Avoid diagnostics from sha1sum when there is no cached checksum.
60924         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60925         if the po.s1 file hasn't been created yet.
60926
60927         * build-aux/bootstrap: Sync from coreutils:
60928         2007-10-24  Jim Meyering  <meyering@redhat.com>
60929         Get gnulib from the git repository, not from an obsolete cvs one.
60930         * build-aux/bootstrap: Suggestion from Micah Cowan.
60931         2007-10-04  Jim Meyering  <jim@meyering.net>
60932         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60933         (update_po_files): Work also when there are no .po files in po/.
60934
60935 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60936
60937         * README: Append ".git" to git and cg examples.
60938         Problem reported by Benoit Sigoure.
60939
60940 2007-10-23  Micah Cowan  <micah@cowan.name>
60941
60942         * users.txt: Add wget.
60943
60944 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60945
60946         Fix linking of some unistdio tests on FreeBSD.
60947         * modules/unistdio/u16-vsnprintf-tests
60948         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60949         * modules/unistdio/u16-vsprintf-tests
60950         (test_u16_vsnprintf1_LDADD): Likewise.
60951         * modules/unistdio/u32-vsnprintf-tests
60952         (test_u32_vsnprintf1_LDADD): Likewise.
60953         * modules/unistdio/u32-vsprintf-tests
60954         (test_u32_vsprintf1_LDADD): Likewise.
60955         * modules/unistdio/u8-vsnprintf-tests
60956         (test_u8_vsnprintf1_LDADD): Likewise.
60957         * modules/unistdio/u8-vsprintf-tests
60958         (test_u8_vsprintf1_LDADD): Likewise.
60959         * modules/unistdio/ulc-vsnprintf-tests
60960         (test_ulc_vsnprintf1_LDADD): Likewise.
60961         * modules/unistdio/ulc-vsprintf-tests
60962         (test_ulc_vsprintf1_LDADD): Likewise.
60963
60964         Fix linking of some uniconv tests on FreeBSD.
60965         * modules/uniconv/u16-conv-from-enc-tests
60966         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60967         * modules/uniconv/u16-conv-to-enc-tests
60968         (test_u16_conv_to_enc_LDADD): Likewise.
60969         * modules/uniconv/u16-strconv-from-enc-tests
60970         (test_u16_strconv_from_enc_LDADD): Likewise.
60971         * modules/uniconv/u16-strconv-to-enc-tests
60972         (test_u16_strconv_to_enc_LDADD): Likewise.
60973         * modules/uniconv/u32-conv-from-enc-tests
60974         (test_u32_conv_from_enc_LDADD): Likewise.
60975         * modules/uniconv/u32-conv-to-enc-tests
60976         (test_u32_conv_to_enc_LDADD): Likewise.
60977         * modules/uniconv/u32-strconv-from-enc-tests
60978         (test_u32_strconv_from_enc_LDADD): Likewise.
60979         * modules/uniconv/u32-strconv-to-enc-tests
60980         (test_u32_strconv_to_enc_LDADD): Likewise.
60981         * modules/uniconv/u8-conv-from-enc-tests
60982         (test_u8_conv_from_enc_LDADD): Likewise.
60983         * modules/uniconv/u8-conv-to-enc-tests
60984         (test_u8_conv_to_enc_LDADD): Likewise.
60985         * modules/uniconv/u8-strconv-from-enc-tests
60986         (test_u8_strconv_from_enc_LDADD): Likewise.
60987         * modules/uniconv/u8-strconv-to-enc-tests
60988         (test_u8_strconv_to_enc_LDADD): Likewise.
60989
60990 2007-10-22  Bruno Haible  <bruno@clisp.org>
60991
60992         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60993         size.
60994
60995 2007-10-22  Eric Blake  <ebb9@byu.net>
60996
60997         Tweak x*printf documentation.
60998         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60999         variable name and comments.
61000         Suggested by Bruno Haible.
61001
61002 2007-10-22  Bruno Haible  <bruno@clisp.org>
61003
61004         * lib/acl.c (copy_acl): Fix file name in comment.
61005
61006 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61007
61008         Fix Tru64 problem with stdbool.h.
61009         * lib/stdbool.in.h (false, true):
61010         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61011         Don't declare as an enum in this situation; it runs afoul of Tru64.
61012         Problem reported by Steven M. Schweda in
61013         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61014
61015 2007-10-22  Eric Blake  <ebb9@byu.net>
61016
61017         Also wrap vf?printf.
61018         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61019         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61020         (xvprintf, xvfprintf): New functions.
61021
61022 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61023
61024         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61025         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61026
61027         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61028         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61029
61030 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61031
61032         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61033         by Bruno Haible.
61034
61035 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61036
61037         * lib/getloadavg.c
61038         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61039         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61040
61041         * tests/test-i-ring.c: Work for C89.
61042
61043 2007-10-22  Bruno Haible  <bruno@clisp.org>
61044
61045         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61046         -1u, in preprocessor expression, so that we don't test for the bug
61047         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61048         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61049
61050 2007-10-22  Eric Blake  <ebb9@byu.net>
61051
61052         * tests/test-yesno.sh: Silence stderr during test.
61053
61054 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61055
61056         * modules/crypto/gc-camellia: New file.
61057
61058         * m4/gc-camellia.m4: New file.
61059
61060         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61061
61062         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61063
61064 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61065
61066         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61067         --help to stdout.  Reported by sms@antinode.org (Steven
61068         M. Schweda).
61069
61070 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61071
61072         * users.txt: Fix link to libksba.
61073
61074 2007-10-21  Ben Pfaff  <blp@gnu.org>
61075
61076         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61077         round.c roundf implementation that depends on floorf and ceilf to
61078         be tested unconditionally.
61079
61080 2007-10-21  Ben Pfaff  <blp@gnu.org>
61081
61082         * m4/check-libm-func.m4: Removed.
61083         * m4/check-math-lib.m4: New file.
61084         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61085         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61086         definition and lack of AC_LIBOBJ([roundf]).
61087         * m4/roundl.m4: Ditto, and similarly for roundl.
61088         * modules/round: Reference new m4 file.
61089         * modules/roundf: Ditto.
61090         * modules/roundl: Ditto.
61091         * tests/test-round2.c (main): Use ROUND instead of round.
61092         Bug report from Bruno Haible.
61093
61094 2007-10-21  Bruno Haible  <bruno@clisp.org>
61095
61096         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61097         context.
61098
61099 2007-10-21  Bruno Haible  <bruno@clisp.org>
61100
61101         * tests/test-wcwidth.c (main): Allow negative result for some control
61102         characters.
61103
61104         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61105         Needed on OSF/1 5.1.
61106
61107 2007-10-21  Bruno Haible  <bruno@clisp.org>
61108
61109         * tests/test-floorf1.c: Include isnanf.h.
61110         (main): Use isnanf() instead of isnan().
61111         * tests/test-ceilf1.c: Include isnanf.h.
61112         (main): Use isnanf() instead of isnan().
61113         * tests/test-truncf1.c: Include isnanf.h.
61114         (main): Use isnanf() instead of isnan().
61115         * tests/test-roundf1.c: Include isnanf.h.
61116         (main): Use isnanf() instead of isnan().
61117
61118 2007-10-21  Eric Blake  <ebb9@byu.net>
61119
61120         * users.txt: Update URL for m4.
61121
61122 2007-10-21  Bruno Haible  <bruno@clisp.org>
61123
61124         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61125
61126 2007-10-21  Bruno Haible  <bruno@clisp.org>
61127
61128         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61129         Git's management files if the CVS files are not present.
61130
61131 2007-10-20  Bruno Haible  <bruno@clisp.org>
61132
61133         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61134         gcc-3.4.x.
61135
61136 2007-10-20  Ben Pfaff  <blp@gnu.org>
61137
61138         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61139         implementations.
61140         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61141         * lib/round.c: New file.
61142         * lib/roundf.c: New file.
61143         * lib/roundl.c: New file.
61144         * m4/round.m4: New file.
61145         * m4/roundf.m4: New file.
61146         * m4/roundl.m4: New file.
61147         * m4/check-libm-func-m4: New file.
61148         * modules/math: Replace round, roundf, roundl related @VARS@ in
61149         math.in.h.
61150         * modules/round: New file.
61151         * modules/round-tests: New file.
61152         * modules/roundf: New file.
61153         * modules/roundf-tests: New file.
61154         * modules/roundl: New file.
61155         * modules/roundl-tests: New file.
61156         * tests/test-round1.c: New file.
61157         * tests/test-round2.c: New file.
61158         * tests/test-roundf1.c: New file.
61159         * tests/test-roundf2.c: New file.
61160         * tests/test-roundl.c: New file.
61161         * doc/functions/round.texi: Mention round module.
61162         * doc/functions/roundf.texi: Mention roundf module.
61163         * doc/functions/roundl.texi: Mention roundl module.
61164         * MODULES.html.sh: Mention new modules.
61165         Thanks to Bruno Haible for suggestions.
61166
61167 2007-10-20  Jim Meyering  <meyering@redhat.com>
61168
61169         * lib/xprintf.c: Include <config.h> unconditionally.
61170
61171         Change xprintf's license to GPL.
61172         * modules/xprintf (License): s/LGPL/GPL/, since this module
61173         depends on modules (exit and exitfail) which are GPL.
61174         Suggestion from Bruno Haible.
61175
61176         xprintf fixes.
61177         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61178         Use a clearer diagnostic.
61179         Patch from Bruno Haible.
61180
61181 2007-10-20  Bruno Haible  <bruno@clisp.org>
61182
61183         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61184         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61185         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61186
61187 2007-10-20  Bruno Haible  <bruno@clisp.org>
61188
61189         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61190         precision in the comparison result > x - 1 or similar.
61191         * tests/test-ceilf2.c (correct_result_p): Likewise.
61192         * tests/test-truncf2.c (correct_result_p): Likewise.
61193         * tests/test-trunc2.c (correct_result_p): Likewise.
61194         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61195
61196 2007-10-20  Bruno Haible  <bruno@clisp.org>
61197
61198         * modules/ceil: New file.
61199         * m4/ceil.m4: New file.
61200         * doc/functions/ceil.texi: Mention the 'ceil' module.
61201
61202 2007-10-20  Bruno Haible  <bruno@clisp.org>
61203
61204         * modules/floor: New file.
61205         * m4/floor.m4: New file.
61206         * doc/functions/floor.texi: Mention the 'floor' module.
61207
61208 2007-10-20  Bruno Haible  <bruno@clisp.org>
61209
61210         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61211         of %a.
61212         * modules/floorf-tests (Depends-on): Likewise.
61213         * modules/truncf-tests (Depends-on): Likewise.
61214         * modules/trunc-tests (Depends-on): Likewise.
61215         Reported by Ben Pfaff.
61216
61217 2007-10-19  Jim Meyering  <meyering@redhat.com>
61218
61219         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61220         Don't bother testing specific errno values.  Just test ferror.
61221
61222         New module: xprintf
61223         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61224
61225 2007-10-19  Bruno Haible  <bruno@clisp.org>
61226
61227         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61228         syntax.
61229         * modules/javaexec (Makefile.am): Likewise.
61230         * modules/relocatable-prog (Makefile.am): Likewise.
61231         Suggested by Jim Meyering.
61232
61233 2007-10-18  Bruno Haible  <bruno@clisp.org>
61234
61235         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61236         Reported by Jim Meyering.
61237
61238 2007-10-18  Eric Blake  <ebb9@byu.net>
61239
61240         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61241
61242 2007-10-18  Bruno Haible  <bruno@clisp.org>
61243
61244         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61245         the format string into writable memory. Needed in Fortify conditions.
61246
61247 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61248             Bruno Haible  <bruno@clisp.org>
61249
61250         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61251         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61252         * modules/trim (Depends-on): Add mbchar.
61253         (configure.ac): Add gl_FUNC_MBRTOWC.
61254         (Makefile.am): Augment lib_SOURCES.
61255
61256 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61257
61258         Modify glob.c to use fstatat and dirfd, to simplify it.
61259         Suggested by Eric Blake.
61260         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61261         Don't include <stdbool.h>; not used.
61262         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61263         (link_exists_p): Simplify implementation, since we can now assume
61264         dirfd and fstatat.
61265         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61266
61267 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61268
61269         * gnulib-tool (func_get_dependencies): Fix sed script to
61270         match only tests.
61271
61272 2007-10-17  Bruno Haible  <bruno@clisp.org>
61273
61274         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61275         allow locale names without encoding suffix.
61276         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61277         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61278
61279 2007-10-16  Bruno Haible  <bruno@clisp.org>
61280
61281         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61282         * lib/getgroups.c (getgroups): Likewise.
61283         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61284
61285 2007-10-16  Bruno Haible  <bruno@clisp.org>
61286
61287         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61288         * modules/malloc-posix (License): Likewise.
61289         * modules/realloc-posix (License): Likewise.
61290         * modules/calloc-posix (License): Likewise.
61291         * modules/intprops (License): Change from GPL to LGPL, with
61292         Paul Eggert's approval.
61293
61294 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61295
61296         Merge glibc changes into lib/glob.c.
61297
61298         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61299         2007-10-15 04:59:03 UTC.  Here are the changes:
61300
61301         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61302
61303         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61304
61305         * lib/glob.c: Add some branch prediction throughout.
61306
61307         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61308
61309         [BZ #5103]
61310         * lib/glob.c (glob): Recognize patterns starting \/.
61311
61312         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61313
61314         [BZ #3996]
61315         * lib/glob.c (attribute_hidden): Define if not defined.
61316         (glob): Unescape dirname, filename or username when needed and not
61317         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61318         is NULL.  Handle unescaped [ in pattern without closing ].
61319         Don't pass GLOB_CHECK down to recursive glob for directories.
61320         (__glob_pattern_type): New function.
61321         (__glob_pattern_p): Implement using __glob_pattern_type.
61322         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61323         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61324         Remove unreachable code.
61325
61326         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61327
61328         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61329         explain why there are no leaks.
61330
61331         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61332
61333         [BZ #3253]
61334         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61335         time, rather allocate increasingly bigger arrays of pointers, if
61336         possible with alloca, if too large with malloc.
61337
61338 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61339
61340         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61341         Problem reported by H.Merijn Brand in
61342         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61343         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61344         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61345
61346 2007-10-15  Bruno Haible  <bruno@clisp.org>
61347
61348         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61349         with explicit rpl_ prefix.
61350         * lib/fopen.c (fopen): Likewise.
61351         * lib/freopen.c (freopen): Likewise.
61352         * lib/iconv.c (iconv): Likewise.
61353         * lib/iconv_close.c (iconv_close): Likewise.
61354
61355 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61356
61357         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61358
61359 2007-10-15  Bruno Haible  <bruno@clisp.org>
61360
61361         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61362         <stddef.h> instead of <stdlib.h> since we only need NULL.
61363         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61364
61365 2007-10-15  Bruno Haible  <bruno@clisp.org>
61366
61367         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61368         Replace paragraph talking about LIBOBJS.
61369         Reported by Colin Watson <cjwatson@debian.org>.
61370
61371 2007-10-15  Bruno Haible  <bruno@clisp.org>
61372
61373         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61374         <stdlib.h> before using NULL.
61375
61376 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61377
61378         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61379         Reported by Albert Chin <china@thewrittenword.com>.
61380
61381 2007-10-14  Bruno Haible  <bruno@clisp.org>
61382
61383         * modules/iconv_open-utf-tests: New file.
61384         * tests/test-iconv-utf.c: New file.
61385
61386         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61387         * modules/iconv_open-utf: New file.
61388         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61389         (iconv, iconv_close): New declarations.
61390         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61391         be defined.
61392         (iconv_open): Add special handling of conversion between UTF-8 and
61393         UTF-{16,32}{BE,LE}.
61394         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61395         * lib/iconv_close.c: New file.
61396         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61397         gl_FUNC_ICONV_OPEN.
61398         (gl_FUNC_ICONV_OPEN): Use it.
61399         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61400         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61401         and REPLACE_ICONV_UTF.
61402         * modules/iconv_open (Depends-on): Add c-strcase.
61403         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61404         ICONV_CONST.
61405         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61406
61407 2007-10-13  Albert Chin  <china@thewrittenword.com>
61408             Bruno Haible  <bruno@clisp.org>
61409
61410         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61411         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61412
61413 2007-10-13  Bruno Haible  <bruno@clisp.org>
61414
61415         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61416         defined, use the ISO C99 inline semantics.
61417         * lib/argp.h (ARGP_EI): Likewise.
61418
61419 2007-10-13  Bruno Haible  <bruno@clisp.org>
61420
61421         Handle 'inline' change in gcc 4.3.0.
61422         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61423         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61424         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61425         argp_fmtstream_point): Disable 'extern' declaration if the function
61426         definition is going to be provided inline.
61427         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61428         semantics, not the ISO C99 inline semantics.
61429         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61430         'extern' declaration if the function definition is going to be provided
61431         inline.
61432         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61433         the GNU C inline semantics, not the ISO C99 inline semantics. With
61434         GCC 4.2, avoid a warning.
61435
61436 2007-10-13  Bruno Haible  <bruno@clisp.org>
61437
61438         * lib/freading.h (freading): Enable the use of __freading for
61439         glibc >= 2.7.
61440         * lib/freading.c (freading): Likewise.
61441
61442 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61443
61444         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61445         "warning: C99 inline functions are not supported; using GNU89".
61446
61447 2007-10-12  Bruno Haible  <bruno@clisp.org>
61448
61449         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61450         of 2.
61451         * tests/test-ceilf2.c: New file.
61452         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61453
61454         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61455         * modules/ceilf-tests: Update.
61456
61457 2007-10-12  Bruno Haible  <bruno@clisp.org>
61458
61459         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61460         of 2.
61461         * tests/test-floorf2.c: New file.
61462         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61463
61464         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61465         * modules/floorf-tests: Update.
61466
61467 2007-10-12  Bruno Haible  <bruno@clisp.org>
61468
61469         * tests/test-trunc2.c: New file.
61470         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61471
61472         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61473         * modules/trunc-tests: Update.
61474
61475 2007-10-12  Bruno Haible  <bruno@clisp.org>
61476
61477         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61478         of 2.
61479         * tests/test-truncf2.c: New file.
61480         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61481
61482         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61483         * modules/truncf-tests: Update.
61484
61485 2007-10-11  Eric Blake  <ebb9@byu.net>
61486
61487         Don't claim strerror is broken on Interix.
61488         * doc/functions/strerror.texi (strerror): Known broken systems are
61489         now Solaris 8, and not Interix.
61490         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61491         Interix on cross-compile.
61492         Reported by Martin Koeppe in
61493         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61494
61495 2007-10-11  Bruno Haible  <bruno@clisp.org>
61496
61497         * modules/i-ring-tests: New file.
61498         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61499         instead of assert.
61500
61501 2007-10-11  Bruno Haible  <bruno@clisp.org>
61502
61503         * modules/filenamecat-tests: New file.
61504         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61505         * lib/filenamecat.c: Remove test code.
61506
61507 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61508
61509         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61510
61511         * lib/strerror.c: Include <string.h> always, to test interface,
61512         and to remove the need for the dummy.
61513         Include intprops.h to compute width instead of doing it ourselves
61514         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61515         (strerror): Define it to return NULL if there's no system strerror.
61516         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61517         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61518         ancient pre-strerror Unix systems well any more.  Saying "unknown
61519         system error" is enough.
61520         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61521         simpler strerror.c implementation.
61522         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61523         Simplify the tests to reflect the simpler strerror implementation.
61524         * modules/strerror (Depends-on): Add intprops.
61525
61526 2007-10-09  Eric Blake  <ebb9@byu.net>
61527
61528         Silence test-fpending.
61529         * modules/fpending-tests (Files): Add wrapper script.
61530         * tests/test-fpending.sh: New file.
61531
61532 2007-10-09  Bruno Haible  <bruno@clisp.org>
61533
61534         * MODULES.html.sh (func_module): Don't create a hyperlink for
61535         function names like 'printf_frexp'.
61536         (Misc): Add crc, memxor.
61537         (Characteristics of floating types): New section.
61538         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61539         isnanf-nolibm, signbit, trunc, truncf, truncl.
61540         (Enhancements for ISO C 99 functions): New subsection Input/output.
61541         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61542         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61543         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61544         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61545         (Enhancements for POSIX:2001 functions): Add chdir-long.
61546         (File system functions): Add areadlink, chdir-safer, read-file.
61547         Remove cycle-check.
61548         (File system as inode set): New section.
61549         (Date and time): Add gethrxtime.
61550         (Multithreading): Add openmp.
61551         (Internationalization functions): Add localename.
61552         (Unicode string functions): Add unistr/u*-mbsnlen.
61553         (Support for maintaining and releasing projects): Add git-version-gen.
61554         (Lone files): Remove directories.
61555
61556 2007-10-08  Ben Pfaff  <blp@gnu.org>
61557
61558         * lib/xmalloca.h: Fix typo in comment.
61559
61560 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61561
61562         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61563         when avoiding problems with integer overflow.  Use a portable test
61564         instead.
61565
61566 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61567
61568         * modules/dummy (License): Change to LGPLv2+.
61569         * modules/float (License): Likewise
61570         * modules/realloc (License): Likewise
61571         * modules/stdlib (License): Likewise
61572
61573 2007-10-07  Bruno Haible  <bruno@clisp.org>
61574
61575         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61576         * floor.c (TWO_MANT_DIG): Likewise.
61577         * ceil.c (TWO_MANT_DIG): Likewise.
61578         Reported by Ben Pfaff.
61579
61580 2007-10-07  Bruno Haible  <bruno@clisp.org>
61581
61582         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61583         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61584         * lib/frexp.c (FUNC): Likewise.
61585         * lib/printf-frexp.h (printf_frexp): Likewise.
61586         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61587         * lib/printf-frexp.c (FUNC): Likewise.
61588         Suggested by Jim Meyering.
61589
61590 2007-10-07  Jim Meyering  <meyering@redhat.com>
61591
61592         Make xnanosleep's integer overflow test more robust.
61593         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61594         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61595
61596 2007-10-07  Bruno Haible  <bruno@clisp.org>
61597
61598         * NEWS: Mention the license change.
61599
61600         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61601         abbreviations in the modules files.
61602
61603         Change copyright notice from GPLv2+ to GPLv3+.
61604         * README: Change copyright notice.
61605         * MODULES.html.sh: Likewise.
61606         * build-aux/bootstrap.conf: Likewise.
61607         * build-aux/config.libpath: Likewise.
61608         * build-aux/csharpcomp.sh.in: Likewise.
61609         * build-aux/csharpexec.sh.in: Likewise.
61610         * build-aux/install-reloc: Likewise.
61611         * build-aux/javacomp.sh.in: Likewise.
61612         * build-aux/javaexec.sh.in: Likewise.
61613         * build-aux/ldd.sh.in: Likewise.
61614         * build-aux/reloc-ldflags: Likewise.
61615         * build-aux/relocatable.sh.in: Likewise.
61616         * build-aux/x-to-1.in: Likewise.
61617         * check-module: Likewise.
61618         * config/srclistvars.sh: Likewise.
61619         * gnulib-tool: Likewise.
61620         * lib/acl-internal.h: Likewise.
61621         * lib/acl.c: Likewise.
61622         * lib/acl.h: Likewise.
61623         * lib/acl_entries.c: Likewise.
61624         * lib/areadlink-with-size.c: Likewise.
61625         * lib/areadlink.c: Likewise.
61626         * lib/areadlink.h: Likewise.
61627         * lib/argmatch.c: Likewise.
61628         * lib/argmatch.h: Likewise.
61629         * lib/argp-ba.c: Likewise.
61630         * lib/argp-eexst.c: Likewise.
61631         * lib/argp-fmtstream.c: Likewise.
61632         * lib/argp-fmtstream.h: Likewise.
61633         * lib/argp-fs-xinl.c: Likewise.
61634         * lib/argp-help.c: Likewise.
61635         * lib/argp-namefrob.h: Likewise.
61636         * lib/argp-parse.c: Likewise.
61637         * lib/argp-pin.c: Likewise.
61638         * lib/argp-pv.c: Likewise.
61639         * lib/argp-pvh.c: Likewise.
61640         * lib/argp-xinl.c: Likewise.
61641         * lib/argp.h: Likewise.
61642         * lib/at-func.c: Likewise.
61643         * lib/atanl.c: Likewise.
61644         * lib/backupfile.c: Likewise.
61645         * lib/backupfile.h: Likewise.
61646         * lib/basename.c: Likewise.
61647         * lib/binary-io.h: Likewise.
61648         * lib/byteswap.in.h: Likewise.
61649         * lib/c-stack.c: Likewise.
61650         * lib/c-stack.h: Likewise.
61651         * lib/c-strcasestr.c: Likewise.
61652         * lib/c-strcasestr.h: Likewise.
61653         * lib/c-strstr.c: Likewise.
61654         * lib/c-strstr.h: Likewise.
61655         * lib/c-strtod.c: Likewise.
61656         * lib/calloc.c: Likewise.
61657         * lib/canon-host.c: Likewise.
61658         * lib/canon-host.h: Likewise.
61659         * lib/canonicalize-lgpl.c: Likewise.
61660         * lib/canonicalize.c: Likewise.
61661         * lib/canonicalize.h: Likewise.
61662         * lib/ceil.c: Likewise.
61663         * lib/ceilf.c: Likewise.
61664         * lib/ceill.c: Likewise.
61665         * lib/chdir-long.c: Likewise.
61666         * lib/chdir-long.h: Likewise.
61667         * lib/chdir-safer.c: Likewise.
61668         * lib/chdir-safer.h: Likewise.
61669         * lib/chown.c: Likewise.
61670         * lib/classpath.c: Likewise.
61671         * lib/classpath.h: Likewise.
61672         * lib/clean-temp.c: Likewise.
61673         * lib/clean-temp.h: Likewise.
61674         * lib/cloexec.c: Likewise.
61675         * lib/close-stream.c: Likewise.
61676         * lib/closein.c: Likewise.
61677         * lib/closein.h: Likewise.
61678         * lib/closeout.c: Likewise.
61679         * lib/closeout.h: Likewise.
61680         * lib/concat-filename.c: Likewise.
61681         * lib/copy-file.c: Likewise.
61682         * lib/copy-file.h: Likewise.
61683         * lib/count-one-bits.h: Likewise.
61684         * lib/crc.c: Likewise.
61685         * lib/crc.h: Likewise.
61686         * lib/creat-safer.c: Likewise.
61687         * lib/csharpcomp.c: Likewise.
61688         * lib/csharpcomp.h: Likewise.
61689         * lib/csharpexec.c: Likewise.
61690         * lib/csharpexec.h: Likewise.
61691         * lib/cycle-check.c: Likewise.
61692         * lib/cycle-check.h: Likewise.
61693         * lib/diacrit.c: Likewise.
61694         * lib/diacrit.h: Likewise.
61695         * lib/diffseq.h: Likewise.
61696         * lib/dirchownmod.c: Likewise.
61697         * lib/dirent.in.h: Likewise.
61698         * lib/dirfd.c: Likewise.
61699         * lib/dirfd.h: Likewise.
61700         * lib/dirname.c: Likewise.
61701         * lib/dirname.h: Likewise.
61702         * lib/dummy.c: Likewise.
61703         * lib/dup-safer.c: Likewise.
61704         * lib/dup2.c: Likewise.
61705         * lib/eealloc.h: Likewise.
61706         * lib/error.c: Likewise.
61707         * lib/error.h: Likewise.
61708         * lib/euidaccess.c: Likewise.
61709         * lib/exclude.c: Likewise.
61710         * lib/exclude.h: Likewise.
61711         * lib/execute.c: Likewise.
61712         * lib/execute.h: Likewise.
61713         * lib/exitfail.c: Likewise.
61714         * lib/exitfail.h: Likewise.
61715         * lib/expl.c: Likewise.
61716         * lib/fatal-signal.c: Likewise.
61717         * lib/fatal-signal.h: Likewise.
61718         * lib/fbufmode.c: Likewise.
61719         * lib/fbufmode.h: Likewise.
61720         * lib/fchdir.c: Likewise.
61721         * lib/fchmodat.c: Likewise.
61722         * lib/fchownat.c: Likewise.
61723         * lib/fcntl--.h: Likewise.
61724         * lib/fcntl-safer.h: Likewise.
61725         * lib/fcntl.in.h: Likewise.
61726         * lib/fd-safer.c: Likewise.
61727         * lib/fflush.c: Likewise.
61728         * lib/file-has-acl.c: Likewise.
61729         * lib/file-set.c: Likewise.
61730         * lib/file-type.c: Likewise.
61731         * lib/file-type.h: Likewise.
61732         * lib/fileblocks.c: Likewise.
61733         * lib/filemode.c: Likewise.
61734         * lib/filemode.h: Likewise.
61735         * lib/filename.h: Likewise.
61736         * lib/filenamecat.c: Likewise.
61737         * lib/filenamecat.h: Likewise.
61738         * lib/findprog.c: Likewise.
61739         * lib/findprog.h: Likewise.
61740         * lib/float.in.h: Likewise.
61741         * lib/floor.c: Likewise.
61742         * lib/floorf.c: Likewise.
61743         * lib/floorl.c: Likewise.
61744         * lib/fopen-safer.c: Likewise.
61745         * lib/fopen.c: Likewise.
61746         * lib/fpending.c: Likewise.
61747         * lib/fpending.h: Likewise.
61748         * lib/fprintf.c: Likewise.
61749         * lib/fprintftime.h: Likewise.
61750         * lib/fpucw.h: Likewise.
61751         * lib/fpurge.c: Likewise.
61752         * lib/fpurge.h: Likewise.
61753         * lib/freadable.c: Likewise.
61754         * lib/freadable.h: Likewise.
61755         * lib/freadahead.c: Likewise.
61756         * lib/freadahead.h: Likewise.
61757         * lib/freading.c: Likewise.
61758         * lib/freading.h: Likewise.
61759         * lib/free.c: Likewise.
61760         * lib/freopen.c: Likewise.
61761         * lib/frexp.c: Likewise.
61762         * lib/frexpl.c: Likewise.
61763         * lib/fseek.c: Likewise.
61764         * lib/fseterr.c: Likewise.
61765         * lib/fseterr.h: Likewise.
61766         * lib/fstatat.c: Likewise.
61767         * lib/fstrcmp.c: Likewise.
61768         * lib/fstrcmp.h: Likewise.
61769         * lib/fsusage.c: Likewise.
61770         * lib/fsusage.h: Likewise.
61771         * lib/ftell.c: Likewise.
61772         * lib/ftello.c: Likewise.
61773         * lib/fts-cycle.c: Likewise.
61774         * lib/fts.c: Likewise.
61775         * lib/fts_.h: Likewise.
61776         * lib/full-read.c: Likewise.
61777         * lib/full-read.h: Likewise.
61778         * lib/full-write.c: Likewise.
61779         * lib/full-write.h: Likewise.
61780         * lib/fwritable.c: Likewise.
61781         * lib/fwritable.h: Likewise.
61782         * lib/fwriteerror.c: Likewise.
61783         * lib/fwriteerror.h: Likewise.
61784         * lib/fwriting.c: Likewise.
61785         * lib/fwriting.h: Likewise.
61786         * lib/gcd.c: Likewise.
61787         * lib/gcd.h: Likewise.
61788         * lib/getcwd.c: Likewise.
61789         * lib/getdate.h: Likewise.
61790         * lib/getdate.y: Likewise.
61791         * lib/getdomainname.c: Likewise.
61792         * lib/getdomainname.h: Likewise.
61793         * lib/getgroups.c: Likewise.
61794         * lib/gethostname.c: Likewise.
61795         * lib/gethrxtime.c: Likewise.
61796         * lib/gethrxtime.h: Likewise.
61797         * lib/getloadavg.c: Likewise.
61798         * lib/getndelim2.c: Likewise.
61799         * lib/getndelim2.h: Likewise.
61800         * lib/getnline.c: Likewise.
61801         * lib/getnline.h: Likewise.
61802         * lib/getopt.c: Likewise.
61803         * lib/getopt.in.h: Likewise.
61804         * lib/getopt1.c: Likewise.
61805         * lib/getopt_int.h: Likewise.
61806         * lib/getpagesize.h: Likewise.
61807         * lib/getsubopt.c: Likewise.
61808         * lib/gettime.c: Likewise.
61809         * lib/getugroups.c: Likewise.
61810         * lib/getugroups.h: Likewise.
61811         * lib/getusershell.c: Likewise.
61812         * lib/gl_anyavltree_list1.h: Likewise.
61813         * lib/gl_anyavltree_list2.h: Likewise.
61814         * lib/gl_anyhash_list1.h: Likewise.
61815         * lib/gl_anyhash_list2.h: Likewise.
61816         * lib/gl_anylinked_list1.h: Likewise.
61817         * lib/gl_anylinked_list2.h: Likewise.
61818         * lib/gl_anyrbtree_list1.h: Likewise.
61819         * lib/gl_anyrbtree_list2.h: Likewise.
61820         * lib/gl_anytree_list1.h: Likewise.
61821         * lib/gl_anytree_list2.h: Likewise.
61822         * lib/gl_anytree_oset.h: Likewise.
61823         * lib/gl_anytreehash_list1.h: Likewise.
61824         * lib/gl_anytreehash_list2.h: Likewise.
61825         * lib/gl_array_list.c: Likewise.
61826         * lib/gl_array_list.h: Likewise.
61827         * lib/gl_array_oset.c: Likewise.
61828         * lib/gl_array_oset.h: Likewise.
61829         * lib/gl_avltree_list.c: Likewise.
61830         * lib/gl_avltree_list.h: Likewise.
61831         * lib/gl_avltree_oset.c: Likewise.
61832         * lib/gl_avltree_oset.h: Likewise.
61833         * lib/gl_avltreehash_list.c: Likewise.
61834         * lib/gl_avltreehash_list.h: Likewise.
61835         * lib/gl_carray_list.c: Likewise.
61836         * lib/gl_carray_list.h: Likewise.
61837         * lib/gl_linked_list.c: Likewise.
61838         * lib/gl_linked_list.h: Likewise.
61839         * lib/gl_linkedhash_list.c: Likewise.
61840         * lib/gl_linkedhash_list.h: Likewise.
61841         * lib/gl_list.c: Likewise.
61842         * lib/gl_list.h: Likewise.
61843         * lib/gl_oset.c: Likewise.
61844         * lib/gl_oset.h: Likewise.
61845         * lib/gl_rbtree_list.c: Likewise.
61846         * lib/gl_rbtree_list.h: Likewise.
61847         * lib/gl_rbtree_oset.c: Likewise.
61848         * lib/gl_rbtree_oset.h: Likewise.
61849         * lib/gl_rbtreehash_list.c: Likewise.
61850         * lib/gl_rbtreehash_list.h: Likewise.
61851         * lib/gl_sublist.c: Likewise.
61852         * lib/gl_sublist.h: Likewise.
61853         * lib/group-member.c: Likewise.
61854         * lib/group-member.h: Likewise.
61855         * lib/hard-locale.c: Likewise.
61856         * lib/hard-locale.h: Likewise.
61857         * lib/hash-pjw.c: Likewise.
61858         * lib/hash-pjw.h: Likewise.
61859         * lib/hash-triple.c: Likewise.
61860         * lib/hash.c: Likewise.
61861         * lib/hash.h: Likewise.
61862         * lib/human.c: Likewise.
61863         * lib/human.h: Likewise.
61864         * lib/i-ring.c: Likewise.
61865         * lib/i-ring.h: Likewise.
61866         * lib/idcache.c: Likewise.
61867         * lib/imaxabs.c: Likewise.
61868         * lib/imaxdiv.c: Likewise.
61869         * lib/inet_pton.c: Likewise.
61870         * lib/inet_pton.h: Likewise.
61871         * lib/intprops.h: Likewise.
61872         * lib/inttostr.c: Likewise.
61873         * lib/inttostr.h: Likewise.
61874         * lib/inttypes.in.h: Likewise.
61875         * lib/isapipe.c: Likewise.
61876         * lib/isdir.c: Likewise.
61877         * lib/isnan.c: Likewise.
61878         * lib/isnan.h: Likewise.
61879         * lib/isnanf.c: Likewise.
61880         * lib/isnanf.h: Likewise.
61881         * lib/isnanl-nolibm.h: Likewise.
61882         * lib/isnanl.c: Likewise.
61883         * lib/isnanl.h: Likewise.
61884         * lib/javacomp.c: Likewise.
61885         * lib/javacomp.h: Likewise.
61886         * lib/javaexec.c: Likewise.
61887         * lib/javaexec.h: Likewise.
61888         * lib/javaversion.c: Likewise.
61889         * lib/javaversion.h: Likewise.
61890         * lib/javaversion.java: Likewise.
61891         * lib/lbrkprop.h: Likewise.
61892         * lib/lchmod.h: Likewise.
61893         * lib/lchown.c: Likewise.
61894         * lib/ldexpl.c: Likewise.
61895         * lib/linebreak.c: Likewise.
61896         * lib/linebreak.h: Likewise.
61897         * lib/linebuffer.c: Likewise.
61898         * lib/linebuffer.h: Likewise.
61899         * lib/locale.in.h: Likewise.
61900         * lib/logl.c: Likewise.
61901         * lib/long-options.c: Likewise.
61902         * lib/long-options.h: Likewise.
61903         * lib/lstat.c: Likewise.
61904         * lib/lstat.h: Likewise.
61905         * lib/math.in.h: Likewise.
61906         * lib/mbchar.c: Likewise.
61907         * lib/mbchar.h: Likewise.
61908         * lib/mbfile.h: Likewise.
61909         * lib/mbiter.h: Likewise.
61910         * lib/mbscasecmp.c: Likewise.
61911         * lib/mbscasestr.c: Likewise.
61912         * lib/mbschr.c: Likewise.
61913         * lib/mbscspn.c: Likewise.
61914         * lib/mbslen.c: Likewise.
61915         * lib/mbsncasecmp.c: Likewise.
61916         * lib/mbsnlen.c: Likewise.
61917         * lib/mbspbrk.c: Likewise.
61918         * lib/mbspcasecmp.c: Likewise.
61919         * lib/mbsrchr.c: Likewise.
61920         * lib/mbssep.c: Likewise.
61921         * lib/mbsspn.c: Likewise.
61922         * lib/mbsstr.c: Likewise.
61923         * lib/mbstok_r.c: Likewise.
61924         * lib/mbswidth.c: Likewise.
61925         * lib/mbswidth.h: Likewise.
61926         * lib/mbuiter.h: Likewise.
61927         * lib/memcasecmp.c: Likewise.
61928         * lib/memcasecmp.h: Likewise.
61929         * lib/memchr.c: Likewise.
61930         * lib/memcmp.c: Likewise.
61931         * lib/memcoll.c: Likewise.
61932         * lib/memcoll.h: Likewise.
61933         * lib/memcpy.c: Likewise.
61934         * lib/memrchr.c: Likewise.
61935         * lib/mkancesdirs.c: Likewise.
61936         * lib/mkdir-p.c: Likewise.
61937         * lib/mkdir-p.h: Likewise.
61938         * lib/mkdir.c: Likewise.
61939         * lib/mkdirat.c: Likewise.
61940         * lib/mkdtemp.c: Likewise.
61941         * lib/mkstemp-safer.c: Likewise.
61942         * lib/mkstemp.c: Likewise.
61943         * lib/modechange.c: Likewise.
61944         * lib/modechange.h: Likewise.
61945         * lib/mountlist.c: Likewise.
61946         * lib/mountlist.h: Likewise.
61947         * lib/mpsort.c: Likewise.
61948         * lib/nanosleep.c: Likewise.
61949         * lib/obstack.c: Likewise.
61950         * lib/obstack.h: Likewise.
61951         * lib/open-safer.c: Likewise.
61952         * lib/open.c: Likewise.
61953         * lib/openat-die.c: Likewise.
61954         * lib/openat-priv.h: Likewise.
61955         * lib/openat-proc.c: Likewise.
61956         * lib/openat.c: Likewise.
61957         * lib/openat.h: Likewise.
61958         * lib/pagealign_alloc.c: Likewise.
61959         * lib/pagealign_alloc.h: Likewise.
61960         * lib/physmem.c: Likewise.
61961         * lib/physmem.h: Likewise.
61962         * lib/pipe-safer.c: Likewise.
61963         * lib/pipe.c: Likewise.
61964         * lib/pipe.h: Likewise.
61965         * lib/posixtm.c: Likewise.
61966         * lib/posixtm.h: Likewise.
61967         * lib/posixver.c: Likewise.
61968         * lib/printf-frexp.c: Likewise.
61969         * lib/printf-frexp.h: Likewise.
61970         * lib/printf-frexpl.c: Likewise.
61971         * lib/printf-frexpl.h: Likewise.
61972         * lib/printf.c: Likewise.
61973         * lib/progname.c: Likewise.
61974         * lib/progname.h: Likewise.
61975         * lib/progreloc.c: Likewise.
61976         * lib/putenv.c: Likewise.
61977         * lib/quote.c: Likewise.
61978         * lib/quote.h: Likewise.
61979         * lib/quotearg.c: Likewise.
61980         * lib/quotearg.h: Likewise.
61981         * lib/raise.c: Likewise.
61982         * lib/readline.c: Likewise.
61983         * lib/readline.h: Likewise.
61984         * lib/readlink.c: Likewise.
61985         * lib/readtokens.c: Likewise.
61986         * lib/readtokens.h: Likewise.
61987         * lib/readtokens0.c: Likewise.
61988         * lib/readtokens0.h: Likewise.
61989         * lib/readutmp.c: Likewise.
61990         * lib/readutmp.h: Likewise.
61991         * lib/realloc.c: Likewise.
61992         * lib/relocwrapper.c: Likewise.
61993         * lib/rename-dest-slash.c: Likewise.
61994         * lib/rename.c: Likewise.
61995         * lib/rmdir.c: Likewise.
61996         * lib/rpmatch.c: Likewise.
61997         * lib/safe-read.c: Likewise.
61998         * lib/safe-read.h: Likewise.
61999         * lib/safe-write.c: Likewise.
62000         * lib/safe-write.h: Likewise.
62001         * lib/same-inode.h: Likewise.
62002         * lib/same.c: Likewise.
62003         * lib/same.h: Likewise.
62004         * lib/save-cwd.c: Likewise.
62005         * lib/save-cwd.h: Likewise.
62006         * lib/savedir.c: Likewise.
62007         * lib/savedir.h: Likewise.
62008         * lib/savewd.c: Likewise.
62009         * lib/savewd.h: Likewise.
62010         * lib/search.in.h: Likewise.
62011         * lib/setenv.c: Likewise.
62012         * lib/setenv.h: Likewise.
62013         * lib/settime.c: Likewise.
62014         * lib/sh-quote.c: Likewise.
62015         * lib/sh-quote.h: Likewise.
62016         * lib/sig2str.c: Likewise.
62017         * lib/sig2str.h: Likewise.
62018         * lib/signal.in.h: Likewise.
62019         * lib/signbitd.c: Likewise.
62020         * lib/signbitf.c: Likewise.
62021         * lib/signbitl.c: Likewise.
62022         * lib/sigprocmask.c: Likewise.
62023         * lib/sincosl.c: Likewise.
62024         * lib/sleep.c: Likewise.
62025         * lib/sprintf.c: Likewise.
62026         * lib/sqrtl.c: Likewise.
62027         * lib/stat-time.h: Likewise.
62028         * lib/stdio--.h: Likewise.
62029         * lib/stdio-safer.h: Likewise.
62030         * lib/stdlib--.h: Likewise.
62031         * lib/stdlib-safer.h: Likewise.
62032         * lib/stdlib.in.h: Likewise.
62033         * lib/stpcpy.c: Likewise.
62034         * lib/stpncpy.c: Likewise.
62035         * lib/strchrnul.c: Likewise.
62036         * lib/strcspn.c: Likewise.
62037         * lib/strerror.c: Likewise.
62038         * lib/strftime.c: Likewise.
62039         * lib/strftime.h: Likewise.
62040         * lib/striconveh.c: Likewise.
62041         * lib/striconveh.h: Likewise.
62042         * lib/striconveha.c: Likewise.
62043         * lib/striconveha.h: Likewise.
62044         * lib/stripslash.c: Likewise.
62045         * lib/strnlen1.c: Likewise.
62046         * lib/strnlen1.h: Likewise.
62047         * lib/strtod.c: Likewise.
62048         * lib/strtoimax.c: Likewise.
62049         * lib/strtok_r.c: Likewise.
62050         * lib/strtol.c: Likewise.
62051         * lib/strtoll.c: Likewise.
62052         * lib/strtoul.c: Likewise.
62053         * lib/strtoull.c: Likewise.
62054         * lib/sysexits.in.h: Likewise.
62055         * lib/tempname.c: Likewise.
62056         * lib/tempname.h: Likewise.
62057         * lib/timespec.h: Likewise.
62058         * lib/tls.c: Likewise.
62059         * lib/tls.h: Likewise.
62060         * lib/tmpdir.c: Likewise.
62061         * lib/tmpdir.h: Likewise.
62062         * lib/tmpfile-safer.c: Likewise.
62063         * lib/tmpfile.c: Likewise.
62064         * lib/trigl.c: Likewise.
62065         * lib/trigl.h: Likewise.
62066         * lib/trim.c: Likewise.
62067         * lib/trim.h: Likewise.
62068         * lib/trunc.c: Likewise.
62069         * lib/truncf.c: Likewise.
62070         * lib/truncl.c: Likewise.
62071         * lib/tsearch.c: Likewise.
62072         * lib/unicodeio.c: Likewise.
62073         * lib/unicodeio.h: Likewise.
62074         * lib/unistd--.h: Likewise.
62075         * lib/unistd-safer.h: Likewise.
62076         * lib/unistdio/ulc-fprintf.c: Likewise.
62077         * lib/unistdio/ulc-vfprintf.c: Likewise.
62078         * lib/unlinkdir.c: Likewise.
62079         * lib/unlinkdir.h: Likewise.
62080         * lib/unlocked-io.h: Likewise.
62081         * lib/unsetenv.c: Likewise.
62082         * lib/userspec.c: Likewise.
62083         * lib/utime.c: Likewise.
62084         * lib/utimecmp.c: Likewise.
62085         * lib/utimecmp.h: Likewise.
62086         * lib/utimens.c: Likewise.
62087         * lib/verify.h: Likewise.
62088         * lib/verror.c: Likewise.
62089         * lib/verror.h: Likewise.
62090         * lib/version-etc-fsf.c: Likewise.
62091         * lib/version-etc.c: Likewise.
62092         * lib/version-etc.h: Likewise.
62093         * lib/vfprintf.c: Likewise.
62094         * lib/vprintf.c: Likewise.
62095         * lib/vsprintf.c: Likewise.
62096         * lib/w32spawn.h: Likewise.
62097         * lib/wait-process.c: Likewise.
62098         * lib/wait-process.h: Likewise.
62099         * lib/wcwidth.c: Likewise.
62100         * lib/write-any-file.c: Likewise.
62101         * lib/xalloc-die.c: Likewise.
62102         * lib/xalloc.h: Likewise.
62103         * lib/xasprintf.c: Likewise.
62104         * lib/xgetcwd.c: Likewise.
62105         * lib/xgetcwd.h: Likewise.
62106         * lib/xgetdomainname.c: Likewise.
62107         * lib/xgetdomainname.h: Likewise.
62108         * lib/xgethostname.c: Likewise.
62109         * lib/xmalloc.c: Likewise.
62110         * lib/xmalloca.c: Likewise.
62111         * lib/xmalloca.h: Likewise.
62112         * lib/xmemcoll.c: Likewise.
62113         * lib/xnanosleep.c: Likewise.
62114         * lib/xreadlink.c: Likewise.
62115         * lib/xreadlink.h: Likewise.
62116         * lib/xsetenv.c: Likewise.
62117         * lib/xsetenv.h: Likewise.
62118         * lib/xstriconv.c: Likewise.
62119         * lib/xstriconv.h: Likewise.
62120         * lib/xstrndup.c: Likewise.
62121         * lib/xstrndup.h: Likewise.
62122         * lib/xstrtod.c: Likewise.
62123         * lib/xstrtod.h: Likewise.
62124         * lib/xstrtol-error.c: Likewise.
62125         * lib/xstrtol.c: Likewise.
62126         * lib/xstrtol.h: Likewise.
62127         * lib/xtime.h: Likewise.
62128         * lib/xvasprintf.c: Likewise.
62129         * lib/xvasprintf.h: Likewise.
62130         * lib/yesno.c: Likewise.
62131         * lib/yesno.h: Likewise.
62132         * posix-modules: Likewise.
62133         * tests/test-alloca-opt.c: Likewise.
62134         * tests/test-arcfour.c: Likewise.
62135         * tests/test-arctwo.c: Likewise.
62136         * tests/test-argmatch.c: Likewise.
62137         * tests/test-argp-2.sh: Likewise.
62138         * tests/test-argp.c: Likewise.
62139         * tests/test-arpa_inet.c: Likewise.
62140         * tests/test-array_list.c: Likewise.
62141         * tests/test-array_oset.c: Likewise.
62142         * tests/test-atexit.c: Likewise.
62143         * tests/test-avltree_list.c: Likewise.
62144         * tests/test-avltree_oset.c: Likewise.
62145         * tests/test-avltreehash_list.c: Likewise.
62146         * tests/test-base64.c: Likewise.
62147         * tests/test-binary-io.c: Likewise.
62148         * tests/test-byteswap.c: Likewise.
62149         * tests/test-c-ctype.c: Likewise.
62150         * tests/test-c-strcasecmp.c: Likewise.
62151         * tests/test-c-strcasestr.c: Likewise.
62152         * tests/test-c-strncasecmp.c: Likewise.
62153         * tests/test-c-strstr.c: Likewise.
62154         * tests/test-canonicalize-lgpl.c: Likewise.
62155         * tests/test-canonicalize.c: Likewise.
62156         * tests/test-carray_list.c: Likewise.
62157         * tests/test-ceilf.c: Likewise.
62158         * tests/test-ceill.c: Likewise.
62159         * tests/test-count-one-bits.c: Likewise.
62160         * tests/test-crc.c: Likewise.
62161         * tests/test-dirname.c: Likewise.
62162         * tests/test-fbufmode.c: Likewise.
62163         * tests/test-fcntl.c: Likewise.
62164         * tests/test-fflush.c: Likewise.
62165         * tests/test-floorf.c: Likewise.
62166         * tests/test-floorl.c: Likewise.
62167         * tests/test-fopen.c: Likewise.
62168         * tests/test-fprintf-posix.c: Likewise.
62169         * tests/test-fprintf-posix.h: Likewise.
62170         * tests/test-fpurge.c: Likewise.
62171         * tests/test-freadable.c: Likewise.
62172         * tests/test-freadahead.c: Likewise.
62173         * tests/test-freading.c: Likewise.
62174         * tests/test-freopen.c: Likewise.
62175         * tests/test-frexp.c: Likewise.
62176         * tests/test-frexpl.c: Likewise.
62177         * tests/test-fseek.c: Likewise.
62178         * tests/test-fseeko.c: Likewise.
62179         * tests/test-fseterr.c: Likewise.
62180         * tests/test-fstrcmp.c: Likewise.
62181         * tests/test-ftell.c: Likewise.
62182         * tests/test-ftello.c: Likewise.
62183         * tests/test-fwritable.c: Likewise.
62184         * tests/test-fwriting.c: Likewise.
62185         * tests/test-getaddrinfo.c: Likewise.
62186         * tests/test-getpass.c: Likewise.
62187         * tests/test-gettimeofday.c: Likewise.
62188         * tests/test-hmac-md5.c: Likewise.
62189         * tests/test-hmac-sha1.c: Likewise.
62190         * tests/test-iconv.c: Likewise.
62191         * tests/test-iconvme.c: Likewise.
62192         * tests/test-inttypes.c: Likewise.
62193         * tests/test-isnan.c: Likewise.
62194         * tests/test-isnanf.c: Likewise.
62195         * tests/test-isnanl-nolibm.c: Likewise.
62196         * tests/test-isnanl.c: Likewise.
62197         * tests/test-isnanl.h: Likewise.
62198         * tests/test-ldexpl.c: Likewise.
62199         * tests/test-linked_list.c: Likewise.
62200         * tests/test-linkedhash_list.c: Likewise.
62201         * tests/test-locale.c: Likewise.
62202         * tests/test-localename.c: Likewise.
62203         * tests/test-lock.c: Likewise.
62204         * tests/test-lseek.c: Likewise.
62205         * tests/test-malloca.c: Likewise.
62206         * tests/test-math.c: Likewise.
62207         * tests/test-mbscasecmp.c: Likewise.
62208         * tests/test-mbscasestr1.c: Likewise.
62209         * tests/test-mbscasestr2.c: Likewise.
62210         * tests/test-mbscasestr3.c: Likewise.
62211         * tests/test-mbscasestr4.c: Likewise.
62212         * tests/test-mbschr.c: Likewise.
62213         * tests/test-mbscspn.c: Likewise.
62214         * tests/test-mbsncasecmp.c: Likewise.
62215         * tests/test-mbspbrk.c: Likewise.
62216         * tests/test-mbspcasecmp.c: Likewise.
62217         * tests/test-mbsrchr.c: Likewise.
62218         * tests/test-mbsspn.c: Likewise.
62219         * tests/test-mbsstr1.c: Likewise.
62220         * tests/test-mbsstr2.c: Likewise.
62221         * tests/test-mbsstr3.c: Likewise.
62222         * tests/test-md5.c: Likewise.
62223         * tests/test-memmem.c: Likewise.
62224         * tests/test-netinet_in.c: Likewise.
62225         * tests/test-open.c: Likewise.
62226         * tests/test-printf-frexp.c: Likewise.
62227         * tests/test-printf-frexpl.c: Likewise.
62228         * tests/test-printf-posix.c: Likewise.
62229         * tests/test-printf-posix.h: Likewise.
62230         * tests/test-rbtree_list.c: Likewise.
62231         * tests/test-rbtree_oset.c: Likewise.
62232         * tests/test-rbtreehash_list.c: Likewise.
62233         * tests/test-read-file.c: Likewise.
62234         * tests/test-rijndael.c: Likewise.
62235         * tests/test-search.c: Likewise.
62236         * tests/test-signbit.c: Likewise.
62237         * tests/test-sleep.c: Likewise.
62238         * tests/test-snprintf-posix.c: Likewise.
62239         * tests/test-snprintf-posix.h: Likewise.
62240         * tests/test-snprintf.c: Likewise.
62241         * tests/test-sprintf-posix.c: Likewise.
62242         * tests/test-sprintf-posix.h: Likewise.
62243         * tests/test-stat-time.c: Likewise.
62244         * tests/test-stdbool.c: Likewise.
62245         * tests/test-stdint.c: Likewise.
62246         * tests/test-stdio.c: Likewise.
62247         * tests/test-stdlib.c: Likewise.
62248         * tests/test-stpncpy.c: Likewise.
62249         * tests/test-strcasestr.c: Likewise.
62250         * tests/test-striconv.c: Likewise.
62251         * tests/test-striconveh.c: Likewise.
62252         * tests/test-striconveha.c: Likewise.
62253         * tests/test-string.c: Likewise.
62254         * tests/test-sys_select.c: Likewise.
62255         * tests/test-sys_socket.c: Likewise.
62256         * tests/test-sys_stat.c: Likewise.
62257         * tests/test-sys_time.c: Likewise.
62258         * tests/test-sysexits.c: Likewise.
62259         * tests/test-time.c: Likewise.
62260         * tests/test-tls.c: Likewise.
62261         * tests/test-trunc.c: Likewise.
62262         * tests/test-truncf.c: Likewise.
62263         * tests/test-truncl.c: Likewise.
62264         * tests/test-unistd.c: Likewise.
62265         * tests/test-vasnprintf-posix.c: Likewise.
62266         * tests/test-vasnprintf-posix2.c: Likewise.
62267         * tests/test-vasnprintf.c: Likewise.
62268         * tests/test-vasprintf-posix.c: Likewise.
62269         * tests/test-vasprintf.c: Likewise.
62270         * tests/test-verify.c: Likewise.
62271         * tests/test-vfprintf-posix.c: Likewise.
62272         * tests/test-vprintf-posix.c: Likewise.
62273         * tests/test-vsnprintf-posix.c: Likewise.
62274         * tests/test-vsnprintf.c: Likewise.
62275         * tests/test-vsprintf-posix.c: Likewise.
62276         * tests/test-wchar.c: Likewise.
62277         * tests/test-wctype.c: Likewise.
62278         * tests/test-wcwidth.c: Likewise.
62279         * tests/test-xstrtol.c: Likewise.
62280         * tests/test-xvasprintf.c: Likewise.
62281         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62282         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62283         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62284         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62285         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62286         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62287         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62288         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62289         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62290         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62291         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62292         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62293         * tests/uniname/test-uninames.c: Likewise.
62294         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62295         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62296         * tests/unistdio/test-u16-printf1.h: Likewise.
62297         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62298         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62299         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62300         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62301         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62302         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62303         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62304         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62305         * tests/unistdio/test-u32-printf1.h: Likewise.
62306         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62307         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62308         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62309         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62310         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62311         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62312         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62313         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62314         * tests/unistdio/test-u8-printf1.h: Likewise.
62315         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62316         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62317         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62318         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62319         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62320         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62321         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62322         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62323         * tests/unistdio/test-ulc-printf1.h: Likewise.
62324         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62325         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62326         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62327         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62328         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62329         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62330         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62331         * tests/uniwidth/test-u16-width.c: Likewise.
62332         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62333         * tests/uniwidth/test-u32-width.c: Likewise.
62334         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62335         * tests/uniwidth/test-u8-width.c: Likewise.
62336         * tests/uniwidth/test-uc_width.c: Likewise.
62337         * config/srclist-update: Likewise.
62338         (fixlicense): Update to GPLv3+.
62339
62340         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62341         * tests/test-tsearch.c: Change copyright notice.
62342
62343         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62344         * lib/c-strcaseeq.h: Change copyright notice.
62345         * lib/streq.h: Likewise.
62346         * lib/uniconv.h: Likewise.
62347         * lib/uniconv/u-conv-from-enc.h: Likewise.
62348         * lib/uniconv/u-conv-to-enc.h: Likewise.
62349         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62350         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62351         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62352         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62353         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62354         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62355         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62356         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62357         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62358         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62359         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62360         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62361         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62362         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62363         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62364         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62365         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62366         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62367         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62368         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62369         * lib/uniname.h: Likewise.
62370         * lib/uniname/uniname.c: Likewise.
62371         * lib/unistdio.h: Likewise.
62372         * lib/unistdio/u-asnprintf.h: Likewise.
62373         * lib/unistdio/u-asprintf.h: Likewise.
62374         * lib/unistdio/u-printf-args.c: Likewise.
62375         * lib/unistdio/u-printf-args.h: Likewise.
62376         * lib/unistdio/u-printf-parse.h: Likewise.
62377         * lib/unistdio/u-snprintf.h: Likewise.
62378         * lib/unistdio/u-sprintf.h: Likewise.
62379         * lib/unistdio/u-vasprintf.h: Likewise.
62380         * lib/unistdio/u-vsnprintf.h: Likewise.
62381         * lib/unistdio/u-vsprintf.h: Likewise.
62382         * lib/unistdio/u16-asnprintf.c: Likewise.
62383         * lib/unistdio/u16-asprintf.c: Likewise.
62384         * lib/unistdio/u16-printf-parse.c: Likewise.
62385         * lib/unistdio/u16-snprintf.c: Likewise.
62386         * lib/unistdio/u16-sprintf.c: Likewise.
62387         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62388         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62389         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62390         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62391         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62392         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62393         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62394         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62395         * lib/unistdio/u16-vasnprintf.c: Likewise.
62396         * lib/unistdio/u16-vasprintf.c: Likewise.
62397         * lib/unistdio/u16-vsnprintf.c: Likewise.
62398         * lib/unistdio/u16-vsprintf.c: Likewise.
62399         * lib/unistdio/u32-asnprintf.c: Likewise.
62400         * lib/unistdio/u32-asprintf.c: Likewise.
62401         * lib/unistdio/u32-printf-parse.c: Likewise.
62402         * lib/unistdio/u32-snprintf.c: Likewise.
62403         * lib/unistdio/u32-sprintf.c: Likewise.
62404         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62405         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62406         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62407         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62408         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62409         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62410         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62411         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62412         * lib/unistdio/u32-vasnprintf.c: Likewise.
62413         * lib/unistdio/u32-vasprintf.c: Likewise.
62414         * lib/unistdio/u32-vsnprintf.c: Likewise.
62415         * lib/unistdio/u32-vsprintf.c: Likewise.
62416         * lib/unistdio/u8-asnprintf.c: Likewise.
62417         * lib/unistdio/u8-asprintf.c: Likewise.
62418         * lib/unistdio/u8-printf-parse.c: Likewise.
62419         * lib/unistdio/u8-snprintf.c: Likewise.
62420         * lib/unistdio/u8-sprintf.c: Likewise.
62421         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62422         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62423         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62424         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62425         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62426         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62427         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62428         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62429         * lib/unistdio/u8-vasnprintf.c: Likewise.
62430         * lib/unistdio/u8-vasprintf.c: Likewise.
62431         * lib/unistdio/u8-vsnprintf.c: Likewise.
62432         * lib/unistdio/u8-vsprintf.c: Likewise.
62433         * lib/unistdio/ulc-asnprintf.c: Likewise.
62434         * lib/unistdio/ulc-asprintf.c: Likewise.
62435         * lib/unistdio/ulc-printf-parse.c: Likewise.
62436         * lib/unistdio/ulc-snprintf.c: Likewise.
62437         * lib/unistdio/ulc-sprintf.c: Likewise.
62438         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62439         * lib/unistdio/ulc-vasprintf.c: Likewise.
62440         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62441         * lib/unistdio/ulc-vsprintf.c: Likewise.
62442         * lib/unistr.h: Likewise.
62443         * lib/unistr/u-cpy-alloc.h: Likewise.
62444         * lib/unistr/u-cpy.h: Likewise.
62445         * lib/unistr/u-endswith.h: Likewise.
62446         * lib/unistr/u-move.h: Likewise.
62447         * lib/unistr/u-set.h: Likewise.
62448         * lib/unistr/u-startswith.h: Likewise.
62449         * lib/unistr/u-stpcpy.h: Likewise.
62450         * lib/unistr/u-stpncpy.h: Likewise.
62451         * lib/unistr/u-strcat.h: Likewise.
62452         * lib/unistr/u-strcpy.h: Likewise.
62453         * lib/unistr/u-strcspn.h: Likewise.
62454         * lib/unistr/u-strdup.h: Likewise.
62455         * lib/unistr/u-strlen.h: Likewise.
62456         * lib/unistr/u-strncat.h: Likewise.
62457         * lib/unistr/u-strncpy.h: Likewise.
62458         * lib/unistr/u-strnlen.h: Likewise.
62459         * lib/unistr/u-strpbrk.h: Likewise.
62460         * lib/unistr/u-strspn.h: Likewise.
62461         * lib/unistr/u-strstr.h: Likewise.
62462         * lib/unistr/u-strtok.h: Likewise.
62463         * lib/unistr/u16-check.c: Likewise.
62464         * lib/unistr/u16-chr.c: Likewise.
62465         * lib/unistr/u16-cmp.c: Likewise.
62466         * lib/unistr/u16-cpy-alloc.c: Likewise.
62467         * lib/unistr/u16-cpy.c: Likewise.
62468         * lib/unistr/u16-endswith.c: Likewise.
62469         * lib/unistr/u16-mblen.c: Likewise.
62470         * lib/unistr/u16-mbsnlen.c: Likewise.
62471         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62472         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62473         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62474         * lib/unistr/u16-mbtouc.c: Likewise.
62475         * lib/unistr/u16-mbtoucr.c: Likewise.
62476         * lib/unistr/u16-move.c: Likewise.
62477         * lib/unistr/u16-next.c: Likewise.
62478         * lib/unistr/u16-prev.c: Likewise.
62479         * lib/unistr/u16-set.c: Likewise.
62480         * lib/unistr/u16-startswith.c: Likewise.
62481         * lib/unistr/u16-stpcpy.c: Likewise.
62482         * lib/unistr/u16-stpncpy.c: Likewise.
62483         * lib/unistr/u16-strcat.c: Likewise.
62484         * lib/unistr/u16-strchr.c: Likewise.
62485         * lib/unistr/u16-strcmp.c: Likewise.
62486         * lib/unistr/u16-strcpy.c: Likewise.
62487         * lib/unistr/u16-strcspn.c: Likewise.
62488         * lib/unistr/u16-strdup.c: Likewise.
62489         * lib/unistr/u16-strlen.c: Likewise.
62490         * lib/unistr/u16-strmblen.c: Likewise.
62491         * lib/unistr/u16-strmbtouc.c: Likewise.
62492         * lib/unistr/u16-strncat.c: Likewise.
62493         * lib/unistr/u16-strncmp.c: Likewise.
62494         * lib/unistr/u16-strncpy.c: Likewise.
62495         * lib/unistr/u16-strnlen.c: Likewise.
62496         * lib/unistr/u16-strpbrk.c: Likewise.
62497         * lib/unistr/u16-strrchr.c: Likewise.
62498         * lib/unistr/u16-strspn.c: Likewise.
62499         * lib/unistr/u16-strstr.c: Likewise.
62500         * lib/unistr/u16-strtok.c: Likewise.
62501         * lib/unistr/u16-to-u32.c: Likewise.
62502         * lib/unistr/u16-to-u8.c: Likewise.
62503         * lib/unistr/u16-uctomb-aux.c: Likewise.
62504         * lib/unistr/u16-uctomb.c: Likewise.
62505         * lib/unistr/u32-check.c: Likewise.
62506         * lib/unistr/u32-chr.c: Likewise.
62507         * lib/unistr/u32-cmp.c: Likewise.
62508         * lib/unistr/u32-cpy-alloc.c: Likewise.
62509         * lib/unistr/u32-cpy.c: Likewise.
62510         * lib/unistr/u32-endswith.c: Likewise.
62511         * lib/unistr/u32-mblen.c: Likewise.
62512         * lib/unistr/u32-mbsnlen.c: Likewise.
62513         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62514         * lib/unistr/u32-mbtouc.c: Likewise.
62515         * lib/unistr/u32-mbtoucr.c: Likewise.
62516         * lib/unistr/u32-move.c: Likewise.
62517         * lib/unistr/u32-next.c: Likewise.
62518         * lib/unistr/u32-prev.c: Likewise.
62519         * lib/unistr/u32-set.c: Likewise.
62520         * lib/unistr/u32-startswith.c: Likewise.
62521         * lib/unistr/u32-stpcpy.c: Likewise.
62522         * lib/unistr/u32-stpncpy.c: Likewise.
62523         * lib/unistr/u32-strcat.c: Likewise.
62524         * lib/unistr/u32-strchr.c: Likewise.
62525         * lib/unistr/u32-strcmp.c: Likewise.
62526         * lib/unistr/u32-strcpy.c: Likewise.
62527         * lib/unistr/u32-strcspn.c: Likewise.
62528         * lib/unistr/u32-strdup.c: Likewise.
62529         * lib/unistr/u32-strlen.c: Likewise.
62530         * lib/unistr/u32-strmblen.c: Likewise.
62531         * lib/unistr/u32-strmbtouc.c: Likewise.
62532         * lib/unistr/u32-strncat.c: Likewise.
62533         * lib/unistr/u32-strncmp.c: Likewise.
62534         * lib/unistr/u32-strncpy.c: Likewise.
62535         * lib/unistr/u32-strnlen.c: Likewise.
62536         * lib/unistr/u32-strpbrk.c: Likewise.
62537         * lib/unistr/u32-strrchr.c: Likewise.
62538         * lib/unistr/u32-strspn.c: Likewise.
62539         * lib/unistr/u32-strstr.c: Likewise.
62540         * lib/unistr/u32-strtok.c: Likewise.
62541         * lib/unistr/u32-to-u16.c: Likewise.
62542         * lib/unistr/u32-to-u8.c: Likewise.
62543         * lib/unistr/u32-uctomb.c: Likewise.
62544         * lib/unistr/u8-check.c: Likewise.
62545         * lib/unistr/u8-chr.c: Likewise.
62546         * lib/unistr/u8-cmp.c: Likewise.
62547         * lib/unistr/u8-cpy-alloc.c: Likewise.
62548         * lib/unistr/u8-cpy.c: Likewise.
62549         * lib/unistr/u8-endswith.c: Likewise.
62550         * lib/unistr/u8-mblen.c: Likewise.
62551         * lib/unistr/u8-mbsnlen.c: Likewise.
62552         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62553         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62554         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62555         * lib/unistr/u8-mbtouc.c: Likewise.
62556         * lib/unistr/u8-mbtoucr.c: Likewise.
62557         * lib/unistr/u8-move.c: Likewise.
62558         * lib/unistr/u8-next.c: Likewise.
62559         * lib/unistr/u8-prev.c: Likewise.
62560         * lib/unistr/u8-set.c: Likewise.
62561         * lib/unistr/u8-startswith.c: Likewise.
62562         * lib/unistr/u8-stpcpy.c: Likewise.
62563         * lib/unistr/u8-stpncpy.c: Likewise.
62564         * lib/unistr/u8-strcat.c: Likewise.
62565         * lib/unistr/u8-strchr.c: Likewise.
62566         * lib/unistr/u8-strcmp.c: Likewise.
62567         * lib/unistr/u8-strcpy.c: Likewise.
62568         * lib/unistr/u8-strcspn.c: Likewise.
62569         * lib/unistr/u8-strdup.c: Likewise.
62570         * lib/unistr/u8-strlen.c: Likewise.
62571         * lib/unistr/u8-strmblen.c: Likewise.
62572         * lib/unistr/u8-strmbtouc.c: Likewise.
62573         * lib/unistr/u8-strncat.c: Likewise.
62574         * lib/unistr/u8-strncmp.c: Likewise.
62575         * lib/unistr/u8-strncpy.c: Likewise.
62576         * lib/unistr/u8-strnlen.c: Likewise.
62577         * lib/unistr/u8-strpbrk.c: Likewise.
62578         * lib/unistr/u8-strrchr.c: Likewise.
62579         * lib/unistr/u8-strspn.c: Likewise.
62580         * lib/unistr/u8-strstr.c: Likewise.
62581         * lib/unistr/u8-strtok.c: Likewise.
62582         * lib/unistr/u8-to-u16.c: Likewise.
62583         * lib/unistr/u8-to-u32.c: Likewise.
62584         * lib/unistr/u8-uctomb-aux.c: Likewise.
62585         * lib/unistr/u8-uctomb.c: Likewise.
62586         * lib/unitypes.h: Likewise.
62587         * lib/uniwidth.h: Likewise.
62588         * lib/uniwidth/cjk.h: Likewise.
62589         * lib/uniwidth/u16-strwidth.c: Likewise.
62590         * lib/uniwidth/u16-width.c: Likewise.
62591         * lib/uniwidth/u32-strwidth.c: Likewise.
62592         * lib/uniwidth/u32-width.c: Likewise.
62593         * lib/uniwidth/u8-strwidth.c: Likewise.
62594         * lib/uniwidth/u8-width.c: Likewise.
62595         * lib/uniwidth/width.c: Likewise.
62596
62597 2007-10-07  Bruno Haible  <bruno@clisp.org>
62598
62599         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62600         The file is still under LGPL (see modules/inttypes).
62601
62602 2007-10-06  Bruno Haible  <bruno@clisp.org>
62603
62604         * modules/trunc (Dependencies): Add 'extensions'.
62605         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62606         Reported by Ben Pfaff <blp@gnu.org>.
62607
62608 2007-10-06  Bruno Haible  <bruno@clisp.org>
62609
62610         * modules/freopen-tests: New file.
62611         * tests/test-freopen.c: New file.
62612
62613         * modules/fopen-tests: New file.
62614         * tests/test-fopen.c: New file.
62615
62616         * modules/fopen: New file.
62617         * lib/fopen.c: New file.
62618         * m4/fopen.m4: New file.
62619         * modules/freopen: New file.
62620         * lib/freopen.c: New file.
62621         * m4/freopen.m4: New file.
62622         * lib/stdio.in.h (fopen, freopen): New declarations.
62623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62624         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62625         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62626         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62627         * doc/functions/fopen.texi: Mention the 'fopen' module.
62628         * doc/functions/freopen.texi: Mention the 'freopen' module.
62629
62630 2007-10-06  Bruno Haible  <bruno@clisp.org>
62631
62632         * modules/open-tests: New file.
62633         * tests/test-open.c: New file.
62634
62635         * modules/open: New file.
62636         * lib/open.c: New file.
62637         * m4/open.m4: New file.
62638         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62639         lib/open.c does.
62640         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62641         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62642         macros.
62643         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62644         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62645         REPLACE_OPEN.
62646         * doc/functions/open.texi: Mention the 'open' module.
62647
62648 2007-10-04  Bruno Haible  <bruno@clisp.org>
62649
62650         * modules/ceill-tests: New file.
62651         * tests/test-ceill.c: New file.
62652
62653         * modules/ceill: New file.
62654         * lib/ceill.c: Replace entire file.
62655         * m4/ceill.m4: New file.
62656         * lib/math.in.h (ceill): Replace declaration.
62657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62658         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62659         * doc/functions/ceill.texi: Mention the 'ceill' module.
62660         * modules/mathl (Files): Remove lib/ceill.c.
62661         (Depends-on): Add ceill.
62662
62663 2007-10-04  Bruno Haible  <bruno@clisp.org>
62664
62665         * modules/ceilf-tests: New file.
62666         * tests/test-ceilf.c: New file.
62667
62668         * modules/ceilf: New file.
62669         * lib/ceil.c: New file.
62670         * lib/ceilf.c: New file.
62671         * m4/ceilf.m4: New file.
62672         * lib/math.in.h (ceilf): New declaration.
62673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62674         HAVE_DECL_CEILF.
62675         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62676         HAVE_DECL_CEILF.
62677         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62678
62679 2007-10-04  Bruno Haible  <bruno@clisp.org>
62680
62681         * modules/floorl-tests: New file.
62682         * tests/test-floorl.c: New file.
62683
62684         * modules/floorl: New file.
62685         * lib/floorl.c: Replace entire file.
62686         * m4/floorl.m4: New file.
62687         * lib/math.in.h (floorl): Replace declaration.
62688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62689         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62690         * doc/functions/floorl.texi: Mention the 'floorl' module.
62691         * modules/mathl (Files): Remove lib/floorl.c.
62692         (Depends-on): Add floorl.
62693
62694 2007-10-04  Bruno Haible  <bruno@clisp.org>
62695
62696         * modules/floorf-tests: New file.
62697         * tests/test-floorf.c: New file.
62698
62699         * modules/floorf: New file.
62700         * lib/floor.c: New file.
62701         * lib/floorf.c: New file.
62702         * m4/floorf.m4: New file.
62703         * lib/math.in.h (floorf): New declaration.
62704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62705         HAVE_DECL_FLOORF.
62706         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62707         HAVE_DECL_FLOORF.
62708         * doc/functions/floorf.texi: Mention the 'floorf' module.
62709
62710 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62711             Bruno Haible  <bruno@clisp.org>
62712
62713         Advertise for the Git server instead of the CVS server.
62714         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62715         repository instead of the CVS one.
62716         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62717         about all VCS systems generically.
62718         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62719
62720 2007-10-04  Bruno Haible  <bruno@clisp.org>
62721
62722         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62723         means.
62724         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62725
62726 2007-10-04  Bruno Haible  <bruno@clisp.org>
62727
62728         * modules/truncl-tests: New file.
62729         * tests/test-truncl.c: New file.
62730
62731         * modules/truncl: New file.
62732         * lib/truncl.c: New file.
62733         * m4/truncl.m4: New file.
62734         * lib/math.in.h (truncl): New declaration.
62735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62736         HAVE_DECL_TRUNCL.
62737         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62738         HAVE_DECL_TRUNCL.
62739         * doc/functions/truncl.texi: Mention the 'truncl' module.
62740
62741 2007-10-04  Bruno Haible  <bruno@clisp.org>
62742
62743         * modules/truncf-tests: New file.
62744         * tests/test-truncf.c: New file.
62745
62746         * modules/truncf: New file.
62747         * lib/trunc.c: Make paramerizable through USE_* macros.
62748         * lib/truncf.c: New file.
62749         * m4/truncf.m4: New file.
62750         * lib/math.in.h (truncf): New declaration.
62751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62752         HAVE_DECL_TRUNCF.
62753         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62754         HAVE_DECL_TRUNCF.
62755         * doc/functions/truncf.texi: Mention the 'truncf' module.
62756
62757 2007-10-03  Bruno Haible  <bruno@clisp.org>
62758
62759         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62760         augmentation also for tests modules.
62761         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62762         * modules/atexit-tests (Makefile.am): Likewise.
62763         * modules/binary-io-tests (Makefile.am): Likewise.
62764         * modules/c-strcase-tests (Makefile.am): Likewise.
62765         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62766         * modules/canonicalize-tests (Makefile.am): Likewise.
62767         * modules/closein-tests (Makefile.am): Likewise.
62768         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62769         * modules/freadahead-tests (Makefile.am): Likewise.
62770         * modules/fseek-tests (Makefile.am): Likewise.
62771         * modules/fseeko-tests (Makefile.am): Likewise.
62772         * modules/ftell-tests (Makefile.am): Likewise.
62773         * modules/ftello-tests (Makefile.am): Likewise.
62774         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62775         * modules/isnanl-tests (Makefile.am): Likewise.
62776         * modules/lseek-tests (Makefile.am): Likewise.
62777         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62778         * modules/mbscasestr-tests (Makefile.am): Likewise.
62779         * modules/mbschr-tests (Makefile.am): Likewise.
62780         * modules/mbscspn-tests (Makefile.am): Likewise.
62781         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62782         * modules/mbspbrk-tests (Makefile.am): Likewise.
62783         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62784         * modules/mbsrchr-tests (Makefile.am): Likewise.
62785         * modules/mbsspn-tests (Makefile.am): Likewise.
62786         * modules/mbsstr-tests (Makefile.am): Likewise.
62787         * modules/printf-posix-tests (Makefile.am): Likewise.
62788         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62789         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62790         * modules/tsearch-tests (Makefile.am): Likewise.
62791         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62792         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62793         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62794         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62795         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62796         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62797         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62798         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62799         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62800         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62801         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62802         * modules/xstrtol-tests (Makefile.am): Likewise.
62803         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62804         * modules/yesno-tests (Makefile.am): Likewise.
62805
62806 2007-10-03  Bruno Haible  <bruno@clisp.org>
62807
62808         * modules/trunc-tests: New file.
62809         * tests/test-trunc.c: New file.
62810
62811         * modules/trunc: New file.
62812         * lib/trunc.c: New file.
62813         * m4/trunc.m4: New file.
62814         * lib/math.in.h (trunc): New declaration.
62815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62816         HAVE_DECL_TRUNC.
62817         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62818         HAVE_DECL_TRUNC.
62819         * doc/functions/trunc.texi: Mention the 'trunc' module.
62820
62821 2007-10-03  Bruno Haible  <bruno@clisp.org>
62822
62823         * tests/test-fpending.c: New file, mostly copied
62824         from coreutils/lib/t-fpending.c.
62825         * modules/fpending-tests: New file.
62826
62827 2007-10-03  Bruno Haible  <bruno@clisp.org>
62828
62829         Port the stdio extensions to QNX (untested).
62830         * lib/fseterr.c (fseterr): Add support for QNX.
62831         * lib/fbufmode.c (fbufmode): Likewise.
62832         * lib/freadable.c (freadable): Likewise.
62833         * lib/fwritable.c (fwritable): Likewise.
62834         * lib/freading.c (freading): Likewise.
62835         * lib/fwriting.c (fwriting): Likewise.
62836         * lib/freadahead.c (freadahed): Likewise.
62837         * lib/fpurge.c (fpurge): Likewise.
62838         * lib/fseeko.c (rpl_fseeko): Likewise.
62839
62840 2007-10-03  Bruno Haible  <bruno@clisp.org>
62841             Jim Meyering  <jim@meyering.net>
62842             Eric Blake  <ebb9@byu.net>
62843
62844         * doc/relocatable.texi: Use @command instead of @program.
62845
62846 2007-10-02  Jim Meyering  <jim@meyering.net>
62847
62848         Perform one more "_.h" -> ".in.h" substitution.
62849         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62850         instead of unistd_.h here, too.
62851
62852 2007-10-01  Bruno Haible  <bruno@clisp.org>
62853
62854         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62855         Needed for the alloca-opt module.
62856
62857 2007-09-30  Bruno Haible  <bruno@clisp.org>
62858
62859         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62860         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62861         alloca_.h.
62862         * lib/argz.in.h: Renamed from lib/argz_.h.
62863         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62864         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62865         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62866         byteswap_.h.
62867         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62868         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62869         dirent_.h.
62870         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62871         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62872         fcntl_.h.
62873         * lib/float.in.h: Renamed from lib/float_.h.
62874         * modules/float (Files, Makefile.am): Use float.in.h instead of
62875         float_.h.
62876         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62877         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62878         fnmatch_.h.
62879         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62880         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62881         getopt_.h.
62882         * lib/glob.in.h: Renamed from lib/glob_.h.
62883         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62884         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62885         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62886         iconv_.h.
62887         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62888         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62889         inttypes_.h.
62890         * lib/locale.in.h: Renamed from lib/locale_.h.
62891         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62892         locale_.h.
62893         * lib/math.in.h: Renamed from lib/math_.h.
62894         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62895         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62896         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62897         of netinet_in_.h. Add dependency.
62898         * lib/poll.in.h: Renamed from lib/poll_.h.
62899         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62900         * lib/search.in.h: Renamed from lib/search_.h.
62901         * modules/search (Files, Makefile.am): Use search.in.h instead of
62902         search_.h.
62903         * lib/signal.in.h: Renamed from lib/signal_.h.
62904         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62905         _signal.h.
62906         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62907         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62908         stdbool_.h.
62909         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62910         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62911         stdint_.h.
62912         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62913         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62914         stdio_.h.
62915         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62916         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62917         stdlib_.h.
62918         * lib/string.in.h: Renamed from lib/string_.h.
62919         * modules/string (Files, Makefile.am): Use string.in.h instead of
62920         string_.h.
62921         * doc/gnulib-tool.texi (Initial import): Update.
62922         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62923         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62924         of sys_select_.h. Add dependency.
62925         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62926         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62927         of sys_socket_.h.
62928         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62929         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62930         sys_stat_.h.
62931         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62932         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62933         sys_time_.h.
62934         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62935         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62936         sysexits_.h.
62937         * lib/time.in.h: Renamed from lib/time_.h.
62938         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62939         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62940         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62941         unistd_.h.
62942         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62943         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62944         wchar_.h.
62945         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62946         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62947         wctype_.h.
62948         * build-aux/bootstrap (slurp): Update.
62949         * lib/.cppi-disable: Update.
62950
62951 2007-09-30  Bruno Haible  <bruno@clisp.org>
62952
62953         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62954         Needed on BeOS.
62955
62956 2007-09-30  Bruno Haible  <bruno@clisp.org>
62957
62958         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62959
62960 2007-09-29  Bruno Haible  <bruno@clisp.org>
62961
62962         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62963
62964 2007-09-29  Bruno Haible  <bruno@clisp.org>
62965
62966         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62967         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62968         * build-aux/install-reloc: Compile also areadlink.c.
62969         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62970
62971 2007-09-29  Bruno Haible  <bruno@clisp.org>
62972
62973         * gnulib-tool (func_emit_initmacro_done): Indentation.
62974
62975 2007-09-29  Bruno Haible  <bruno@clisp.org>
62976
62977         * README: Add CVS checkout update instructions.
62978         Info from Bob Proulx <bob@proulx.com>.
62979
62980 2007-09-28  Eric Blake  <ebb9@byu.net>
62981
62982         Provide move-if-change.
62983         * build-aux/move-if-change: New file, based on best practice
62984         rather than any canonical upstream location.
62985
62986 2007-09-28  Jim Meyering  <jim@meyering.net>
62987
62988         Fix canonicalize loop-detection corner case.
62989         Do not attempt to stat the symlink values stored via seen_triple.
62990         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62991         on linux-2.6.18, (but not 2.6.22).
62992         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62993         triple_compare.  The former compares dev,ino,filename, while the latter
62994         would actually stat dirname(filename) when dev and ino were equal.
62995         * lib/hash-triple.c: Install <string.h>.
62996         (STREQ): Define.
62997         (triple_compare_ino_str): New function.
62998         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62999
63000 2007-09-28  Eric Blake  <ebb9@byu.net>
63001
63002         Enforce that AC_REPLACE_FUNCS files exist.
63003         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63004         override check for typos.
63005
63006         Fix test-closein on Solaris 10.
63007         * tests/test-closein.c (main): Don't assume stdin can be inherited
63008         closed on all systems.
63009         * tests/test-closein.sh: Likewise.
63010         Reported by Piotr Tarnowski.
63011
63012 2007-09-28  Jim Meyering  <jim@meyering.net>
63013
63014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63015
63016 2007-09-27  Jim Meyering  <jim@meyering.net>
63017
63018         canonicalize: Avoid a false-positive cycle failure.
63019         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63020         Sort.  Remove cycle-check.
63021         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63022         not cycle-check.h.
63023         (seen_triple): New function.
63024         (canonicalize_filename_mode): Use it instead of cycle-check.
63025         * tests/test-canonicalize.c: Add a test for this bug.
63026         * tests/test-canonicalize.sh: Set up and run the test.
63027
63028         New module, file-set, from coreutils.
63029         * modules/file-set: Define it.
63030         * lib/file-set.c, lib/file-set.h: Implement.
63031
63032         New module, hash-triple, from coreutils.
63033         * modules/hash-triple: Define it.
63034         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63035
63036 2007-09-25  Eric Blake  <ebb9@byu.net>
63037
63038         Fix strerror on Interix.
63039         * lib/string_.h (strerror): Declare replacement.
63040         * doc/functions/strerror.texi (strerror): Document the Interix
63041         shortcoming.
63042         * modules/string (Makefile.am): Support new hooks.
63043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63044         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63045         gl_FUNC_STRERROR_SEPARATE.
63046         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63047         * lib/strerror.c (rpl_strerror): Provide replacement.
63048         * modules/strerror (Depends-on): Add string.
63049         (configure.ac): Detect use of module.
63050         * tests/test-strerror.c: New file.
63051         * modules/strerror-tests: New test module.
63052         * modules/argp (Depends-on): Add strerror.
63053         * modules/error (Depends-on): Likewise.
63054         Reported by Martin Koeppe.
63055
63056 2007-09-24  Bruno Haible  <bruno@clisp.org>
63057
63058         * README: Update git instructions.
63059
63060 2007-09-24  Eric Blake  <ebb9@byu.net>
63061
63062         Revert fpending breakage from 2007-09-08.
63063         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63064         __fpending.c.
63065
63066 2007-09-24  Jim Meyering  <jim@meyering.net>
63067
63068         filenamecat.c: Add a test.
63069         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63070         showing how the function works when DIR is the empty string.
63071
63072 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63073
63074         * tests/test-canonicalize.sh: Turn on executable bit.
63075
63076 2007-09-19  Eric Blake  <ebb9@byu.net>
63077
63078         * README: Update CVS instructions.
63079
63080 2007-09-18  Bruno Haible  <bruno@clisp.org>
63081
63082         * modules/areadlink: New file.
63083         * lib/areadlink.h (areadlink): New declaration.
63084         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63085
63086 2007-09-17  Jim Meyering  <jim@meyering.net>
63087
63088         * lib/savewd.c (ESTALE) [!defined]: Define.
63089         Reported to be required on Interix by Martin Koeppe.
63090
63091 2007-09-17  Bruno Haible  <bruno@clisp.org>
63092
63093         * gnulib-tool (func_version): Use $version.
63094
63095 2007-09-16  Bruno Haible  <bruno@clisp.org>
63096
63097         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63098         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63099         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63100         Reported by Greg Schafer <gschafer@zip.com.au>.
63101
63102 2007-09-15  Bruno Haible  <bruno@clisp.org>
63103
63104         * gnulib-tool (sed): Try a little harder to make bash understand the
63105         alias.
63106         Reported by Bruce Korb <bruce.korb@gmail.com>.
63107
63108 2007-09-13  Eric Blake  <ebb9@byu.net>
63109
63110         * ChangeLog: Remove conflict markers.
63111
63112 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63113
63114         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63115         Reported by Bruno Haible <bruno@clisp.org>.
63116
63117 2007-09-12  Bruno Haible  <bruno@clisp.org>
63118
63119         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63120         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63121         is not defined.
63122
63123 2007-09-12  Eric Blake  <ebb9@byu.net>
63124
63125         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63126         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63127         Autoconf definition.
63128         * modules/euidaccess (Depends-on): Add extensions, for
63129         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63130         * modules/fnmatch (Depends-on): Likewise.
63131         * modules/getaddrinfo (Depends-on): Likewise.
63132         * modules/getdelim (Depends-on): Likewise.
63133         * modules/getline (Depends-on): Likewise.
63134         * modules/getsubopt (Depends-on): Likewise.
63135         * modules/gettext (Depends-on): Likewise.
63136         * modules/group-member (Depends-on): Likewise.
63137         * modules/mbchar (Depends-on): Likewise.
63138         * modules/memmem (Depends-on): Likewise.
63139         * modules/mempcpy (Depends-on): Likewise.
63140         * modules/memrchr (Depends-on): Likewise.
63141         * modules/pagealign_alloc (Depends-on): Likewise.
63142         * modules/readutmp (Depends-on): Likewise.
63143         * modules/stpcpy (Depends-on): Likewise.
63144         * modules/stpncpy (Depends-on): Likewise.
63145         * modules/strchrnul (Depends-on): Likewise.
63146         * modules/strndup (Depends-on): Likewise.
63147         * modules/strsep (Depends-on): Likewise.
63148         * modules/strverscmp (Depends-on): Likewise.
63149         * modules/vasprintf (Depends-on): Likewise.
63150         * modules/wcwidth (Depends-on): Likewise.
63151         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63152         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63153         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63154         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63155         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63156         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63157         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63158         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63159         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63160         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63161         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63162         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63163         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63164         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63165         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63166         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63167         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63168         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63169         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63170         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63171         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63172         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63173         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63174         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63175         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63177         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63178         so that lock.m4 can be used in gettext without extensions module.
63179
63180 2007-09-11  Bruno Haible  <bruno@clisp.org>
63181
63182         * m4/isc-posix.m4: Remove file.
63183         Suggested by Eric Blake.
63184
63185 2007-09-11  Eric Blake  <ebb9@byu.net>
63186
63187         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63188
63189 2007-09-10  Bruno Haible  <bruno@clisp.org>
63190
63191         * posix-modules: Fix typo in error message.
63192         Reported by Matt <mkraai@beckman.com>.
63193
63194 2007-09-09  Bruno Haible  <bruno@clisp.org>
63195
63196         * doc/functions/getdelim.texi: Update list of platforms lacking the
63197         function.
63198         * doc/functions/getline.texi: Likewise.
63199
63200 2007-09-09  Jim Meyering  <jim@meyering.net>
63201
63202         * lib/hash.c (hash_initialize): Detect calloc failure.
63203         Reported by Bruno Haible.
63204
63205 2007-09-09  Bruno Haible  <bruno@clisp.org>
63206
63207         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63208         malloc or realloc fails.
63209
63210 2007-09-09  Bruno Haible  <bruno@clisp.org>
63211
63212         * modules/getcwd (Depends-on): Add malloc-posix.
63213         * modules/glob (Depends-on): Likewise.
63214         * modules/putenv (Depends-on): Likewise.
63215         * modules/strdup (Depends-on): Likewise.
63216         * modules/getdelim (Depends-on): Add realloc-posix.
63217         * modules/read-file (Depends-on): Likewise.
63218
63219 2007-09-09  Bruno Haible  <bruno@clisp.org>
63220
63221         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63222         (gl_FUNC_MALLOC_POSIX): Require it.
63223         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63224         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63225         * modules/realloc (Files): Add m4/malloc.m4.
63226         * modules/calloc (Files): Likewise.
63227
63228 2007-09-09  Bruno Haible  <bruno@clisp.org>
63229
63230         * modules/malloc-posix: New file.
63231         * modules/malloc (Depends-on): Add malloc-posix.
63232         * lib/malloc.c: Include errno.h.
63233         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63234         and a POSIX-compatible malloc into a single function. Set ENOMEM
63235         when returning NULL.
63236         * m4/malloc.m4: New file.
63237         * doc/functions/malloc.texi: Mention the malloc-posix module.
63238         * lib/stdlib_.h (malloc): New declaration.
63239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63240         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63241         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63242         and HAVE_MALLOC_POSIX.
63243
63244 2007-09-09  Bruno Haible  <bruno@clisp.org>
63245
63246         * modules/realloc-posix: New file.
63247         * modules/realloc (Depends-on): Add realloc-posix.
63248         * lib/realloc.c: Include errno.h.
63249         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63250         and a POSIX-compatible realloc into a single function. Set ENOMEM
63251         when returning NULL.
63252         * m4/realloc.m4: New file.
63253         * doc/functions/realloc.texi: Mention the realloc-posix module.
63254         * lib/stdlib_.h (realloc): New declaration.
63255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63256         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63257         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63258         and HAVE_REALLOC_POSIX.
63259
63260 2007-09-09  Bruno Haible  <bruno@clisp.org>
63261
63262         * modules/calloc-posix: New file.
63263         * modules/calloc (Depends-on): Add calloc-posix.
63264         * lib/calloc.c: Include errno.h.
63265         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63266         and a POSIX-compatible calloc into a single function. Set ENOMEM
63267         when returning NULL.
63268         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63269         * doc/functions/calloc.texi: Mention the calloc-posix module.
63270         * lib/stdlib_.h (calloc): New declaration.
63271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63272         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63273         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63274         and HAVE_CALLOC_POSIX.
63275
63276 2007-09-09  Bruno Haible  <bruno@clisp.org>
63277
63278         Allow for modules to show an arbitrary notice.
63279         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63280         * gnulib-tool: New option --extract-notice.
63281         (func_usage): Document it.
63282         (sed_extract_prog): Update.
63283         (func_get_notice): New function.
63284         (func_modules_notice): New function.
63285         (func_import, func_create_testdir): Invoke it.
63286         Suggested by Jim Meyering.
63287
63288 2007-09-09  Bruno Haible  <bruno@clisp.org>
63289
63290         * gnulib-tool: New options --verbose, --quiet.
63291         (func_usage): Document them.
63292         (verbose): New variable.
63293         (func_execute_command): New function.
63294         (func_import): Don't show the module list and the file list if
63295         $verbose < 0.
63296         (func_create_testdir): Likewise. Use func_execute_command.
63297         (func_create_megatestdir): Use func_execute_command.
63298
63299 2007-09-08  Bruno Haible  <bruno@clisp.org>
63300
63301         * gnulib-tool (func_import): Prefer rsync over wget when available,
63302         for fetching the PO files.
63303
63304 2007-09-08  Bruno Haible  <bruno@clisp.org>
63305
63306         * posix-modules: New file. Portions copied from gnulib-tool.
63307         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63308
63309 2007-09-08  Jim Meyering  <jim@meyering.net>
63310
63311         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63312         * lib/fpending.h: Rename from __fpending.h.
63313         * lib/fpending.c: Rename from __fpending.c.
63314         Include "fpending.h", not "__fpending.h".
63315         * lib/__fpending.h, lib/__fpending.c: Remove files.
63316         * modules/fpending (Files): Reflect new file names.
63317         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63318
63319 2007-09-08  Bruno Haible  <bruno@clisp.org>
63320
63321         * m4/inttypes-h.m4: Remove stub file.
63322
63323 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63324
63325         * doc/headers/stdint.texi: Discuss #include_next issue.
63326
63327 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63328
63329         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63330
63331 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63332
63333         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63334         in variable name.
63335
63336 2007-09-03  Jim Meyering  <jim@meyering.net>
63337
63338         New module: git-version-gen.
63339         * modules/git-version-gen: New file.
63340
63341         Import changes from coreutils for bootstrap script.
63342
63343         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63344
63345         bootstrap: uses rsync to download the .po files
63346         * build-aux/bootstrap (po_download_command_format): New global.
63347         (download_po_files): Use rsync.
63348         (update_po_files): Don't remove .po files after download,
63349         so future rsync runs can take advantage of the copies.
63350
63351         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63352
63353         Solve the unnecessary-.po-file-regeneration problem once and for all.
63354         * build-aux/bootstrap (download_po_files): New function, renamed from
63355         get_translations.  Now, downloads, but doesn't update LINGUAS.
63356         (update_po_files): New function.
63357
63358         bootstrap: Ignore more.
63359         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63360         uniwidth to e.g., lib/.gitignore.
63361         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63362
63363         * build-aux/bootstrap: New setting: vc_ignore.
63364         (insert_sorted_if_absent): Create $file if absent.
63365         Adapt to new, possibly empty, list: $vc_ignore.
63366
63367         bootstrap: generate more ignorable names
63368         * build-aux/bootstrap (slurp): When generating ignorable names,
63369         also map .sin to .sed, .gperf to .c, and .y to .c.
63370
63371 2007-09-03  Jim Meyering  <jim@meyering.net>
63372
63373         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63374         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63375
63376 2007-09-02  Bruno Haible  <bruno@clisp.org>
63377
63378         Fix mis-recognition of 'mcs' on QNX 6.
63379         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63380         output contains the string "Mono".
63381         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63382         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63383
63384 2007-09-01  Bruno Haible  <bruno@clisp.org>
63385
63386         Fix collision between uniwidth/* and linebreak modules.
63387         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63388         u32_width): Remove declarations.
63389         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63390         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63391         streq3, streq2, streq1, streq0): Remove functions.
63392         (STREQ): Remove macro.
63393         (is_cjk_encoding): Remove function.
63394         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63395         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63396         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63397         * NEWS: Document the change.
63398
63399 2007-09-01  Bruno Haible  <bruno@clisp.org>
63400
63401         * lib/streq.h: Add double-inclusion guard.
63402
63403 2007-09-01  Karl Berry  <karl@gnu.org>
63404
63405         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63406
63407 2007-08-28  Jim Meyering  <jim@meyering.net>
63408
63409         Rename mreadlink_with_size to areadlink_with_size.
63410         * NEWS: Document the change.
63411         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63412         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63413         * lib/mreadlink.h: Rename this to...
63414         * lib/areadlink.h: ...this.
63415         * modules/mreadlink-with-size: Rename this to...
63416         * modules/areadlink-with-size: ...this.
63417         * lib/canonicalize.c: Reflect the renaming.
63418         * modules/canonicalize: Likewise.
63419
63420 2007-08-26  Bruno Haible  <bruno@clisp.org>
63421
63422         * gnulib-tool (func_import): When deciding which files to remove,
63423         consider also dangling symbolic links.
63424         Reported by Eric Blake.
63425
63426 2007-08-26  Bruno Haible  <bruno@clisp.org>
63427
63428         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63429
63430 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63431
63432         * lib/readline.c: Don't include getline.h, the prototype is now
63433         found in stdio.h.
63434
63435 2007-08-23  Jim Meyering  <jim@meyering.net>
63436
63437         Getdelim touchup.
63438         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63439         around the funlockfile call, since funlockfile never sets errno.
63440         Don't set errno upon failed realloc.
63441
63442 2007-08-22  Eric Blake  <ebb9@byu.net>
63443
63444         Getline touchups.
63445         * lib/getdelim.c (getdelim): Revert regression that required *n to
63446         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63447         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63448         getdelim, rather than whether implementation is missing.
63449         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63450         * lib/stdio_.h (getline): Also declare if replacement is
63451         required.
63452         * doc/functions/getdelim.texi: New file.
63453         * doc/functions/getline.texi: Likewise.
63454         * doc/gnulib.texi (Function Substitutes): Add new files.
63455         Reported by Bruno Haible.
63456
63457 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63458
63459         * users.txt: Add Guile.
63460
63461 2007-08-22  Eric Blake  <ebb9@byu.net>
63462
63463         * tests/test-getdelim.c (main): Use remove, not unlink.
63464         * tests/test-getline.c (main): Likewise.
63465
63466         Move getline and getdelim into stdio.h, per POSIX 200x.
63467         * modules/getline (Files): Remove getline.h.
63468         (Depends-on): Add stdio.
63469         (configure.ac): Add module indicator.
63470         * modules/getdelim (Files): Remove getdelim.h.
63471         (Depends-on): Add stdio.
63472         (configure.ac): Add module indicator.
63473         * modules/stdio (Makefile.am): Work with new indicators.
63474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63475         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63476         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63477         * lib/getdelim.h: Delete.
63478         * lib/getline.h: Delete.
63479         * lib/stdio_.h (getdelim, getline): Declare.
63480         * modules/getdelim-tests: New module.
63481         * modules/getline-tests: Likewise.
63482         * tests/test-getdelim.c: New file.
63483         * tests/test-getline.c: Likewise.
63484         * NEWS: Document the change.
63485         * lib/getline.c: Update choice of header.
63486         * lib/csharpcomp.c: Likewise.
63487         * lib/getpass.c: Likewise.
63488         * lib/javacomp.c: Likewise.
63489         * lib/javaversion.c: Likewise.
63490         * lib/yesno.c: Likewise.
63491         * lib/getdelim.c: Likewise.
63492         (getdelim): Set errno on failure, and avoid memory leak.
63493
63494 2007-08-19  Bruno Haible  <bruno@clisp.org>
63495
63496         * modules/closein (Depends-on): Add freadahead.
63497         * lib/closein.c: Include freadahead.h.
63498         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63499         is zero.
63500
63501 2007-08-19  Bruno Haible  <bruno@clisp.org>
63502
63503         * modules/freadahead-tests: New file.
63504         * tests/test-freadahead.sh: New file.
63505         * tests/test-freadahead.c: New file.
63506
63507         * modules/freadahead: New file.
63508         * lib/freadahead.h: New file.
63509         * lib/freadahead.c: New file.
63510         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63511         fbufmode, fpurge, freadable, fwritable.
63512
63513 2007-08-19  Eric Blake  <ebb9@byu.net>
63514
63515         Test yesno in combination with closein.
63516         * lib/yesno.c (yesno): Document use of stdin.
63517         * modules/yesno-tests (Files): New module.
63518         * tests/test-yesno.c (main): New file.
63519         * tests/test-yesno.sh: Likewise.
63520
63521 2007-08-19  Bruno Haible  <bruno@clisp.org>
63522
63523         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63524         * lib/fseeko.c (rpl_fseeko): Likewise.
63525         * lib/fseterr.c (fseterr): Likewise.
63526
63527 2007-08-19  Bruno Haible  <bruno@clisp.org>
63528
63529         * tests/test-lseek.c (main): Disable a test for BeOS.
63530         * doc/functions/lseek.texi: Document the BeOS bug.
63531
63532 2007-08-19  Bruno Haible  <bruno@clisp.org>
63533             Eric Blake  <ebb9@byu.net>
63534
63535         * lib/lseek.c: Include <sys/stat.h>.
63536         (rpl_lseek): Add workaround code also for Unix platforms.
63537         Needed for BeOS.
63538         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63539         * doc/functions/lseek.texi: Document BeOS definiency.
63540
63541 2007-08-18  Bruno Haible  <bruno@clisp.org>
63542
63543         * modules/fstrcmp-tests: New file.
63544         * tests/test-fstrcmp.c: New file.
63545
63546 2007-08-18  Bruno Haible  <bruno@clisp.org>
63547
63548         * modules/fstrcmp: New file, from GNU gettext with modifications.
63549         * lib/fstrcmp.h: New file, from GNU gettext.
63550         * lib/fstrcmp.c: New file, from GNU gettext.
63551         * MODULES.html.sh (String handling): Add fstrcmp.
63552
63553 2007-08-18  Bruno Haible  <bruno@clisp.org>
63554
63555         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63556         'bool'.
63557         (diag, compareseq): Remove const from the ctxt argument.
63558         (USE_HEURISTIC): Undefine at the end.
63559
63560 2007-08-18  Jim Meyering  <jim@meyering.net>
63561
63562         New file: lib/idcache.h
63563         * NEWS: Mention the addition.
63564         * modules/idcache (Files): Add lib/idcache.h
63565         * lib/idcache.c: Include "idcache.h".
63566         Don't include <sys/types.h>.
63567         Add a FIXME comment.
63568         Move file-scoped "static" declarations to the top.
63569         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63570
63571 2007-08-17  Bruno Haible  <bruno@clisp.org>
63572         and Paul Eggert  <eggert@cs.ucla.edu>
63573
63574         * MODULES.html.sh: Add diffseq.
63575         * modules/diffseq: New file.
63576         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63577         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63578
63579 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63580
63581         Import changes from coreutils for bootstrap script.
63582
63583         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63584
63585         * build-aux/bootstrap (slurp): Work even in environments where
63586         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63587         current code does not slurp files whose names start with ".", and
63588         this looks like it might be a troublesome area.
63589
63590         2007-07-11  Jim Meyering  <jim@meyering.net>
63591
63592         If there's a GPL vN copyright comment, require that N == 3.
63593
63594         2007-07-08  Jim Meyering  <jim@meyering.net>
63595
63596         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63597         * build-aux/bootstrap (mam_template): Move definition out of loop.
63598
63599         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63600
63601         * build-aux/bootstrap (symlink_to_dir): Rename function from
63602         symlink_to_gnulib.  Add a directory parameter.  Update all
63603         callers.
63604         (cp_mark_as_generated): Also check for -- and link to -- files in
63605         gl/.
63606
63607         2007-07-08  Jim Meyering  <jim@meyering.net>
63608
63609         Adapt to deeper hierarchy in gnulib.
63610         * build-aux/bootstrap (symlink_to_dir): If the destination
63611         directory doesn't exist, create it. This is required at least for
63612         "lib/uniwidth/cjk.h".
63613
63614         2007-05-15  Jim Meyering  <jim@meyering.net>
63615
63616         * build-aux/bootstrap: Now that generated Makefile.am files
63617         are no longer under version control, they must be created at
63618         bootstrap time.
63619
63620 2007-08-14  Ben Pfaff  <blp@gnu.org>
63621
63622         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63623
63624 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63625
63626         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63627         given the changes below.
63628         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63629         even on hosts that have padding bits beyond the supported 64.
63630
63631 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63632
63633         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63634         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63635         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63636         depends on it.
63637         (xstrtol_error): Remove.
63638         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63639         but with a different signature.
63640         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63641         * lib/xstrtol-error.c: Include exitfail.h.
63642         (xstrtol_fatal): New function, with a different signature from the
63643         old xstrtol_error, so that the caller need not worry about passing
63644         in an exit status, or about storage management of the option argument.
63645         (xstrtol_error): Now a static function.  Redo signature to
63646         implement xstrtol_fatal.  Output the correct number of hyphens in
63647         front of the option so that the caller need not worry about
63648         storage management.
63649         (N_): New macro.
63650         (_): Remove; not used now.
63651         * modules/xstrtol: Depend on getopt.
63652         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63653         of old STRTOL_FATAL_ERROR macro.
63654         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63655         of test program.
63656         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63657         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63658
63659 2007-08-08  Eric Blake  <ebb9@byu.net>
63660
63661         * lib/xstrtol-error.c: Add missing include.
63662
63663         Move xstrtol messages into gnulib domain, when --pobase is used.
63664         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63665         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63666         * modules/xstrtol (Files): Distribute new file.
63667         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63668         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63669         * tests/test-xstrtol.c: ...into new file.
63670         * tests/test-xstrtoul.c: Also test xstrtoul.
63671         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63672         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63673         * tests/test-xstrtol.sh: Drive the tests.
63674         * tests/test-xstrtoimax.sh: Likewise.
63675         * tests/test-xstrtoumax.sh: Likewise.
63676         * modules/xstrtol-tests: New module.
63677         * modules/xstrtoimax-tests: Likewise.
63678         * modules/xstrtoumax-tests: Likewise.
63679
63680 2007-08-08  Jim Meyering  <jim@meyering.net>
63681
63682         New function: mfile_name_concat.
63683         * lib/filenamecat.c (mfile_name_concat): New function, just like
63684         file_name_concat, but return NULL upon failure rather than exiting
63685         with a diagnostic.
63686         * lib/filenamecat.h: Declare it.
63687
63688 2007-08-07  Bruno Haible  <bruno@clisp.org>
63689
63690         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63691         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63692         warning from gcc.
63693         Reported by Eric Blake.
63694
63695 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63696
63697         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63698         * modules/crypto/arcfour (License): Likewise.
63699         * modules/crypto/des-tests (License): Likewise.
63700         * modules/crypto/gc-arctwo-tests (License): Likewise.
63701         * modules/crypto/gc-des-tests (License): Likewise.
63702         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63703         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63704         * modules/crypto/gc-md2-tests (License): Likewise.
63705         * modules/crypto/gc-md4-tests (License): Likewise.
63706         * modules/crypto/gc-md5-tests (License): Likewise.
63707         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63708         * modules/crypto/gc-rijndael-tests (License): Likewise.
63709         * modules/crypto/gc-sha1-tests (License): Likewise.
63710         * modules/crypto/gc-tests (License): Likewise.
63711         * modules/crypto/hmac-md5 (License): Likewise.
63712         * modules/crypto/hmac-sha1 (License): Likewise.
63713         * modules/crypto/md2-tests (License): Likewise.
63714         * modules/crypto/md4-tests (License): Likewise.
63715         * modules/crypto/md5 (License): Likewise.
63716         * modules/crypto/rijndael (License): Likewise.
63717         * modules/crypto/sha1 (License): Likewise.
63718         * modules/memxor (License): Likewise.
63719
63720 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63721         and Bruno Haible  <bruno@clisp.org>
63722
63723         * NEWS: Describe interface changes to human, xstrtol.
63724         * lib/human.h: Include <xstrtol.h>.
63725         (human_options): Return enum strtol_error, not int.  Remove
63726         bool arg; take int * instead.
63727         * lib/human.c: Don't include "gettext.h".
63728         (_): Remove; no longer used.
63729         Don't include <xstrtol.h>, since human.h does it.
63730         (human_options): Adjust to abovementioned interface changes.
63731         Do not report error to stderr; that's now the caller's
63732         responsibility.
63733         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63734         interface change.
63735         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63736         Str, Argument_type_string.  All uses changed.  Put " argument"
63737         in diagnostics to make them clearer.  Change wording of suffix
63738         message for clarity.
63739         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63740         Argument_type_string.
63741         (STRTOL_FATAL_WARN): Remove; no longer used.
63742         * modules/human (Depends-on): Remove gettext-h.
63743
63744 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63745
63746         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63747
63748 2007-07-31  Bruno Haible  <bruno@clisp.org>
63749
63750         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63751         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63752         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63753
63754 2007-07-31  Bruno Haible  <bruno@clisp.org>
63755
63756         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63757         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63758
63759 2007-07-30  Bruno Haible  <bruno@clisp.org>
63760
63761         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63762         * modules/c-ctype (License): Likewise.
63763         * modules/c-strcase (License): Likewise.
63764         * modules/check-version (License): Likewise.
63765         * modules/iconv (License): Likewise.
63766         * modules/iconv_open (License): Likewise.
63767         * modules/read-file (License): Likewise.
63768         * modules/striconv (License): Likewise.
63769         * modules/strverscmp (License): Likewise.
63770         * modules/vasprintf (License): Likewise.
63771         * modules/crypto/des (License): Likewise.
63772         * modules/crypto/gc (License): Likewise.
63773         * modules/crypto/gc-arcfour (License): Likewise.
63774         * modules/crypto/gc-arctwo (License): Likewise.
63775         * modules/crypto/gc-des (License): Likewise.
63776         * modules/crypto/gc-hmac-md5 (License): Likewise.
63777         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63778         * modules/crypto/gc-md2 (License): Likewise.
63779         * modules/crypto/gc-md4 (License): Likewise.
63780         * modules/crypto/gc-md5 (License): Likewise.
63781         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63782         * modules/crypto/gc-random (License): Likewise.
63783         * modules/crypto/gc-rijndael (License): Likewise.
63784         * modules/crypto/gc-sha1 (License): Likewise.
63785         * modules/crypto/md2 (License): Likewise.
63786         * modules/crypto/md4 (License): Likewise.
63787
63788 2007-07-30  Jim Meyering  <jim@meyering.net>
63789
63790         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63791         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63792         it has valid stat data.  This bug would cause du not to count the
63793         sizes of inaccessible directories.
63794         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63795         in <http://bugzilla.redhat.com/250077>.
63796
63797 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63798             Bruno Haible  <bruno@clisp.org>
63799
63800         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63801         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63802         #include_next, gives a diagnostic about it, but reports no error in
63803         the exit code.
63804         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63805
63806 2007-07-24  Ben Pfaff  <blp@gnu.org>
63807
63808         Improve name: "count-one-bits" is better than "popcount".
63809         * MODULES.html.sh: Update name.
63810         * lib/popcount.h: Renamed lib/count-one-bits.h.
63811         (popcount): Renamed count_one_bits.
63812         (popcountl): Renamed count_one_bits_l.
63813         (popcountll): Renamed count_one_bits_ll.
63814         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63815         * modules/popcount: Renamed module/count-one-bits.
63816         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63817         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63818
63819 2007-07-23  Ben Pfaff  <blp@gnu.org>
63820
63821         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63822         better code generation, and add U to large constants to avoid
63823         warnings, in non-GCC case.
63824         Suggested by Bruno Haible.
63825
63826 2007-07-23  Ben Pfaff  <blp@gnu.org>
63827
63828         * lib/popcount.h: Use verify_true instead of if...abort.
63829         * modules/popcount: Depend on verify module.
63830         Suggested by Jim Meyering.
63831
63832 2007-07-23  Bruno Haible  <bruno@clisp.org>
63833
63834         * gnulib-tool (func_import): Create a .cvsignore file also when the
63835         directory is not yet in CVS but the toplevel directory is. When
63836         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63837         Reported by Karl Berry.
63838
63839 2007-07-22  Ben Pfaff  <blp@gnu.org>
63840
63841         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63842         case.
63843         Suggested by Eric Blake.
63844
63845 2007-07-22  Ben Pfaff  <blp@gnu.org>
63846
63847         New module: popcount.
63848         * MODULES.html.sh: Add popcount.
63849         * modules/popcount: New file.
63850         * modules/popcount-tests: New file.
63851         * tests/test-popcount.c: New file.
63852         * lib/popcount.h: New file.
63853         * m4/popcount.m4: New file.
63854
63855 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63856
63857         * build-aux/announce-gen: Update to GPLv3.
63858
63859         * build-aux/config.guess: Update from config.
63860
63861 2007-07-21  Bruno Haible  <bruno@clisp.org>
63862
63863         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63864         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63865
63866 2007-07-20  Jim Meyering  <jim@meyering.net>
63867
63868         * check-module: Diagnose a self-dependency.
63869
63870 2007-07-19  Bruno Haible  <bruno@clisp.org>
63871
63872         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63873         empty.
63874         Reported by Eric Blake.
63875
63876 2007-07-18  Bruno Haible  <bruno@clisp.org>
63877
63878         * gnulib-tool: New options --po-base, --po-domain.
63879         (func_usage): Document them.
63880         (pobase, po_domain): New variables.
63881         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63882         DEFAULT_TEXT_DOMAIN.
63883         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63884         (func_import): Consider pobase and po_domain. Create a po/ directory.
63885         (func_create_testdir): Set pobase and po_domain to empty.
63886         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63887         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63888
63889 2007-07-18  Bruno Haible  <bruno@clisp.org>
63890
63891         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63892         EXTRA_DIST augmentation for files in build-aux/.
63893
63894 2007-07-16  Bruno Haible  <bruno@clisp.org>
63895
63896         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63897         * modules/getdelim (License): Likewise.
63898
63899 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63900
63901         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63902         * modules/d-type (License): Likewise.
63903         * modules/extensions (License): Likewise.
63904         * modules/fnmatch (License): Likewise.
63905         * modules/fseeko (License): Likewise.
63906         * modules/getaddrinfo (License): Likewise.
63907         * modules/getline (License): Likewise.
63908         * modules/getlogin_r (License): Likewise.
63909         * modules/getpass (License): Likewise.
63910         * modules/gettimeofday (License): Likewise.
63911         * modules/glob (License): Likewise.
63912         * modules/inet_ntop (License): Likewise.
63913         * modules/malloc (License): Likewise.
63914         * modules/malloca (License): Likewise.
63915         * modules/memmem (License): Likewise.
63916         * modules/mempcpy (License): Likewise.
63917         * modules/memset (License): Likewise.
63918         * modules/minmax (License): Likewise.
63919         * modules/mktime (License): Likewise.
63920         * modules/netinet_in (License): Likewise.
63921         * modules/pathmax (License): Likewise.
63922         * modules/poll (License): Likewise.
63923         * modules/regex (License): Likewise.
63924         * modules/snprintf (License): Likewise.
63925         * modules/stdbool (License): Likewise.
63926         * modules/stdint (License): Likewise.
63927         * modules/stdio (License): Likewise.
63928         * modules/strcase (License): Likewise.
63929         * modules/strcasestr (License): Likewise.
63930         * modules/strdup (License): Likewise.
63931         * modules/string (License): Likewise.
63932         * modules/strndup (License): Likewise.
63933         * modules/strnlen (License): Likewise.
63934         * modules/strpbrk (License): Likewise.
63935         * modules/strptime (License): Likewise.
63936         * modules/strsep (License): Likewise.
63937         * modules/sys_select (License): Likewise.
63938         * modules/sys_socket (License): Likewise.
63939         * modules/sys_stat (License): Likewise.
63940         * modules/sys_time (License): Likewise.
63941         * modules/time (License): Likewise.
63942         * modules/time_r (License): Likewise.
63943         * modules/timegm (License): Likewise.
63944         * modules/unistd (License): Likewise.
63945         * modules/vsnprintf (License): Likewise.
63946         * modules/wctype (License): Likewise.
63947
63948 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63949
63950         * modules/argz (License): LGPLv2+.
63951
63952 2007-07-15  Karl Berry  <karl@gnu.org>
63953
63954         * doc/gnulib.texi: revise node structure per new fdl.texi.
63955
63956 2007-07-14  Bruno Haible  <bruno@clisp.org>
63957
63958         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63959         the output file.
63960         * lib/uniname/uninames.h: Regenerated.
63961
63962 2007-07-14  Karl Berry  <karl@gnu.org>
63963
63964         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63965         omitting sectioning and index commands.
63966
63967 2007-07-13  Bruno Haible  <bruno@clisp.org>
63968
63969         New gnulib-tool option --more-symlinks.
63970         * gnulib-tool (func_usage): Document --more-symlinks.
63971         (do_copyrights): New variable.
63972         Recognize option --more-symlinks.
63973         (func_import): Don't add a copyright notice transform to
63974         sed_transform_lib_file if do_copyrights is empty.
63975
63976 2007-07-13  Bruno Haible  <bruno@clisp.org>
63977
63978         * lib/vasnprintf.c (decimal_point_char): Define also if
63979         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63980         && !NEED_PRINTF_DIRECTIVE_A.
63981         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63982         Gary V. Vaughan <gary@gnu.org>.
63983
63984 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63985
63986         * lib/inttypes_.h: Undo previous change, since it was fixed
63987         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63988
63989 2007-07-13  Bruno Haible  <bruno@clisp.org>
63990
63991         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63992         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63993
63994 2007-07-13  Jim Meyering  <jim@meyering.net>
63995
63996         df: Don't fail for Tru64's "file-on-file mount".
63997         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63998         so we fall through and use statfs instead.  Details here:
63999         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64000         Reported by Albert Chin.
64001
64002 2007-07-13  Bruno Haible  <bruno@clisp.org>
64003
64004         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64005         * modules/configmake (License): Likewise.
64006         * modules/gettext (License): Likewise.
64007         * modules/gettext-h (License): Likewise.
64008         * modules/include_next (License): Likewise.
64009         * modules/link-warning (License): Likewise.
64010         * modules/localcharset (License): Likewise.
64011         * modules/localename (License): Likewise.
64012         * modules/lock (License): Likewise.
64013         * modules/relocatable-lib-lgpl (License): Likewise.
64014         * modules/size_max (License): Likewise.
64015         * modules/vasnprintf (License): Likewise.
64016         * modules/wchar (License): Likewise.
64017         * modules/xsize (License): Likewise.
64018
64019 2007-07-13  Bruno Haible  <bruno@clisp.org>
64020
64021         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64022         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64023
64024 2007-07-12  Bruno Haible  <bruno@clisp.org>
64025
64026         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64027         in the modules files.
64028
64029 2007-07-11  Karl Berry  <karl@gnu.org>
64030
64031         * MODULES.html.sh (func_module): use
64032          sed -e '\|^'"${includefile}"'$|d'
64033          instead of /.../d, to avoid errors on $includefile's containing /.
64034
64035 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64036
64037         * gnulib-tool (func_import): Avoid duplication of --avoid
64038         statements
64039         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64040         names to `_' in variable names.
64041
64042 2007-07-10  Eric Blake  <ebb9@byu.net>
64043
64044         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64045         * NEWS: Document this change.
64046
64047 2007-07-08  Bruno Haible  <bruno@clisp.org>
64048
64049         Update to Unicode 5.0.
64050         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64051         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64052         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64053         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64054         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64055         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64056         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64057         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64058         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64059         U+10A3F, U+1D242..U+1D244.
64060         (nonspacing_table_ind): Update.
64061         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64062         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64063
64064 2007-07-08  Bruno Haible  <bruno@clisp.org>
64065
64066         Update to Unicode 5.0.
64067         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64068         code transform. Extend the name index field of unicode_name_to_code and
64069         unicode_code_to_name from 16 to 24 bits.
64070         * lib/uniname/uniname.c (unicode_character_name,
64071         unicode_name_character): Add the range 0x12xxx to the code transform.
64072         * lib/uniname/uninames.h: Regenerated.
64073         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64074
64075 2007-07-07  Bruno Haible  <bruno@clisp.org>
64076
64077         * modules/wcwidth-tests: New file.
64078         * tests/test-wcwidth.c: New file.
64079
64080         Work around MacOS X wcwidth() bug.
64081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64082         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64083         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64084         original wcwidth in non-UTF-8 locales.
64085         * modules/wcwidth (Depends-on): Add localcharset, streq,
64086         uniwidth/width.
64087         * doc/functions/wcwidth.texi: Update.
64088
64089 2007-07-07  Bruno Haible  <bruno@clisp.org>
64090
64091         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64092         (wcwidth): New declaration.
64093         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64094         macros.
64095         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64096         here. Prepare for creating <wchar.h> unconditionally.
64097         * modules/wchar (Depends-on): Add link-warning.
64098         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64099         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64100         * lib/wcwidth.h: Remove file.
64101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64102         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64103         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64104         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64105         (Include): Replace wcwidth.h with <wchar.h>.
64106         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64107         * lib/mbchar.h: Don't include wcwidth.h.
64108         * lib/mbswidth.c: Likewise.
64109         * NEWS: Mention the change.
64110
64111 2007-07-07  Bruno Haible  <bruno@clisp.org>
64112
64113         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64114         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64115         definition with an external declaration.
64116         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64117         defined as a function. Remove AC_C_INLINE requirement.
64118         * modules/wcwidth (Files): Add lib/wcwidth.c.
64119         (Makefile.am): Remove redundant statement.
64120
64121 2007-07-07  Bruno Haible  <bruno@clisp.org>
64122
64123         * MODULES.html.sh (Unicode string functions): Add the new modules.
64124
64125         * tests/uniwidth/test-u32-strwidth.c: New file.
64126         * modules/uniwidth/u32-strwidth-tests: New file.
64127
64128         * lib/uniwidth/u32-strwidth.c: New file.
64129         * modules/uniwidth/u32-strwidth: New file.
64130
64131         * tests/uniwidth/test-u16-strwidth.c: New file.
64132         * modules/uniwidth/u16-strwidth-tests: New file.
64133
64134         * lib/uniwidth/u16-strwidth.c: New file.
64135         * modules/uniwidth/u16-strwidth: New file.
64136
64137         * tests/uniwidth/test-u8-strwidth.c: New file.
64138         * modules/uniwidth/u8-strwidth-tests: New file.
64139
64140         * lib/uniwidth/u8-strwidth.c: New file.
64141         * modules/uniwidth/u8-strwidth: New file.
64142
64143         * tests/uniwidth/test-u32-width.c: New file.
64144         * modules/uniwidth/u32-width-tests: New file.
64145
64146         * lib/uniwidth/u32-width.c: New file.
64147         * modules/uniwidth/u32-width: New file.
64148
64149         * tests/uniwidth/test-u16-width.c: New file.
64150         * modules/uniwidth/u16-width-tests: New file.
64151
64152         * lib/uniwidth/u16-width.c: New file.
64153         * modules/uniwidth/u16-width: New file.
64154
64155         * tests/uniwidth/test-u8-width.c: New file.
64156         * modules/uniwidth/u8-width-tests: New file.
64157
64158         * lib/uniwidth/u8-width.c: New file.
64159         * modules/uniwidth/u8-width: New file.
64160
64161         * tests/uniwidth/test-uc_width.c: New file.
64162         * modules/uniwidth/width-tests: New file.
64163
64164         * lib/uniwidth/width.c: New file, from GNU libiconv.
64165         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64166         * modules/uniwidth/width: New file.
64167
64168         * lib/uniwidth.h: New file, from GNU libiconv.
64169         * modules/uniwidth/base: New file.
64170
64171 2007-07-07  Bruno Haible  <bruno@clisp.org>
64172
64173         * lib/uniname.h: New file, from GNU gettext.
64174         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64175         * lib/uniname/uninames.h: New file, from GNU gettext.
64176         * lib/uniname/uniname.c: New file, from GNU gettext.
64177         * tests/uniname/test-uninames.sh: New file.
64178         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64179         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64180         * modules/uniname/base: New file.
64181         * modules/uniname/uniname: New file.
64182         * modules/uniname/uniname-tests: New file.
64183         * MODULES.html.sh (Unicode string functions): Add the new modules.
64184
64185 2007-07-06  Bruno Haible  <bruno@clisp.org>
64186
64187         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64188
64189 2007-07-06  Bruno Haible  <bruno@clisp.org>
64190
64191         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64192         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64193         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64194         include <sys/time.h>.
64195         Reported by Eric Blake.
64196
64197 2007-07-06  Eric Blake  <ebb9@byu.net>
64198
64199         Fix testing canonicalize on cygwin.
64200         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64201         Revert patch from 2007-06-19.
64202         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64203         canonicalize module is also in use.
64204         * tests/test-canonicalize.c: New file.
64205         * tests/test-canonicalize.sh: Likewise.
64206         * modules/canonicalize-tests: Likewise.
64207
64208 2007-07-06  Jim Meyering  <jim@meyering.net>
64209
64210         * lib/getugroups.c (getugroups): Detect getgrent failure.
64211         Adjust comment to reflect reality: this function may return -1.
64212
64213 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64214
64215         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64216         the new TP address.
64217         (usage): Fix typo
64218         (gnulib_mk): New variable.
64219
64220 2007-07-05  Jim Meyering  <jim@meyering.net>
64221
64222         Don't let endgrent clobber errno, no matter how improbable.
64223         * lib/getugroups.c (getugroups): Save and restore errno around
64224         endgrent call.
64225
64226         Close the group DB even when failing with 2^31 or more members.
64227         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64228
64229 2007-07-04  Jim Meyering  <jim@meyering.net>
64230
64231         * lib/getugroups.h: New file.
64232         * lib/getugroups.c: Include "getugroups.h".
64233         Remove uses of "register" keyword.
64234         Move local variable, "cp", down into scope where used.
64235         Give "username" parameter the "const" attribute.
64236         * modules/getugroups (Files): Add lib/getugroups.h
64237
64238 2007-07-04  Karl Berry  <karl@gnu.org>
64239
64240         * MODULES.html.sh (func_all_modules): Complete rename of
64241         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64242
64243 2007-07-02  Bruno Haible  <bruno@clisp.org>
64244
64245         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64246         mode, when inttypes.h comes from gnulib.
64247         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64248
64249 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64250
64251         * NEWS: Mention lgpl module name change.
64252
64253         * modules/lgpl-2.1: Renamed from lgpl.
64254
64255         * NEWS: Mention gpl module name change.
64256
64257         * modules/gpl-3.0: New file, based on gpl-2.0.
64258
64259         * modules/gpl-2.0: Renamed from gpl.
64260
64261         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64262         doc/gpl-2.0.texi.
64263
64264 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64265
64266         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64267         #define __STDC_LIMIT_MACROS temporarily while including
64268         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64269         Problem reported by Joel E. Denny in
64270         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64271
64272 2007-07-01  Bruno Haible  <bruno@clisp.org>
64273
64274         * lib/unistdio.h: New file.
64275         * lib/unistdio/u-asnprintf.h: New file.
64276         * lib/unistdio/u-asprintf.h: New file.
64277         * lib/unistdio/u-printf-args.c: New file.
64278         * lib/unistdio/u-printf-args.h: New file.
64279         * lib/unistdio/u-printf-parse.h: New file.
64280         * lib/unistdio/u-snprintf.h: New file.
64281         * lib/unistdio/u-sprintf.h: New file.
64282         * lib/unistdio/u-vasprintf.h: New file.
64283         * lib/unistdio/u-vsnprintf.h: New file.
64284         * lib/unistdio/u-vsprintf.h: New file.
64285         * lib/unistdio/ulc-asnprintf.c: New file.
64286         * lib/unistdio/ulc-asprintf.c: New file.
64287         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64288         * lib/unistdio/ulc-printf-parse.c: New file.
64289         * lib/unistdio/ulc-snprintf.c: New file.
64290         * lib/unistdio/ulc-sprintf.c: New file.
64291         * lib/unistdio/ulc-vasnprintf.c: New file.
64292         * lib/unistdio/ulc-vasprintf.c: New file.
64293         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64294         * lib/unistdio/ulc-vsnprintf.c: New file.
64295         * lib/unistdio/ulc-vsprintf.c: New file.
64296         * lib/unistdio/u8-asnprintf.c: New file.
64297         * lib/unistdio/u8-asprintf.c: New file.
64298         * lib/unistdio/u8-printf-parse.c: New file.
64299         * lib/unistdio/u8-snprintf.c: New file.
64300         * lib/unistdio/u8-sprintf.c: New file.
64301         * lib/unistdio/u8-vasnprintf.c: New file.
64302         * lib/unistdio/u8-vasprintf.c: New file.
64303         * lib/unistdio/u8-vsnprintf.c: New file.
64304         * lib/unistdio/u8-vsprintf.c: New file.
64305         * lib/unistdio/u8-u8-asnprintf.c: New file.
64306         * lib/unistdio/u8-u8-asprintf.c: New file.
64307         * lib/unistdio/u8-u8-snprintf.c: New file.
64308         * lib/unistdio/u8-u8-sprintf.c: New file.
64309         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64310         * lib/unistdio/u8-u8-vasprintf.c: New file.
64311         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64312         * lib/unistdio/u8-u8-vsprintf.c: New file.
64313         * lib/unistdio/u16-asnprintf.c: New file.
64314         * lib/unistdio/u16-asprintf.c: New file.
64315         * lib/unistdio/u16-printf-parse.c: New file.
64316         * lib/unistdio/u16-snprintf.c: New file.
64317         * lib/unistdio/u16-sprintf.c: New file.
64318         * lib/unistdio/u16-vasnprintf.c: New file.
64319         * lib/unistdio/u16-vasprintf.c: New file.
64320         * lib/unistdio/u16-vsnprintf.c: New file.
64321         * lib/unistdio/u16-vsprintf.c: New file.
64322         * lib/unistdio/u16-u16-asnprintf.c: New file.
64323         * lib/unistdio/u16-u16-asprintf.c: New file.
64324         * lib/unistdio/u16-u16-snprintf.c: New file.
64325         * lib/unistdio/u16-u16-sprintf.c: New file.
64326         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64327         * lib/unistdio/u16-u16-vasprintf.c: New file.
64328         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64329         * lib/unistdio/u16-u16-vsprintf.c: New file.
64330         * lib/unistdio/u32-asnprintf.c: New file.
64331         * lib/unistdio/u32-asprintf.c: New file.
64332         * lib/unistdio/u32-printf-parse.c: New file.
64333         * lib/unistdio/u32-snprintf.c: New file.
64334         * lib/unistdio/u32-sprintf.c: New file.
64335         * lib/unistdio/u32-vasnprintf.c: New file.
64336         * lib/unistdio/u32-vasprintf.c: New file.
64337         * lib/unistdio/u32-vsnprintf.c: New file.
64338         * lib/unistdio/u32-vsprintf.c: New file.
64339         * lib/unistdio/u32-u32-asnprintf.c: New file.
64340         * lib/unistdio/u32-u32-asprintf.c: New file.
64341         * lib/unistdio/u32-u32-snprintf.c: New file.
64342         * lib/unistdio/u32-u32-sprintf.c: New file.
64343         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64344         * lib/unistdio/u32-u32-vasprintf.c: New file.
64345         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64346         * lib/unistdio/u32-u32-vsprintf.c: New file.
64347         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64348         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64349         * tests/unistdio/test-ulc-printf1.h: New file.
64350         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64351         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64352         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64353         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64354         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64355         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64356         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64357         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64358         * tests/unistdio/test-u8-asnprintf1.c: New file.
64359         * tests/unistdio/test-u8-asnprintf1.h: New file.
64360         * tests/unistdio/test-u8-printf1.h: New file.
64361         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64362         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64363         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64364         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64365         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64366         * tests/unistdio/test-u8-vasprintf1.c: New file.
64367         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64368         * tests/unistdio/test-u8-vsprintf1.c: New file.
64369         * tests/unistdio/test-u16-asnprintf1.c: New file.
64370         * tests/unistdio/test-u16-asnprintf1.h: New file.
64371         * tests/unistdio/test-u16-printf1.h: New file.
64372         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64373         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64374         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64375         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64376         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64377         * tests/unistdio/test-u16-vasprintf1.c: New file.
64378         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64379         * tests/unistdio/test-u16-vsprintf1.c: New file.
64380         * tests/unistdio/test-u32-asnprintf1.c: New file.
64381         * tests/unistdio/test-u32-asnprintf1.h: New file.
64382         * tests/unistdio/test-u32-printf1.h: New file.
64383         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64384         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64385         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64386         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64387         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64388         * tests/unistdio/test-u32-vasprintf1.c: New file.
64389         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64390         * tests/unistdio/test-u32-vsprintf1.c: New file.
64391         * modules/unistdio/base: New file.
64392         * modules/unistdio/u-printf-args: New file.
64393         * modules/unistdio/ulc-asnprintf: New file.
64394         * modules/unistdio/ulc-asprintf: New file.
64395         * modules/unistdio/ulc-fprintf: New file.
64396         * modules/unistdio/ulc-printf-parse: New file.
64397         * modules/unistdio/ulc-snprintf: New file.
64398         * modules/unistdio/ulc-sprintf: New file.
64399         * modules/unistdio/ulc-vasnprintf: New file.
64400         * modules/unistdio/ulc-vasprintf: New file.
64401         * modules/unistdio/ulc-vfprintf: New file.
64402         * modules/unistdio/ulc-vsnprintf: New file.
64403         * modules/unistdio/ulc-vsprintf: New file.
64404         * modules/unistdio/u8-asnprintf: New file.
64405         * modules/unistdio/u8-asprintf: New file.
64406         * modules/unistdio/u8-printf-parse: New file.
64407         * modules/unistdio/u8-snprintf: New file.
64408         * modules/unistdio/u8-sprintf: New file.
64409         * modules/unistdio/u8-vasnprintf: New file.
64410         * modules/unistdio/u8-vasprintf: New file.
64411         * modules/unistdio/u8-vsnprintf: New file.
64412         * modules/unistdio/u8-vsprintf: New file.
64413         * modules/unistdio/u8-u8-asnprintf: New file.
64414         * modules/unistdio/u8-u8-asprintf: New file.
64415         * modules/unistdio/u8-u8-snprintf: New file.
64416         * modules/unistdio/u8-u8-sprintf: New file.
64417         * modules/unistdio/u8-u8-vasnprintf: New file.
64418         * modules/unistdio/u8-u8-vasprintf: New file.
64419         * modules/unistdio/u8-u8-vsnprintf: New file.
64420         * modules/unistdio/u8-u8-vsprintf: New file.
64421         * modules/unistdio/u16-asnprintf: New file.
64422         * modules/unistdio/u16-asprintf: New file.
64423         * modules/unistdio/u16-printf-parse: New file.
64424         * modules/unistdio/u16-snprintf: New file.
64425         * modules/unistdio/u16-sprintf: New file.
64426         * modules/unistdio/u16-vasnprintf: New file.
64427         * modules/unistdio/u16-vasprintf: New file.
64428         * modules/unistdio/u16-vsnprintf: New file.
64429         * modules/unistdio/u16-vsprintf: New file.
64430         * modules/unistdio/u16-u16-asnprintf: New file.
64431         * modules/unistdio/u16-u16-asprintf: New file.
64432         * modules/unistdio/u16-u16-snprintf: New file.
64433         * modules/unistdio/u16-u16-sprintf: New file.
64434         * modules/unistdio/u16-u16-vasnprintf: New file.
64435         * modules/unistdio/u16-u16-vasprintf: New file.
64436         * modules/unistdio/u16-u16-vsnprintf: New file.
64437         * modules/unistdio/u16-u16-vsprintf: New file.
64438         * modules/unistdio/u32-asnprintf: New file.
64439         * modules/unistdio/u32-asprintf: New file.
64440         * modules/unistdio/u32-printf-parse: New file.
64441         * modules/unistdio/u32-snprintf: New file.
64442         * modules/unistdio/u32-sprintf: New file.
64443         * modules/unistdio/u32-vasnprintf: New file.
64444         * modules/unistdio/u32-vasprintf: New file.
64445         * modules/unistdio/u32-vsnprintf: New file.
64446         * modules/unistdio/u32-vsprintf: New file.
64447         * modules/unistdio/u32-u32-asnprintf: New file.
64448         * modules/unistdio/u32-u32-asprintf: New file.
64449         * modules/unistdio/u32-u32-snprintf: New file.
64450         * modules/unistdio/u32-u32-sprintf: New file.
64451         * modules/unistdio/u32-u32-vasnprintf: New file.
64452         * modules/unistdio/u32-u32-vasprintf: New file.
64453         * modules/unistdio/u32-u32-vsnprintf: New file.
64454         * modules/unistdio/u32-u32-vsprintf: New file.
64455         * modules/unistdio/ulc-asnprintf-tests: New file.
64456         * modules/unistdio/ulc-vasnprintf-tests: New file.
64457         * modules/unistdio/ulc-vasprintf-tests: New file.
64458         * modules/unistdio/ulc-vsnprintf-tests: New file.
64459         * modules/unistdio/ulc-vsprintf-tests: New file.
64460         * modules/unistdio/u8-asnprintf-tests: New file.
64461         * modules/unistdio/u8-vasnprintf-tests: New file.
64462         * modules/unistdio/u8-vasprintf-tests: New file.
64463         * modules/unistdio/u8-vsnprintf-tests: New file.
64464         * modules/unistdio/u8-vsprintf-tests: New file.
64465         * modules/unistdio/u16-asnprintf-tests: New file.
64466         * modules/unistdio/u16-vasnprintf-tests: New file.
64467         * modules/unistdio/u16-vasprintf-tests: New file.
64468         * modules/unistdio/u16-vsnprintf-tests: New file.
64469         * modules/unistdio/u16-vsprintf-tests: New file.
64470         * modules/unistdio/u32-asnprintf-tests: New file.
64471         * modules/unistdio/u32-vasnprintf-tests: New file.
64472         * modules/unistdio/u32-vasprintf-tests: New file.
64473         * modules/unistdio/u32-vsnprintf-tests: New file.
64474         * modules/unistdio/u32-vsprintf-tests: New file.
64475         * MODULES.html.sh (Unicode string functions): Add the new modules.
64476
64477 2007-07-01  Bruno Haible  <bruno@clisp.org>
64478
64479         * lib/sprintf.c (sprintf): Limit the available length estimation,
64480         to avoid address wraparound.
64481         * lib/vsprintf.c (vsprintf): Likewise.
64482         * modules/sprintf-posix (Dependencies): Add stdint.
64483         * modules/vsprintf-posix (Dependencies): Likewise.
64484
64485 2007-07-01  Bruno Haible  <bruno@clisp.org>
64486
64487         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64488         Windows PATH as well. Conservative double-quoting. Comments.
64489
64490 2007-07-01  Bruno Haible  <bruno@clisp.org>
64491             Eric Blake  <ebb9@byu.net>
64492             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64493
64494         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64495         empty components in $PATH, denoting '.'.
64496
64497 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64498
64499         * gnulib-tool: Fix indentation.
64500         (func_create_megatestdir): Likewise.
64501         Report by Bruno Haible.
64502
64503 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64504
64505         Sync from Automake.
64506         * build-aux/gnupload: Fix shell portability issues with for loops.
64507         Report by Karl Berry.
64508
64509 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64510
64511         * build-aux/maint.mk (POURL): Use translationproject.org.
64512
64513 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64514             Bruno Haible  <bruno@clisp.org>
64515
64516         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64517         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64518         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64519         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64520         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64521
64522 2007-06-27  Bruno Haible  <bruno@clisp.org>
64523
64524         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64525         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64526
64527 2007-06-26  Karl Berry  <karl@gnu.org>
64528
64529         * MODULES.html.sh: remove xreadlink-with-size.
64530
64531 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64532
64533         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64534         method that I hope also handles the double-include problem noted
64535         by Bruno Haible in
64536         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64537
64538 2007-06-23  Bruno Haible  <bruno@clisp.org>
64539
64540         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64541         Don't let the 'mostlyclean' target fail if the last subdirectory could
64542         not be removed.
64543         Reported by Karl Berry.
64544
64545 2007-06-23  Bruno Haible  <bruno@clisp.org>
64546
64547         * gnulib-tool (echo): Add a speedier workaround for ksh.
64548         * tests/test-echo.sh: Likewise.
64549
64550 2007-06-23  Bruno Haible  <bruno@clisp.org>
64551
64552         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64553         * tests/test-echo.sh: Likewise.
64554
64555 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64556
64557         * gnulib-tool (IFS): Initialize early, so we don't set it to
64558         empty later.
64559         (self_abspathname): Rewrite algorithm to set it, reindent.
64560         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64561         (func_create_megatestdir): Merge some sed scripts.
64562
64563 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64564
64565         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64566         exposed by Sun Studio 11 cc on Solaris 8.
64567
64568 2007-06-22  Bruno Haible  <bruno@clisp.org>
64569
64570         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64571         backslashes.
64572         * tests/test-echo.sh: New file.
64573
64574 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64575
64576         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64577         simplify `sed_replace_build_aux' scripts, they are portable but
64578         echoing them with `echo' is not.
64579         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64580
64581 2007-06-21  Karl Berry  <karl@gnu.org>
64582
64583         * config/srclist.txt: guess we can't handle the licenses via
64584         srclist at the moment.
64585
64586 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64587
64588         * MODULES.html.sh: Add include_next.
64589         * modules/include_next: New file.
64590
64591 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64592
64593         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64594         INCLUDE_NEXT.
64595         (gl_CHECK_NEXT_HEADERS): New macro.
64596         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64597         the obsolescent gl_ABSOLUTE_HEADER.
64598         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64599         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64600         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64601         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64602         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64603         * m4/math_h.m4 (gl_MATH_H): Likewise.
64604         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64605         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64606         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64607         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64608         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64609         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64610         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64611         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64612         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64613         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64614         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64615         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64616         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64617         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64618         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64619         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64620         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64621         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64622         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64623         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64624         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64625         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64626         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64627         * lib/float_.h: Likewise.
64628         * lib/inttypes_.h: Likewise.
64629         * lib/math_.h: Likewise.
64630         * lib/search_.h: Likewise.
64631         * lib/signal_.h: Likewise.
64632         * lib/stdint_.h: Likewise.
64633         * lib/stdio_.h: Likewise.
64634         * lib/stdlib_.h: Likewise.
64635         * lib/string_.h: Likewise.
64636         * lib/sys_stat_.h: Likewise.
64637         * lib/sys_time_.h: Likewise.
64638         * lib/time_.h: Likewise.
64639         * lib/unistd_.h: Likewise.
64640         * lib/wchar_.h: Likewise.
64641         * lib/wctype_.h: Likewise.
64642         * lib/dirent_.h: Likewise.
64643         * lib/iconv_.h: Likewise.
64644         * lib/locale_.h: Likewise.
64645         * lib/netinet_in_.h: Likewise.
64646         * lib/sys_select_.h: Likewise.
64647         * lib/sys_socket_.h: Likewise.
64648         * lib/sysexits_.h: Likewise.
64649         * modules/fcntl (Depends-on): Depend on include_next, not
64650         absolute_header.
64651         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64652         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64653         * modules/fchdir: Likewise.
64654         * modules/float: Likewise.
64655         * modules/iconv_open: Likewise.
64656         * modules/inttypes: Likewise.
64657         * modules/locale: Likewise.
64658         * modules/math: Likewise.
64659         * modules/netinet_in: Likewise.
64660         * modules/search: Likewise.
64661         * modules/signal: Likewise.
64662         * modules/stdint: Likewise.
64663         * modules/stdio: Likewise.
64664         * modules/stdlib: Likewise.
64665         * modules/string: Likewise.
64666         * modules/sys_select: Likewise.
64667         * modules/sys_socket: Likewise.
64668         * modules/sys_stat: Likewise.
64669         * modules/sys_time: Likewise.
64670         * modules/sysexits: Likewise.
64671         * modules/time: Likewise.
64672         * modules/unistd: Likewise.
64673         * modules/wchar: Likewise.
64674         * modules/wctype: Likewise.
64675         * modules/sys_stat: Change maintainer to "all".
64676         * modules/unistd: Likewise.
64677
64678 2007-06-20  Karl Berry  <karl@gnu.org>
64679
64680         * config/srclist.txt: track www changes in license files.
64681
64682 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64683
64684         * build-aux/bootstrap: Remove stray dot.
64685         Make sure build_aux settings are honored when linking
64686         gnulib_extra_files.
64687
64688 2007-06-19  Eric Blake  <ebb9@byu.net>
64689
64690         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64691         Allow compilation on cygwin.
64692
64693 2007-06-19  Jim Meyering  <jim@meyering.net>
64694
64695         xreadlink-with-size: Remove module.  No longer used.
64696         Ex-callers now use xreadlink or mreadlink-with-size.
64697         * modules/xreadlink-with-size: Remove module.
64698         * lib/xreadlink-with-size.c: Remove file.
64699         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64700         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64701         just before the function definition *is* accurate.
64702
64703         Eliminate one way canonicalize_filename_mode could exit.
64704         * lib/canonicalize.c (canonicalize_filename_mode):
64705         Use mreadlink_with_size, not xreadlink_with_size.
64706
64707 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         Detect porting problems to FreeBSD/arm, which has time_t wider than
64710         long int.  Original problem reported for GNU diff by Xin Li in
64711         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64712         * modules/getdate (Depends-on): Add intprops, verify.
64713         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64714         is an integer type no wider than long int.
64715
64716 2007-06-18  Jim Meyering  <jim@meyering.net>
64717
64718         New module: mreadlink-with-size.
64719         * MODULES.html.sh: Add mreadlink-with-size.
64720         * modules/mreadlink-with-size: New module
64721         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64722         not xreadlink-with-size.
64723         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64724
64725 2007-06-16  Bruno Haible  <bruno@clisp.org>
64726
64727         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64728         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64729         Reported by Gary V. Vaughan <gary@gnu.org>.
64730
64731 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64732
64733         Revamp lchown so that it lives in unistd.h where it belongs.
64734         * lib/lchown.h: Remove.
64735         * lib/dirchownmod.c: Don't include lib/lchown.h.
64736         * lib/fchownat.c: Likewise.
64737         * lib/openat.c: Likewise.
64738         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64739         does not follow symlinks.
64740         (EOPNOTSUPP): Define if not defined.
64741         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64742         is defined to 0.
64743         (lchown): New decl.
64744         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64745         Do not check for lchown decl.
64746         Set REPLACE_LCHOWN.
64747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64748         REPLACE_LCHOWN.
64749         * modules/chown: Make it clear it follows symlinks.
64750         * modules/lchown: Make it clear it doesn't follow symlinks.
64751         (Files): Remove lib/lchown.h
64752         (Depends-on): Add unistd.
64753         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64754         (Include): Include <unistd.h>, not "lchown.h".
64755         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64756         REPLACE_LCHOWN.
64757
64758 2007-06-15  Jim Meyering  <jim@meyering.net>
64759
64760         Change license (GPL to LGPL) of fsusage and dependents.
64761         * modules/fsusage (License): Change to LGPL.
64762         * modules/full-read (License): Likewise.
64763         * modules/full-write (License): Likewise.
64764         * modules/safe-read (License): Likewise.
64765         * modules/safe-write (License): Likewise.
64766
64767 2007-06-14  Ben Pfaff  <blp@gnu.org>
64768
64769         Missing part of allocsa -> malloca transition.
64770         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64771         gl_MALLOCA.
64772
64773 2007-06-12  Bruno Haible  <bruno@clisp.org>
64774
64775         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64776         to ia64, x86_64, i386.
64777         Reported by Eric Blake.
64778
64779 2007-06-12  Bruno Haible  <bruno@clisp.org>
64780
64781         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64782         cross-compiling to x86_64.
64783
64784 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64785
64786         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64787         glitch reported by Ralf Wildenhues in
64788         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64789
64790         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64791         Vin Shelton.
64792
64793 2007-06-11  Bruno Haible  <bruno@clisp.org>
64794
64795         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64796         replacement string.
64797         Reported by Eric Blake.
64798
64799 2007-06-10  Bruno Haible  <bruno@clisp.org>
64800
64801         Prepare vasnprintf code for use with Unicode strings.
64802         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64803         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64804         TYPE_U32_STRING.
64805         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64806         a_u32_string variants.
64807         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64808         * lib/printf-args.c: Don't include config.h and the specification
64809         header if PRINTF_FETCHARGS is already defined.
64810         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64811         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64812         TYPE_U16_STRING, TYPE_U32_STRING.
64813         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64814         u16_directive, u16_directives, u32_directive, u32_directives): New
64815         types.
64816         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64817         New declarations.
64818         * lib/printf-parse.c: Don't include config.h and the specification
64819         header if PRINTF_PARSE is already defined. Eliminate the set of
64820         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64821         them now. Include c-ctype.h.
64822         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64823         directive and CHAR_T_ONLY_ASCII.
64824         * lib/vasnprintf.c: Don't include config.h and the specification header
64825         if VASNPRINTF is already defined.
64826         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64827         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64828         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64829         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64830         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64831         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64832         code accordingly.
64833         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64834         pad_ourselves also in this case, with the 'c' and 's' directives, and
64835         with a different notion of "width".
64836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64837
64838 2007-06-10  Bruno Haible  <bruno@clisp.org>
64839
64840         * modules/unistr/u32-mbsnlen: New file.
64841         * lib/unistr/u32-mbsnlen.c: New file.
64842
64843         * modules/unistr/u16-mbsnlen: New file.
64844         * lib/unistr/u16-mbsnlen.c: New file.
64845
64846         * modules/unistr/u8-mbsnlen: New file.
64847         * lib/unistr/u8-mbsnlen.c: New file.
64848
64849         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64850         declarations.
64851
64852 2007-06-10  Bruno Haible  <bruno@clisp.org>
64853
64854         * lib/string_.h (mbsnlen): New declaration.
64855         * lib/mbsnlen.c: New file.
64856         * m4/mbsnlen.m4: New file.
64857         * modules/mbsnlen: New file.
64858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64859         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64860         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64861
64862 2007-06-10  Bruno Haible  <bruno@clisp.org>
64863
64864         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64865
64866 2007-06-10  Bruno Haible  <bruno@clisp.org>
64867
64868         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64869         * lib/mbuiter.h: Likewise.
64870
64871 2007-06-10  Bruno Haible  <bruno@clisp.org>
64872
64873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64874         declaration.
64875
64876 2007-06-10  Karl Berry  <karl@gnu.org>
64877
64878         * config/srclist.txt: remove gettext entries, Bruno prefers
64879         to update individually.
64880
64881 2007-06-10  Bruno Haible  <bruno@clisp.org>
64882
64883         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64884         'maxlen'. Ensure only length + width bytes are allocated, not
64885         length + 1 + width.
64886
64887 2007-06-09  Bruno Haible  <bruno@clisp.org>
64888
64889         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64890         (CHAR_T): Remove macro.
64891         (VASNPRINTF): Update.
64892
64893 2007-06-09  Bruno Haible  <bruno@clisp.org>
64894
64895         * MODULES.html.sh (Unicode string functions): Add the new modules.
64896
64897         * modules/uniconv/u32-conv-to-enc: New file.
64898         * lib/uniconv/u32-conv-to-enc.c: New file.
64899         * modules/uniconv/u32-conv-to-enc-tests: New file.
64900         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64901
64902         * modules/uniconv/u16-conv-to-enc: New file.
64903         * lib/uniconv/u16-conv-to-enc.c: New file.
64904         * lib/uniconv/u-conv-to-enc.h: New file.
64905         * modules/uniconv/u16-conv-to-enc-tests: New file.
64906         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64907
64908         * modules/uniconv/u8-conv-to-enc: New file.
64909         * lib/uniconv/u8-conv-to-enc.c: New file.
64910         * modules/uniconv/u8-conv-to-enc-tests: New file.
64911         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64912
64913         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64914         u32_conv_to_encoding): New declarations.
64915
64916 2007-06-09  Bruno Haible  <bruno@clisp.org>
64917
64918         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64919
64920 2007-06-09  Bruno Haible  <bruno@clisp.org>
64921
64922         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64923         * modules/malloca: Renamed from modules/allocsa, updated.
64924         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64925         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64926         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64927         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64928         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64929         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64930         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64931         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64932         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64933         * modules/c-strcasestr (Depends-on): Update.
64934         * lib/c-strcasestr.c: Update.
64935         * modules/c-strstr (Depends-on): Update.
64936         * lib/c-strstr.c: Update.
64937         * modules/canonicalize-lgpl (Depends-on): Update.
64938         * lib/canonicalize-lgpl.c: Update.
64939         * modules/clean-temp (Depends-on): Update.
64940         * lib/clean-temp.c: Update.
64941         * modules/csharpcomp (Depends-on): Update.
64942         * lib/csharpcomp.c: Update.
64943         * modules/csharpexec (Depends-on): Update.
64944         * lib/csharpexec.c: Update.
64945         * modules/javacomp (Depends-on): Update.
64946         * lib/javacomp.c: Update.
64947         * modules/javaexec (Depends-on): Update.
64948         * lib/javaexec.c: Update.
64949         * modules/mbscasestr (Depends-on): Update.
64950         * lib/mbscasestr.c: Update.
64951         * modules/mbsstr (Depends-on): Update.
64952         * lib/mbsstr.c: Update.
64953         * modules/setenv (Depends-on): Update.
64954         * lib/setenv.c: Update.
64955         * modules/strcasestr (Depends-on): Update.
64956         * lib/strcasestr.c: Update.
64957         * modules/striconveha (Depends-on): Update.
64958         * lib/striconveha.c: Update.
64959         * modules/relocatable-prog-wrapper (Files): Update.
64960         * lib/relocwrapper.c: Update.
64961         * build-aux/install-reloc: Update.
64962         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64963
64964 2007-06-08  Bruno Haible  <bruno@clisp.org>
64965
64966         Port to uClibc.
64967         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64968         * lib/fpurge.c (fpurge): Likewise.
64969         * lib/freading.c (freading): Likewise.
64970         * lib/fseeko.c (rpl_fseeko): Likewise.
64971         * lib/fseterr.c (fseterr): Likewise.
64972         * lib/fwriting.c (fwriting): Likewise.
64973         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64974
64975 2007-06-08  Bruno Haible  <bruno@clisp.org>
64976
64977         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64978         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64979         * modules/gettext (Files): Add m4/intlmacosx.m4.
64980
64981 2007-06-07  Bruno Haible  <bruno@clisp.org>
64982
64983         * modules/localename-tests: New file.
64984         * tests/test-localename.c: New file.
64985
64986         New module 'localename'.
64987         * lib/localename.h: New file.
64988         * lib/localename.c: New file, from GNU gettext.
64989         * m4/localename.m4: New file.
64990         * modules/localename: New file.
64991
64992 2007-06-07  Bruno Haible  <bruno@clisp.org>
64993
64994         Work around the lack of <wchar.h> on some builds of uClibc.
64995         * doc/headers/wchar.texi: Update.
64996         * lib/wchar_.h: Include <wchar.h> only if it exists.
64997         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64998         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64999         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65000         doesn't exist.
65001         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65002         * modules/mbfile (Depends-on): Add wchar.
65003         * modules/mbiter (Depends-on): Likewise.
65004         * modules/mbuiter (Depends-on): Likewise.
65005         Reported by Simon Josefsson.
65006
65007 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65008
65009         Work around problem reported by Steven M. Schweda in
65010         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65011         Tru64 5.1B with the Compaq compiler environment installed declares
65012         an 'isblank' function but does not define it in the C library.
65013         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65014         * lib/regex_internal.h (isblank): Likewise.
65015         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65016         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65017
65018 2007-06-05  Bruno Haible  <bruno@clisp.org>
65019
65020         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65021         ia64.
65022         * modules/printf-safe: New file.
65023         * modules/fprintf-posix (Depends-on): Add printf-safe.
65024         * modules/printf-posix (Depends-on): Likewise.
65025         * modules/snprintf-posix (Depends-on): Likewise.
65026         * modules/sprintf-posix (Depends-on): Likewise.
65027         * modules/vasnprintf-posix (Depends-on): Likewise.
65028         * modules/vasprintf-posix (Depends-on): Likewise.
65029         * modules/vfprintf-posix (Depends-on): Likewise.
65030         * modules/vprintf-posix (Depends-on): Likewise.
65031         * modules/vsnprintf-posix (Depends-on): Likewise.
65032         * modules/vsprintf-posix (Depends-on): Likewise.
65033         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65034         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65035         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65036         "no" on i386, x86_64, ia64.
65037         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65038         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65039         on i386, x86_64, ia64.
65040         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65041         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65042         on i386, x86_64, ia64.
65043         * tests/test-vasnprintf-posix.c: Include float.h.
65044         (LDBL80_WORDS): New macro.
65045         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65046         on i386, x86_64, ia64.
65047         * tests/test-vasprintf-posix.c: Include float.h.
65048         (LDBL80_WORDS): New macro.
65049         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65050         on i386, x86_64, ia64.
65051         * tests/test-snprintf-posix.c: Include float.h.
65052         * tests/test-sprintf-posix.c: Likewise.
65053         * tests/test-vsnprintf-posix.c: Likewise.
65054         * tests/test-vsprintf-posix.c: Likewise.
65055
65056 2007-06-05  Bruno Haible  <bruno@clisp.org>
65057
65058         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65059         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65060         non-IEEE numbers on i386, x86_64, ia64.
65061         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65062         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65063         * tests/test-isnanl.h: Include float.h.
65064         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65065
65066 2007-06-05  Bruno Haible  <bruno@clisp.org>
65067
65068         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65069         also the %a / %A. Handle the %a / %A code before this extra handling.
65070
65071 2007-06-05  Bruno Haible  <bruno@clisp.org>
65072
65073         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65074         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65075
65076 2007-06-05  Bruno Haible  <bruno@clisp.org>
65077
65078         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65079         typo in variable name.
65080
65081 2007-06-05  Eric Blake  <ebb9@byu.net>
65082
65083         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65084         Reported by Simon Josefsson.
65085
65086 2007-06-04  Bruno Haible  <bruno@clisp.org>
65087
65088         Avoid test failures on some PowerPC platforms.
65089         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65090         Define differently for PowerPC.
65091         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65092         Reported by Gary V. Vaughan <gary@gnu.org>.
65093
65094 2007-06-02  Bruno Haible  <bruno@clisp.org>
65095
65096         Fix test-stdint failure on FreeBSD/ia64.
65097         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65098         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65099         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65100         * doc/headers/stdint.texi: Update.
65101
65102 2007-06-01  Bruno Haible  <bruno@clisp.org>
65103
65104         * tests/test-binary-io.c (main): Pass a third argument to open().
65105         Reported by Gary V. Vaughan <gary@gnu.org>.
65106
65107 2007-06-01  Bruno Haible  <bruno@clisp.org>
65108
65109         * doc/functions/frexpl.texi: Update for mingw.
65110
65111 2007-06-01  Bruno Haible  <bruno@clisp.org>
65112
65113         * tests/test-lseek.c (main): Disable test of errno for invalid third
65114         argument.
65115         * doc/functions/lseek.texi: Update.
65116         Reported by Gary V. Vaughan <gary@gnu.org>.
65117
65118 2007-05-28  Bruno Haible  <bruno@clisp.org>
65119
65120         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65121
65122 2007-05-31  Eric Blake  <ebb9@byu.net>
65123
65124         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65125         cross compiling.
65126
65127 2007-05-30  Eric Blake  <ebb9@byu.net>
65128         and Bruno Haible  <bruno@clisp.org>
65129
65130         Work around mingw test failures exposed by m4-1.4.9b.
65131         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65132         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65133         moment.
65134
65135 2007-05-30  Bruno Haible  <bruno@clisp.org>
65136
65137         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65138         assuming that they are closed. Needed on HP-UX 11.
65139
65140 2007-05-29  Bruno Haible  <bruno@clisp.org>
65141
65142         Fix a problem with #include_next.
65143         * lib/dirent_.h: Split the double-inclusion guard.
65144         * lib/fcntl_.h: Likewise.
65145         * lib/float_.h: Likewise.
65146         * lib/iconv_.h: Likewise.
65147         * lib/inttypes_.h: Likewise.
65148         * lib/locale_.h: Likewise.
65149         * lib/math_.h: Likewise.
65150         * lib/netinet_in_.h: Likewise.
65151         * lib/search_.h: Likewise.
65152         * lib/signal_.h: Likewise.
65153         * lib/stdint_.h: Likewise.
65154         * lib/stdio_.h: Likewise.
65155         * lib/stdlib_.h: Likewise.
65156         * lib/string_.h: Likewise.
65157         * lib/sys_select_.h: Likewise.
65158         * lib/sys_socket_.h: Likewise.
65159         * lib/sys_stat_.h: Likewise.
65160         * lib/sys_time_.h: Likewise.
65161         * lib/sysexits_.h: Likewise.
65162         * lib/time_.h: Likewise.
65163         * lib/unistd_.h: Likewise.
65164         * lib/wchar_.h: Likewise.
65165         * lib/wctype_.h: Likewise.
65166
65167 2007-05-29  Bruno Haible  <bruno@clisp.org>
65168
65169         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65170         for the moment.
65171
65172 2007-05-29  Bruno Haible  <bruno@clisp.org>
65173
65174         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65175         invocation.
65176         Reported by Eric Blake.
65177
65178 2007-05-29  Bruno Haible  <bruno@clisp.org>
65179
65180         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65181         compiling case.
65182
65183 2007-05-29  Eric Blake  <ebb9@byu.net>
65184             Bruno Haible  <bruno@clisp.org>
65185
65186         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65187         cross compiles.
65188
65189 2007-05-28  Eric Blake  <ebb9@byu.net>
65190
65191         * modules/closein-tests (test_closein_LDADD): Support test on
65192         cygwin with libtool.
65193
65194 2007-05-28  Bruno Haible  <bruno@clisp.org>
65195
65196         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65197         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65198         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65199         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65200         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65201         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65202         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65203         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65204         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65205
65206 2007-05-28  Eric Blake  <ebb9@byu.net>
65207
65208         Unconditionally include <config.h> in unit tests.
65209         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65210         * tests/test-allocsa.c, tests/test-arcfour.c,
65211         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65212         tests/test-array_list.c, tests/test-array_oset.c,
65213         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65214         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65215         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65216         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65217         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65218         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65219         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65220         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65221         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65222         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65223         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65224         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65225         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65226         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65227         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65228         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65229         test-md5.c, test-memmem.c, test-printf-posix.c,
65230         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65231         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65232         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65233         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65234         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65235         test-vasnprintf-posix2.c, test-vasnprintf.c,
65236         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65237         test-vfprintf-posix.c, test-vprintf-posix.c,
65238         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65239         test-xvasprintf.c: Likewise.
65240
65241 2007-05-28  Bruno Haible  <bruno@clisp.org>
65242
65243         * gnulib-tool (func_import): Remember the --with-tests command-line
65244         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65245         Reported by Eric Blake.
65246
65247 2007-05-28  Bruno Haible  <bruno@clisp.org>
65248
65249         * modules/ftell-tests: New file.
65250         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65251         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65252
65253         * lib/ftell.c: New file.
65254         * modules/ftell: New file.
65255         * m4/ftell.m4: New file.
65256         * doc/functions/ftell.texi: Update.
65257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65258         REPLACE_FTELL.
65259         * lib/stdio_.h (rpl_ftell): New declaration.
65260         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65261         REPLACE_FTELL.
65262
65263 2007-05-28  Eric Blake  <ebb9@byu.net>
65264
65265         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65266
65267 2007-05-28  Bruno Haible  <bruno@clisp.org>
65268
65269         * modules/fseek-tests: New file.
65270         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65271         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65272
65273         * lib/fseek.c: New file.
65274         * modules/fseek: New file.
65275         * m4/fseek.m4: New file.
65276         * doc/functions/fseek.texi: Update.
65277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65278         REPLACE_FSEEK.
65279         * lib/stdio_.h (rpl_fseek): New declaration.
65280         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65281         REPLACE_FSEEK.
65282
65283 2007-05-28  Bruno Haible  <bruno@clisp.org>
65284
65285         * lib/stdio_.h (fflush): More comments.
65286
65287 2007-05-28  Bruno Haible  <bruno@clisp.org>
65288
65289         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65290         runtime test.
65291
65292 2007-05-28  Eric Blake  <ebb9@byu.net>
65293
65294         Improve lseek module.
65295         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65296         * lib/unistd_.h (lseek): Scale back link warning message.
65297         * tests/test-lseek.c: Beef up test.
65298         * tests/test-lseek.sh: Exercise more facets of lseek.
65299         Reported by Bruno Haible.
65300
65301 2007-05-28  Bruno Haible  <bruno@clisp.org>
65302
65303         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65304         to define.
65305
65306 2007-05-27  Bruno Haible  <bruno@clisp.org>
65307
65308         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65309
65310 2007-05-27  Bruno Haible  <bruno@clisp.org>
65311
65312         * modules/openmp: New file.
65313         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65314         Noah Misch.
65315
65316 2007-05-26  Bruno Haible  <bruno@clisp.org>
65317
65318         * modules/chdir-long (Depends-on): Add fchdir.
65319         * modules/chdir-safer (Depends-on): Likewise.
65320         * modules/fts (Depends-on): Likewise.
65321         * modules/fts-lgpl (Depends-on): Likewise.
65322         * modules/openat (Depends-on): Likewise.
65323         * modules/savewd (Depends-on): Likewise.
65324
65325 2007-05-24  Eric Blake  <ebb9@byu.net>
65326
65327         Fix lseek on mingw.
65328         * modules/lseek: New module.
65329         * m4/lseek.m4: New file.
65330         * lib/lseek.c: New file.
65331         * modules/lseek-tests: New file.
65332         * tests/test-lseek.c: New file.
65333         * tests/test-lseek.sh: New file.
65334         * MODULES.html.sh: Document lseek module.
65335         * modules/fflush (Depends-on): Add lseek, fseeko.
65336         * modules/fseeko (Depends-on): Likewise.
65337         * modules/ftello (Depends-on): Likewise.
65338         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65339         broken.
65340         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65341         broken.
65342         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65343         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65344         * lib/ftello.c (rpl_ftello): Likewise.
65345         * tests/test-fseeko.c (main): Test this.
65346         * tests/test-fseeko.sh: Likewise.
65347         * tests/test-ftello.c (main): Likewise.
65348         * tests/test-ftello.sh: Likewise.
65349         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65350         implies replacing fseek.
65351         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65352         HAVE_FTELLO.
65353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65354         * modules/unistd (Makefile.am): Likewise.
65355         * lib/unistd_.h (lseek): Declare a replacement.
65356         * doc/functions/lseek.texi (lseek): Document this fix.
65357         * doc/functions/fseek.texi (fseek): Likewise.
65358         * doc/functions/ftell.texi (ftell): Likewise.
65359
65360 2007-05-24  Bruno Haible  <bruno@clisp.org>
65361
65362         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65363         in the printed representation of a NaN.
65364         * tests/test-vasprintf-posix.c (test_function): Likewise.
65365         * tests/test-snprintf-posix.h (test_function): Likewise.
65366         * tests/test-sprintf-posix.h (test_function): Likewise.
65367         Reported by Eric Blake.
65368
65369 2007-05-23  Eric Blake  <ebb9@byu.net>
65370
65371         Fix fseeko/ftello on cygwin 1.5.24.
65372         * doc/functions/fseeko.texi (fseeko): Document the fix.
65373         * doc/functions/ftello.texi (ftello): Document the fix.
65374         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65375         * doc/functions/stdout.text (stdout): New file.
65376         * doc/functions/stderr.text (stderr): New file.
65377         * doc/gnulib.texi (Function Substitutes): Use new files.
65378         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65379         prior to 1.7.0.
65380         * tests/test-ftello.c (main): Likewise for ftello.
65381         * tests/test-fseeko.sh: New file.
65382         * tests/test-ftello.sh: New file.
65383         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65384         with seekable stdin.
65385         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65386         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65387         (gl_REPLACE_FSEEKO): New macro.
65388         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65389         * modules/fseeko (Files): Distribute fseeko.c.
65390         * modules/ftello (Files): Distribute ftello.c.
65391         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65392         mode.
65393         * lib/ftello.c (rpl_ftello): New file.
65394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65395         fseeko, ftello.
65396         (gl_STDIN_LARGE_OFFSET): New macro.
65397         * modules/stdio (Makefile.am): Perform the replacement.
65398         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65399
65400 2007-05-23  Bruno Haible  <bruno@clisp.org>
65401
65402         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65403         GNULIB_POSIXCHECK is defined.
65404
65405 2007-05-21  Bruno Haible  <bruno@clisp.org>
65406
65407         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65408         Check also the output for NaN arguments. When cross-compiling, guess
65409         no on IRIX.
65410         * lib/vasnprintf.c: Update comments.
65411         * tests/test-vasnprintf-posix.c (strisnan): New function.
65412         (test_function): Use it.
65413         * tests/test-vasprintf-posix.c (strisnan): New function.
65414         (test_function): Use it.
65415         * tests/test-snprintf-posix.h (strisnan): New function.
65416         (test_function): Use it.
65417         * tests/test-sprintf-posix.h (strisnan): New function.
65418         (test_function): Use it.
65419         Reported by Eric Blake.
65420
65421 2007-05-20  Bruno Haible  <bruno@clisp.org>
65422
65423         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65424         numbers that fails on BeOS.
65425         * doc/functions/frexpl.texi: Update.
65426
65427 2007-05-20  Jim Meyering  <jim@meyering.net>
65428
65429         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65430         forced upon us by glibc-2.6.
65431
65432 2007-05-20  Bruno Haible  <bruno@clisp.org>
65433
65434         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65435         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65436         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65437         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65438         NEED_PRINTF_INFINITE.
65439         (is_infinitel): New function.
65440         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65441         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65442         gl_PREREQ_VASNPRINTF_INFINITE.
65443         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65444         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65445         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65446         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65447         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65448         gl_PREREQ_VASNPRINTF_INFINITE.
65449         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65450         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65451         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65452         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65453         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65456         * doc/functions/fprintf.texi: Update.
65457         * doc/functions/printf.texi: Update.
65458         * doc/functions/snprintf.texi: Update.
65459         * doc/functions/sprintf.texi: Update.
65460         * doc/functions/vfprintf.texi: Update.
65461         * doc/functions/vprintf.texi: Update.
65462         * doc/functions/vsnprintf.texi: Update.
65463         * doc/functions/vsprintf.texi: Update.
65464
65465 2007-05-20  Bruno Haible  <bruno@clisp.org>
65466
65467         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65468         was not found in libc.
65469         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65470
65471 2007-05-20  Bruno Haible  <bruno@clisp.org>
65472
65473         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65474         printed as "-nan" instead of "nan".
65475         * tests/test-vasprintf-posix.c (test_function): Likewise.
65476         * tests/test-snprintf-posix.h (test_function): Likewise.
65477         * tests/test-sprintf-posix.h (test_function): Likewise.
65478         Needed for HP-UX 11.
65479
65480 2007-05-20  Jim Meyering  <jim@meyering.net>
65481
65482         Fix buggy test for the fchownat-deref bug.
65483         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65484         symlink required for the run-test.  Without it, this test would
65485         always declare that fchownat doesn't work, and client code would
65486         unnecessarily use the replacement function with fixed libc.
65487         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65488         Reported by Greg Schafer.
65489
65490 2007-05-19  Bruno Haible  <bruno@clisp.org>
65491
65492         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65493         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65494         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65495         Needed for IRIX 6.5 and Solaris 2.5.1.
65496
65497 2007-05-19  Bruno Haible  <bruno@clisp.org>
65498
65499         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65500         (test_function): Skip tests involving -0.0 on platforms where
65501         -0.0 = 0.0.
65502         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65503         (test_function): Skip tests involving -0.0 on platforms where
65504         -0.0 = 0.0.
65505         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65506         (test_function): Skip tests involving -0.0 on platforms where
65507         -0.0 = 0.0.
65508         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65509         (test_function): Skip tests involving -0.0 on platforms where
65510         -0.0 = 0.0.
65511         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65512         tests.
65513         * tests/test-printf-posix.h (test_function): Likewise.
65514         * tests/test-printf-posix.output: Remove all -0.0 related results.
65515         Needed for IRIX 6.5.
65516
65517 2007-05-19  Bruno Haible  <bruno@clisp.org>
65518
65519         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65520         printed as "nan0x7fffffff" instead of "nan".
65521         * tests/test-vasprintf-posix.c (test_function): Likewise.
65522         * tests/test-snprintf-posix.h (test_function): Likewise.
65523         * tests/test-sprintf-posix.h (test_function): Likewise.
65524         * tests/test-fprintf-posix.h (NaN): Remove macro.
65525         (test_function): Remove all NaN related tests.
65526         * tests/test-printf-posix.h (NaN): Remove macro.
65527         (test_function): Remove all NaN related tests.
65528         * tests/test-printf-posix.output: Remove all NaN related results.
65529         Needed for IRIX 6.5.
65530
65531 2007-05-19  Bruno Haible  <bruno@clisp.org>
65532
65533         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65534         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65535
65536 2007-05-19  Bruno Haible  <bruno@clisp.org>
65537
65538         * lib/float_.h: New file.
65539         * m4/float_h.m4: New file.
65540         * modules/float: New file.
65541         * modules/isnanl (Dependencies): Add float.
65542         * modules/isnanl-nolibm (Dependencies): Likewise.
65543         * modules/mathl (Dependencies): Likewise.
65544         * modules/printf-frexpl (Dependencies): Likewise.
65545         * modules/signbit (Dependencies): Likewise.
65546         * modules/vasnprintf (Dependencies): Likewise.
65547         * doc/headers/float.texi: Update.
65548
65549 2007-05-19  Jim Meyering  <jim@meyering.net>
65550
65551         * lib/utimens.c (gl_futimens): Rename from futimens,
65552         now that glibc-2.6 declares futimens.
65553         * lib/utimens.h: Likewise.
65554
65555 2007-05-19  Bruno Haible  <bruno@clisp.org>
65556
65557         Avoid test failures on mingw.
65558         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65559         * tests/test-printf-posix.sh: Likewise.
65560         * tests/test-vfprintf-posix.sh: Likewise.
65561         * tests/test-vprintf-posix.sh: Likewise.
65562
65563 2007-05-19  Bruno Haible  <bruno@clisp.org>
65564
65565         Fix *printf result for NaN, Inf, -0.0 on mingw.
65566         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65567         * lib/vasnprintf.c: Include math.h and isnan.h.
65568         (is_infinite_or_zero): New function.
65569         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65570         values in the %f, %F, %e, %E, %g, %G directives.
65571         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65572         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65573         gl_PRINTF_INFINITE and test its result. Invoke
65574         gl_PREREQ_VASNPRINTF_INFINITE.
65575         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65576         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65577         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65578         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65579         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65580         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65581         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65582         * doc/functions/fprintf.texi: Update.
65583         * doc/functions/printf.texi: Update.
65584         * doc/functions/snprintf.texi: Update.
65585         * doc/functions/sprintf.texi: Update.
65586         * doc/functions/vfprintf.texi: Update.
65587         * doc/functions/vprintf.texi: Update.
65588         * doc/functions/vsnprintf.texi: Update.
65589         * doc/functions/vsprintf.texi: Update.
65590
65591 2007-05-19  Bruno Haible  <bruno@clisp.org>
65592
65593         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65594         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65595         Instead of multiplying with 10^k, set extra_zeroes to k.
65596         (scale10_round_long_double): Remove function.
65597
65598 2007-05-18  Bruno Haible  <bruno@clisp.org>
65599
65600         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65601         introduced on 2007-05-06.
65602
65603 2007-05-18  Bruno Haible  <bruno@clisp.org>
65604
65605         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65606         %g directives.
65607         * tests/test-vasprintf-posix.c (test_function): Likewise.
65608         * tests/test-snprintf-posix.h (test_function): Likewise.
65609         * tests/test-sprintf-posix.h (test_function): Likewise.
65610
65611 2007-05-18  Bruno Haible  <bruno@clisp.org>
65612
65613         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65614         (strmatch): New function.
65615         (test_function): Test the %f directive on numbers of various exponents.
65616         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65617         (strmatch): New function.
65618         (test_function): Test the %f directive on numbers of various exponents.
65619         * tests/test-snprintf-posix.h (strmatch): New function.
65620         (test_function): Test the %f directive on numbers of various exponents.
65621         * tests/test-sprintf-posix.h (strmatch): New function.
65622         (test_function): Test the %f directive on numbers of various exponents.
65623         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65624         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65625         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65626         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65627
65628 2007-05-18  Bruno Haible  <bruno@clisp.org>
65629
65630         Add support for 'long double' number output.
65631         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65632         * lib/vasnprintf.c: Include math.h and float+.h.
65633         (mp_limb_t): New type.
65634         (GMP_LIMB_BITS): New macro.
65635         (mp_twolimb_t): New type.
65636         (GMP_TWOLIMB_BITS): New macro.
65637         (mpn_t): New type.
65638         (multiply, divide, convert_to_decimal, decode_long_double,
65639         scale10_round_long_double, scale10_round_decimal_long_double,
65640         floorlog10l): New functions.
65641         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65642         for the %f, %F, %e, %E, %g, %G directives.
65643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65644         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65645         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65646         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65647         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65648         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65649         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65650         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65651         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65652         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65653         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65654         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65655         * modules/snprintf-posix (Depends-on): Likewise.
65656         * modules/sprintf-posix (Depends-on): Likewise.
65657         * modules/vasnprintf-posix (Depends-on): Likewise.
65658         * modules/vasprintf-posix (Depends-on): Likewise.
65659         * modules/vfprintf-posix (Depends-on): Likewise.
65660         * modules/vsnprintf-posix (Depends-on): Likewise.
65661         * modules/vsprintf-posix (Depends-on): Likewise.
65662         * modules/vasnprintf (Files): Add lib/float+.h.
65663         * doc/functions/fprintf.texi: Update.
65664         * doc/functions/printf.texi: Update.
65665         * doc/functions/snprintf.texi: Update.
65666         * doc/functions/sprintf.texi: Update.
65667         * doc/functions/vfprintf.texi: Update.
65668         * doc/functions/vprintf.texi: Update.
65669         * doc/functions/vsnprintf.texi: Update.
65670         * doc/functions/vsprintf.texi: Update.
65671
65672 2007-05-18  Bruno Haible  <bruno@clisp.org>
65673
65674         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65675
65676 2007-05-18  Bruno Haible  <bruno@clisp.org>
65677
65678         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65679         for printing 64-bit integers. Needed for mingw.
65680
65681 2007-05-18  Bruno Haible  <bruno@clisp.org>
65682
65683         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65684         gl_FUNC_FREXPL_WORKS.
65685         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65686
65687 2007-05-18  Bruno Haible  <bruno@clisp.org>
65688
65689         * modules/frexpl-nolibm-tests: New file.
65690
65691         * modules/frexpl-nolibm: New file.
65692         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65693
65694 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65695
65696         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65697         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65698         GCC 4.2, which otherwise issues a lot of warnings.
65699         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65700         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65701         Likewise.
65702         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65703         * modules/iconv_open (iconv.h): Likewise.
65704         * modules/locale (locale.h): Likewise.
65705         * modules/netinet_in (netinet/in.h): Likewise.
65706         * modules/sys_select (sys_select.h): Likewise.
65707         * modules/sys_socket (sys/socket.h): Likewise.
65708         * modules/sys_stat (sys/stat.h): Likewise.
65709         * modules/sysexits (sysexits.h): Likewise.
65710         * modules/unistd (unistd.h): Likewise.
65711
65712 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65713
65714         * modules/closein-tests (Makefile.am): Distribute
65715         `test-closein.sh'.
65716
65717 2007-05-17  Bruno Haible  <bruno@clisp.org>
65718
65719         * tests/test-printf-posix.output: Renamed from
65720         tests/test-fprintf-posix.out.
65721         * modules/fprintf-posix-tests: Update.
65722         * modules/printf-posix-tests: Update.
65723         * modules/vfprintf-posix-tests: Update.
65724         * modules/vprintf-posix-tests: Update.
65725         * tests/test-fprintf-posix.sh: Update.
65726         * tests/test-printf-posix.sh: Update.
65727         * tests/test-vfprintf-posix.sh: Update.
65728         * tests/test-vprintf-posix.sh: Update.
65729         Reported by Ralf Wildenhues.
65730
65731 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65732
65733         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65734         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65735         GCC 4.2, which otherwise issues a lot of warnings.
65736         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65737         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65738         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65739         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65740         it should no longer be needed.
65741         * lib/string_.h: Likewise.
65742         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65743         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65744         * modules/inttypes (inttypes.h): Likewise.
65745         * modules/math (math.h): Likewise.
65746         * modules/search (search.h): Likewise.
65747         * modules/signal (signal.h): Likewise.
65748         * modules/stdint (stdint.h): Likewise.
65749         * modules/stdio (stdio.h): Likewise.
65750         * modules/stdlib (stdlib.h): Likewise.
65751         * modules/string (string.h): Likewise.
65752         * modules/sys_time (sys/time.h): Likewise.
65753         * modules/time (time.h): Likewise.
65754         * modules/wchar (wchar.h): Likewise.
65755         * modules/wctype (wtype.h): Likewise.
65756
65757 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65758
65759         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65760
65761 2007-05-13  Bruno Haible  <bruno@clisp.org>
65762
65763         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65764         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65765         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65766         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65767         (gl_PREREQ_STRTOK_R): Don't require it here.
65768
65769 2007-05-13  Bruno Haible  <bruno@clisp.org>
65770
65771         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65772         when used in C++ mode.
65773
65774 2007-05-12  Bruno Haible  <bruno@clisp.org>
65775
65776         * lib/linebuffer.h: Tweak doc.
65777         * lib/linebuffer.c: Likewise.
65778
65779 2007-05-12  James Youngman  <jay@gnu.org>
65780
65781         * lib/linebuffer.c (readlinebuffer_delim): New function,
65782         like readlinebuffer, but use a caller-specified delimiter.
65783         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65784         as the delimiter.
65785         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65786
65787 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65788
65789         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65790         * modules/openat (Files): Remove openat-die.c.
65791         (Depends-on): Add openat-die.
65792         * modules/openat-die: New module.
65793
65794 2007-05-06  Bruno Haible  <bruno@clisp.org>
65795
65796         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65797         Update with info about Cygwin.
65798         * doc/functions/fprintf.texi: Update.
65799         * doc/functions/printf.texi: Update.
65800         * doc/functions/snprintf.texi: Update.
65801         * doc/functions/sprintf.texi: Update.
65802         * doc/functions/vfprintf.texi: Update.
65803         * doc/functions/vprintf.texi: Update.
65804         * doc/functions/vsnprintf.texi: Update.
65805         * doc/functions/vsprintf.texi: Update.
65806         Reported by Eric Blake.
65807
65808 2007-05-06  Bruno Haible  <bruno@clisp.org>
65809
65810         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65811         padding ourselves for the floating-point directives.
65812         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65814         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65815         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65816         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65817         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65818         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65819         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65820         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65821         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65822         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65823         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65824         * tests/test-snprintf-posix.h (test_function): Also check the width
65825         and some flags in the %f directive.
65826         * tests/test-sprintf-posix.h (test_function): Likewise.
65827         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65828         * tests/test-vasprintf-posix.c (test_function): Likewise.
65829         * doc/functions/fprintf.texi: Update.
65830         * doc/functions/printf.texi: Update.
65831         * doc/functions/snprintf.texi: Update.
65832         * doc/functions/sprintf.texi: Update.
65833         * doc/functions/vfprintf.texi: Update.
65834         * doc/functions/vprintf.texi: Update.
65835         * doc/functions/vsnprintf.texi: Update.
65836         * doc/functions/vsprintf.texi: Update.
65837
65838 2007-05-06  Bruno Haible  <bruno@clisp.org>
65839
65840         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65841         pass the ' flag character to sprintf or snprintf.
65842         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65844         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65845         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65846         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65848         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65849         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65850         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65851         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65852         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65853         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65854         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65855         flag.
65856         * tests/test-sprintf-posix.h (test_function): Likewise.
65857         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65858         * tests/test-vasprintf-posix.c (test_function): Likewise.
65859         * doc/functions/fprintf.texi: Update.
65860         * doc/functions/printf.texi: Update.
65861         * doc/functions/snprintf.texi: Update.
65862         * doc/functions/sprintf.texi: Update.
65863         * doc/functions/vfprintf.texi: Update.
65864         * doc/functions/vprintf.texi: Update.
65865         * doc/functions/vsnprintf.texi: Update.
65866         * doc/functions/vsprintf.texi: Update.
65867
65868 2007-05-01  Bruno Haible  <bruno@clisp.org>
65869
65870         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65871
65872 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65873
65874         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65875         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65876
65877 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65878
65879         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65880         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65881         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65882
65883 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65884
65885         * lib/argp-help.c (struct hol_entry): New member `ord'.
65886         (HOL_ENTRY_PTRCMP): Use ord for comparison
65887         (hol_sort): Initialize ord.
65888
65889 2007-05-01  Bruno Haible  <bruno@clisp.org>
65890
65891         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65892         Reported by Eric Blake.
65893         * doc/gnulib.texi (Function Substitutes): Update.
65894
65895 2007-05-01  Bruno Haible  <bruno@clisp.org>
65896
65897         * doc/functions.texi: Remove file, now redundant through
65898         doc/functions/*.texi.
65899
65900 2007-05-01  Bruno Haible  <bruno@clisp.org>
65901
65902         * modules/argp (Depends-on): Add sleep.
65903
65904 2007-05-01  Bruno Haible  <bruno@clisp.org>
65905
65906         * modules/sleep-tests: New file.
65907         * tests/test-sleep.c: New file.
65908
65909         * modules/sleep: New file.
65910         * lib/sleep.c: New file.
65911         * m4/sleep.m4: New file.
65912         * lib/unistd_.h (sleep): New declaration.
65913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65914         HAVE_SLEEP.
65915         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65916         * doc/functions/sleep.texi: Document the sleep module.
65917
65918 2007-05-01  Bruno Haible  <bruno@clisp.org>
65919
65920         * lib/sigprocmask.h: Remove file.
65921         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65922         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65923         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65924         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65925         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65926         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65927         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65928         HAVE_SIGSET_T as a shell variable.
65929         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65930         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65931         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65932         (Depends-on): Add signal. Remove verify.
65933         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65934         (Include): Mention <signal.h> instead of sigprocmask.h.
65935         * NEWS: Mention the change.
65936         * lib/fatal-signal.c: Don't include sigprocmask.h.
65937
65938 2007-05-01  Bruno Haible  <bruno@clisp.org>
65939
65940         * modules/signal: New file.
65941         * lib/signal_.h: New file.
65942         * m4/signal_h.m4: New file.
65943
65944 2007-05-01  Bruno Haible  <bruno@clisp.org>
65945
65946         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65947         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65948         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65949         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65950
65951 2007-05-01  Bruno Haible  <bruno@clisp.org>
65952
65953         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65954         configure time.
65955         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65956         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65957         * modules/sys_stat (Makefile.am): Substitute their values into
65958         sys/stat.h.
65959
65960 2007-05-01  Bruno Haible  <bruno@clisp.org>
65961
65962         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65963         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65964         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65965
65966 2007-05-01  Bruno Haible  <bruno@clisp.org>
65967
65968         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65969         'assert' module here.
65970
65971 2007-05-01  Bruno Haible  <bruno@clisp.org>
65972
65973         * doc/functions/*.texi: New files.
65974         * doc/functions/google-ranking.txt: New file.
65975         * doc/gnulib.texi (Function Substitutes): New chapter.
65976         (ctime, inet_ntoa): Remove sections.
65977         * doc/ctime.texi: Remove file.
65978         * doc/inet_ntoa.texi: Remove file.
65979         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65980         dependencies.
65981         (%.info): New rule, specifying a --reference-limit.
65982
65983 2007-05-01  Bruno Haible  <bruno@clisp.org>
65984
65985         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65986
65987 2007-05-01  Bruno Haible  <bruno@clisp.org>
65988
65989         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65990         the portability of 'mkdir' to mingw systems.
65991
65992 2007-05-01  Bruno Haible  <bruno@clisp.org>
65993
65994         * doc/headers/google-ranking.txt: New file.
65995
65996 2007-04-30  Eric Blake  <ebb9@byu.net>
65997
65998         Prefer fseeko to fseek.
65999         * modules/getpass (Depends-on): Add fseeko.
66000         * lib/getpass.c (getpass): Use fseeko, not fseek.
66001
66002 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66003
66004         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66005         assumes the sorting is stable, while most qsort implementations
66006         are not.  Use argument addresses to ensure they never compare as
66007         equal.
66008
66009         * tests/test-argp-2.sh (usage-indent test): Fix output
66010         (func_compare): Restore diff options
66011         * tests/test-argp.c: Restore #include "progname.h"
66012
66013 2007-04-29  Bruno Haible  <bruno@clisp.org>
66014
66015         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66017         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66018         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66019         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66020         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66021         (TESTS, check_PROGRAMS): Add test-snprintf.
66022         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66023         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66024         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66025         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66026         assertions that fail on HP-UX, OSF/1, or IRIX.
66027         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66028
66029 2007-04-29  Bruno Haible  <bruno@clisp.org>
66030
66031         * MODULES.html.sh (posix_functions): Remove 'contents'.
66032
66033 2007-04-29  Karl Berry  <karl@gnu.org>
66034
66035         * config/srclist.txt (gendocs_template_min): new entry.
66036
66037 2007-04-29  Bruno Haible  <bruno@clisp.org>
66038
66039         Work around fpurge bug on BSD systems.
66040         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66041         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66042         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66043         fpurge to rpl_fpurge if the system already has this function.
66044         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66045         the case where the system already has this function. Correct invariants
66046         on BSD systems.
66047         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66048         BSD systems.
66049
66050 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66051
66052         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66053         proposed by Sven Verdoolaege.
66054
66055         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66056         options.
66057         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66058         (usage and help tests): Update
66059
66060 2007-04-29  Bruno Haible  <bruno@clisp.org>
66061
66062         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66063         Print more information in case of failure. Disable a test on BeOS.
66064
66065 2007-04-29  Bruno Haible  <bruno@clisp.org>
66066
66067         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66068         This helps debugging on systems on which no gdb is available.
66069
66070 2007-04-29  Bruno Haible  <bruno@clisp.org>
66071
66072         * lib/freading.h: Improve comments.
66073         * lib/fwriting.h: Likewise.
66074         * tests/test-freading.c (main): Don't check freading immediately after
66075         repositioning. Needed for glibc.
66076
66077 2007-04-29  Bruno Haible  <bruno@clisp.org>
66078
66079         * lib/freading.c (freading): Trivial simplification.
66080
66081 2007-04-28  Bruno Haible  <bruno@clisp.org>
66082
66083         * tests/test-fwriting.c (main): Also test the interaction between
66084         fflush and fwriting.
66085         * modules/fwriting-tests (Depends-on): Add fflush.
66086
66087         * tests/test-freading.c (main): Also test the interaction between
66088         fflush and freading.
66089         * modules/freading-tests (Depends-on): Add fflush.
66090
66091 2007-04-28  Bruno Haible  <bruno@clisp.org>
66092
66093         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66094         fseeko and ftello.
66095         Suggested by Eric Blake.
66096
66097 2007-04-28  Jim Meyering  <jim@meyering.net>
66098
66099         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66100         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66101         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66102
66103 2007-04-27  Eric Blake  <ebb9@byu.net>
66104
66105         * doc/headers/assert.texi (assert.h): Document assert module use.
66106
66107 2007-04-27  Bruno Haible  <bruno@clisp.org>
66108
66109         * doc/headers/*.texi: New files.
66110         * doc/gnulib.texi (Header File Substitutes): New chapter.
66111         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66112         dependencies.
66113         (standards.info ,standards.html, standards.dvi): Update dependencies.
66114         (mostlyclean, clean): New targets.
66115
66116 2007-04-27  Bruno Haible  <bruno@clisp.org>
66117
66118         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66119         * modules/sysexits (Files, Makefile.am): Update.
66120
66121         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66122         * modules/sys_socket (Files, Makefile.am): Update.
66123
66124         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66125         * modules/sys_stat (Files, Makefile.am): Update.
66126
66127 2007-04-27  Eric Blake  <ebb9@byu.net>
66128
66129         * lib/freading.h: Improve comments.
66130         * lib/fwriting.h: Likewise.
66131         * lib/fflush.c: Likewise.
66132
66133         Fix closein for mingw.
66134         * modules/closein-tests: Add tests for closein.
66135         * tests/test-closein.c: New file.
66136         * tests/test-closein.sh: Likewise.
66137         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66138         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66139
66140 2007-04-27  Bruno Haible  <bruno@clisp.org>
66141
66142         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66143         version is < 6.
66144         * lib/math_.h [__DECC]: Likewise.
66145         * lib/stdio_.h [__DECC]: Likewise.
66146         * lib/stdlib_.h [__DECC]: Likewise.
66147         * lib/string_.h [__DECC]: Likewise.
66148         * lib/time_.h [__DECC]: Likewise.
66149         * lib/wchar_.h [__DECC]: Likewise.
66150         * lib/wctype_.h [__DECC]: Likewise.
66151
66152 2007-04-27  Bruno Haible  <bruno@clisp.org>
66153
66154         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66155
66156 2007-04-27  Bruno Haible  <bruno@clisp.org>
66157
66158         * lib/fflush.c: Add comments.
66159         * modules/fpurge-tests (Depends-on): Add fflush.
66160         * modules/freadable-tests (Depends-on): Likewise.
66161         * modules/fwritable-tests (Depends-on): Likewise.
66162
66163 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66164
66165         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66166         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66167         Report by Bruno Haible <bruno@clisp.org>.
66168
66169 2007-04-26  Eric Blake  <ebb9@byu.net>
66170
66171         Fix fflush on mingw.
66172         * modules/fflush (Depends-on): Add freading.
66173         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66174         but unread data.
66175
66176 2007-04-26  Eric Blake  <ebb9@byu.net>
66177         and Bruno Haible  <bruno@clisp.org>
66178
66179         Implement freading and fwriting.
66180         * lib/freading.c: New file.
66181         * lib/freading.h: Likewise.
66182         * m4/freading.m4: Likewise.
66183         * modules/freading: Likewise.
66184         * modules/freading-tests: Likewise.
66185         * tests/test-freading.c: Likewise.
66186         * lib/fwriting.c: New file.
66187         * lib/fwriting.h: Likewise.
66188         * m4/fwriting.m4: Likewise.
66189         * modules/fwriting: Likewise.
66190         * modules/fwriting-tests: Likewise.
66191         * tests/test-fwriting.c: Likewise.
66192         * MODULES.html.sh (File stream based Input/Output): Mention them.
66193
66194 2007-04-26  Bruno Haible  <bruno@clisp.org>
66195
66196         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66197         'long' when we assume it.
66198         Suggested by Eric Blake.
66199
66200 2007-04-26  Bruno Haible  <bruno@clisp.org>
66201
66202         Ensure fseeko, ftello are declared on glibc systems.
66203         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66204         * modules/fseeko (configure.ac-early): Likewise.
66205         * modules/ftello (configure.ac-early): Likewise.
66206         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66207         AC_FUNC_FSEEKO for this.
66208         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66209         (gl_CHECK_FSEEKO): Remove macro.
66210
66211 2007-04-26  Bruno Haible  <bruno@clisp.org>
66212
66213         * tests/test-fflush.c (main): Also check the ftell result after
66214         fflush and fseek/fseeko.
66215         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66216         file descriptor position cache in the stream.
66217         * lib/fseeko.c (rpl_fseeko): Likewise.
66218
66219 2007-04-26  Bruno Haible  <bruno@clisp.org>
66220
66221         * modules/fflush-tests (Depends-on): Add fseeko.
66222
66223 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66224             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66225
66226         * lib/argz_.h: ensure error_t definition is obtained in same
66227         mechanism system argz.h would have.
66228         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66229         argz facilities are known bad.  Err on the side of caution if
66230         cross-compiling.
66231
66232 2007-04-25  Eric Blake  <ebb9@byu.net>
66233
66234         * lib/fpurge.c (includes): Use stdlib.h for free.
66235         * tests/test-fflush.c (main): Also test fflush-fseeko.
66236
66237 2007-04-25  Bruno Haible  <bruno@clisp.org>
66238
66239         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66240         * lib/fseeko.c: New file.
66241         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66242         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66243         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66244         gl_FUNC_FSEEKO.
66245         (gl_FUNC_FSEEKO): Invoke it.
66246         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66247         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66248         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66249
66250 2007-04-25  Bruno Haible  <bruno@clisp.org>
66251
66252         * modules/fflush (Depends-on): Add ftello.
66253
66254 2007-04-25  Bruno Haible  <bruno@clisp.org>
66255
66256         * modules/ftello-tests: New file.
66257         * tests/test-ftello.c: New file.
66258
66259         * modules/ftello: New file.
66260         * m4/ftello.m4: New file.
66261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66262         HAVE_FTELLO.
66263         * lib/stdio_.h (ftello): New declaration.
66264         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66265         HAVE_FTELLO.
66266
66267 2007-04-25  Bruno Haible  <bruno@clisp.org>
66268
66269         * modules/fseeko-tests: New file.
66270         * tests/test-fseeko.c: New file.
66271
66272         * modules/fseeko: New file.
66273         * m4/fseeko.m4: New file.
66274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66275         HAVE_FSEEKO.
66276         * lib/stdio_.h (fseeko): New declaration.
66277         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66278         HAVE_FSEEKO.
66279
66280 2007-04-25  Bruno Haible  <bruno@clisp.org>
66281
66282         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66283
66284 2007-04-25  Bruno Haible  <bruno@clisp.org>
66285
66286         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66287         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66288         * tests/test-unistd.c: Likewise.
66289         * tests/test-fcntl.c: Likewise.
66290
66291 2007-04-23  Eric Blake  <ebb9@byu.net>
66292
66293         * lib/fflush.c: Fix missing include.
66294         Reported by Bruno Haible.
66295
66296 2007-04-23  Bruno Haible  <bruno@clisp.org>
66297
66298         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66299         Reported by Eric Blake.
66300
66301 2007-04-23  Bruno Haible  <bruno@clisp.org>
66302
66303         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66304
66305 2007-04-23  Bruno Haible  <bruno@clisp.org>
66306
66307         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66308
66309 2007-04-23  Bruno Haible  <bruno@clisp.org>
66310
66311         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66312         Needed on HP-UX 11.
66313
66314 2007-04-16  Eric Blake  <ebb9@byu.net>
66315
66316         Make fflush rely on fpurge.
66317         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66318         open coding all variants.
66319         * modules/fflush (Depends-on): Add fpurge and unistd.
66320         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66321         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66322
66323         Fix --with-tests compilation on cygwin.
66324         * modules/argmatch-tests (Makefile.am): List gnulib library first
66325         in LDADD.
66326         * modules/argp-tests (Makefile.am): Likewise.
66327         * modules/array-list-tests (Makefile.am): Likewise.
66328         * modules/array-oset-tests (Makefile.am): Likewise.
66329         * modules/avltree-list-tests (Makefile.am): Likewise.
66330         * modules/avltree-oset-tests (Makefile.am): Likewise.
66331         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66332         * modules/carray-list-tests (Makefile.am): Likewise.
66333         * modules/dirname-tests (Makefile.am): Likewise.
66334         * modules/frexp-tests (Makefile.am): Likewise.
66335         * modules/isnanl-tests (Makefile.am): Likewise.
66336         * modules/linked-list-tests (Makefile.am): Likewise.
66337         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66338         * modules/lock-tests (Makefile.am): Likewise.
66339         * modules/rbtree-list-tests (Makefile.am): Likewise.
66340         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66341         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66342         * modules/tls-tests (Makefile.am): Likewise.
66343         * modules/tsearch-tests (Makefile.am): Likewise.
66344         * modules/xvasprintf-tests (Makefile.am): Likewise.
66345
66346         Fix fpurge for cygwin.
66347         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66348         value.
66349         * modules/fpurge-tests (Depends-on): Clean up trash.
66350
66351 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66352
66353         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66354
66355         * m4/autobuild.m4: Re-indent.
66356
66357 2007-04-13  Bruno Haible  <bruno@clisp.org>
66358
66359         * modules/fpurge-tests: New file.
66360         * tests/test-fpurge.c: New file.
66361
66362         * modules/fpurge: New file.
66363         * lib/fpurge.h: New file.
66364         * lib/fpurge.c: New file.
66365         * m4/fpurge.m4: New file.
66366
66367 2007-04-13  Bruno Haible  <bruno@clisp.org>
66368
66369         * modules/fbufmode-tests: New file.
66370         * tests/test-fbufmode.c: New file.
66371
66372         * modules/fbufmode: New file.
66373         * lib/fbufmode.h: New file.
66374         * lib/fbufmode.c: New file.
66375         * m4/fbufmode.m4: New file.
66376
66377 2007-04-13  Bruno Haible  <bruno@clisp.org>
66378
66379         * modules/fwritable-tests: New file.
66380         * tests/test-fwritable.c: New file.
66381
66382         * modules/fwritable: New file.
66383         * lib/fwritable.h: New file.
66384         * lib/fwritable.c: New file.
66385         * m4/fwritable.m4: New file.
66386
66387 2007-04-13  Bruno Haible  <bruno@clisp.org>
66388
66389         * modules/freadable-tests: New file.
66390         * tests/test-freadable.c: New file.
66391
66392         * modules/freadable: New file.
66393         * lib/freadable.h: New file.
66394         * lib/freadable.c: New file.
66395         * m4/freadable.m4: New file.
66396
66397 2007-04-13  Bruno Haible  <bruno@clisp.org>
66398
66399         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66400         MOSTLYCLEANFILES.
66401
66402 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66403
66404         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66405         gzip bootstrap.conf to avoid dragging in i18n machinery.
66406         (gnulib_tool_option): Use it.
66407
66408 2007-04-13  Bruno Haible  <bruno@clisp.org>
66409
66410         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66411         %F directives.
66412         * tests/test-vasprintf-posix.c (test_function): Likewise.
66413         * tests/test-snprintf-posix.h (test_function): Likewise.
66414         * tests/test-sprintf-posix.h (test_function): Likewise.
66415         * tests/test-fprintf-posix.h (test_function): Likewise.
66416         * tests/test-printf-posix.h (test_function): Likewise.
66417         * tests/test-fprintf-posix.out: Likewise.
66418
66419 2007-04-13  Bruno Haible  <bruno@clisp.org>
66420
66421         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66422         * modules/tls-tests (configure.ac): Likewise.
66423         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66424
66425 2007-04-13  Bruno Haible  <bruno@clisp.org>
66426
66427         * lib/tls.c (glthread_tls_get): Fix return type.
66428         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66429
66430 2007-04-12  Eric Blake  <ebb9@byu.net>
66431
66432         * modules/gettime (Depends-on): Remove gettime.
66433         Reported by Dmitry V. Levin.
66434
66435 2007-04-12  Bruno Haible  <bruno@clisp.org>
66436
66437         * modules/fflush (Include): Mention <stdio.h>.
66438         * modules/strtoimax (Include): Mention <inttypes.h>.
66439         * modules/strtoumax (Include): Likewise.
66440
66441 2007-04-12  Eric Blake  <ebb9@byu.net>
66442
66443         * .cvsignore: New file.
66444         * .gitignore: Likewise.
66445
66446 2007-04-12  Bruno Haible  <bruno@clisp.org>
66447
66448         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66449         not before, since $(LDADD) often contains libgnu.a.
66450         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66451         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66452         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66453         Needed on Cygwin.
66454
66455 2007-04-12  Eric Blake  <ebb9@byu.net>
66456
66457         Work around glibc's failure to flush stdin on fclose.
66458         * lib/closein.c (close_stdin): Flush stdin before closing.
66459
66460         Work around glibc's failure to reset seekable stdin on exit.
66461         * modules/closein: New module.
66462         * lib/closein.c: New file.
66463         * lib/closein.h: Likewise.
66464         * m4/closein.m4: Likewise.
66465         * MODULES.html.sh (File stream based Input/Output): Document it.
66466
66467 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66468
66469         * gnulib-tool: Rename generated 'autobuild' script to
66470         'do-autobuild' in --create-megatestdir output.
66471
66472         * doc/gnulib.texi (Build robot for gnulib): Fix.
66473
66474 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66475
66476         * modules/sysexits (Depends-on): Add absolute-header.
66477
66478 2007-04-12  Eric Blake  <ebb9@byu.net>
66479
66480         No need to preserve errno on success.
66481         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66482         Reported by Bruno Haible.
66483
66484 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66485
66486         * MODULES.html.sh (Support for maintaining and releasing
66487         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66488
66489 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66490
66491         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66492
66493 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66494
66495         * modules/autobuild: New module.
66496
66497         * m4/autobuild.m4: New file.
66498
66499 2007-04-11  Bruno Haible  <bruno@clisp.org>
66500
66501         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66502         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66503         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66505         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66506         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66507         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66508         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66509         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66510         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66511         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66512         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66513         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66514         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66515         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66516         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66517         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66518         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66519         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66520         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66521         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66522         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66524         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66525         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66526         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66527         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66528         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66529         Reported by Eric Blake.
66530
66531 2007-04-11  Bruno Haible  <bruno@clisp.org>
66532
66533         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66534
66535 2007-04-10  Bruno Haible  <bruno@clisp.org>
66536
66537         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66538         for NaN and Infinity. Needed on FreeBSD 6.1.
66539         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66540         regarding results for "%010a" of Infinity and NaN.
66541         * tests/test-vasprintf-posix.c (test_function): Likewise.
66542         * tests/test-snprintf-posix.h (test_function): Likewise.
66543         * tests/test-sprintf-posix.h (test_function): Likewise.
66544         * tests/test-fprintf-posix.h (test_function): Likewise.
66545         * tests/test-printf-posix.h (test_function): Likewise.
66546         * tests/test-fprintf-posix.out: Likewise.
66547
66548 2007-04-10  Bruno Haible  <bruno@clisp.org>
66549
66550         * modules/locale-tests: New file.
66551         * tests/test-locale.c: New file.
66552
66553         * modules/locale: New file.
66554         * lib/locale_.h: New file.
66555         * m4/locale_h.m4: New file.
66556
66557 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66558             Bruno Haible  <bruno@clisp.org>
66559
66560         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66561         be determined, test for availability of the copysignf, copysign,
66562         copysignl functions.
66563         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66564         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66565         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66566
66567 2007-04-09  Eric Blake  <ebb9@byu.net>
66568
66569         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66570         * modules/stdio (Makefile.am): Support fflush.
66571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66572         * modules/fflush: New file.
66573         * lib/fflush.c: Likewise.
66574         * m4/fflush.m4: Likewise.
66575         * modules/fflush-tests: New test.
66576         * tests/test-fflush.c: Likewise.
66577         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66578
66579 2007-04-06  Bruno Haible  <bruno@clisp.org>
66580
66581         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66582         (VASNPRINTF): Use signbit for faster determination whether to print a
66583         minus sign.
66584         * modules/vasnprintf (Files): Remove lib/float+.h.
66585         * modules/fprintf-posix (Depends-on): Add signbit.
66586         * modules/snprintf-posix (Depends-on): Likewise.
66587         * modules/sprintf-posix (Depends-on): Likewise.
66588         * modules/vasnprintf-posix (Depends-on): Likewise.
66589         * modules/vasprintf-posix (Depends-on): Likewise.
66590         * modules/vfprintf-posix (Depends-on): Likewise.
66591         * modules/vsnprintf-posix (Depends-on): Likewise.
66592         * modules/vsprintf-posix (Depends-on): Likewise.
66593
66594 2007-04-06  Bruno Haible  <bruno@clisp.org>
66595
66596         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66597         * tests/test-frexpl.c (main): Likewise.
66598         * tests/test-ldexpl.c (main): Likewise.
66599         * modules/frexp-tests (Depends-on): Add signbit.
66600         * modules/frexpl-tests (Depdends-on): Likewise.
66601         * modules/ldexpl-tests (Depdends-on): Likewise.
66602
66603 2007-04-06  Bruno Haible  <bruno@clisp.org>
66604
66605         * modules/signbit-tests: New file.
66606         * tests/test-signbit.c: New file.
66607
66608         * modules/signbit: New file.
66609         * lib/signbitf.c: New file.
66610         * lib/signbitd.c: New file.
66611         * lib/signbitl.c: New file.
66612         * m4/signbit.m4: New file.
66613         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66614         (signbit): New macro.
66615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66616         REPLACE_SIGNBIT.
66617         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66618         REPLACE_FREXPL into math.h.
66619
66620 2007-04-06  Bruno Haible  <bruno@clisp.org>
66621
66622         * modules/isnanf-nolibm-tests: New file.
66623         * tests/test-isnanf.c: New file.
66624
66625         * modules/isnanf-nolibm: New file.
66626         * lib/isnanf.h: New file.
66627         * lib/isnanf.c: New file.
66628         * lib/isnan.c: Consider the USE_FLOAT macro.
66629         * m4/isnanf.m4: New file.
66630
66631 2007-04-06  Bruno Haible  <bruno@clisp.org>
66632
66633         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66634         (Link): New section.
66635
66636         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66637
66638 2007-04-06  Bruno Haible  <bruno@clisp.org>
66639
66640         Assume the 'long double' type.
66641         * m4/longdouble.m4: Remove file.
66642         * config/srclist.txt: Don't mention longdouble.m4.
66643         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66644         * lib/float+.h: Likewise.
66645         * lib/frexp.c: Likewise.
66646         * lib/printf-args.h: Likewise.
66647         * lib/printf-args.c: Likewise.
66648         * lib/printf-frexp.c: Likewise.
66649         * lib/printf-parse.c: Likewise.
66650         * lib/vasnprintf.c: Likewise.
66651         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66652         * m4/intl.m4: Likewise.
66653         * m4/isnanl.m4: Likewise.
66654         * m4/printf.m4: Likewise.
66655         * m4/printf-frexpl.m4: Likewise.
66656         * m4/vasnprintf.m4: Likewise.
66657         * modules/allocsa (Files): Remove m4/longdouble.m4.
66658         * modules/gettext (Files): Likewise.
66659         * modules/relocatable-prog-wrapper (Files): Likewise.
66660         * modules/vasnprintf (Files): Likewise.
66661         * modules/isnanl (Files): Likewise.
66662         (Include): Simplify.
66663         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66664         (Include): Simplify.
66665         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66666         (Include): Simplify.
66667         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66668         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66669         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66670         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66671         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66672         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66673         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66674         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66675         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66676         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66677         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66678         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66679         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66680         * tests/test-isnanl.c: Likewise.
66681         * tests/test-snprintf-posix.h: Likewise.
66682         * tests/test-sprintf-posix.h: Likewise.
66683         * tests/test-vasnprintf-posix.c: Likewise.
66684         * tests/test-vasnprintf-posix2.c: Likewise.
66685         * tests/test-vasprintf-posix.c: Likewise.
66686
66687 2007-04-06  Bruno Haible  <bruno@clisp.org>
66688
66689         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66690         * lib/math_.h [__DECC]: Include the overridden include file through
66691         #include_next, outside the double-inclusion guard.
66692         * lib/stdio_.h [__DECC]: Likewise.
66693         * lib/stdlib_.h [__DECC]: Likewise.
66694         * lib/string_.h [__DECC]: Likewise.
66695         * lib/time_.h [__DECC]: Likewise.
66696         * lib/wchar_.h [__DECC]: Likewise.
66697         * lib/wctype_.h [__DECC]: Likewise.
66698         * lib/inttypes_.h [__DECC]: Likewise.
66699         Reported by Albert Chin <china@thewrittenword.com> in
66700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66701
66702 2007-04-04  Eric Blake  <ebb9@byu.net>
66703
66704         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66705         1.5.x.
66706
66707 2007-04-04  Bruno Haible  <bruno@clisp.org>
66708
66709         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66710         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66711
66712 2007-04-04  Bruno Haible  <bruno@clisp.org>
66713
66714         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66715         results for "%010a" of Infinity and NaN.
66716         * tests/test-vasprintf-posix.c (test_function): Likewise.
66717         * tests/test-snprintf-posix.h (test_function): Likewise.
66718         * tests/test-sprintf-posix.h (test_function): Likewise.
66719         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66720         * tests/test-printf-posix.h (test_function): Likewise.
66721         * tests/test-fprintf-posix.out: Update.
66722         Needed for FreeBSD 6.1.
66723
66724 2007-04-04  Bruno Haible  <bruno@clisp.org>
66725
66726         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66727         directly used by the gnulib modules nor by gnulib-tool.
66728
66729 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66730
66731         * DEPENDENCIES: Give overall description of version dependency
66732         desirability.  Use more-typical names for apps.
66733         Add shell, coreutils, diffutils, grep, tar, gzip.
66734
66735 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66736
66737         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66738
66739 2007-04-04  Karl Berry  <karl@gnu.org>
66740
66741         * MODULES.html.sh (func_module): missing '.
66742
66743 2007-04-03  Bruno Haible  <bruno@clisp.org>
66744
66745         * modules/argmatch-tests (Makefile.am): New variable
66746         test_argmatch_LDADD.
66747         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66748         * modules/array-list-tests (Makefile.am): New variable
66749         test_array_list_LDADD.
66750         * modules/array-oset-tests (Makefile.am): New variable
66751         test_array_oset_LDADD.
66752         * modules/avltree-list-tests (Makefile.am): New variable
66753         test_avltree_list_LDADD.
66754         * modules/avltree-oset-tests (Makefile.am): New variable
66755         test_avltree_oset_LDADD.
66756         * modules/avltreehash-list-tests (Makefile.am): New variable
66757         test_avltreehash_list_LDADD.
66758         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66759         test_canonicalize_lgpl_LDADD.
66760         * modules/carray-list-tests (Makefile.am): New variable
66761         test_carray_list_LDADD.
66762         * modules/dirname-tests (Makefile.am): New variable
66763         test_dirname_LDADD.
66764         * modules/linked-list-tests (Makefile.am): New variable
66765         test_linked_list_LDADD.
66766         * modules/linkedhash-list-tests (Makefile.am): New variable
66767         test_linkedhash_list_LDADD.
66768         * modules/rbtree-list-tests (Makefile.am): New variable
66769         test_rbtree_list_LDADD.
66770         * modules/rbtree-oset-tests (Makefile.am): New variable
66771         test_rbtree_oset_LDADD.
66772         * modules/rbtreehash-list-tests (Makefile.am): New variable
66773         test_rbtreehash_list_LDADD.
66774         * modules/xvasprintf-tests (Makefile.am): New variable
66775         test_xvasprintf_LDADD.
66776         Reported by Eric Blake.
66777
66778 2007-04-03  Eric Blake  <ebb9@byu.net>
66779
66780         * DEPENDENCIES: Weaken m4 requirements.
66781
66782 2007-04-03  Bruno Haible  <bruno@clisp.org>
66783
66784         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66785         * modules/isnanl-tests (configure.ac): Likewise.
66786
66787 2007-04-03  Ben Pfaff  <blp@gnu.org>
66788
66789         * modules/iconv_open: Add $(srcdir)/ to source directory
66790         references in Makefile fragments that call gperf, to fix VPATH
66791         builds.
66792
66793 2007-04-03  Bruno Haible  <bruno@clisp.org>
66794
66795         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66796         * lib/ldexpl.c: Undo last change.
66797
66798 2007-04-03  Bruno Haible  <bruno@clisp.org>
66799
66800         * modules/printf-frexpl (Depends-on): Undo last change.
66801         (Files): Add m4/ldexpl.m4.
66802
66803 2007-04-03  Bruno Haible  <bruno@clisp.org>
66804
66805         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66806         * modules/isnanl (Link): New section.
66807
66808         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66809         * modules/frexp (Link): New section.
66810
66811         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66812         * modules/frexpl (Link): New section.
66813
66814         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66815         * modules/ldexpl (Link): New section.
66816
66817 2007-04-03  Bruno Haible  <bruno@clisp.org>
66818
66819         * modules/TEMPLATE-EXTENDED: New file.
66820         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66821
66822 2007-04-03  Bruno Haible  <bruno@clisp.org>
66823
66824         * DEPENDENCIES: New file.
66825         Suggested by Simon Josefsson.
66826
66827 2007-04-03  Bruno Haible  <bruno@clisp.org>
66828
66829         * doc/gnulib.texi: Escape @.
66830
66831 2007-04-03  James Youngman  <jay@gnu.org>
66832         and Paul Eggert  <eggert@cs.ucla.edu>
66833
66834         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66835         birthtime on all systems that have birthtime, not just those which
66836         use st_birthtimensec rather than st_birthtim.  Putting zero in
66837         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66838         that the birth time is not available for files on an NFS mount.
66839
66840 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66841
66842         * modules/memxor: Move back from crypto/, suggested by Bruno.
66843         * modules/crypto/hmac-sha1: Fix memxor dependency.
66844
66845         * modules/crypto/gc: Moved from ../.
66846
66847 2007-04-02  Eric Blake  <ebb9@byu.net>
66848
66849         * lib/ldexpl.c (includes): Avoid libm.
66850
66851         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66852
66853 2007-04-02  Bruno Haible  <bruno@clisp.org>
66854
66855         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66856         on IRIX.
66857
66858 2007-04-02  Bruno Haible  <bruno@clisp.org>
66859
66860         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66861         x86 or x86_64 platforms running MacOS X.
66862         Reported by Ryan Schmidt <@ryandesign.com>.
66863
66864 2007-04-02  Bruno Haible  <bruno@clisp.org>
66865
66866         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66867         i386.
66868
66869 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66870
66871         * modules/crypto/arcfour: Moved from ../.
66872         * modules/crypto/arcfour-tests: Moved from ../.
66873         * modules/crypto/arctwo: Moved from ../.
66874         * modules/crypto/arctwo-tests: Moved from ../.
66875         * modules/crypto/des: Moved from ../.
66876         * modules/crypto/des-tests: Moved from ../.
66877         * modules/crypto/gc-arcfour: Moved from ../.
66878         * modules/crypto/gc-arcfour-tests: Moved from ../.
66879         * modules/crypto/gc-arctwo: Moved from ../.
66880         * modules/crypto/gc-arctwo-tests: Moved from ../.
66881         * modules/crypto/gc-des: Moved from ../.
66882         * modules/crypto/gc-des-tests: Moved from ../.
66883         * modules/crypto/gc-hmac-md5: Moved from ../.
66884         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66885         * modules/crypto/gc-hmac-sha1: Moved from ../.
66886         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66887         * modules/crypto/gc-md2: Moved from ../.
66888         * modules/crypto/gc-md2-tests: Moved from ../.
66889         * modules/crypto/gc-md4: Moved from ../.
66890         * modules/crypto/gc-md4-tests: Moved from ../.
66891         * modules/crypto/gc-md5: Moved from ../.
66892         * modules/crypto/gc-md5-tests: Moved from ../.
66893         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66894         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66895         * modules/crypto/gc-random: Moved from ../.
66896         * modules/crypto/gc-rijndael: Moved from ../.
66897         * modules/crypto/gc-rijndael-tests: Moved from ../.
66898         * modules/crypto/gc-sha1: Moved from ../.
66899         * modules/crypto/gc-sha1-tests: Moved from ../.
66900         * modules/crypto/gc-tests: Moved from ../.
66901         * modules/crypto/hmac-md5: Moved from ../.
66902         * modules/crypto/hmac-md5-tests: Moved from ../.
66903         * modules/crypto/hmac-sha1: Moved from ../.
66904         * modules/crypto/hmac-sha1-tests: Moved from ../.
66905         * modules/crypto/md2: Moved from ../.
66906         * modules/crypto/md2-tests: Moved from ../.
66907         * modules/crypto/md4: Moved from ../.
66908         * modules/crypto/md4-tests: Moved from ../.
66909         * modules/crypto/md5: Moved from ../.
66910         * modules/crypto/md5-tests: Moved from ../.
66911         * modules/crypto/memxor: Moved from ../.
66912         * modules/crypto/rijndael: Moved from ../.
66913         * modules/crypto/rijndael-tests: Moved from ../.
66914         * modules/crypto/sha1: Moved from ../.
66915
66916 2007-03-30  James Youngman  <jay@gnu.org>
66917
66918         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66919         rename() to change the ctime of a file (because ctime is unaffected
66920         by rename on jfs2 on AIX 5.1).
66921         (main): Start by doing cleanup, in case a previous run failed leaving
66922         test files behind.
66923
66924 2007-03-31  Bruno Haible  <bruno@clisp.org>
66925
66926         Support old proprietary implementations of iconv.
66927         * modules/iconv_open: New file.
66928         * lib/iconv_.h: New file.
66929         * m4/iconv_h.m4: New file.
66930         * lib/iconv_open.c: New file.
66931         * lib/iconv_open-aix.gperf: New file.
66932         * lib/iconv_open-hpux.gperf: New file.
66933         * lib/iconv_open-irix.gperf: New file.
66934         * lib/iconv_open-osf.gperf: New file.
66935         * m4/iconv_open.m4: New file.
66936         * modules/linebreak (Depends-on): Add iconv_open.
66937         * modules/striconv (Depends-on): Likewise.
66938         * modules/striconveh (Depends-on): Likewise.
66939         * modules/unicodeio (Depends-on): Likewise.
66940         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66941         (iconv_t)(-1).
66942         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66943         conversion if cd is (iconv_t)(-1).
66944         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66945         is not possible.
66946
66947 2007-03-31  Bruno Haible  <bruno@clisp.org>
66948
66949         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66950         work on Solaris either. Protect also second use of "autodetect_jp".
66951
66952 2007-03-31  Bruno Haible  <bruno@clisp.org>
66953
66954         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66955         the function is not present.
66956
66957 2007-03-31  Bruno Haible  <bruno@clisp.org>
66958
66959         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66960         the function is not present.
66961
66962 2007-03-31  Bruno Haible  <bruno@clisp.org>
66963
66964         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66965         a bug in HP-UX iconv_open().
66966
66967 2007-03-31  Bruno Haible  <bruno@clisp.org>
66968
66969         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66970         (Mathematics <math.h>): New section, add fpieee.
66971         (Input/output <stdio.h>): Add fseterr.
66972         (Mathematics <math.h>): New section, add printf-frexp.
66973         (Container data structures): Add sublist.
66974         (Core language properties): Add fpucw, inline.
66975         (Functions for greatest-width integer types <inttypes.h>): Add
66976         imaxabs, imaxdiv, inttypes.
66977         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66978         isnanl-nolibm, ldexp.
66979         (Mathematics <math.h>): New section, add printf-frexpl.
66980         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66981         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66982         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66983         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66984         (Unicode string functions): Add unistr/u*-mbtoucr.
66985         (Java): Add javacomp-script, javaexec-script.
66986         (C#): Add csharpcomp-script, csharpexec-script.
66987         (Support for building libraries and executables): Add havelib,
66988         relocatable-*.
66989         (Support for maintaining and releasing projects): Renamed from
66990         'Support for maintaining and release projects'. Add announce-gen.
66991
66992 2007-03-31  Bruno Haible  <bruno@clisp.org>
66993
66994         * README: Talk primarily about git.
66995         (git and CVS): Renamed from CVS.
66996         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66997         gnulib is available through git.
66998         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66999
67000 2007-03-30  Bruno Haible  <bruno@clisp.org>
67001
67002         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67003         * lib/poll_.h: Likewise.
67004         * lib/stat_.h: Likewise.
67005         * lib/sys_time_.h: Likewise.
67006         * lib/sysexit_.h: Likewise.
67007         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67008         * lib/stdbool_.h: Likewise.
67009         * lib/byteswap_.h: Add double-inclusion guard.
67010
67011 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67012
67013         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67014
67015 2007-03-30  Karl Berry  <karl@gnu.org>
67016
67017         * config/srclist-update: double space after USA in the license
67018         substitution, since that's how it's usually (?) written.
67019
67020 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67021
67022         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67023         reported by Bruno Haible.
67024
67025 2007-03-29  Bruno Haible  <bruno@clisp.org>
67026
67027         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67028         a bug in AIX iconv().
67029
67030 2007-03-29  Bruno Haible  <bruno@clisp.org>
67031
67032         * modules/ldexpl-tests: New file.
67033         * tests/test-ldexpl.c: New file.
67034
67035 2007-03-29  Bruno Haible  <bruno@clisp.org>
67036
67037         * lib/ldexpl.c: Include fpucw.h.
67038         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67039         multiplication.
67040         * modules/ldexpl (Depends-on): Add fpucw.
67041
67042 2007-03-29  Bruno Haible  <bruno@clisp.org>
67043
67044         * modules/ldexpl: New file.
67045         * m4/ldexpl.m4: New file.
67046         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67047         set.
67048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67049         REPLACE_LDEXPL.
67050         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67051         REPLACE_LDEXPL.
67052         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67053         gl_FUNC_LDEXPL_WORKS.
67054         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67055         * modules/mathl (Files): Remove lib/ldexpl.c.
67056         (Depends-on): Add ldexpl.
67057
67058 2007-03-29  Bruno Haible  <bruno@clisp.org>
67059
67060         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67061
67062 2007-03-29  Bruno Haible  <bruno@clisp.org>
67063
67064         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67065         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67066         and possibly also HP-UX.
67067         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67068         work on AIX, IRIX, HP-UX, OSF/1.
67069         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67070         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67071         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67072         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67073         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67074         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67075
67076 2007-03-29  Bruno Haible  <bruno@clisp.org>
67077
67078         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67079
67080 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67081
67082         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67083         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67084
67085 2007-03-29  Eric Blake  <ebb9@byu.net>
67086
67087         * lib/acl-internal.h: Remove redundant include.
67088         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67089         Cygwin when a file is locked.
67090
67091 2007-03-29  Bruno Haible  <bruno@clisp.org>
67092
67093         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67094         file.
67095         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67096
67097 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67098
67099         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67100         try to remove a parent directory if the child couldn't be removed
67101         (except for the first rmdir, which could fail because the child
67102         doesn't exist).  Problem reported by Jeff Blaine in
67103         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67104
67105 2007-03-28  Bruno Haible  <bruno@clisp.org>
67106
67107         * lib/striconveh.c (utf8conv_carefully): New function.
67108         (mem_cd_iconveh_internal): Invoke it.
67109
67110 2007-03-28  Bruno Haible  <bruno@clisp.org>
67111
67112         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67113         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67114         input.
67115         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67116         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67117         unistr/u8-uctomb.
67118
67119 2007-03-28  Bruno Haible  <bruno@clisp.org>
67120
67121         * modules/unistr/u8-mbtoucr: New file.
67122         * lib/unistr/u8-mbtoucr.c: New file.
67123         * modules/unistr/u16-mbtoucr: New file.
67124         * lib/unistr/u16-mbtoucr.c: New file.
67125         * modules/unistr/u16-mbtoucr: New file.
67126         * lib/unistr/u16-mbtoucr.c: New file.
67127         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67128
67129 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67130             Bruno Haible  <bruno@clisp.org>
67131
67132         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67133         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67134         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67135
67136         * m4/stdio_h.m4: Add stubs for vasprintf too.
67137
67138         * modules/stdio: Support vasprintf in sed command.
67139
67140         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67141         vasprintf.h.  Add stdio module indicator.
67142
67143         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67144         vasprintf.h.
67145
67146         * lib/vasprintf.h: File removed.
67147
67148         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67149         * lib/vasprintf.c: Ditto.
67150         * lib/xvasprintf.c: Ditto.
67151         * tests/test-vasprintf-posix.c: Ditto.
67152         * tests/test-vasprintf.c: Ditto.
67153
67154 2007-03-27  Bruno Haible  <bruno@clisp.org>
67155
67156         Make vasnprintf multithread-safe.
67157         * lib/vasnprintf.c (decimal_point_char): New function.
67158         (VASNPRINTF): Use it.
67159         Suggested by Simon Josefsson.
67160
67161 2007-03-27  Eric Blake  <ebb9@byu.net>
67162
67163         Support sub-second birthtime on cygwin.
67164         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67165         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67166         (get_stat_birthtime): Also work with st_birthtim.
67167
67168 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67169
67170         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67171         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67172         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67173         (get_stat_birthtime_ns): Simplify compile-time tests.
67174         (get_stat_birthtime): Change the API to look like
67175         get_stat_mtime etc., except return a negative tv_nsec on error.
67176         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67177         Don't check for "spare" fields.
67178         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67179         or for struct stat.st_birthtime, as these tests aren't used.
67180         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67181
67182 2007-03-27  Bruno Haible  <bruno@clisp.org>
67183
67184         * lib/stat-time.h: Include <sys/stat.h>.
67185
67186 2007-03-27  James Youngman  <jay@gnu.org>
67187
67188         * lib/stat-time.h (get_stat_birthtime): New function for
67189           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67190         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67191           and its variants.
67192         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67193         * modules/stat-time-test: New file.
67194         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67195
67196 2007-03-26  Bruno Haible  <bruno@clisp.org>
67197
67198         Better support of signalling NaNs.
67199         * lib/atanl.c: Include isnanl.h.
67200         (atanl): Perform test for NaN at the beginning of the function and
67201         through a call to isnanl.
67202         * lib/cosl.c: Include isnanl.h.
67203         (cosl): Perform test for NaN at the beginning of the function and
67204         through a call to isnanl.
67205         * lib/ldexpl.c: Include isnanl.h.
67206         (ldexpl): Perform test for NaN through a call to isnanl.
67207         * lib/logl.c: Include isnanl.h.
67208         (logl): Perform test for NaN at the beginning of the function and
67209         through a call to isnanl.
67210         * lib/sinl.c: Include isnanl.h.
67211         (sinl): Perform test for NaN at the beginning of the function and
67212         through a call to isnanl.
67213         * lib/sqrtl.c: Include isnanl.h.
67214         (sqrtl): Perform test for NaN at the beginning of the function and
67215         through a call to isnanl.
67216         * lib/tanl.c: Include isnanl.h.
67217         (tanl): Perform test for NaN at the beginning of the function and
67218         through a call to isnanl.
67219         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67220         * modules/mathl (Depends-on): Add isnanl.
67221
67222 2007-03-26  Eric Blake  <ebb9@byu.net>
67223
67224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67225         regression in logic sense of previous patch.
67226
67227 2007-03-26  Bruno Haible  <bruno@clisp.org>
67228
67229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67230         unportable shell command "if ! ...".
67231         Reported by Ralf Wildenhues.
67232
67233 2007-03-25  Bruno Haible  <bruno@clisp.org>
67234
67235         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67236         <sysexits.h> file, and only add EX_CONFIG.
67237         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67238         absolute file name and whether it is sufficient. Substitute also
67239         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67240         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67241         ABSOLUTE_SYSEXITS_H into sysexits.h.
67242
67243 2007-03-25  Bruno Haible  <bruno@clisp.org>
67244
67245         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67246         hints is NULL.
67247
67248 2007-03-25  Bruno Haible  <bruno@clisp.org>
67249
67250         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67251         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67252
67253 2007-03-25  Bruno Haible  <bruno@clisp.org>
67254
67255         * lib/vasnprintf.c: Include langinfo.h.
67256         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67257         multithread-safe.
67258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67259         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67260         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67261         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67262         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67263         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67264         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67265         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67266         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67267         Reported by Simon Josefsson.
67268
67269 2007-03-25  Bruno Haible  <bruno@clisp.org>
67270
67271         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67272         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67273         * modules/vasnprintf (Depends-on): Add stdint.
67274
67275 2007-03-25  Bruno Haible  <bruno@clisp.org>
67276
67277         * modules/fpieee: New file.
67278         * m4/fpieee.m4: New file.
67279         * modules/isnan-nolibm (Depends-on): Add fpieee.
67280         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67281         * modules/isnanl (Depends-on): Add fpieee.
67282
67283 2007-03-25  Bruno Haible  <bruno@clisp.org>
67284
67285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67286
67287 2007-03-25  Bruno Haible  <bruno@clisp.org>
67288
67289         Avoid test failures on IRIX 6.5.
67290         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67291         (main): Use it.
67292         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67293         macros.
67294         (main): Use them.
67295
67296 2007-03-25  Bruno Haible  <bruno@clisp.org>
67297
67298         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67299         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67300         exists but doesn't work.
67301         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67302         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67304         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67305         math.h.
67306
67307 2007-03-25  Bruno Haible  <bruno@clisp.org>
67308
67309         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67310         returns inf. Needed on IRIX 6.5.
67311
67312 2007-03-25  Bruno Haible  <bruno@clisp.org>
67313
67314         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67315         (main): Use isnanl instead of x != x idiom.
67316         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67317
67318         * tests/test-frexp.c: Include isnan.h.
67319         (main): Use isnan instead of x != x idiom.
67320         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67321
67322 2007-03-25  Bruno Haible  <bruno@clisp.org>
67323
67324         * tests/test-frexp.c (NaN): New function/macro.
67325         (main): Use it instead of 0.0 / 0.0.
67326         * tests/test-isnan.c (NaN): New function/macro.
67327         (main): Use it instead of 0.0 / 0.0.
67328         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67329         (test_function): Use it instead of 0.0 / 0.0.
67330         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67331         (test_function): Use it instead of 0.0 / 0.0.
67332         * tests/test-snprintf-posix.h (NaN): New function/macro.
67333         (test_function): Use it instead of 0.0 / 0.0.
67334         * tests/test-sprintf-posix.h (NaN): New function/macro.
67335         (test_function): Use it instead of 0.0 / 0.0.
67336         * tests/test-fprintf-posix.h (NaN): New function/macro.
67337         (test_function): Use it instead of 0.0 / 0.0.
67338         * tests/test-printf-posix.h (NaN): New function/macro.
67339         (test_function): Use it instead of 0.0 / 0.0.
67340
67341         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67342
67343 2007-03-25  Bruno Haible  <bruno@clisp.org>
67344
67345         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67346
67347 2007-03-25  Bruno Haible  <bruno@clisp.org>
67348
67349         * lib/regexec.c (merge_state_with_log): Make static.
67350
67351 2007-03-25  Bruno Haible  <bruno@clisp.org>
67352
67353         * lib/trigl.c (kernel_rem_pio2): Make static.
67354
67355 2007-03-25  Bruno Haible  <bruno@clisp.org>
67356
67357         * lib/sincosl.c (sincosl_table): Make static.
67358
67359 2007-03-25  Bruno Haible  <bruno@clisp.org>
67360
67361         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67362         if the compiler does not support C99.
67363
67364 2007-03-25  Bruno Haible  <bruno@clisp.org>
67365
67366         * modules/time (Makefile.am): Ensure all rule action lines start with a
67367         tab.
67368
67369 2007-03-24  Bruno Haible  <bruno@clisp.org>
67370
67371         * modules/tsearch-tests: New file.
67372         * tests/test-tsearch.sh: New file.
67373         * tests/test-tsearch.c: New file, mostly copied from glibc.
67374
67375         * modules/search-tests: New file.
67376         * tests/test-search.c: New file.
67377
67378         * modules/search: New file.
67379         * lib/search_.h: New file, incorporating lib/tsearch.h.
67380         * m4/search_h.m4: New file.
67381         * lib/tsearch.h: Remove file.
67382         * lib/tsearch.c: Include search.h instead of tsearch.h.
67383         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67384         HAVE_TSEARCH.
67385         * modules/tsearch (Files): Remove lib/tsearch.h.
67386         (Depends-on): Add search.
67387         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67388         (Include): Change tsearch.h into search.h.
67389
67390 2007-03-24  Bruno Haible  <bruno@clisp.org>
67391
67392         * modules/fpucw: New file.
67393         * lib/fpucw.h: New file.
67394         * lib/frexp.c: Include fpucw.h.
67395         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67396         (FUNC): Use them.
67397         * lib/printf-frexp.c: Include fpucw.h.
67398         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67399         (FUNC): Use them.
67400         * lib/vasnprintf.c: Include fpucw.h.
67401         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67402         'long double' calculations.
67403         * tests/test-frexpl.c: Include fpucw.h.
67404         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67405         * tests/test-printf-frexpl.c: Include fpucw.h.
67406         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67407         * modules/frexpl (Depends-on): Add fpucw.
67408         * modules/printf-frexpl (Depends-on): Likewise.
67409         * modules/fprintf-posix (Depends-on): Likewise.
67410         * modules/snprintf-posix (Depends-on): Likewise.
67411         * modules/sprintf-posix (Depends-on): Likewise.
67412         * modules/vasnprintf-posix (Depends-on): Likewise.
67413         * modules/vasprintf-posix (Depends-on): Likewise.
67414         * modules/vfprintf-posix (Depends-on): Likewise.
67415         * modules/vsnprintf-posix (Depends-on): Likewise.
67416         * modules/vsprintf-posix (Depends-on): Likewise.
67417         * modules/frexpl-tests (Depends-on): Likewise.
67418         * modules/printf-frexpl-tests (Depends-on): Likewise.
67419
67420 2007-03-24  Bruno Haible  <bruno@clisp.org>
67421
67422         * lib/float+.h: New file.
67423         * lib/isnan.c: Include float+.h.
67424         (SIZE): New macro.
67425         (FUNC): Compare only SIZE bytes of the value.
67426         * lib/vasnprintf.c: Include float+.h.
67427         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
67428         SIZEOF_LDBL or SIZEOF_DBL bytes.
67429         * modules/isnan-nolibm (Files): Add lib/float+.h.
67430         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67431         * modules/isnanl (Files): Add lib/float+.h.
67432         * modules/vasnprintf (Files): Add lib/float+.h.
67433
67434 2007-03-24  Bruno Haible  <bruno@clisp.org>
67435
67436         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67437         include isnanl-nolibm.h.
67438
67439 2007-03-24  Bruno Haible  <bruno@clisp.org>
67440
67441         * tests/test-read-file.c (main): Don't produce spurious output for
67442         expected situations. Make the test fail if it encountered unexpected
67443         results.
67444
67445 2007-03-24  Bruno Haible  <bruno@clisp.org>
67446
67447         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67448         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67449
67450 2007-03-24  Bruno Haible  <bruno@clisp.org>
67451
67452         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67453
67454 2007-03-24  Bruno Haible  <bruno@clisp.org>
67455
67456         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67457         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67458
67459         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67460         * modules/utf8-ucs4: Turn into a symbolic link to module
67461         unistr/u8-mbtouc.
67462
67463         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67464         utf8-ucs4-unsafe.
67465         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67466         unistr/u8-mbtouc-unsafe.
67467
67468         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67469         * modules/utf16-ucs4: Turn into a symbolic link to module
67470         unistr/u16-mbtouc.
67471
67472         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67473         utf16-ucs4-unsafe.
67474         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67475         unistr/u16-mbtouc-unsafe.
67476
67477         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67478         * modules/ucs4-utf8: Turn into a symbolic link to module
67479         unistr/u8-ubtomb.
67480
67481         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67482         * modules/ucs4-utf16: Turn into a symbolic link to module
67483         unistr/u16-ubtomb.
67484
67485 2007-03-24  Bruno Haible  <bruno@clisp.org>
67486
67487         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67488         Enable the function only if HAVE_INLINE.
67489         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67490         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67491         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67492         Enable the function only if HAVE_INLINE.
67493         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67494         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67495         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67496         Enable the function only if HAVE_INLINE.
67497         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67498         Enable the function only if HAVE_INLINE.
67499         * modules/utf8-ucs4: Update.
67500         * modules/utf8-ucs4-unsafe: Update.
67501         * modules/utf16-ucs4: Update.
67502         * modules/utf16-ucs4-unsafe: Update.
67503         * modules/ucs4-utf8: Update.
67504         * modules/ucs4-utf16: Update.
67505
67506 2007-03-24  Bruno Haible  <bruno@clisp.org>
67507
67508         * lib/utf8-ucs4.h: Remove file.
67509         * lib/utf8-ucs4-unsafe.h: Remove file.
67510         * lib/utf16-ucs4.h: Remove file.
67511         * lib/utf16-ucs4-unsafe.h: Remove file.
67512         * lib/ucs4-utf8.h: Remove file.
67513         * lib/ucs4-utf16.h: Remove file.
67514         * lib/unistr.h: Include their previous contents.
67515         * m4/utf-ucs4.m4: Remove file.
67516         * m4/ucs4-utf.m4: Remove file.
67517         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67518         (Depends-on): Add unistr/base.
67519         (configure.ac): Remove gl_UTF_UCS4.
67520         (Makefile.am): Update.
67521         (Include): Change to unistr.h.
67522         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67523         (Depends-on): Add unistr/base.
67524         (configure.ac): Remove gl_UTF_UCS4.
67525         (Makefile.am): Update.
67526         (Include): Change to unistr.h.
67527         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67528         (Depends-on): Add unistr/base.
67529         (configure.ac): Remove gl_UTF_UCS4.
67530         (Makefile.am): Update.
67531         (Include): Change to unistr.h.
67532         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67533         (Depends-on): Add unistr/base.
67534         (configure.ac): Remove gl_UTF_UCS4.
67535         (Makefile.am): Update.
67536         (Include): Change to unistr.h.
67537         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67538         (Depends-on): Add unistr/base.
67539         (configure.ac): Remove gl_UCS4_UTF.
67540         (Makefile.am): Update.
67541         (Include): Change to unistr.h.
67542         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67543         (Depends-on): Add unistr/base.
67544         (configure.ac): Remove gl_UCS4_UTF.
67545         (Makefile.am): Update.
67546         (Include): Change to unistr.h.
67547         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67548         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67549         utf8-ucs4-unsafe.h.
67550         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67551         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67552         utf16-ucs4-unsafe.h.
67553         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67554         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67555         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67556         * lib/unistr/u8-strchr.c: Likewise.
67557         * lib/unistr/u8-strrchr.c: Likewise.
67558         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67559         * lib/unistr/u16-strchr.c: Likewise.
67560         * lib/unistr/u16-strrchr.c: Likewise.
67561         * lib/striconveh.c: Update.
67562         * lib/linebreak.c: Update.
67563
67564 2007-03-24  Bruno Haible  <bruno@clisp.org>
67565
67566         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67567         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67568
67569 2007-03-22  Bruno Haible  <bruno@clisp.org>
67570
67571         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67572
67573 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67574
67575         * MODULES.html.sh (File system functions): New module write-any-file.
67576         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67577         * m4/write-any-file.m4: New files.
67578
67579 2007-03-23  Eric Blake  <ebb9@byu.net>
67580
67581         * gnulib-tool: Rearrange space-tab sequences, since some editors
67582         like to eat them.
67583
67584 2007-03-23  Eric Blake  <ebb9@byu.net>
67585
67586         * lib/version-etc.c (version_etc_va): Update license wording to
67587         be more concise.  Recommended by Richard Stallman.
67588
67589 2007-03-22  Bruno Haible  <bruno@clisp.org>
67590
67591         * lib/poll.c (MSG_PEEK): New fallback definition.
67592
67593 2007-03-22  Bruno Haible  <bruno@clisp.org>
67594
67595         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67596         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67597         (main): Update.
67598         Fixes a compilation error on BeOS.
67599
67600 2007-03-22  Bruno Haible  <bruno@clisp.org>
67601
67602         * modules/frexpl-tests: New file.
67603         * tests/test-frexpl.c: New file.
67604
67605         * modules/frexpl: New file.
67606         * m4/frexpl.m4: New file.
67607         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67608         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67610         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67611         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67612         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67613
67614 2007-03-22  Bruno Haible  <bruno@clisp.org>
67615
67616         * lib/frexpl.c: Share code with lib/frexp.c.
67617         * modules/mathl (Files): Add lib/frexp.c.
67618         (Depends-on): Add isnanl-nolibm.
67619
67620 2007-03-22  Bruno Haible  <bruno@clisp.org>
67621
67622         * modules/printf-frexp (Files): Add m4/frexp.m4.
67623         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67624         only if the found frexp function actually works.
67625
67626 2007-03-22  Bruno Haible  <bruno@clisp.org>
67627
67628         * lib/frexp.c: Remove older implementation that uses divisions.
67629
67630 2007-03-21  Bruno Haible  <bruno@clisp.org>
67631
67632         * modules/frexp-tests: New file.
67633         * tests/test-frexp.c: New file.
67634
67635         * modules/frexp: New file.
67636         * lib/frexp.c: New file.
67637         * m4/frexp.m4: New file.
67638         * lib/math_.h (frexp): New declaration.
67639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67640         REPLACE_FREXP.
67641         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67642
67643 2007-03-21  Bruno Haible  <bruno@clisp.org>
67644
67645         * modules/isnanl-tests: New file.
67646         * tests/test-isnanl.c: New file.
67647
67648         * modules/isnanl: New file.
67649         * lib/isnanl.h: New file.
67650         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67651         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67652         gl_FUNC_ISNANL_WORKS.
67653         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67654         New macros.
67655
67656 2007-03-21  Bruno Haible  <bruno@clisp.org>
67657
67658         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67659         lib/isnanl.h.
67660         (Include): Update.
67661         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67662         * lib/vasnprintf.c: Update.
67663         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67664         tests/test-isnanl.h, remove tests/test-isnanl.c.
67665         (Makefile.am): Update.
67666         * tests/test-isnanl-nolibm.c: New file.
67667         * tests/test-isnanl.h: New file.
67668         * tests/test-isnanl.c: Remove file.
67669
67670 2007-03-21  Jim Meyering  <jim@meyering.net>
67671
67672         When trying to open ".", treat ESTALE like EACCES.
67673         * lib/savewd.c (savewd_save): Resort to forking not just upon
67674         failure with EACCES, but also when errno is ESTALE.
67675
67676 2007-03-20  Bruno Haible  <bruno@clisp.org>
67677
67678         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67679         Needed on AIX 5.1. Reported by Matthew Woehlke.
67680
67681 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67682
67683         Suggestions by Bruno Haible:
67684         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67685         our own.
67686         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67687         * modules/acl (Depends-on): Add gettext.
67688
67689 2007-03-19  Bruno Haible  <bruno@clisp.org>
67690
67691         * modules/iconvme: Remove file.
67692         * lib/iconvme.h: Remove file.
67693         * lib/iconvme.c: Remove file.
67694         * m4/iconvme.m4: Remove file.
67695
67696 2007-03-19  Bruno Haible  <bruno@clisp.org>
67697
67698         * doc/relocatable-maint.texi: Break long shell script line.
67699         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67700
67701 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67702
67703         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67704         handle file_has_acl.
67705         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67706         * lib/acl.c: Move header inclusions and related macro defns into
67707         lib/acl-internal.h.
67708         (S_ISLNK): Remove defn, since that's now done for us.
67709         (file_has_acl): Move to lib/file-has-acl.c.
67710         Call acl_trivial if available.  This is the crucial part of the fix.
67711         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67712         shared within the library.  Rewrite a bit, partly to make it compatible
67713         with the GNU coding style.
67714         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67715         Remove unnecessary double-quotes.
67716         Don't test for acl_to_text; the build will catch that.
67717         Replace acl_entries if it doesn't exist and it is needed.
67718         Check for -lsec and acl_trivial (as used on Solaris 10).
67719         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67720         lib/file-has-acl.c.
67721         (Depends-on): Add sys_stat, for S_ISLNK.
67722
67723 2007-03-19  Ben Pfaff  <blp@gnu.org>
67724
67725         * doc/gnulib.texi: Fix typos.
67726         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67727
67728 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67729
67730         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67731         If size is zero here, buf must be zero.
67732
67733 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67734
67735         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67736         <bruno@clisp.org>.
67737
67738 2007-03-18  Bruno Haible  <bruno@clisp.org>
67739
67740         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67741         Suggested by Eric Blake.
67742
67743 2007-03-18  Ben Pfaff  <blp@gnu.org>
67744
67745         * doc/relocatable.texi: Recommend using as prefix a directory
67746         that does not exist and will never be created.  Based on
67747         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67748         and others.
67749
67750 2007-03-17  Bruno Haible  <bruno@clisp.org>
67751
67752         * lib/fchownat.c: Include lchown.h.
67753
67754 2007-03-17  Bruno Haible  <bruno@clisp.org>
67755
67756         Fix endless loop when the given allocated size was > INT_MAX.
67757         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67758         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67759         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67760         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67761         * lib/sprintf.c (sprintf): Likewise.
67762
67763 2007-03-17  Bruno Haible  <bruno@clisp.org>
67764
67765         * tests/test-argp-2.sh (func_compare): Output a context diff.
67766
67767 2007-03-17  Bruno Haible  <bruno@clisp.org>
67768
67769         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67770         locale's decimal-point character.
67771
67772 2007-03-17  Bruno Haible  <bruno@clisp.org>
67773
67774         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67775         before comparing it. Needed because on some platforms (e.g. x86) a
67776         'long double' occupies less bytes than sizeof (long double).
67777
67778 2007-03-17  Bruno Haible  <bruno@clisp.org>
67779
67780         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67781         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67782         * tests/test-getaddrinfo.c (simple): Likewise.
67783         * tests/test-read-file.c (main): Likewise.
67784
67785 2007-03-17  Bruno Haible  <bruno@clisp.org>
67786
67787         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67788
67789 2007-03-17  Bruno Haible  <bruno@clisp.org>
67790
67791         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67792         unused variable.
67793
67794 2007-03-17  Bruno Haible  <bruno@clisp.org>
67795
67796         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67797         * tests/test-c-strncasecmp.c: Likewise.
67798
67799 2007-03-17  Bruno Haible  <bruno@clisp.org>
67800
67801         * modules/stdlib (Depends-on): Add unistd.
67802         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67803         Needed for MacOS X 10.3.
67804
67805 2007-03-17  Bruno Haible  <bruno@clisp.org>
67806
67807         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67808
67809 2007-03-17  Bruno Haible  <bruno@clisp.org>
67810
67811         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67812
67813 2007-03-17  Bruno Haible  <bruno@clisp.org>
67814
67815         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67816         to reflect files copied from gnulib (with or without modifications).
67817         Suggested by Jim Meyering.
67818
67819 2007-03-17  Eric Blake  <ebb9@byu.net>
67820
67821         * NEWS: Document stdlib change from 2007-02-18.
67822
67823 2007-03-17  Jim Meyering  <jim@meyering.net>
67824
67825         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67826         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67827         someone uses a name containing shell meta-characters.
67828         Reported by Alfred M. Szmidt.
67829
67830         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67831
67832 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67833
67834         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67835         and copy gettext configuration files only if configure.ac contains
67836         a use of AM_GNU_GETTEXT_VERSION.
67837
67838 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67839
67840         * build-aux/bootstrap (gnulib_name): New variable.
67841         (gnulib_tool_options): Use it.
67842
67843 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67844
67845         * tests/test-des.c: Use new namespace.
67846
67847 2007-03-15  Bruno Haible  <bruno@clisp.org>
67848
67849         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67850         Reported by James Youngman <jay@gnu.org>.
67851
67852 2007-03-15  Bruno Haible  <bruno@clisp.org>
67853
67854         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67855         declared prototype. Needed with cc on OSF/1 5.1.
67856
67857 2007-03-15  Bruno Haible  <bruno@clisp.org>
67858
67859         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67860         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67861         (struct gl_list_implementation): Add dispose_fn argument to the
67862         'create_empty', 'create' methods.
67863         (struct gl_list_impl_base): Add field 'dispose_fn'.
67864         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67865         argument.
67866         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67867         dispose_fn argument.
67868         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67869         dispose_fn on the dropped values.
67870         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67871         dispose_fn argument.
67872         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67873         dropped values.
67874         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67875         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67876         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67877         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67878         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67879         argument.
67880         (gl_tree_list_free): Call dispose_fn on the dropped values.
67881         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67882         the dropped values.
67883         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67884         Add dispose_fn argument.
67885         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67886         Call dispose_fn on the dropped values.
67887         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67888         Add dispose_fn argument.
67889         (gl_sublist_create): Initialize the 'dispose_fn' field.
67890         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67891         * tests/test-array_list.c (main): Update.
67892         * tests/test-carray_list.c (main): Update.
67893         * tests/test-avltree_list.c (main): Update.
67894         * tests/test-rbtree_list.c (main): Update.
67895         * tests/test-avltreehash_list.c (main): Update.
67896         * tests/test-rbtreehash_list.c (main): Update.
67897         * tests/test-linked_list.c (main): Update.
67898         * tests/test-linkedhash_list.c (main): Update.
67899         * tests/test-array_oset.c (main): Update.
67900
67901 2007-03-15  Bruno Haible  <bruno@clisp.org>
67902
67903         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67904         (gl_oset_create_empty): Add dispose_fn argument.
67905         (struct gl_oset_implementation): Add dispose_fn argument to
67906         'create_empty' method.
67907         (struct gl_oset_impl_base): Add dispose_fn field.
67908         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67909         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67910         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67911         values.
67912         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67913         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67914         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67915         dropped value.
67916         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67917         dropped value.
67918         * tests/test-array_oset.c (main): Update.
67919         * tests/test-avltree_oset.c (main): Update.
67920         * tests/test-rbtree_oset.c (main): Update.
67921         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67922
67923 2007-03-13  Bruno Haible  <bruno@clisp.org>
67924
67925         * tests/test-stdbool.c (i): Update after last patch.
67926
67927 2007-03-12  Bruno Haible  <bruno@clisp.org>
67928
67929         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67930         the iswprint macro. Needed on Solaris 2.5.1.
67931
67932 2007-03-12  Bruno Haible  <bruno@clisp.org>
67933
67934         * tests/test-printf-frexp.c (main): Declare x as volatile.
67935
67936 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67937
67938         * doc/gnulib.texi (Build robot for gnulib): New section.
67939
67940 2007-03-12  Jim Meyering  <jim@meyering.net>
67941
67942         * build-aux/bootstrap: New file.
67943         * build-aux/bootstrap.conf: New file, from coreutils.
67944
67945 2007-03-11  Bruno Haible  <bruno@clisp.org>
67946
67947         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67948
67949 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67950
67951         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67952         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67953         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67954
67955 2007-03-11  Bruno Haible  <bruno@clisp.org>
67956
67957         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67958         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67959
67960 2007-03-11  Bruno Haible  <bruno@clisp.org>
67961
67962         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67963         formula. Needed for SunPRO C 5.0.
67964
67965 2007-03-11  Bruno Haible  <bruno@clisp.org>
67966
67967         * modules/long-options (Depends-on): Add getopt.
67968
67969 2007-03-11  Bruno Haible  <bruno@clisp.org>
67970
67971         * modules/modechange (Depends-on): Add stdbool.
67972
67973 2007-03-11  Bruno Haible  <bruno@clisp.org>
67974
67975         * modules/i-ring (Depends-on): Add stdbool.
67976
67977 2007-03-11  Bruno Haible  <bruno@clisp.org>
67978
67979         * modules/gc-des (Depends-on): Add stdbool.
67980
67981 2007-03-11  Bruno Haible  <bruno@clisp.org>
67982
67983         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67984
67985 2007-03-11  Bruno Haible  <bruno@clisp.org>
67986
67987         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67988
67989 2007-03-11  Bruno Haible  <bruno@clisp.org>
67990
67991         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67992
67993 2007-03-11  Bruno Haible  <bruno@clisp.org>
67994
67995         * lib/vasnprintf.c (sprintf): Undefine.
67996
67997 2007-03-11  Bruno Haible  <bruno@clisp.org>
67998
67999         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68000         initializers in SunPRO C and Compaq C compilers.
68001
68002 2007-03-11  Bruno Haible  <bruno@clisp.org>
68003
68004         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68005         decrementing code ANSI C compliant.
68006
68007 2007-03-11  Bruno Haible  <bruno@clisp.org>
68008
68009         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68010         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68011
68012 2007-03-11  Bruno Haible  <bruno@clisp.org>
68013
68014         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68015         <stdbool.h> substitute doesn't pass.
68016
68017 2007-03-11  Bruno Haible  <bruno@clisp.org>
68018
68019         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68020
68021 2007-03-11  Bruno Haible  <bruno@clisp.org>
68022
68023         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68024         script, for submission to autobuild.josefsson.org.
68025
68026 2007-03-10  Bruno Haible  <bruno@clisp.org>
68027
68028         * modules/canonicalize-lgpl-tests: New file.
68029         * tests/test-canonicalize-lgpl.sh: New file.
68030         * tests/test-canonicalize-lgpl.c: New file.
68031
68032         * modules/c-strcase-tests: New file.
68033         * tests/test-c-strcase.sh: New file.
68034         * tests/test-c-strcasecmp.c: New file.
68035         * tests/test-c-strncasecmp.c: New file.
68036
68037         * modules/atexit-tests: New file.
68038         * tests/test-atexit.sh: New file.
68039         * tests/test-atexit.c: New file.
68040
68041 2007-03-10  Bruno Haible  <bruno@clisp.org>
68042
68043         * tests/test-binary-io.sh: Use temporary filenames that are not so
68044         likely to clash with those of other tests (in a parallel make).
68045         * tests/test-binary-io.c: Likewise.
68046
68047 2007-03-10  Bruno Haible  <bruno@clisp.org>
68048
68049         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68050         fallback; use #error instead.
68051         Suggested by Simon Josefsson.
68052
68053 2007-03-10  Bruno Haible  <bruno@clisp.org>
68054
68055         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68056         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68057         first and the last.
68058
68059 2007-03-10  Bruno Haible  <bruno@clisp.org>
68060
68061         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68062
68063 2007-03-10  Bruno Haible  <bruno@clisp.org>
68064
68065         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68066         "make distcheck".
68067         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68068         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68069         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68070
68071 2007-03-10  Bruno Haible  <bruno@clisp.org>
68072
68073         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68074         variable.
68075         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68076         variable.
68077
68078 2007-03-09  Eric Blake  <ebb9@byu.net>
68079         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68080
68081         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68082         types are not being provided by gnulib.
68083         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68084         types are supported.
68085
68086 2007-03-10  Bruno Haible  <bruno@clisp.org>
68087
68088         * lib/stdio_.h (__attribute__): New macro.
68089         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68090         vsprintf): Specify __attribute__ __format__ for GCC.
68091         Suggested by Eric Blake.
68092
68093 2007-03-09  Bruno Haible  <bruno@clisp.org>
68094
68095         * modules/printf-posix-tests: New file.
68096         * tests/test-printf-posix.sh: New file.
68097         * tests/test-printf-posix.c: New file.
68098
68099         * modules/printf-posix: New file.
68100         * lib/printf.c: New file.
68101         * m4/printf-posix-rpl.m4: New file.
68102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68103         REPLACE_PRINTF.
68104         * lib/stdio_.h (printf): New declaration.
68105         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68106         ____strfmon____): New macros.
68107         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68108         REPLACE_PRINTF.
68109
68110 2007-03-09  Bruno Haible  <bruno@clisp.org>
68111
68112         * tests/test-vasnprintf-posix2.sh: New file.
68113         * tests/test-vasnprintf-posix2.c: New file.
68114         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68115         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68116         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68117
68118         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68119         a locale dependent decimal point, rather than always '.'.
68120
68121 2007-03-09  Eric Blake  <ebb9@byu.net>
68122
68123         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68124         spite of platforms like Tandem/NSK that define it to -1.
68125
68126 2007-03-08  Bruno Haible  <bruno@clisp.org>
68127
68128         * modules/vprintf-posix-tests: New file.
68129         * tests/test-vprintf-posix.sh: New file.
68130         * tests/test-vprintf-posix.c: New file.
68131         * tests/test-printf-posix.h: New file.
68132
68133         * modules/vprintf-posix: New file.
68134         * lib/vprintf.c: New file.
68135         * m4/vprintf-posix.m4: New file.
68136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68137         REPLACE_VPRINTF.
68138         * lib/stdio_.h (vprintf): New declaration.
68139         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68140         REPLACE_VPRINTF.
68141
68142 2007-03-08  Bruno Haible  <bruno@clisp.org>
68143
68144         * modules/fprintf-posix-tests: New file.
68145         * tests/test-fprintf-posix.sh: New file.
68146         * tests/test-fprintf-posix.c: New file.
68147
68148         * modules/fprintf-posix: New file.
68149         * lib/fprintf.c: New file.
68150         * m4/fprintf-posix.m4: New file.
68151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68152         REPLACE_FPRINTF.
68153         * lib/stdio_.h (fprintf): New declaration.
68154         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68155         REPLACE_FPRINTF.
68156
68157 2007-03-08  Bruno Haible  <bruno@clisp.org>
68158
68159         * modules/vfprintf-posix-tests: New file.
68160         * tests/test-vfprintf-posix.sh: New file.
68161         * tests/test-vfprintf-posix.c: New file.
68162         * tests/test-fprintf-posix.h: New file.
68163         * tests/test-fprintf-posix.out: New file.
68164
68165         * modules/vfprintf-posix: New file.
68166         * lib/vfprintf.c: New file.
68167         * m4/vfprintf-posix.m4: New file.
68168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68169         REPLACE_VFPRINTF.
68170         * lib/stdio_.h (vfprintf): New declaration.
68171         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68172         REPLACE_VFPRINTF.
68173
68174 2007-03-08  Bruno Haible  <bruno@clisp.org>
68175
68176         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68177
68178 2007-03-08  Bruno Haible  <bruno@clisp.org>
68179
68180         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68181         instead of 'expr' invocations.
68182         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68183         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68184         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68186         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68187         Suggested by Paul Eggert.
68188
68189 2007-03-08  Bruno Haible  <bruno@clisp.org>
68190
68191         * modules/fseterr-tests: New file.
68192         * tests/test-fseterr.c: New file.
68193
68194         * modules/fseterr: New file.
68195         * lib/fseterr.h: New file.
68196         * lib/fseterr.c: New file.
68197
68198 2007-03-08  Bruno Haible  <bruno@clisp.org>
68199
68200         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68201         * lib/getopt_.h: Likewise.
68202         * lib/mbswidth.h: Likewise.
68203         * lib/setenv.h: Likewise.
68204         * lib/vasnprintf.h: Likewise.
68205         * lib/vasprintf.h: Likewise.
68206         * lib/verror.h: Likewise.
68207         * lib/xsetenv.h: Likewise.
68208         * lib/xvasprintf.h: Likewise.
68209
68210 2007-03-08  Jim Meyering  <jim@meyering.net>
68211
68212         * users.txt: Add parted.
68213
68214         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68215
68216 2007-03-07  Bruno Haible  <bruno@clisp.org>
68217
68218         * m4/printf.m4: Make the shell script snippets copy&pastable.
68219
68220 2007-03-02  Bruno Haible  <bruno@clisp.org>
68221
68222         * lib/netinet_in_.h: New file.
68223         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68224         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68225         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68226         (Depends-on): Add absolute-header.
68227         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68228         into netinet/in.h.
68229
68230 2007-03-03  Bruno Haible  <bruno@clisp.org>
68231
68232         * lib/sys_select_.h: New file.
68233         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68234         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68235         * modules/sys_select (Files): Add lib/sys_select_.h.
68236         (Depends-on): Add absolute-header.
68237         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68238         into sys/select.h.
68239
68240 2007-03-02  Bruno Haible  <bruno@clisp.org>
68241
68242         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68243         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68244         values.
68245         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68246         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68247         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68248         * modules/sys_socket (Depends-on): Add absolute-header.
68249         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68250         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68251         (Include): Remove requirement of inclusion of <sys/types.h>.
68252
68253 2007-03-02  Bruno Haible  <bruno@clisp.org>
68254
68255         * lib/byteswap_.h (bswap_32): Fix formula.
68256
68257 2007-03-06  Bruno Haible  <bruno@clisp.org>
68258
68259         * modules/sprintf-posix-tests: New file.
68260         * tests/test-sprintf-posix.c: New file.
68261
68262         * modules/sprintf-posix: New file.
68263         * lib/sprintf.c: New file.
68264         * m4/sprintf-posix.m4: New file.
68265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68266         REPLACE_SPRINTF.
68267         * lib/stdio_.h (sprintf): New declaration.
68268         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68269         REPLACE_SPRINTF.
68270
68271 2007-03-06  Bruno Haible  <bruno@clisp.org>
68272
68273         * modules/vsprintf-posix-tests: New file.
68274         * tests/test-vsprintf-posix.c: New file.
68275         * tests/test-sprintf-posix.h: New file.
68276
68277         * modules/vsprintf-posix: New file.
68278         * lib/vsprintf.c: New file.
68279         * m4/vsprintf-posix.m4: New file.
68280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68281         REPLACE_VSPRINTF.
68282         * lib/stdio_.h (vsprintf): New declaration.
68283         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68284         REPLACE_VSPRINTF.
68285
68286 2007-03-06  Bruno Haible  <bruno@clisp.org>
68287
68288         * modules/vsnprintf (Depend-on): Remove minmax.
68289
68290 2007-03-06  Bruno Haible  <bruno@clisp.org>
68291
68292         * modules/snprintf-posix-tests: New file.
68293         * tests/test-snprintf-posix.c: New file.
68294
68295         * modules/snprintf-posix: New file.
68296         * m4/snprintf-posix.m4: New file.
68297         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68298         gl_FUNC_SNPRINTF.
68299         (gl_FUNC_SNPRINTF): Invoke it.
68300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68301         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68302         is set.
68303         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68304
68305 2007-03-06  Bruno Haible  <bruno@clisp.org>
68306
68307         * modules/vsnprintf-posix-tests: New file.
68308         * tests/test-vsnprintf-posix.c: New file.
68309         * tests/test-snprintf-posix.h: New file.
68310
68311         * modules/vsnprintf-posix: New file.
68312         * m4/vsnprintf-posix.m4: New file.
68313         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68314         gl_FUNC_VSNPRINTF.
68315         (gl_FUNC_VSNPRINTF): Invoke it.
68316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68317         * lib/stdio_.h (vsnprintf): Define as a replacement if
68318         REPLACE_VSNPRINTF is set.
68319         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68320
68321 2007-03-06  Bruno Haible  <bruno@clisp.org>
68322
68323         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68324         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68325
68326 2007-03-06  Bruno Haible  <bruno@clisp.org>
68327
68328         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68329         (asinl): Declare also if HAVE_DECL_ASINL is set.
68330         (atanl): Declare also if HAVE_DECL_ATANL is set.
68331         (ceill): Declare also if HAVE_DECL_CEILL is set.
68332         (cosl): Declare also if HAVE_DECL_COSL is set.
68333         (expl): Declare also if HAVE_DECL_EXPL is set.
68334         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68335         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68336         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68337         (logl): Declare also if HAVE_DECL_LOGL is set.
68338         (sinl): Declare also if HAVE_DECL_SINL is set.
68339         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68340         (tanl): Declare also if HAVE_DECL_TANL is set.
68341         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68343         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68344         declaration of frexpl, ldexpl.
68345         * modules/printf-frexpl (Depends-on): Add math.
68346         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68347
68348 2007-03-05  Bruno Haible  <bruno@clisp.org>
68349
68350         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68351         frexpl and ldexpl are declared.
68352         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68353
68354 2007-03-05  Bruno Haible  <bruno@clisp.org>
68355
68356         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68357         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68358
68359 2007-03-05  Bruno Haible  <bruno@clisp.org>
68360
68361         * lib/stdio_.h: Include <stddef.h>.
68362
68363 2007-03-05  Bruno Haible  <bruno@clisp.org>
68364
68365         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68366
68367 2007-03-05  Bruno Haible  <bruno@clisp.org>
68368
68369         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68370         NetBSD 4, from Ralf Wildenhues.
68371
68372 2007-03-04  Bruno Haible  <bruno@clisp.org>
68373
68374         * lib/vasprintf.h: Update #if logic for the case when the functions
68375         exist but are overridden.
68376
68377 2007-03-04  Bruno Haible  <bruno@clisp.org>
68378
68379         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68380         implementations: glibc-2.4 and MacOS X 10.3.
68381         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68382         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68383         * tests/test-vasprintf-posix.c (test_function): Likewise.
68384
68385 2007-03-04  Bruno Haible  <bruno@clisp.org>
68386
68387         * modules/vasprintf-posix-tests: New file.
68388         * tests/test-vasprintf-posix.c: New file.
68389
68390         * modules/vasprintf-posix: New file.
68391         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68392         defined.
68393         * m4/vasprintf-posix.m4: New file.
68394         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68395         gl_FUNC_VASPRINTF.
68396         (gl_FUNC_VASPRINTF): Invoke it.
68397         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68398         here.
68399         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68400
68401 2007-03-04  Bruno Haible  <bruno@clisp.org>
68402
68403         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68404         REPLACE_GETTIMEOFDAY.
68405         * modules/sys_time (Makefile.am): Likewise.
68406         * m4/sys_time_h.m4: Likewise.
68407         * m4/gettimeofday.m4: Likewise.
68408
68409 2007-03-04  Bruno Haible  <bruno@clisp.org>
68410
68411         * modules/vasnprintf-posix-tests: New file.
68412         * tests/test-vasnprintf-posix.c: New file.
68413
68414         * modules/vasnprintf-posix: New file.
68415         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68416         printf-frexpl.h.
68417         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68418         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68419         REPLACE_VASNPRINTF is defined.
68420         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68421         gl_FUNC_VASNPRINTF.
68422         (gl_FUNC_VASNPRINTF): Invoke it.
68423         * m4/vasnprintf-posix.m4: New file.
68424         * m4/printf.m4: New file.
68425
68426 2007-03-04  Bruno Haible  <bruno@clisp.org>
68427
68428         Compile progreloc.c only if --enable-relocatable is specified.
68429         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68430         if --enable-relocatable was specified.
68431         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68432         lib_SOURCES.
68433
68434 2007-03-04  Jim Meyering  <jim@meyering.net>
68435
68436         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68437         Use it consistently, rather than enumerating errno constants.
68438
68439 2007-03-04  Bruno Haible  <bruno@clisp.org>
68440
68441         * modules/xvasprintf-tests: New file.
68442         * tests/test-xvasprintf.c: New file.
68443
68444         * modules/vasprintf-tests: New file.
68445         * tests/test-vasprintf.c: New file.
68446
68447         * modules/vasnprintf-tests: New file.
68448         * tests/test-vasnprintf.c: New file.
68449
68450         * modules/vsnprintf-tests: New file.
68451         * tests/test-vsnprintf.c: New file.
68452
68453         * modules/snprintf-tests: New file.
68454         * tests/test-snprintf.c: New file.
68455
68456 2007-03-04  Bruno Haible  <bruno@clisp.org>
68457
68458         Compile relocatable.c only if --enable-relocatable is specified.
68459         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68460         gl_RELOCATABLE_LIBRARY.
68461         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68462         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68463         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68464         gl_RELOCATABLE_LIBRARY.
68465         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68466         (Makefile.am): Remove lib_SOURCES.
68467         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68468         gl_RELOCATABLE_LIBRARY.
68469         (Makefile.am): Remove lib_SOURCES.
68470         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68471         always.
68472         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68473         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68474
68475 2007-03-04  Bruno Haible  <bruno@clisp.org>
68476
68477         * modules/argmatch-tests: New file.
68478         * tests/test-argmatch.c: New file.
68479
68480         * tests/test-allocsa.c (main): Halve the number of loop runs.
68481
68482         * modules/alloca-opt-tests: New file.
68483         * tests/test-alloca-opt.c: New file.
68484
68485 2007-03-04  Jim Meyering  <jim@meyering.net>
68486
68487         Work around difference between Linux ACLs and Solaris 10 ZFS.
68488         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68489         for EINVAL.
68490
68491 2007-03-03  Bruno Haible  <bruno@clisp.org>
68492
68493         * modules/relocatable-prog (Depends-on): Add back progreloc's
68494         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68495
68496 2007-03-03  Bruno Haible  <bruno@clisp.org>
68497
68498         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68499         * modules/relocatable-lib: New file.
68500
68501 2007-03-03  Bruno Haible  <bruno@clisp.org>
68502
68503         * modules/relocatable-prog: Renamed from modules/relocatable.
68504         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68505
68506 2007-03-03  Bruno Haible  <bruno@clisp.org>
68507
68508         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68509         m4/relocatable-lib.m4.
68510         (Depends-on): Remove 'relocatable'.
68511         (configure.ac): Add gl_RELOCATABLE_NOP.
68512
68513 2007-03-03  Bruno Haible  <bruno@clisp.org>
68514
68515         * modules/relocatable-prog-wrapper: New file.
68516         * modules/relocatable (Depends-on): Add it. Remove all other
68517         dependencies except progname.
68518         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68519
68520         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68521         (gl_FUNC_STRERROR): Nop.
68522         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68523
68524         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68525         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68526
68527         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68528         (gl_FUNC_READLINK): Update.
68529
68530         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68531
68532 2007-03-03  Bruno Haible  <bruno@clisp.org>
68533
68534         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68535         * modules/xreadlink (Depends-on): Add unistd.
68536         * modules/xreadlink-with-size (Depends-on): Likewise.
68537
68538 2007-03-03  Bruno Haible  <bruno@clisp.org>
68539
68540         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68541         extracted from gt_FUNC_SETENV.
68542         (gt_FUNC_SETENV): Remove macro.
68543         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68544         remove gt_FUNC_SETENV.
68545
68546 2007-03-03  Bruno Haible  <bruno@clisp.org>
68547
68548         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68549         ENABLE_RELOCATABLE here.
68550         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68551
68552 2007-03-03  Bruno Haible  <bruno@clisp.org>
68553
68554         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68555         * tests/test-rbtreehash_list.c: Include progname.h.
68556         (main): Call set_program_name.
68557
68558         * modules/rbtree-oset-tests (Depends-on): Add progname.
68559         * tests/test-rbtree_oset.c: Include progname.h.
68560         (main): Call set_program_name.
68561
68562         * modules/rbtree-list-tests (Depends-on): Add progname.
68563         * tests/test-rbtree_list.c: Include progname.h.
68564         (main): Call set_program_name.
68565
68566         * modules/linked-list-tests (Depends-on): Add progname.
68567         * tests/test-linked_list.c: Include progname.h.
68568         (main): Call set_program_name.
68569
68570 2007-03-03  Bruno Haible  <bruno@clisp.org>
68571
68572         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68573         All uses of __restrict changed to _Restrict_.
68574         * lib/glob_.h (__restrict): Remove macro.
68575
68576 2007-03-02  Bruno Haible  <bruno@clisp.org>
68577
68578         * modules/gettext (configure.ac): Require gettext infrastructure
68579         from version 0.16.1.
68580
68581 2007-03-02  Bruno Haible  <bruno@clisp.org>
68582
68583         * modules/linkedhash-list-tests (Depends-on): Add progname.
68584         * tests/test-linkedhash_list.c: Include progname.h.
68585         (main): Call set_program_name.
68586
68587         * modules/carray-list-tests (Depends-on): Add progname.
68588         * tests/test-carray_list.c: Include progname.h.
68589         (main): Call set_program_name.
68590
68591         * modules/avltreehash-list-tests (Depends-on): Add progname.
68592         * tests/test-avltreehash_list.c: Include progname.h.
68593         (main): Call set_program_name.
68594
68595         * modules/avltree-oset-tests (Depends-on): Add progname.
68596         * tests/test-avltree_oset.c: Include progname.h.
68597         (main): Call set_program_name.
68598
68599         * modules/avltree-list-tests (Depends-on): Add progname.
68600         * tests/test-avltree_list.c: Include progname.h.
68601         (main): Call set_program_name.
68602
68603         * modules/array-oset-tests (Depends-on): Add progname.
68604         * tests/test-array_oset.c: Include progname.h.
68605         (main): Call set_program_name.
68606
68607         * modules/array-list-tests (Depends-on): Add progname.
68608         * tests/test-array_list.c: Include progname.h.
68609         (main): Call set_program_name.
68610
68611         * modules/argp-tests (Depends-on): Add progname.
68612         * tests/test-argp.c: Include argp.h first. Include progname.h.
68613         (main): Call set_program_name.
68614
68615 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68616
68617         * doc/gnulib-tool.texi (Initial import): Reword description of
68618         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68619         limited effect even if defined after the first system include.
68620
68621 2007-03-01  Bruno Haible  <bruno@clisp.org>
68622
68623         * build-aux/config.libpath: Update to libtool-1.5.22.
68624         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68625
68626 2007-03-01  Bruno Haible  <bruno@clisp.org>
68627
68628         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68629         foo_CFLAGS.
68630         Reported by Ralf Wildenhues.
68631
68632 2007-03-01  Bruno Haible  <bruno@clisp.org>
68633
68634         * build-aux/install-reloc: Remove object files left over by some
68635         compilers.
68636         Reported by Ralf Wildenhues.
68637
68638 2007-03-01  Bruno Haible  <bruno@clisp.org>
68639
68640         * build-aux/install-reloc: Break long lines.
68641
68642 2007-03-01  Bruno Haible  <bruno@clisp.org>
68643
68644         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68645         Reported by Ralf Wildenhues.
68646
68647 2007-03-01  Bruno Haible  <bruno@clisp.org>
68648
68649         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68650         include ordering constraints.
68651
68652 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68653
68654         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68655         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68656         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68657         as another example.
68658         * lib/time_.h: Fix misspelling.
68659         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68660         Require gl_HEADER_TIME_H_DEFAULTS.
68661         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68662         * m4/time_r.m4 (gl_TIME_R): Likewise.
68663         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68664
68665 2007-03-01  Bruno Haible  <bruno@clisp.org>
68666
68667         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68668         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68669
68670 2007-03-01  Jim Meyering  <jim@meyering.net>
68671
68672         * modules/xreadlink (Maintainer): Add my name.
68673         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68674
68675 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68676             Bruno Haible  <bruno@clisp.org>
68677
68678         * build-aux/install-reloc: Compile also c-ctype.c.
68679         * build-aux/relocatable.sh.in: New file.
68680         * doc/relocatable.texi: New file.
68681         * doc/relocatable-maint.texi: New file.
68682         * doc/gnulib.texi: Include relocatable-maint.texi.
68683         * lib/progreloc.c: Include unistd.h unconditionally.
68684         * lib/relocwrapper.c: Include unistd.h unconditionally.
68685         Include c-ctype.h.
68686         (add_dotbin): Use c_tolower.
68687         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68688         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68689         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68690         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68691         to m4/relocatable-lib.m4.
68692         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68693         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68694         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68695         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68696         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68697         * modules/relocatable: New file.
68698         * modules/relocatable-lib: New file.
68699         * modules/relocatable-script: New file.
68700
68701 2007-02-28  Bruno Haible  <bruno@clisp.org>
68702
68703         Import --enable-relocatable infrastructure.
68704         * build-aux/config.libpath: New file, from GNU gettext.
68705         * build-aux/install-reloc: New file, from GNU gettext.
68706         * build-aux/reloc-ldflags: New file, from GNU gettext.
68707         * lib/relocatable.h: New file, from GNU gettext.
68708         * lib/relocatable.c: New file, from GNU gettext.
68709         * lib/relocwrapper.c: New file, from GNU gettext.
68710         * m4/relocatable.m4: New file, from GNU gettext.
68711
68712 2007-02-28  Bruno Haible  <bruno@clisp.org>
68713
68714         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68715
68716         * modules/xreadlink: New file, from GNU gettext with modifications.
68717         * lib/xreadlink.c: New file, from GNU gettext.
68718         * lib/xreadlink.h: Add comments.
68719         (xreadlink): New declaration.
68720
68721         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68722         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68723         lib/xreadlink-with-size.c.
68724         (configure.ac): Remove gl_XREADLINK invocation.
68725         (Makefile.am): Augment lib_SOURCES.
68726         * m4/xreadlink.m4: Remove file.
68727         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68728         (xreadlink_with_size): Renamed from xreadink.
68729         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68730         * modules/canonicalize (Depends-on): Replace xreadlink with
68731         xreadlink-with-size.
68732         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68733
68734 2007-02-25  Jim Meyering  <jim@meyering.net>
68735
68736         * build-aux/announce-gen: When complaining about excess arguments,
68737         list them.
68738
68739 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68740
68741         * README: Document signed integer overflow situation more
68742         accurately.
68743
68744 2007-02-25  Bruno Haible  <bruno@clisp.org>
68745
68746         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68747         'a' or 'A' conversion.
68748
68749 2007-02-25  Bruno Haible  <bruno@clisp.org>
68750
68751         * modules/filename: Renamed from modules/pathname.
68752         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68753         lib/concatpath.c with lib/concat-filename.c.
68754         (Makefile.am): Update.
68755         (Include): Replace pathname.h with filename.h.
68756         * lib/filename.h: Renamed from lib/pathname.h.
68757         (concatenated_filename): Renamed from concatenated_pathname.
68758         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68759         (concatenated_filename): Renamed from concatenated_pathname.
68760         * lib/findprog.c: Include filename.h instead of pathname.h.
68761         (find_in_path): Update.
68762         * lib/javacomp.c: Include filename.h instead of pathname.h.
68763         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68764         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68765         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68766         is_oldgcj_14_13_usable, is_javac_usable): Update.
68767         * lib/javaexec.c: Include filename.h instead of pathname.h.
68768         (execute_java_class): Update.
68769         * modules/findprog: Update.
68770         * modules/javacomp: Update.
68771         * modules/javaexec: Update.
68772         * MODULES.html.sh (File system functions): Add 'filename', remove
68773         'pathname'.
68774
68775 2007-02-25  Bruno Haible  <bruno@clisp.org>
68776
68777         * modules/printf-frexpl-tests: New file.
68778         * tests/test-printf-frexpl.c: New file.
68779
68780         * modules/printf-frexpl: New file.
68781         * lib/printf-frexpl.h: New file.
68782         * lib/printf-frexpl.c: New file.
68783         * m4/printf-frexpl.m4: New file.
68784
68785 2007-02-25  Bruno Haible  <bruno@clisp.org>
68786
68787         * modules/printf-frexp-tests: New file.
68788         * tests/test-printf-frexp.c: New file.
68789
68790         * modules/printf-frexp: New file.
68791         * lib/printf-frexp.h: New file.
68792         * lib/printf-frexp.c: New file.
68793         * m4/printf-frexp.m4: New file.
68794
68795 2007-02-25  Bruno Haible  <bruno@clisp.org>
68796
68797         Assume automake >= 1.10 for the tests.
68798         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68799         * modules/arctwo-tests: Likewise.
68800         * modules/argp-tests: Likewise.
68801         * modules/avltree-list-tests: Likewise.
68802         * modules/avltree-oset-tests: Likewise.
68803         * modules/avltreehash-list-tests: Likewise.
68804         * modules/carray-list-tests: Likewise.
68805         * modules/crc-tests: Likewise.
68806         * modules/des-tests: Likewise.
68807         * modules/gc-arcfour-tests: Likewise.
68808         * modules/gc-arctwo-tests: Likewise.
68809         * modules/gc-des-tests: Likewise.
68810         * modules/gc-hmac-md5-tests: Likewise.
68811         * modules/gc-hmac-sha1-tests: Likewise.
68812         * modules/gc-md2-tests: Likewise.
68813         * modules/gc-md4-tests: Likewise.
68814         * modules/gc-md5-tests: Likewise.
68815         * modules/gc-pbkdf2-sha1-tests: Likewise.
68816         * modules/gc-rijndael-tests: Likewise.
68817         * modules/gc-sha1-tests: Likewise.
68818         * modules/gc-tests: Likewise.
68819         * modules/getaddrinfo-tests: Likewise.
68820         * modules/hmac-md5-tests: Likewise.
68821         * modules/hmac-sha1-tests: Likewise.
68822         * modules/linked-list-tests: Likewise.
68823         * modules/linkedhash-list-tests: Likewise.
68824         * modules/lock-tests: Likewise.
68825         * modules/md2-tests: Likewise.
68826         * modules/md4-tests: Likewise.
68827         * modules/md5-tests: Likewise.
68828         * modules/rbtree-list-tests: Likewise.
68829         * modules/rbtree-oset-tests: Likewise.
68830         * modules/rbtreehash-list-tests: Likewise.
68831         * modules/read-file-tests: Likewise.
68832         * modules/rijndael-tests: Likewise.
68833         * modules/stdint-tests: Likewise.
68834         * modules/tls-tests: Likewise.
68835
68836 2007-02-24  Bruno Haible  <bruno@clisp.org>
68837
68838         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68839         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68840         function; instead check whether isnan with a double argument links.
68841         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68842         function; instead check whether isnan with a 'long double' argument
68843         links.
68844         Reported by Eric Blake <ebb9@byu.net>.
68845
68846 2007-02-24  Bruno Haible  <bruno@clisp.org>
68847
68848         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68849         defined.
68850         * lib/isnanl.c: Remove all code. Just include isnan.c.
68851         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68852
68853 2007-02-25  Jim Meyering  <jim@meyering.net>
68854
68855         Avoid conflicting types for 'unsetenv' on FreeBSD.
68856         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68857         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68858         in stdlib.h.
68859
68860 2007-02-24  Bruno Haible  <bruno@clisp.org>
68861
68862         * modules/isnanl-nolibm-tests: New file.
68863         * tests/test-isnanl.c: New file.
68864
68865         * modules/isnanl-nolibm: New file.
68866         * lib/isnanl.h: New file.
68867         * lib/isnanl.c: New file.
68868         * m4/isnanl.m4: New file.
68869
68870 2007-02-24  Bruno Haible  <bruno@clisp.org>
68871
68872         * modules/isnan-nolibm-tests: New file.
68873         * tests/test-isnan.c: New file.
68874
68875         * modules/isnan-nolibm: New file.
68876         * lib/isnan.h: New file.
68877         * lib/isnan.c: New file.
68878         * m4/isnan.m4: New file.
68879
68880 2007-02-24  Bruno Haible  <bruno@clisp.org>
68881
68882         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68883         assume that an exponent fits in 20 bits.
68884
68885 2007-02-24  Jim Meyering  <jim@meyering.net>
68886
68887         * m4/regex.m4: Update the description of the configure-time option,
68888         --without-included-regex, to state accurately what the defaults are,
68889         and perhaps to give people an idea why using this option is risky.
68890
68891 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68892
68893         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68894         loops on small arguments.  This attempts to avoid the problem
68895         Bruno Haible reported for AIX 4.3.2 in
68896         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68897
68898 2007-02-23  Bruno Haible  <bruno@clisp.org>
68899
68900         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68901         Needed for help2man.
68902
68903 2007-02-23  Karl Berry  <karl@gnu.org>
68904
68905         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68906         exists, foo.h should be cvs-ignored, not committed.
68907
68908 2007-02-23  Eric Blake  <ebb9@byu.net>
68909
68910         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68911         * lib/stat-time.h (includes): Likewise.
68912         * lib/utimecmp.c (includes): Likewise.
68913         * lib/utimens.h (includes): Likewise.
68914         * lib/getdate.y (includes): Also include "timespec.h" for use
68915         internal to the module.
68916         * modules/utimens (Depends-on): Revert yesterday's patch.
68917         * modules/nanosleep (Depends-on): Add missing dependency.
68918
68919 2007-02-22  Bruno Haible  <bruno@clisp.org>
68920
68921         * lib/glob.c: Don't include getlogin_r.h.
68922
68923 2007-02-22  Jim Meyering  <jim@meyering.net>
68924
68925         * modules/utimens (Depends-on): Add timespec, required for
68926         utimens.h's inclusion of timespec.h.
68927
68928 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68929
68930         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68931         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68932         Schwab in
68933         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68934         I'll try to think of a better way to fix the Solaris problem.
68935
68936         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68937         like glibc; on Solaris 10, it fails with errno == EINVAL.
68938         POSIX says the behavior is unspecified if the first argument is NULL,
68939         so play it safe and never pass NULL to the system getcwd.
68940
68941 2007-02-21  Jim Meyering  <jim@meyering.net>
68942
68943         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68944         of gettimeofday.  It would conflict with the one now always
68945         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68946         an IRIX 6.5 build failure.
68947
68948 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68949
68950         Minor fixups to port to Solaris 10 with Sun C 5.8.
68951         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68952         * modules/getcwd (Depends-on): Add dirfd.
68953         * lib/putenv.c (putenv): #undef it.
68954         (rpl_putenv): New decl.
68955         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68956
68957 2007-02-20  Bruno Haible  <bruno@clisp.org>
68958
68959         * modules/stdio-tests: New file.
68960         * tests/test-stdio.c: New file.
68961
68962         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68963         (Depends-on): Add stdio.
68964         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68965         (Include): Use <stdio.h> instead of vsnprintf.h.
68966         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68967         HAVE_DECL_VSNPRINTF.
68968         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68969
68970         * modules/snprintf (Files): Remove lib/snprintf.h.
68971         (Depends-on): Add stdio.
68972         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68973         (Include): Use <stdio.h> instead of snprintf.h.
68974         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68975         HAVE_DECL_SNPRINTF.
68976         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68977         * lib/getaddrinfo.c: Likewise.
68978
68979         * modules/stdio: New file.
68980         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68981         * lib/snprintf.h: Remove file.
68982         * lib/vsnprintf.h: Remove file.
68983         * lib/.cppi-disable: Remove snprintf.h.
68984         * m4/stdio_h.m4: New file.
68985         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68986
68987 2007-02-20  Jim Meyering  <jim@meyering.net>
68988
68989         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68990         used by e.g., mingw.  From Bruno Haible.
68991
68992 2007-02-19  Bruno Haible  <bruno@clisp.org>
68993
68994         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68995         warnings.
68996         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68997
68998 2007-02-19  Bruno Haible  <bruno@clisp.org>
68999
69000         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69001         from mingw users.
69002
69003 2007-02-19  Bruno Haible  <bruno@clisp.org>
69004
69005         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69006         warnings.
69007         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69008
69009 2007-02-19  Jim Meyering  <jim@meyering.net>
69010
69011         Don't use FD after a successful "fdopendir (fd)".
69012         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69013         Reset it by calling dirfd on the just-obtained DIR*.
69014
69015         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69016         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69017
69018 2007-02-18  Bruno Haible  <bruno@clisp.org>
69019
69020         * lib/readlink.c: Include <unistd.h>.
69021         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69022         HAVE_READLINK.
69023         * modules/readlink (Depends-on): Add unistd.
69024         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69025         (Include): Add <unistd.h>.
69026
69027         * lib/getlogin_r.h: Remove file.
69028         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69029         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69030         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69031         HAVE_DECL_GETLOGIN_R.
69032         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69033         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69034         (Include): Use <unistd.h> instead of getlogin_r.h.
69035
69036         * lib/getcwd.h: Remove file.
69037         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69038         * lib/xgetcwd.c: Likewise.
69039         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69040         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69041         * modules/getcwd (Files): Remove lib/getcwd.h.
69042         (Depends-on): Add unistd.
69043         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69044         (Include): Use <unistd.h> instad of getcwd.h.
69045
69046         * lib/ftruncate.c: Include <unistd.h> first.
69047         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69048         Set HAVE_FTRUNCATE.
69049         * modules/ftruncate (Depends-on): Add unistd.
69050         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69051
69052         * lib/fchdir.c: Include <unistd.h> first.
69053         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69054         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69055         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69056         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69057         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69058
69059         * lib/dup2.c: Include <unistd.h> first.
69060         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69061         HAVE_DUP2.
69062         * modules/dup2 (Depends-on): Add unistd.
69063         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69064
69065         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69066         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69067         REPLACE_CHOWN. Don't define chown as a macro here.
69068         * modules/chown (Depends-on): Add unistd.
69069         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69070
69071         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69072         Add definition for GL_LINK_WARNING.
69073         (chown, dup2): New declarations.
69074         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69075         link warning.
69076         (ftruncate): New declaration.
69077         (getcwd): New declaration, taken from old getcwd.h.
69078         (getlogin_r): New declaration, taken from old getlogin_r.h.
69079         (readlink): New declaration.
69080         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69081         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69082         (gl_PREREQ_UNISTD): Remove macro.
69083         (gl_UNISTD_MODULE_INDICATOR): New macro.
69084         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69085         many new variables. Don't set UNISTD_H.
69086         * modules/unistd (Description): Change.
69087         (Depends-on): Add link-warning.
69088         (configure.ac): Update.
69089         (Makefile.am): Create unistd.h always. Substitute many new variables
69090         into it.
69091
69092 2007-02-18  Bruno Haible  <bruno@clisp.org>
69093
69094         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69095         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69096         HAVE_GETSUBOPT.
69097         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69098         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69099         * lib/getsubopt.h: Remove file.
69100         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69101         (Depends-on): Add stdlib.
69102         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69103         (Includes): Use <stdlib.h> instead of getsubopt.h.
69104         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69105         Set HAVE_GETSUBOPT.
69106         * lib/getsubopt.c: Don't include getsubopt.h.
69107
69108 2007-02-18  Bruno Haible  <bruno@clisp.org>
69109
69110         * modules/fchdir (Depends-on): Add dup2.
69111
69112 2007-02-18  Bruno Haible  <bruno@clisp.org>
69113
69114         * lib/stdlib_.h: Handle glibc's special invocation convention
69115         specially.
69116
69117 2007-02-18  Bruno Haible  <bruno@clisp.org>
69118
69119         * modules/stdlib-tests: New file.
69120         * tests/test-stdlib.c: New file.
69121
69122         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69123         (Depends-on): Add stdlib.
69124         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69125         (Includes): Use <stdlib.h> instead of mkstemp.h.
69126         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69127         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69128         * lib/mkstemp.c: Don't include mkstemp.h.
69129         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69130         * lib/stdlib--.h: Don't include mkstemp.h.
69131
69132         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69133         (Depends-on): Add stdlib.
69134         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69135         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69136         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69137         HAVE_MKDTEMP.
69138         * lib/mkdtemp.c: Don't include mkdtemp.h.
69139         * lib/clean-temp.c: Don't include mkdtemp.h.
69140
69141         * modules/exit (Files): Remove lib/exit.h.
69142         (Depends-on): Add stdlib.
69143         (Makefile.am): Remove lib_SOURCES.
69144         (Include): Use <stdlib.h> instead of exit.h.
69145         * lib/argmatch.c: Don't include exit.h.
69146         * lib/execute.c: Likewise.
69147         * lib/pagealign_alloc.c: Likewise.
69148         * lib/pipe.c: Likewise.
69149         * lib/wait-process.c: Likewise.
69150         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69151         * lib/exitfail.c: Likewise.
69152         * lib/savewd.c: Likewise.
69153         * lib/xsetenv.c: Likewise.
69154
69155         * modules/stdlib: New file.
69156         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69157         and extra comments about mkstemp().
69158         * lib/exit.h: Remove file.
69159         * lib/mkdtemp.h: Remove file.
69160         * lib/mkstemp.h: Remove file.
69161         * m4/stdlib_h.m4: New file.
69162         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69163
69164 2007-02-18  Bruno Haible  <bruno@clisp.org>
69165
69166         * modules/math-tests: New file.
69167         * tests/test-math.c: New file.
69168
69169         * modules/math: New file.
69170         * modules/mathl (Files): Remove lib/mathl.h.
69171         (Depends-on): Add math.
69172         (Makefile.am): Don't mention mathl.h.
69173         (Include): Use <math.h> instead of mathl.h.
69174         * lib/math_.h: New file.
69175         * lib/mathl.h: Remove file.
69176         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69177         mathl.h.
69178         * lib/asinl.c: Likewise.
69179         * lib/atanl.c: Likewise.
69180         * lib/ceill.c: Likewise.
69181         * lib/cosl.c: Likewise.
69182         * lib/expl.c: Likewise.
69183         * lib/floorl.c: Likewise.
69184         * lib/frexpl.c: Likewise.
69185         * lib/ldexpl.c: Likewise.
69186         * lib/logl.c: Likewise.
69187         * lib/sincosl.c: Likewise.
69188         * lib/sinl.c: Likewise.
69189         * lib/sqrtl.c: Likewise.
69190         * lib/tanl.c: Likewise.
69191         * lib/trigl.c: Likewise.
69192         * m4/math_h.m4: New file.
69193         * MODULES.html.sh (Mathematics): Add math.
69194
69195 2007-02-17  Bruno Haible  <bruno@clisp.org>
69196
69197         * modules/wctype-tests: New file.
69198         * tests/test-wctype.c: New file.
69199
69200         * modules/wchar-tests: New file.
69201         * tests/test-wchar.c: New file.
69202
69203         * modules/unistd-tests: New file.
69204         * tests/test-unistd.c: New file.
69205
69206         * modules/time-tests: New file.
69207         * tests/test-time.c: New file.
69208
69209         * modules/sysexits-tests: New file.
69210         * tests/test-sysexits.c: New file.
69211
69212         * modules/sys_time-tests: New file.
69213         * tests/test-sys_time.c: New file.
69214
69215         * modules/sys_stat-tests: New file.
69216         * tests/test-sys_stat.c: New file.
69217
69218         * modules/sys_socket-tests: New file.
69219         * tests/test-sys_socket.c: New file.
69220
69221         * modules/sys_select-tests: New file.
69222         * tests/test-sys_select.c: New file.
69223
69224         * modules/string-tests: New file.
69225         * tests/test-string.c: New file.
69226
69227         * modules/stdbool-tests: New file.
69228         * tests/test-stdbool.c: New file.
69229
69230         * modules/netinet_in-tests: New file.
69231         * tests/test-netinet_in.c: New file.
69232
69233         * modules/inttypes-tests: New file.
69234         * tests/test-inttypes.c: New file.
69235
69236         * modules/fcntl-tests: New file.
69237         * tests/test-fcntl.c: New file.
69238
69239         * modules/byteswap-tests: New file.
69240         * tests/test-byteswap.c: New file.
69241
69242         * modules/arpa_inet-tests: New file.
69243         * tests/test-arpa_inet.c: New file.
69244
69245 2007-02-17  Bruno Haible  <bruno@clisp.org>
69246
69247         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69248         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69249         if the corresponding module is not enabled. Emit link warnings if
69250         the function is used nevertheless.
69251         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69252         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69253         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69254         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69255         * modules/inttypes (Depends-on): Add link-warning.
69256         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69257         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69258         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69259         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69260         * modules/imaxdiv (configure.ac): Likewise.
69261         * modules/strtoimax (configure.ac): Likewise.
69262         * modules/strtoumax (configure.ac): Likewise.
69263
69264 2007-02-17  Bruno Haible  <bruno@clisp.org>
69265
69266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69267         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69268         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69269         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69270
69271 2007-02-17  Bruno Haible  <bruno@clisp.org>
69272
69273         * modules/link-warning: New file.
69274         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69275         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69276         * modules/string (Depends-on): Add link-warning.
69277         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69278         string.h.
69279         * MODULES.html.sh (Support for building libraries and executables): Add
69280         link-warning.
69281
69282 2007-02-17  Bruno Haible  <bruno@clisp.org>
69283
69284         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69285         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69286         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69287         long lines.
69288
69289 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69290             Bruno Haible  <bruno@clisp.org>
69291
69292         * modules/tmpfile: New file.
69293         * lib/tmpfile.c: New file.
69294         * m4/tmpfile.m4: New file.
69295         * MODULES.html.sh (func_all_modules): New section "Input/output".
69296
69297 2007-02-15  Bruno Haible  <bruno@clisp.org>
69298
69299         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69300         (supports_delete_on_close): New function.
69301         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69302
69303 2007-02-14  Bruno Haible  <bruno@clisp.org>
69304
69305         * modules/mbspcasecmp-tests: New file.
69306         * tests/test-mbspcasecmp.sh: New file.
69307         * tests/test-mbspcasecmp.c: New file.
69308
69309         New module mbspcasecmp.
69310         * modules/mbspcasecmp: New file.
69311         * lib/mbspcasecmp.c: New file.
69312         * lib/string_.h (strncasecmp): Change warning message.
69313         (mbspcasecmp): New declaration.
69314         * m4/mbspcasecmp.m4: New file.
69315         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69316         GNULIB_MBSPCASECMP.
69317         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69318         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69319
69320 2007-02-14  Bruno Haible  <bruno@clisp.org>
69321
69322         * modules/mbsncasecmp-tests: New file.
69323         * tests/test-mbsncasecmp.sh: New file.
69324         * tests/test-mbsncasecmp.c: New file.
69325
69326         New module mbsncasecmp.
69327         * modules/mbsncasecmp: New file.
69328         * lib/mbsncasecmp.c: New file.
69329         * lib/string_.h (mbsncasecmp): New declaration.
69330         * m4/mbsncasecmp.m4: New file.
69331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69332         GNULIB_MBSNCASECMP.
69333         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69334         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69335
69336 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69337
69338         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69339         Verify that it doesn't overlap with our flags.
69340         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69341         do not have the desired effect in multibyte locales; instead, use
69342         mbscasecmp.
69343         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69344         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69345         we don't require GNU fnmatch ourselves (if our users require it, they
69346         should do so explicitly).
69347
69348         Fix regex code so it doesn't rely on strcasecmp.
69349         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69350         Otherwise, include gnulib's langinfo.h.
69351         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69352         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69353         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69354         * modules/regex (FILES): Remove m4/codeset.m4.
69355         (Depends-on): Add localcharset.  Remove strcase.
69356
69357 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69358
69359         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69360         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69361
69362 2007-02-13  Bruno Haible  <bruno@clisp.org>
69363
69364         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69365         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69366
69367 2007-02-12  Bruno Haible  <bruno@clisp.org>
69368
69369         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69370         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69371         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69372         time warning rather than a link error.
69373
69374 2007-02-12  Bruno Haible  <bruno@clisp.org>
69375
69376         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69377         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69378         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69379
69380 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69383         args, not 2.
69384
69385 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69386
69387         New module 'time', so that apps can include <time.h> as per
69388         POSIX and GNU instead of separate include files like time_r.h
69389         and timegm.h.  This implementation tries out a simpler approach
69390         for replacing decls in standard include files (as compared to
69391         the string module), somewhat as an experiment.
69392
69393         * config/srclist.txt: Comment out mktime.c for now.
69394         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69395         since it doesn't apply any more.  Use generic wording instead.
69396         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69397         'time'.
69398         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69399         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69400         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69401         Don't include <sys/types.h>; no longer needed since we assume C89.
69402         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69403         * lib/strftime.c: Likewise.
69404         * lib/time_r.c: Likewise.
69405         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69406         * lib/nanosleep.c: Include <time.h> first, to check interface.
69407         * lib/strptime.c: Likewise.
69408         * lib/time_r.c: Likewise.
69409         * lib/timegm.c: Likewise.
69410         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69411         needed.
69412         * lib/timegm.c: Don't include timegm.h; no longer needed.
69413         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69414         time.h now handles any problems in that area.
69415         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69416         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69417         that time.h defines struct timespec.
69418         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69419         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69420         handles that.
69421         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69422         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69423         needed.  Set REPLACE_LOCALTIME.
69424         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69425         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69426         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69427         nanosleep; time_h.m4 now does that.  Don't require
69428         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69429         module handles this now.
69430         * modules/getdate (Depends-on): Remove timespec.  Add time.
69431         * modules/nanosleep (Depends-on): Likewise.
69432         * modules/stat-time (Depends-on): Likewise.
69433         * modules/nanosleep (Include): Include time.h, not timespec.h.
69434         * modules/strptime (Files): Remove lib/strptime.h.
69435         (Depends-on): Add extensions, time.
69436         (Include): Include time.h, not strptime.h.
69437         * modules/time_r (Files): Remove lib/time_r.h.
69438         (Depends-on): Add time.
69439         (Include): Include time.h, not time_r.h.
69440         * modules/timegm: Likewise.
69441         * modules/timespec (Description): Now does timespec-related decls
69442         of our own, instead of struct timespec itself.
69443         (Depends-on): Add time; remove extensions.
69444         (Maintainer): Add self.
69445         * modules/utimecmp (Depends-on): Add time; remove timespec.
69446         * modules/utimens (Depends-on): Likewise.
69447         * modules/xnanosleep (Depends-on): Likewise.
69448
69449 2007-02-11  Bruno Haible  <bruno@clisp.org>
69450
69451         * lib/c-strstr.c: Include allocsa.h.
69452         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69453         * lib/c-strcasestr.c: Include allocsa.h.
69454         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69455         * lib/strcasestr.c: Include allocsa.h.
69456         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69457         * lib/mbsstr.c: Include allocsa.h.
69458         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69459         allocsa/freesa instead of malloc/free.
69460         * lib/mbscasestr.c: Include allocsa.h.
69461         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69462         allocsa/freesa instead of malloc/free.
69463         * modules/c-strstr (Depends-on): Add allocsa.
69464         * modules/c-strcasestr (Depends-on): Likewise.
69465         * modules/strcasestr (Depends-on): Likewise.
69466         * modules/mbsstr (Depends-on): Likewise.
69467         * modules/mbscasestr (Depends-on): Likewise.
69468
69469 2007-02-11  Bruno Haible  <bruno@clisp.org>
69470
69471         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69472
69473         * modules/mbsspn-tests: New file.
69474         * tests/test-mbsspn.sh: New file.
69475         * tests/test-mbsspn.c: New file.
69476
69477 2007-02-11  Bruno Haible  <bruno@clisp.org>
69478
69479         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69480
69481         * modules/mbspbrk-tests: New file.
69482         * tests/test-mbspbrk.sh: New file.
69483         * tests/test-mbspbrk.c: New file.
69484
69485 2007-02-11  Bruno Haible  <bruno@clisp.org>
69486
69487         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69488         unneeded cast.
69489
69490         * modules/mbscspn-tests: New file.
69491         * tests/test-mbscspn.sh: New file.
69492         * tests/test-mbscspn.c: New file.
69493
69494 2007-02-11  Bruno Haible  <bruno@clisp.org>
69495
69496         * modules/mbscasecmp-tests: New file.
69497         * tests/test-mbscasecmp.sh: New file.
69498         * tests/test-mbscasecmp.c: New file.
69499
69500 2007-02-11  Bruno Haible  <bruno@clisp.org>
69501
69502         Ensure O(n) worst-case complexity of mbscasestr.
69503         * lib/mbscasestr.c: Include stdbool.h.
69504         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69505         functions.
69506         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69507         the bookkeeping indicates that it's worth it.
69508         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69509
69510         * modules/mbscasestr-tests: New file.
69511         * tests/test-mbscasestr1.c: New file.
69512         * tests/test-mbscasestr2.sh: New file.
69513         * tests/test-mbscasestr2.c: New file.
69514         * tests/test-mbscasestr3.sh: New file.
69515         * tests/test-mbscasestr3.c: New file.
69516         * tests/test-mbscasestr4.sh: New file.
69517         * tests/test-mbscasestr4.c: New file.
69518         * m4/locale-tr.m4: New file.
69519
69520 2007-02-11  Bruno Haible  <bruno@clisp.org>
69521
69522         Ensure O(n) worst-case complexity of mbsstr.
69523         * lib/mbsstr.c: Include stdbool.h.
69524         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69525         functions.
69526         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69527         bookkeeping indicates that it's worth it.
69528         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69529
69530         * modules/mbsstr-tests: New file.
69531         * tests/test-mbsstr1.c: New file.
69532         * tests/test-mbsstr2.sh: New file.
69533         * tests/test-mbsstr2.c: New file.
69534         * tests/test-mbsstr3.sh: New file.
69535         * tests/test-mbsstr3.c: New file.
69536         * m4/locale-fr.m4: New file.
69537
69538 2007-02-11  Bruno Haible  <bruno@clisp.org>
69539
69540         * lib/mbsrchr.c (mbsrchr): Fix bug.
69541
69542         * modules/mbsrchr-tests: New file.
69543         * tests/test-mbsrchr.sh: New file.
69544         * tests/test-mbsrchr.c: New file.
69545
69546 2007-02-11  Bruno Haible  <bruno@clisp.org>
69547
69548         * lib/mbschr.c (mbschr): Fix bug.
69549
69550         * modules/mbschr-tests: New file.
69551         * tests/test-mbschr.sh: New file.
69552         * tests/test-mbschr.c: New file.
69553         * m4/locale-zh.m4: New file.
69554
69555 2007-02-11  Bruno Haible  <bruno@clisp.org>
69556
69557         Support for copying multibyte string iterators.
69558         * lib/mbiter.h: Include <string.h>.
69559         (mbiter_multi_copy): New function.
69560         (mbi_copy): New macro.
69561         * lib/mbuiter.h: Include <string.h>.
69562         (mbuiter_multi_copy): New function.
69563         (mbui_copy): New macro.
69564
69565 2007-02-11  Bruno Haible  <bruno@clisp.org>
69566
69567         New module mbslen.
69568         * modules/mbslen: New file.
69569         * lib/mbslen.c: New file.
69570         * lib/string_.h (mbslen): New declaration.
69571         * m4/mbslen.m4: New file.
69572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69573         GNULIB_MBSLEN.
69574         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69575         * MODULES.html.sh (Internationalization functions): Add mbslen.
69576
69577 2007-02-11  Bruno Haible  <bruno@clisp.org>
69578
69579         Ensure O(n) worst-case complexity of strcasestr substitute.
69580         * lib/strcasestr.c: Include stdbool.h.
69581         (knuth_morris_pratt): New function.
69582         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69583         bookkeeping indicates that it's worth it.
69584         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69585
69586         * modules/strcasestr-tests: New file.
69587         * tests/test-strcasestr.c: New file.
69588
69589 2007-02-11  Bruno Haible  <bruno@clisp.org>
69590
69591         Ensure O(n) worst-case complexity of c_strcasestr.
69592         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69593         (knuth_morris_pratt): New function.
69594         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69595         the bookkeeping indicates that it's worth it.
69596         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69597
69598         * modules/c-strcasestr-tests: New file.
69599         * tests/test-c-strcasestr.c: New file.
69600
69601 2007-02-11  Bruno Haible  <bruno@clisp.org>
69602
69603         Ensure O(n) worst-case complexity of c_strstr.
69604         * lib/c-strstr.c: Include stdbool.h, string.h.
69605         (knuth_morris_pratt): New function.
69606         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69607         bookkeeping indicates that it's worth it.
69608         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69609
69610         * lib/c-strstr.c: Complete rewrite for maintainability.
69611
69612         * modules/c-strstr-tests: New file.
69613         * tests/test-c-strstr.c: New file.
69614
69615 2007-02-11  Bruno Haible  <bruno@clisp.org>
69616
69617         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69618         5.2.1 and earlier, whereby \055 was treated just like the range
69619         delimiter '-'.
69620         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69621
69622 2007-02-08  Bruno Haible  <bruno@clisp.org>
69623
69624         * modules/regex (Depends-on): Add stdbool.
69625         Reported by Dalibor Topic <robilad@kaffe.org>.
69626
69627 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69628
69629         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69630         Prefer returning from main to exiting from it.
69631         Remove unnecessary parens after sizeof.
69632
69633 2007-02-05  Bruno Haible  <bruno@clisp.org>
69634
69635         New module mbssep.
69636         * modules/mbssep: New file.
69637         * lib/mbssep.c: New file.
69638         * lib/string_.h (strsep): Add a conditional link warning.
69639         (mbssep): New declaration.
69640         * m4/mbssep.m4: New file.
69641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69642         GNULIB_MBSSEP.
69643         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69644         * MODULES.html.sh (Internationalization functions): Add mbssep.
69645
69646 2007-02-05  Bruno Haible  <bruno@clisp.org>
69647
69648         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69649         Optimize search in case of 1 delimiter.
69650
69651 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69652
69653         * lib/acl.h: Include sys/types.h before sys/acl.h.
69654
69655 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69656
69657         Merge upstream fix for glibc bugzilla #3957:
69658
69659         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69660
69661         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69662         bit for RE_HAT_LISTS_NOT_NEWLINE.
69663         (build_charclass_op): Remove bogus comment.
69664
69665 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69666
69667         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69668
69669 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69670
69671         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69672         * lib/memmem.c [!defined _LIBC]: Include config.h.
69673
69674 2007-02-04  Bruno Haible  <bruno@clisp.org>
69675
69676         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69677         warning message.
69678
69679 2007-02-04  Bruno Haible  <bruno@clisp.org>
69680
69681         New module mbstok_r.
69682         * modules/mbstok_r: New file.
69683         * lib/mbstok_r.c: New file.
69684         * lib/string_.h (strtok_r): Change argument names to match the
69685         comments. Add a conditional link warning.
69686         (mbstok_r): New declaration.
69687         * m4/mbstok_r.m4: New file.
69688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69689         GNULIB_MBSTOK_R.
69690         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69691         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69692
69693 2007-02-04  Bruno Haible  <bruno@clisp.org>
69694
69695         New module mbsspn.
69696         * modules/mbsspn: New file.
69697         * lib/mbsspn.c: New file.
69698         * lib/string_.h (strspn): Add a conditional link warning.
69699         (mbsspn): New declaration.
69700         * m4/mbsspn.m4: New file.
69701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69702         GNULIB_MBSSPN.
69703         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69704         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69705
69706 2007-02-04  Bruno Haible  <bruno@clisp.org>
69707
69708         New module mbspbrk.
69709         * modules/mbspbrk: New file.
69710         * lib/mbspbrk.c: New file.
69711         * lib/string_.h (strpbrk): Add a conditional link warning.
69712         (mbspbrk): New declaration.
69713         * m4/mbspbrk.m4: New file.
69714         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69715         GNULIB_MBSPBRK.
69716         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69717         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69718
69719 2007-02-04  Bruno Haible  <bruno@clisp.org>
69720
69721         New module mbscspn.
69722         * modules/mbscspn: New file.
69723         * lib/mbscspn.c: New file.
69724         * lib/string_.h (strcspn): Add a conditional link warning.
69725         (mbscspn): New declaration.
69726         * m4/mbscspn.m4: New file.
69727         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69728         GNULIB_MBSCSPN.
69729         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69730         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69731
69732 2007-02-04  Bruno Haible  <bruno@clisp.org>
69733
69734         New module mbscasestr, reduced goal of strcasestr.
69735         * modules/mbscasestr: New file.
69736         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69737         (mbscasestr): Renamed from strcasestr.
69738         * lib/strcasestr.c: Don't include mbuiter.h.
69739         (strcasestr): Remove support for multibyte locales.
69740         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69741         Change the conditional link warning.
69742         (mbscasestr): New declaration.
69743         * m4/mbscasestr.m4: New file.
69744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69745         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69746         REPLACE_STRCASESTR.
69747         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69748         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69749         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69750         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69751         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69752         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69753         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69754         (Depends-on): Remove mbuiter.
69755         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69756
69757 2007-02-04  Bruno Haible  <bruno@clisp.org>
69758
69759         Simplify handling of strncasecmp.
69760         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69761         the conditional link warning.
69762         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69763         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69764         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69765         * modules/strcase (configure.ac): Don't invoke
69766         gl_STRING_MODULE_INDICATOR.
69767         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69768
69769 2007-02-04  Bruno Haible  <bruno@clisp.org>
69770
69771         New module mbscasecmp, reduced goal of strcasecmp.
69772         * modules/mbscasecmp: New file.
69773         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69774         (mbscasecmp): Renamed from strcasecmp.
69775         * lib/strcasecmp.c: Don't include mbuiter.h.
69776         (strcasecmp): Remove support for multibyte locales.
69777         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69778         Change the conditional link warning.
69779         (mbscasecmp): New declaration.
69780         * m4/mbscasecmp.m4: New file.
69781         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69782         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69783         REPLACE_STRCASECMP.
69784         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69785         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69786         GNULIB_MBSCASECMP.
69787         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69788         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69789         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69790         (Depends-on): Remove mbuiter.
69791         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69792
69793 2007-02-04  Bruno Haible  <bruno@clisp.org>
69794
69795         New module mbsstr. Remove module strstr.
69796         * modules/mbsstr: New file.
69797         * modules/strstr: Remove file.
69798         * lib/mbsstr.c: Renamed from lib/strstr.c.
69799         (mbsstr): Renamed from strstr.
69800         * lib/string_.h (strstr): Remove declaration. Change the conditional
69801         link warning.
69802         (mbsstr): New declaration.
69803         * m4/mbsstr.m4: New file.
69804         * m4/strstr.m4: Remove file.
69805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69806         REPLACE_STRSTR.
69807         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69808         Don't initialize GNULIB_STRSTR.
69809         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69810         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69811         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69812         (Support for systems lacking ANSI C 89): Remove strstr.
69813
69814 2007-02-04  Bruno Haible  <bruno@clisp.org>
69815
69816         New module mbsrchr.
69817         * modules/mbsrchr: New file.
69818         * lib/mbsrchr.c: New file.
69819         * lib/string_.h (strrchr): Add a conditional link warning.
69820         (mbsrchr): New declaration.
69821         * m4/mbsrchr.m4: New file.
69822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69823         GNULIB_MBSRCHR.
69824         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69825         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69826
69827 2007-02-04  Bruno Haible  <bruno@clisp.org>
69828
69829         New module mbschr.
69830         * modules/mbschr: New file.
69831         * lib/mbschr.c: New file.
69832         * lib/string_.h (strchr): Add a conditional link warning.
69833         (mbschr): New declaration.
69834         * m4/mbschr.m4: New file.
69835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69836         GNULIB_MBSCHR.
69837         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69838         * MODULES.html.sh (Internationalization functions): Add mbschr.
69839
69840 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69841
69842         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69843
69844         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69845
69846 2007-02-04  Bruno Haible  <bruno@clisp.org>
69847
69848         New module description section 'configure.ac-early'.
69849         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69850         (func_get_autoconf_early_snippet): New function.
69851         (func_import, func_create_testdir): Use it. Remove special cases for
69852         modules 'extensions' and 'lock'.
69853         * modules/extensions (configure.ac-early): Require
69854         gl_USE_SYSTEM_EXTENSIONS.
69855         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69856
69857 2007-02-04  Bruno Haible  <bruno@clisp.org>
69858
69859         Make use of gcj-4.3's -fsource and -ftarget option.
69860         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69861         and if so try the options -fsource and -ftarget.
69862         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69863         source_version, ftarget_option, target_version arguments.
69864         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69865         (is_envjavac_oldgcj_14_14_usable): Renamed from
69866         is_envjavac_gcj_14_14_usable.
69867         (is_envjavac_oldgcj_14_13_usable): Renamed from
69868         is_envjavac_gcj_14_13_usable.
69869         (is_gcj_present): Update.
69870         (is_gcj_43, is_gcj43_usable): New functions.
69871         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69872         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69873         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69874         try the options -fsource and -ftarget.
69875
69876 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69877
69878         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69879         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69880         larger value.
69881
69882 2007-02-03  Jim Meyering  <jim@meyering.net>
69883
69884         Give tools a better chance to allocate space for very large buffers.
69885         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69886
69887         Make pwd and readlink work also when run with an unreadable parent dir
69888         on systems with openat support.
69889         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69890         provided getcwd function, even when we have openat support.
69891         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69892
69893 2007-02-02  Bruno Haible  <bruno@clisp.org>
69894
69895         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69896         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69897         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69898         portability problems if one of these functions is only used on specific
69899         platforms.
69900         Reported by Paul Eggert.
69901
69902 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69905         is causing more trouble than it's curing.
69906         * lib/regex_internal.h (__mempcpy): Remove.
69907         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69908         (and make the code a tad smaller to boot).
69909         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69910
69911 2007-02-02  Jim Meyering  <jim@meyering.net>
69912
69913         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69914         section, not in the Makefile.am: one.
69915
69916 2007-02-02  Eric Blake  <ebb9@byu.net>
69917
69918         * lib/strchrnul.c: Always include config.h first.
69919
69920         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69921         gnulib strstr is not necessary here.
69922
69923 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69924
69925         * m4/socklen.m4: Fix typo.
69926
69927 2007-02-02  Eric Blake  <ebb9@byu.net>
69928
69929         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69930         * modules/netinet_in (Makefile.am): Likewise.
69931
69932 2007-02-01  Bruno Haible  <bruno@clisp.org>
69933
69934         * lib/string_.h (GL_LINK_WARNING): New macro.
69935         (strcasecmp, strstr, strcasestr): If provided by the system,
69936         conditionally define as a macro that leads to a warning instead of to
69937         an error.
69938         (strncasecmp): Conditionally define as a macro that leads to a warning.
69939
69940 2007-02-01  Karl Berry  <karl@gnu.org>
69941
69942         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69943
69944 2007-02-01  Bruno Haible  <bruno@clisp.org>
69945
69946         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69947         renamings.
69948
69949 2007-02-01  Eric Blake  <ebb9@byu.net>
69950
69951         * modules/regex (Depends-on): Revert dependence on mempcpy.
69952         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69953         module's definition of mempcpy.
69954         Reported by Paul Eggert.
69955
69956 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69957
69958         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69959         the symbol XYZ before redefining it.  This fixes a problem with
69960         programs that don't use XYZ, when compiled on systems that define
69961         XYZ to something else.
69962
69963 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69964
69965         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69966         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69967         writeable to group or other and (2) is intended to have a special
69968         mode bit that is set or cleared.  In such a case, the directory
69969         should be neither group- nor other-writeable until the special
69970         mode bits are right.
69971
69972 2007-01-31  Eric Blake  <ebb9@byu.net>
69973
69974         * modules/mountlist (Depends-on): Add strstr.
69975
69976         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69977         bug.
69978         * modules/string (Makefile.am): Remove redundant replacement.
69979         * modules/regex (Depends-on): Add mempcpy.
69980
69981 2007-01-31  Bruno Haible  <bruno@clisp.org>
69982
69983         New module description field 'Link'.
69984         * gnulib-tool (func_usage): Document --extract-link-directive.
69985         (sed_extract_prog): Recognize 'Link' directive.
69986         (func_get_link_directive): New function.
69987         (func_import): Show summary of link directives.
69988         Handle --extract-link-directive option.
69989         * modules/acl (Link): New section.
69990         * modules/clock-time (Link): New section.
69991         * modules/euidaccess (Link): New section.
69992         * modules/gettext (Link): New section.
69993         * modules/iconv (Link): New section.
69994         * modules/lock (Link): New section.
69995         * modules/nanosleep (Link): New section.
69996         * modules/readline (Link): New section.
69997
69998 2007-01-27  Bruno Haible  <bruno@clisp.org>
69999
70000         Enforce the use of gnulib modules for unportable <string.h> functions.
70001         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70002         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70003         (gl_HEADER_STRING_H_BODY): Require it.
70004         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70005         the symbol XYZ to one that gives a link error.
70006         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70007         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70008         * modules/mempcpy (configure.ac): Likewise.
70009         * modules/memrchr (configure.ac): Likewise.
70010         * modules/stpcpy (configure.ac): Likewise.
70011         * modules/stpncpy (configure.ac): Likewise.
70012         * modules/strcase (configure.ac): Likewise.
70013         * modules/strcasestr (configure.ac): Likewise.
70014         * modules/strchrnul (configure.ac): Likewise.
70015         * modules/strdup (configure.ac): Likewise.
70016         * modules/strndup (configure.ac): Likewise.
70017         * modules/strnlen (configure.ac): Likewise.
70018         * modules/strpbrk (configure.ac): Likewise.
70019         * modules/strsep (configure.ac): Likewise.
70020         * modules/strstr (configure.ac): Likewise.
70021         * modules/strtok_r (configure.ac): Likewise.
70022
70023 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70024
70025         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70026
70027 2007-01-30  Jim Meyering  <jim@meyering.net>
70028
70029         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70030
70031 2007-01-29  Bruno Haible  <bruno@clisp.org>
70032
70033         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70034         * lib/execute.c: Likewise.
70035         * lib/pipe.c: Likewise.
70036         * lib/printf-args.h: Likewise.
70037         * lib/printf-args.c: Likewise.
70038         * lib/printf-parse.c: Likewise.
70039         * lib/vasnprintf.c: Likewise.
70040
70041 2007-01-29  Eric Blake  <ebb9@byu.net>
70042
70043         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70044         declaration.
70045
70046 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70047
70048         * lib/strptime.h (strptime): Use 'restrict' for args where
70049         POSIX requires this.
70050         * lib/strptime.c (strptime): Likewise.
70051         Change license notice from LGPL to GPL, since gnulib-tool will
70052         change this as needed.
70053         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70054         defined.
70055         Include "strptime.h" first, to check interface.
70056         Do not #undef _LIBC and _NL_CURRENT.
70057         Do not include <stdlib.h>; no longer needed.
70058         Include "time_r.h" and declare ptime_locale_status
70059         only if _LIBC is not defined.
70060         (__P): Remove unused macro.
70061         (match_string): Bring back glibc version, but use it only if _LIBC
70062         is defined.
70063         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70064         Remove unnecessary assertion and abort() call.
70065         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70066         * m4/strptime.m4: Fix serial number comment.
70067         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70068         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70069         (Depends-on): Add time_r.
70070
70071 2007-01-29  Bruno Haible  <bruno@clisp.org>
70072
70073         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70074         strptime.
70075         * modules/strptime (Depends-on): Add stdbool.
70076         * lib/strptime.h: Include <time.h> always. Add comments.
70077
70078 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70079
70080         * modules/strptime: New file.
70081         * lib/strptime.h: New file.
70082         * lib/strptime.c: New file.
70083         * m4/strptime.m4: New file.
70084
70085 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         * MODULES.html.sh: New module mpsort.
70088         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70089
70090         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70091         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70092         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70093         All uses changed.
70094         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70095         All uses changed.
70096         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70097         to _Restrict_.
70098         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70099         the parameter matches the prototype.
70100
70101 2007-01-28  Jim Meyering  <jim@meyering.net>
70102
70103         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70104         sys/time.h here, reverting that part of the previous patch:
70105         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70106
70107 2007-01-28  Bruno Haible  <bruno@clisp.org>
70108
70109         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70110         value of $(SYS_TIME_H).
70111         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70112         remove it conditionally, too. [added by Jim Meyering]
70113         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70114         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70115         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70116         GETTIMEOFDAY_REPLACEMENT to 1.
70117
70118 2007-01-28  Bruno Haible  <bruno@clisp.org>
70119
70120         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70121         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70123         Set UNISTD_H instead of UNISTD_H2.
70124         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70125
70126 2007-01-28  Bruno Haible  <bruno@clisp.org>
70127
70128         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70129         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70130
70131 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70132
70133         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70134         (func_create_testdir): Ensure C locale for `grep' and `tr'
70135         character ranges.
70136         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70137         ACLOCAL_AMFLAGS parsing state machine.
70138
70139 2007-01-27  Bruno Haible  <bruno@clisp.org>
70140
70141         * modules/unistr/base: Update.
70142
70143 2007-01-27  Bruno Haible  <bruno@clisp.org>
70144
70145         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70146         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70147         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70148         modules/unistr/u32-mbtouc.
70149         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70150         * lib/unistr.h: Update.
70151         * lib/linebreak.c: Update.
70152         * modules/unistr/u32-mbtouc: Renamed from
70153         modules/unistr/u32-mbtouc-safe.
70154         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70155         * lib/unistr.h: Update.
70156         * lib/unistr/u32-to-u8.c: Update.
70157         * lib/unistr/u32-to-u16.c: Update.
70158
70159 2007-01-27  Bruno Haible  <bruno@clisp.org>
70160
70161         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70162         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70163         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70164         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70165         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70166         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70167         modules/unistr/u16-mbtouc.
70168         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70169         * lib/unistr.h: Update.
70170         * lib/linebreak.c: Update.
70171         * modules/linebreak: Update.
70172         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70173         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70174         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70175         * modules/unistr/u16-mbtouc: Renamed from
70176         modules/unistr/u16-mbtouc-safe.
70177         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70178         * lib/unistr.h: Update.
70179         * lib/unistr/u16-to-u8.c: Update.
70180         * modules/unistr/u16-to-u8: Update.
70181         * lib/unistr/u16-to-u32.c: Update.
70182         * modules/unistr/u16-to-u32: Update.
70183
70184 2007-01-27  Bruno Haible  <bruno@clisp.org>
70185
70186         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70187         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70188         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70189         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70190         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70191         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70192         modules/unistr/u8-mbtouc.
70193         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70194         * lib/unistr.h: Update.
70195         * lib/striconveh.c: Update.
70196         * modules/striconveh: Update.
70197         * lib/linebreak.c: Update.
70198         * modules/linebreak: Update.
70199         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70200         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70201         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70202         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70203         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70204         * lib/unistr.h: Update.
70205         * lib/striconveh.c: Update.
70206         * modules/striconveh: Update.
70207         * lib/unistr/u8-to-u16.c: Update.
70208         * modules/unistr/u8-to-u16: Update.
70209         * lib/unistr/u8-to-u32.c: Update.
70210         * modules/unistr/u8-to-u32: Update.
70211
70212 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70213
70214         Sync from Libtool.
70215         * lib/argz.c: Do not include strings.h nor memory.h, include
70216         string.h unconditionally.  Patch by Simon Josefsson.
70217
70218 2007-01-27  Bruno Haible  <bruno@clisp.org>
70219
70220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70221         from gl_HEADER_STRING_H_BODY.
70222         (gl_HEADER_STRING_H_BODY): Require it.
70223         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70224         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70225         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70226         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70227         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70228         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70229         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70230         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70231         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70232         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70233         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70234         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70235         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70236         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70237         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70238
70239 2007-01-27  Bruno Haible  <bruno@clisp.org>
70240
70241         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70242         check_PROGRAMS into noinst_PROGRAMS.
70243         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70244         check_PROGRAMS in this case.
70245         (func_import): Set for_test to false.
70246         (func_create_testdir): Set for_test to true.
70247
70248 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70249             Bruno Haible  <bruno@clisp.org>
70250
70251         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70252         (Depends-on): Add string.
70253         (Includes): Use <string.h> instead of strcasestr.h.
70254         * modules/string (Makefile.am): Also substitute the value of
70255         REPLACE_STRCASESTR.
70256         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70257         assume strcasestr is declared in <string.h> not <strings.h>. Also
70258         set REPLACE_STRCASESTR.
70259         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70260         REPLACE_STRCASESTR.
70261         * lib/strcasestr.h: Remove file.
70262         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70263         * lib/string_.h (strcasestr): New declaration.
70264
70265 2007-01-27  Bruno Haible  <bruno@clisp.org>
70266
70267         * lib/string_.h: Use 'extern'.
70268
70269 2007-01-27  Jim Meyering  <jim@meyering.net>
70270
70271         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70272         of set-but-not-used local, "q".
70273
70274         * lib/mempcpy.c: Include <config.h> before <string.h>.
70275         This fixes a compilation error on HP-UX, due to the system's
70276         "restrict"-using mempcpy prototype.
70277
70278 2007-01-26  Bruno Haible  <bruno@clisp.org>
70279
70280         Small optimization.
70281         * lib/javacomp.c: Include c-strstr.h.
70282          (is_envjavac_gcj): Use c_strstr instead of strstr.
70283         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70284
70285 2007-01-26  Bruno Haible  <bruno@clisp.org>
70286
70287         * MODULES.html.sh (Unicode string functions): Add the new modules.
70288
70289         * modules/uniconv/u32-strconv-to-locale: New file.
70290         * lib/uniconv/u32-strconv-to-locale.c: New file.
70291
70292         * modules/uniconv/u16-strconv-to-locale: New file.
70293         * lib/uniconv/u16-strconv-to-locale.c: New file.
70294
70295         * modules/uniconv/u8-strconv-to-locale: New file.
70296         * lib/uniconv/u8-strconv-to-locale.c: New file.
70297
70298         * modules/uniconv/u32-strconv-from-locale: New file.
70299         * lib/uniconv/u32-strconv-from-locale.c: New file.
70300
70301         * modules/uniconv/u16-strconv-from-locale: New file.
70302         * lib/uniconv/u16-strconv-from-locale.c: New file.
70303
70304         * modules/uniconv/u8-strconv-from-locale: New file.
70305         * lib/uniconv/u8-strconv-from-locale.c: New file.
70306
70307         * modules/uniconv/u32-strconv-to-enc: New file.
70308         * lib/uniconv/u32-strconv-to-enc.c: New file.
70309         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70310         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70311
70312         * modules/uniconv/u16-strconv-to-enc: New file.
70313         * lib/uniconv/u16-strconv-to-enc.c: New file.
70314         * lib/uniconv/u-strconv-to-enc.h: New file.
70315         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70316         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70317
70318         * modules/uniconv/u8-strconv-to-enc: New file.
70319         * lib/uniconv/u8-strconv-to-enc.c: New file.
70320         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70321         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70322
70323         * modules/uniconv/u32-strconv-from-enc: New file.
70324         * lib/uniconv/u32-strconv-from-enc.c: New file.
70325         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70326         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70327
70328         * modules/uniconv/u16-strconv-from-enc: New file.
70329         * lib/uniconv/u16-strconv-from-enc.c: New file.
70330         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70331         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70332
70333         * modules/uniconv/u8-strconv-from-enc: New file.
70334         * lib/uniconv/u8-strconv-from-enc.c: New file.
70335         * lib/uniconv/u-strconv-from-enc.h: New file.
70336         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70337         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70338
70339         * modules/uniconv/u32-conv-from-enc: New file.
70340         * lib/uniconv/u32-conv-from-enc.c: New file.
70341         * modules/uniconv/u32-conv-from-enc-tests: New file.
70342         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70343
70344         * modules/uniconv/u16-conv-from-enc: New file.
70345         * lib/uniconv/u16-conv-from-enc.c: New file.
70346         * lib/uniconv/u-conv-from-enc.h: New file.
70347         * modules/uniconv/u16-conv-from-enc-tests: New file.
70348         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70349
70350         * modules/uniconv/u8-conv-from-enc: New file.
70351         * lib/uniconv/u8-conv-from-enc.c: New file.
70352         * modules/uniconv/u8-conv-from-enc-tests: New file.
70353         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70354
70355         * modules/uniconv/base: New file.
70356         * lib/uniconv.h: New file.
70357
70358 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70359
70360         * doc/gnulib-tool.texi (Initial import): Update to match current
70361         behavior with strdup module.
70362         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70363         * lib/memmem.h: Remove; all uses removed.  This is now done
70364         by <string.h>.
70365         * lib/mempcpy.h: Likewise.
70366         * lib/memrchr.h: Likewise.
70367         * lib/stpcpy.h: Likewise.
70368         * lib/stpncpy.h: Likewise.
70369         * lib/strcase.h: Likewise.
70370         * lib/strchrnul.h: Likewise.
70371         * lib/strdup.h: Likewise.
70372         * lib/strndup.h: Likewise.
70373         * lib/strnlen.h: Likewise.
70374         * lib/strpbrk.h: Likewise.
70375         * lib/strsep.h: Likewise.
70376         * lib/strstr.h: Likewise.
70377         * lib/strtok_r.h: Likewise.
70378         * lib/string_.h: New file.
70379         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70380         Rely on <string.h> instead.
70381         * lib/canon-host.c: Likewise.
70382         * lib/chdir-long.c: Likewise.
70383         * lib/concatpath.c: Likewise.
70384         * lib/exclude.c: Likewise.
70385         * lib/fchdir.c: Likewise.
70386         * lib/getaddrinfo.c: Likewise.
70387         * lib/getcwd.c: Likewise.
70388         * lib/getsubopt.c: Likewise.
70389         * lib/glob.c: Likewise.
70390         * lib/hard-locale.c: Likewise.
70391         * lib/iconvme.c: Likewise.
70392         * lib/javacomp.c: Likewise.
70393         * lib/mempcpy.c: Likewise.
70394         * lib/memrchr.c: Likewise.
70395         * lib/regex_internal.h: Likewise.
70396         * lib/stpncpy.c: Likewise.
70397         * lib/strcasecmp.c: Likewise.
70398         * lib/strchrnul.c: Likewise.
70399         * lib/strdup.c: Likewise.
70400         * lib/striconv.c: Likewise.
70401         * lib/striconveh.c: Likewise.
70402         * lib/striconveha.c: Likewise.
70403         * lib/strncasecmp.c: Likewise.
70404         * lib/strndup.c: Likewise.
70405         * lib/strnlen.c: Likewise.
70406         * lib/strsep.c: Likewise.
70407         * lib/strstr.c: Likewise.
70408         * lib/strtok_r.c: Likewise.
70409         * lib/userspec.c: Likewise.
70410         * lib/w32spawn.h: Likewise.
70411         * lib/xstrndup.c: Likewise.
70412         * lib/mountlist.c (strstr): Remove decl.
70413         * m4/string_h.m4: New file.
70414         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70415         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70416         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70417         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70418         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70419         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70420         Set REPLACE_STRCASECMP if necessary.
70421         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70422         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70423         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70424         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70425         HAVE_DECL_STRDUP if necessary.
70426         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70427         since gl_FUNC_STRNDUP does that now.
70428         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70429         Check for decl here...
70430         (gl_PREREQ_STRNLEN): ... not here.
70431         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70432         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70433         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70434         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70435         necessary.
70436         * modules/string: New file.
70437         * modules/memmem (Files): Remove special-purpose include file.
70438         (Depends-on): Add string.
70439         (Include): Include <string.h>, not the removed file.
70440         * modules/mempcpy: Likewise.
70441         * modules/memrchr: Likewise.
70442         * modules/stpcpy: Likewise.
70443         * modules/stpncpy: Likewise.
70444         * modules/strcase: Likewise.
70445         * modules/strchrnul: Likewise.
70446         * modules/strdup: Likewise.
70447         * modules/strndup: Likewise.
70448         * modules/strnlen: Likewise.
70449         * modules/strpbrk: Likewise.
70450         * modules/strsep: Likewise.
70451         * modules/strstr: Likewise.
70452         * modules/strtok_r: Likewise.
70453         * tests/test-dirname.c: Don't include "strdup.h", since
70454         <string.h> now suffices.
70455         * tests/test-memmem.c: Don't include "memmem.h", since
70456         <string.h> now suffices.
70457
70458 2007-01-25  Bruno Haible  <bruno@clisp.org>
70459
70460         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70461         *resultp is 0.
70462
70463         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70464         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70465         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70466         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70467
70468         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70469         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70470         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70471         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70472         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70473         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70474
70475 2007-01-24  Bruno Haible  <bruno@clisp.org>
70476
70477         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70478         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70479         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70480         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70481         gl_FUNC_FTS_CORE.
70482         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70483         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70484         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70485         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70486         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70487         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70488         gl_FUNC_FCHOWNAT.
70489         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70490         gl_FUNC_STRFTIME.
70491         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70492         Reported by Ralf Wildenhues.
70493
70494 2007-01-24  Bruno Haible  <bruno@clisp.org>
70495
70496         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70497         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70498         gl_GETADDRINFO.
70499         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70500         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70501         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70502
70503 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70504
70505         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70506         Don't use 'exit'; just return from 'main'.
70507         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70508
70509         * lib/fnmatch_.h: Readjust white space and comments to match
70510         glibc, to avoid spurious diffs.
70511
70512 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70513
70514         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70515         2004-12-01 change by Jakub Jelinek, since this code won't compile
70516         if !LIBC.  Problem reported by Bob Proulx.
70517
70518 2007-01-23  Bruno Haible  <bruno@clisp.org>
70519
70520         * lib/striconveh.c: Include c-strcaseeq.h.
70521         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70522         * modules/striconveh (Depends-on): Add c-strcaseeq.
70523
70524 2007-01-23  Bruno Haible  <bruno@clisp.org>
70525
70526         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70527
70528         * modules/c-strcaseeq: New file.
70529         * lib/c-strcaseeq.h: New file.
70530
70531         * modules/streq: New file.
70532         * lib/streq.h: New file.
70533
70534 2007-01-23  Bruno Haible  <bruno@clisp.org>
70535
70536         * modules/striconveha-tests: New file.
70537         * tests/test-striconveha.c: New file.
70538
70539         * lib/striconveha.h: Include <stdbool.h>.
70540         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70541         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70542         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70543         (mem_iconveha): New function.
70544         (str_iconveha_notranslit): Renamed from str_iconveha.
70545         (str_iconveha): New function.
70546         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70547         c-strcase.
70548
70549 2007-01-23  Bruno Haible  <bruno@clisp.org>
70550
70551         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70552         encodings without forgiving before trying any encoding with handler.
70553         (str_iconveha): Try all encodings without forgiving before trying any
70554         encoding with handler.
70555
70556 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70557
70558         Import the following changes from libc.
70559
70560         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70561
70562         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70563
70564         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70565
70566         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70567         normal_bracket label.
70568
70569         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70570
70571         [BZ #361]
70572         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70573         to normal_bracket after fetching the next character.
70574
70575 2007-01-22  Bruno Haible  <bruno@clisp.org>
70576
70577         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70578         argument.
70579         * lib/striconveh.c (iconv_carefully_1): New function.
70580         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70581         argument.
70582         (str_cd_iconveh): Update.
70583         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70584         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70585         * tests/test-striconveh.c (MAGIC): New macro.
70586         (new_offsets): New function.
70587         (main): Test call with and without offsets.
70588
70589 2007-01-22  Bruno Haible  <bruno@clisp.org>
70590
70591         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70592         * modules/sys_select (Makefile.am): Likewise.
70593         * modules/sys_socket (Makefile.am): Likewise.
70594         * modules/sys_time (Makefile.am): Likewise.
70595
70596 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70597
70598         * modules/gettimeofday (License): Change from GPL to LGPL, since
70599         gettimeofday is a library function.
70600
70601 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70602
70603         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70604
70605 2007-01-21  Bruno Haible  <bruno@clisp.org>
70606
70607         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70608
70609 2007-01-21  Bruno Haible  <bruno@clisp.org>
70610
70611         * modules/striconveha: New file.
70612         * lib/striconveha.h: New file.
70613         * lib/striconveha.c: New file.
70614         * MODULES.html.sh (Internationalization functions): Add striconveha.
70615         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70616         string.
70617         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70618
70619 2007-01-21  Bruno Haible  <bruno@clisp.org>
70620
70621         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70622         * lib/striconveh.c (str_iconveh): Likewise.
70623
70624 2007-01-21  Bruno Haible  <bruno@clisp.org>
70625
70626         * lib/striconveh.h (mem_iconveh): New declaration.
70627         * lib/striconveh.c (mem_iconveh): New function.
70628         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70629
70630 2007-01-21  Bruno Haible  <bruno@clisp.org>
70631
70632         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70633
70634         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70635         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70636         original result buffer.
70637         (str_cd_iconveh): Update.
70638         * tests/test-striconveh.c (main): Update.
70639
70640         * lib/striconv.h (mem_cd_iconv): Change specification.
70641         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70642         result buffer.
70643         (str_cd_iconv): Update.
70644         * tests/test-striconv.c (main): Update.
70645
70646 2007-01-21  Bruno Haible  <bruno@clisp.org>
70647
70648         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70649
70650 2007-01-20  Jim Meyering  <jim@meyering.net>
70651
70652         * lib/userspec.c (parse_with_separator): If a user or group string
70653         starts with "+", skip the corresponding name-to-ID look-up, since
70654         such a look-up must fail: user and group names may not include "+".
70655
70656 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70657
70658         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70659         since we now assume the sys_time module.
70660         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70661         check for sys/time.h; no longer needed.
70662         * modules/poll (Depends-on): Depend on sys_time.
70663
70664 2007-01-18  Bruno Haible  <bruno@clisp.org>
70665
70666         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70667         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70668
70669         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70670         gettimeofday.
70671
70672         * tests/test-gettimeofday.c: Include <time.h>.
70673         (dummy): Remove variable.
70674
70675         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70676         gl_HEADER_SYS_TIME_H.
70677         (gl_HEADER_SYS_TIME_H): New macro.
70678
70679         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70680         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70681         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70682         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70683         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70684         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70685         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70686         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70687         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70688         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70689         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70690
70691         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70692         last change; it caused a compilation error when cross-compiling to
70693         Cygwin.
70694
70695 2007-01-18  Jim Meyering  <jim@meyering.net>
70696
70697         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70698         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70699         than the race-prone "test -d sys || mkdir sys".
70700         (configure.ac): Use AC_PROG_MKDIR_P.
70701         * modules/sys_select: Likewise.
70702         * modules/sys_socket: Likewise.
70703         * modules/sys_time: Likewise.
70704
70705 2007-01-18  Eric Blake  <ebb9@byu.net>
70706
70707         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70708         replace gettimeofday.
70709         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70710         name, to avoid infinite recursion.
70711
70712 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70713
70714         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70715         module sys_time.
70716         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70717         assume timespec.h defines struct timeval.
70718         * lib/settime.c: Likewise.
70719         * lib/utimens.c: Likewise.
70720         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70721         since we now assume the gettimeofday module.
70722         * lib/tempname.c (__gen_tempname): Likewise.
70723         * lib/gettimeofday.h: Remove.
70724         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70725         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70726         Include <time.h>, for 'time()'.
70727         (localtime_buffer_addr): Also use this workaround if
70728         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70729         to simplify the uses.  All uses changed.
70730         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70731         that #undef is inside {}, and 'const' follows type name consistently.
70732         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70733         (gettimeofday): Do not use the maximum possible value for
70734         tv->tv_usec, since that might break usages other than ls.c.
70735         Instead, we'll leave ls.c alone.  This undoes today's patch
70736         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70737         we've never observed the problem but might as well keep the
70738         canary.
70739         * lib/nanosleep.c: Include timespec.h first, for interface check.
70740         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70741         now assume the sys_time module.
70742         * lib/tempname.c: Likewise.
70743         * lib/timespec.h: Likewise.
70744         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70745         needed.
70746         * lib/strftime.c: Likewise.
70747         * lib/timespec.h: Likewise.
70748         * lib/posixtm.c: Include posixtm.h first, for interface check.
70749         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70750         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70751         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70752         * lib/sys_time_.h: New file.
70753         * lib/timespec.h (struct timespec): Use long int, not long.
70754         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70755         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70756         Remove obsolescent call to AC_HEADER_TIME.
70757         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70758         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70759         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70760         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70761         Likewise.
70762         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70763         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70764         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70765         into the sys_time module.  Check for gettimeofday just once.
70766         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70767         for gettimeofday signature to just check the signature.  Merely
70768         compile it, since linking doesn't test signature.  Improve test for
70769         whether gettimeofday.o is actually needed.
70770         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70771         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70772         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70773         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70774         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70775         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70776         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70777         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70778         than worrying about sys/time.h.
70779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70780         Don't bother worrying about TIME_WITH_SYS_TIME.
70781         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70782         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70783         * m4/sys_time_h.m4: New file.
70784         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70785         Don't include sys/time.h.  Return from main rather than exiting.
70786         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70787         all uses changed.
70788         * modules/gethrxtime (Depends-on): Add sys_time.
70789         * modules/gettime (Depends-on): Likewise.
70790         * modules/gettimeofday (Depends-on): Likewise.
70791         * modules/nanosleep (Depends-on): Likewise.
70792         * modules/settime (Depends-on): Likewise.
70793         * modules/tempname (Depends-on): Likewise.
70794         * modules/utimens (Depends-on): Likewise.
70795         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70796         (Include): Change back to <sys/time.h>.
70797         (Maintainer): Add self.
70798         * modules/sys_time: New file.
70799         * modules/tempname (Depends-on): Add gettimeofday.
70800         * tests/test-gettimeofday.c: Include <sys/time.h>
70801         rather than gettimeofday.h.
70802
70803 2007-01-17  Bruno Haible  <bruno@clisp.org>
70804
70805         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70806         the license default to GPL.
70807         (func_create_testdir): Don't complain if a module is LGPL and its
70808         tests module depends on GPLed modules.
70809
70810 2007-01-17  Bruno Haible  <bruno@clisp.org>
70811
70812         * lib/gettimeofday.c (gettimeofday): Add code for the case
70813         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70814         maximum possible value for tv->tv_usec, rather than the minimum one.
70815
70816 2005-10-08  Martin Lambers  <marlam@marlam.de>
70817 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70818 2007-01-16  Bruno Haible  <bruno@clisp.org>
70819
70820         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70821         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70822         gl_FUNC_GETTIMEOFDAY.
70823         (Include): Add gettimeofday.h.
70824         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70825         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70826         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70827         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70828         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70829         * lib/gettimeofday.h: New file.
70830         * lib/gettimeofday.c: Include <sys/timeb.h>.
70831         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70832         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70833         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70834         fall back on time().
70835
70836         * tests/test-gettimeofday.c: New file.
70837         * modules/gettimeofday-tests: New file.
70838
70839 2007-01-16  Eric Blake  <ebb9@byu.net>
70840
70841         * modules/fnmatch (Depends-on): Depend on wchar.
70842         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70843         * m4/fnmatch.m4: Likewise.
70844         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70845         * m4/mbchar.m4: Likewise.
70846         * modules/mbswidth (Depends-on): Depend on wchar.
70847         * lib/mbswidth.c: Assume <wchar.h>.
70848         * m4/mbswidth.m4: Likewise.
70849         * modules/quotearg (Depends-on): Depend on wchar.
70850         * lib/quotearg.c: Assume <wchar.h>.
70851         * m4/quotearg.m4: Likewise.
70852         * modules/regex (Depends-on): Depend on wchar.
70853         * lib/regex_internal.h: Assume <wchar.h>.
70854         * m4/regex.m4: Likewise.
70855         * modules/stdint (Depends-on): Depend on wchar.
70856         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70857         * m4/stdint.m4: Likewise.
70858         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70859         * modules/strftime (Depends-on): Depend on wchar.
70860         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70861         * modules/strtol (Depends-on): Depend on wchar.
70862         * lib/strtol.c: Assume <wchar.h>.
70863         * modules/wcwidth (Depends-on): Depend on wchar.
70864         * lib/wcwidth.h: Assume <wchar.h>.
70865         * m4/wcwidth.m4: Likewise.
70866
70867 2007-01-16  Bruno Haible  <bruno@clisp.org>
70868
70869         * modules/csharpexec-script: New, created from...
70870         * modules/csharpexec: ... this.
70871
70872 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70873
70874         * modules/javaexec-script: New, created from...
70875         * modules/javaexec: ... this.
70876
70877 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70878
70879         * modules/poll (Dependencies): Add sys_select.
70880
70881 2007-01-15  Jim Meyering  <jim@meyering.net>
70882
70883         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70884         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70885         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70886         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70887
70888 2007-01-15  Bruno Haible  <bruno@clisp.org>
70889
70890         * modules/striconveh: New file.
70891         * lib/striconveh.h: New file.
70892         * lib/striconveh.c: New file.
70893         * MODULES.html.sh (Internationalization functions): Add striconveh.
70894
70895         * modules/striconveh-tests: New file.
70896         * tests/test-striconveh.c: New file.
70897
70898 2007-01-15  Bruno Haible  <bruno@clisp.org>
70899
70900         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70901         not from GNU libiconv or GNU libc.
70902
70903 2007-01-15  Bruno Haible  <bruno@clisp.org>
70904
70905         * doc/gnulib-intro.texi (Copyright): Explain the different license
70906         terms for module descriptions, autoconf macros, tests, documentation.
70907
70908 2007-01-14  Bruno Haible  <bruno@clisp.org>
70909
70910         * modules/striconv-tests: New file.
70911         * tests/test-striconv.c: New file.
70912
70913 2007-01-14  Bruno Haible  <bruno@clisp.org>
70914
70915         * modules/iconv-tests: New file.
70916         * tests/test-iconv.c: New file.
70917
70918 2007-01-14  Bruno Haible  <bruno@clisp.org>
70919
70920         * gnulib-tool (func_get_license): For test modules, use the license of
70921         the main module.
70922
70923 2007-01-14  Bruno Haible  <bruno@clisp.org>
70924
70925         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70926         if iconv is found to exist.
70927
70928 2007-01-14  Bruno Haible  <bruno@clisp.org>
70929
70930         * modules/c-ctype-tests: New file.
70931         * tests/test-c-ctype.c: New file.
70932
70933 2007-01-14  Bruno Haible  <bruno@clisp.org>
70934
70935         * modules/binary-io-tests: New file.
70936         * tests/test-binary-io.sh: New file.
70937         * tests/test-binary-io.c: New file.
70938
70939 2007-01-14  Bruno Haible  <bruno@clisp.org>
70940
70941         * modules/array-oset-tests: New file.
70942         * tests/test-array_oset.c: New file.
70943
70944 2007-01-14  Bruno Haible  <bruno@clisp.org>
70945
70946         * modules/array-list-tests: New file.
70947         * tests/test-array_list.c: New file.
70948
70949 2007-01-14  Bruno Haible  <bruno@clisp.org>
70950
70951         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70952         and make.
70953         Reported by Simon Josefsson in
70954         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70955
70956 2007-01-14  Bruno Haible  <bruno@clisp.org>
70957
70958         * modules/allocsa-tests: New file.
70959         * tests/test-allocsa.c: New file.
70960
70961 2007-01-14  Bruno Haible  <bruno@clisp.org>
70962
70963         * modules/fchdir (Depends-on): Add absolute-header.
70964         * modules/unistd (Depends-on): Likewise.
70965
70966 2006-12-30  Bruno Haible  <bruno@clisp.org>
70967
70968         * modules/fchdir: New file.
70969         * modules/unistd (Files): Add lib/unistd_.h.
70970         (Makefile.am): Generate unistd.h from unistd_.h.
70971         * lib/fchdir.c: New file.
70972         * lib/dirent_.h: New file.
70973         * lib/unistd_.h: New file.
70974         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70975         * m4/fchdir.m4: New file.
70976         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70977         (gl_HEADER_UNISTD): Invoke it.
70978         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70979         function.
70980         * lib/backupfile.c (opendir, closedir): Undefine.
70981         * lib/chown.c (open, close): Undefine.
70982         * lib/clean-temp.c (open, close): Undefine.
70983         * lib/copy-file.c (open, close): Undefine.
70984         * lib/execute.c (open, close): Undefine.
70985         * lib/fsusage.c (open, close): Undefine.
70986         * lib/gc-gnulib.c (open, close): Undefine.
70987         * lib/getcwd.c (opendir, closedir): Undefine.
70988         * lib/glob.c (opendir, closedir): Undefine.
70989         * lib/javacomp.c (open, close): Undefine.
70990         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70991         * lib/openat-proc.c (open, close): Undefine.
70992         * lib/pagealign_alloc.c (open, close): Undefine.
70993         * lib/pipe.c (open, close): Undefine.
70994         * lib/progreloc.c (open, close): Undefine.
70995         * lib/savedir.c (opendir, closedir): Undefine.
70996         * lib/utime.c (open, close): Undefine.
70997         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70998
70999 2007-01-10  Bruno Haible  <bruno@clisp.org>
71000
71001         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71002
71003 2007-01-12  Eric Blake  <ebb9@byu.net>
71004
71005         Provide a robust <wchar.h>.  Further simplifications are now
71006         possible in other modules, but not included here.
71007         * modules/wchar: New module.
71008         * m4/wchar.m4: New file.
71009         * lib/wchar_.h: Likewise.
71010         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71011         of the new module.
71012         * MODULES.html.sh (Extended multibyte and wide character utilities):
71013         New section.
71014
71015 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71016
71017         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71018         to a reasonable default for memory allocation.
71019         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71020         file system that reports garbage st_size values for symlinks.
71021         Problem reported by Liyang Hu.
71022
71023 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71024
71025         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71026         Emacs .#* auto-save files).
71027
71028 2007-01-11  Bruno Haible  <bruno@clisp.org>
71029
71030         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71031         directory.
71032
71033 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71034
71035         Use @...@ consistently in lib/wctype_.h.
71036         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71037         on it being set to 1 or 0.
71038         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71039         go back to AC_SUBSTing it.
71040         * modules/wctype (Makefile.am): Undo previous change.
71041
71042 2007-01-10  Eric Blake  <ebb9@byu.net>
71043
71044         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71045         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71046         * modules/wctype (Makefile.am): Likewise.
71047         Reported by Chris McGuire.
71048
71049 2007-01-10  Jim Meyering  <jim@meyering.net>
71050
71051         fts.c: a small readability/maintainability improvement
71052         * lib/fts.c (fts_read): Make this code slightly more readable and
71053         maintainable by hoisting the "sp->fts_cur = p" assignments to
71054         immediately follow the statements that set P.  Derived from
71055         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71056
71057 2007-01-10  Eric Blake  <ebb9@byu.net>
71058
71059         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71060         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71061         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71062         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71063         Reported by Chris McGuire.
71064
71065 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71066
71067         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71068         in sed script.
71069
71070 2007-01-09  Bruno Haible  <bruno@clisp.org>
71071
71072         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71073         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71074         variables.
71075         (func_module): Use them.
71076
71077 2007-01-09  Bruno Haible  <bruno@clisp.org>
71078
71079         * modules/unistr/base: New file.
71080         * lib/unistr.h: New file.
71081
71082         * modules/unistr/u8-to-u16: New file.
71083         * lib/unistr/u8-to-u16.c: New file.
71084
71085         * modules/unistr/u8-to-u32: New file.
71086         * lib/unistr/u8-to-u32.c: New file.
71087
71088         * modules/unistr/u16-to-u8: New file.
71089         * lib/unistr/u16-to-u8.c: New file.
71090
71091         * modules/unistr/u16-to-u32: New file.
71092         * lib/unistr/u16-to-u32.c: New file.
71093
71094         * modules/unistr/u32-to-u8: New file.
71095         * lib/unistr/u32-to-u8.c: New file.
71096
71097         * modules/unistr/u32-to-u16: New file.
71098         * lib/unistr/u32-to-u16.c: New file.
71099
71100         * modules/unistr/u8-check: New file.
71101         * modules/unistr/u16-check: New file.
71102         * modules/unistr/u32-check: New file.
71103         * lib/unistr/u8-check.c: New file.
71104         * lib/unistr/u16-check.c: New file.
71105         * lib/unistr/u32-check.c: New file.
71106
71107         * modules/unistr/u8-chr: New file.
71108         * modules/unistr/u16-chr: New file.
71109         * modules/unistr/u32-chr: New file.
71110         * lib/unistr/u8-chr.c: New file.
71111         * lib/unistr/u16-chr.c: New file.
71112         * lib/unistr/u32-chr.c: New file.
71113
71114         * modules/unistr/u8-cmp: New file.
71115         * modules/unistr/u16-cmp: New file.
71116         * modules/unistr/u32-cmp: New file.
71117         * lib/unistr/u8-cmp.c: New file.
71118         * lib/unistr/u16-cmp.c: New file.
71119         * lib/unistr/u32-cmp.c: New file.
71120
71121         * modules/unistr/u8-cpy: New file.
71122         * modules/unistr/u16-cpy: New file.
71123         * modules/unistr/u32-cpy: New file.
71124         * lib/unistr/u8-cpy.c: New file.
71125         * lib/unistr/u16-cpy.c: New file.
71126         * lib/unistr/u32-cpy.c: New file.
71127         * lib/unistr/u-cpy.h: New file.
71128
71129         * modules/unistr/u8-cpy-alloc: New file.
71130         * modules/unistr/u16-cpy-alloc: New file.
71131         * modules/unistr/u32-cpy-alloc: New file.
71132         * lib/unistr/u8-cpy-alloc.c: New file.
71133         * lib/unistr/u16-cpy-alloc.c: New file.
71134         * lib/unistr/u32-cpy-alloc.c: New file.
71135         * lib/unistr/u-cpy-alloc.h: New file.
71136
71137         * modules/unistr/u8-endswith: New file.
71138         * modules/unistr/u16-endswith: New file.
71139         * modules/unistr/u32-endswith: New file.
71140         * lib/unistr/u8-endswith.c: New file.
71141         * lib/unistr/u16-endswith.c: New file.
71142         * lib/unistr/u32-endswith.c: New file.
71143         * lib/unistr/u-endswith.h: New file.
71144
71145         * modules/unistr/u8-mblen: New file.
71146         * modules/unistr/u16-mblen: New file.
71147         * modules/unistr/u32-mblen: New file.
71148         * lib/unistr/u8-mblen.c: New file.
71149         * lib/unistr/u16-mblen.c: New file.
71150         * lib/unistr/u32-mblen.c: New file.
71151
71152         * modules/unistr/u8-mbtouc: New file.
71153         * modules/unistr/u16-mbtouc: New file.
71154         * modules/unistr/u32-mbtouc: New file.
71155         * lib/unistr/u8-mbtouc.c: New file.
71156         * lib/unistr/u16-mbtouc.c: New file.
71157         * lib/unistr/u32-mbtouc.c: New file.
71158
71159         * modules/unistr/u8-mbtouc-safe: New file.
71160         * modules/unistr/u16-mbtouc-safe: New file.
71161         * modules/unistr/u32-mbtouc-safe: New file.
71162         * lib/unistr/u8-mbtouc-safe.c: New file.
71163         * lib/unistr/u16-mbtouc-safe.c: New file.
71164         * lib/unistr/u32-mbtouc-safe.c: New file.
71165
71166         * modules/unistr/u8-move: New file.
71167         * modules/unistr/u16-move: New file.
71168         * modules/unistr/u32-move: New file.
71169         * lib/unistr/u8-move.c: New file.
71170         * lib/unistr/u16-move.c: New file.
71171         * lib/unistr/u32-move.c: New file.
71172         * lib/unistr/u-move.h: New file.
71173
71174         * modules/unistr/u8-next: New file.
71175         * modules/unistr/u16-next: New file.
71176         * modules/unistr/u32-next: New file.
71177         * lib/unistr/u8-next.c: New file.
71178         * lib/unistr/u16-next.c: New file.
71179         * lib/unistr/u32-next.c: New file.
71180
71181         * modules/unistr/u8-prev: New file.
71182         * modules/unistr/u16-prev: New file.
71183         * modules/unistr/u32-prev: New file.
71184         * lib/unistr/u8-prev.c: New file.
71185         * lib/unistr/u16-prev.c: New file.
71186         * lib/unistr/u32-prev.c: New file.
71187
71188         * modules/unistr/u8-set: New file.
71189         * modules/unistr/u16-set: New file.
71190         * modules/unistr/u32-set: New file.
71191         * lib/unistr/u8-set.c: New file.
71192         * lib/unistr/u16-set.c: New file.
71193         * lib/unistr/u32-set.c: New file.
71194         * lib/unistr/u-set.h: New file.
71195
71196         * modules/unistr/u8-startswith: New file.
71197         * modules/unistr/u16-startswith: New file.
71198         * modules/unistr/u32-startswith: New file.
71199         * lib/unistr/u8-startswith.c: New file.
71200         * lib/unistr/u16-startswith.c: New file.
71201         * lib/unistr/u32-startswith.c: New file.
71202         * lib/unistr/u-startswith.h: New file.
71203
71204         * modules/unistr/u8-stpcpy: New file.
71205         * modules/unistr/u16-stpcpy: New file.
71206         * modules/unistr/u32-stpcpy: New file.
71207         * lib/unistr/u8-stpcpy.c: New file.
71208         * lib/unistr/u16-stpcpy.c: New file.
71209         * lib/unistr/u32-stpcpy.c: New file.
71210         * lib/unistr/u-stpcpy.h: New file.
71211
71212         * modules/unistr/u8-stpncpy: New file.
71213         * modules/unistr/u16-stpncpy: New file.
71214         * modules/unistr/u32-stpncpy: New file.
71215         * lib/unistr/u8-stpncpy.c: New file.
71216         * lib/unistr/u16-stpncpy.c: New file.
71217         * lib/unistr/u32-stpncpy.c: New file.
71218         * lib/unistr/u-stpncpy.h: New file.
71219
71220         * modules/unistr/u8-strcat: New file.
71221         * modules/unistr/u16-strcat: New file.
71222         * modules/unistr/u32-strcat: New file.
71223         * lib/unistr/u8-strcat.c: New file.
71224         * lib/unistr/u16-strcat.c: New file.
71225         * lib/unistr/u32-strcat.c: New file.
71226         * lib/unistr/u-strcat.h: New file.
71227
71228         * modules/unistr/u8-strchr: New file.
71229         * modules/unistr/u16-strchr: New file.
71230         * modules/unistr/u32-strchr: New file.
71231         * lib/unistr/u8-strchr.c: New file.
71232         * lib/unistr/u16-strchr.c: New file.
71233         * lib/unistr/u32-strchr.c: New file.
71234
71235         * modules/unistr/u8-strcmp: New file.
71236         * modules/unistr/u16-strcmp: New file.
71237         * modules/unistr/u32-strcmp: New file.
71238         * lib/unistr/u8-strcmp.c: New file.
71239         * lib/unistr/u16-strcmp.c: New file.
71240         * lib/unistr/u32-strcmp.c: New file.
71241
71242         * modules/unistr/u8-strcpy: New file.
71243         * modules/unistr/u16-strcpy: New file.
71244         * modules/unistr/u32-strcpy: New file.
71245         * lib/unistr/u8-strcpy.c: New file.
71246         * lib/unistr/u16-strcpy.c: New file.
71247         * lib/unistr/u32-strcpy.c: New file.
71248         * lib/unistr/u-strcpy.h: New file.
71249
71250         * modules/unistr/u8-strcspn: New file.
71251         * modules/unistr/u16-strcspn: New file.
71252         * modules/unistr/u32-strcspn: New file.
71253         * lib/unistr/u8-strcspn.c: New file.
71254         * lib/unistr/u16-strcspn.c: New file.
71255         * lib/unistr/u32-strcspn.c: New file.
71256         * lib/unistr/u-strcspn.h: New file.
71257
71258         * modules/unistr/u8-strdup: New file.
71259         * modules/unistr/u16-strdup: New file.
71260         * modules/unistr/u32-strdup: New file.
71261         * lib/unistr/u8-strdup.c: New file.
71262         * lib/unistr/u16-strdup.c: New file.
71263         * lib/unistr/u32-strdup.c: New file.
71264         * lib/unistr/u-strdup.h: New file.
71265
71266         * modules/unistr/u8-strlen: New file.
71267         * modules/unistr/u16-strlen: New file.
71268         * modules/unistr/u32-strlen: New file.
71269         * lib/unistr/u8-strlen.c: New file.
71270         * lib/unistr/u16-strlen.c: New file.
71271         * lib/unistr/u32-strlen.c: New file.
71272         * lib/unistr/u-strlen.h: New file.
71273
71274         * modules/unistr/u8-strmblen: New file.
71275         * modules/unistr/u16-strmblen: New file.
71276         * modules/unistr/u32-strmblen: New file.
71277         * lib/unistr/u8-strmblen.c: New file.
71278         * lib/unistr/u16-strmblen.c: New file.
71279         * lib/unistr/u32-strmblen.c: New file.
71280
71281         * modules/unistr/u8-strmbtouc: New file.
71282         * modules/unistr/u16-strmbtouc: New file.
71283         * modules/unistr/u32-strmbtouc: New file.
71284         * lib/unistr/u8-strmbtouc.c: New file.
71285         * lib/unistr/u16-strmbtouc.c: New file.
71286         * lib/unistr/u32-strmbtouc.c: New file.
71287
71288         * modules/unistr/u8-strncat: New file.
71289         * modules/unistr/u16-strncat: New file.
71290         * modules/unistr/u32-strncat: New file.
71291         * lib/unistr/u8-strncat.c: New file.
71292         * lib/unistr/u16-strncat.c: New file.
71293         * lib/unistr/u32-strncat.c: New file.
71294         * lib/unistr/u-strncat.h: New file.
71295
71296         * modules/unistr/u8-strncmp: New file.
71297         * modules/unistr/u16-strncmp: New file.
71298         * modules/unistr/u32-strncmp: New file.
71299         * lib/unistr/u8-strncmp.c: New file.
71300         * lib/unistr/u16-strncmp.c: New file.
71301         * lib/unistr/u32-strncmp.c: New file.
71302
71303         * modules/unistr/u8-strncpy: New file.
71304         * modules/unistr/u16-strncpy: New file.
71305         * modules/unistr/u32-strncpy: New file.
71306         * lib/unistr/u8-strncpy.c: New file.
71307         * lib/unistr/u16-strncpy.c: New file.
71308         * lib/unistr/u32-strncpy.c: New file.
71309         * lib/unistr/u-strncpy.h: New file.
71310
71311         * modules/unistr/u8-strnlen: New file.
71312         * modules/unistr/u16-strnlen: New file.
71313         * modules/unistr/u32-strnlen: New file.
71314         * lib/unistr/u8-strnlen.c: New file.
71315         * lib/unistr/u16-strnlen.c: New file.
71316         * lib/unistr/u32-strnlen.c: New file.
71317         * lib/unistr/u-strnlen.h: New file.
71318
71319         * modules/unistr/u8-strpbrk: New file.
71320         * modules/unistr/u16-strpbrk: New file.
71321         * modules/unistr/u32-strpbrk: New file.
71322         * lib/unistr/u8-strpbrk.c: New file.
71323         * lib/unistr/u16-strpbrk.c: New file.
71324         * lib/unistr/u32-strpbrk.c: New file.
71325         * lib/unistr/u-strpbrk.h: New file.
71326
71327         * modules/unistr/u8-strrchr: New file.
71328         * modules/unistr/u16-strrchr: New file.
71329         * modules/unistr/u32-strrchr: New file.
71330         * lib/unistr/u8-strrchr.c: New file.
71331         * lib/unistr/u16-strrchr.c: New file.
71332         * lib/unistr/u32-strrchr.c: New file.
71333
71334         * modules/unistr/u8-strspn: New file.
71335         * modules/unistr/u16-strspn: New file.
71336         * modules/unistr/u32-strspn: New file.
71337         * lib/unistr/u8-strspn.c: New file.
71338         * lib/unistr/u16-strspn.c: New file.
71339         * lib/unistr/u32-strspn.c: New file.
71340         * lib/unistr/u-strspn.h: New file.
71341
71342         * modules/unistr/u8-strstr: New file.
71343         * modules/unistr/u16-strstr: New file.
71344         * modules/unistr/u32-strstr: New file.
71345         * lib/unistr/u8-strstr.c: New file.
71346         * lib/unistr/u16-strstr.c: New file.
71347         * lib/unistr/u32-strstr.c: New file.
71348         * lib/unistr/u-strstr.h: New file.
71349
71350         * modules/unistr/u8-strtok: New file.
71351         * modules/unistr/u16-strtok: New file.
71352         * modules/unistr/u32-strtok: New file.
71353         * lib/unistr/u8-strtok.c: New file.
71354         * lib/unistr/u16-strtok.c: New file.
71355         * lib/unistr/u32-strtok.c: New file.
71356         * lib/unistr/u-strtok.h: New file.
71357
71358         * modules/unistr/u8-uctomb: New file.
71359         * modules/unistr/u16-uctomb: New file.
71360         * modules/unistr/u32-uctomb: New file.
71361         * lib/unistr/u8-uctomb.c: New file.
71362         * lib/unistr/u16-uctomb.c: New file.
71363         * lib/unistr/u32-uctomb.c: New file.
71364
71365         * MODULES.html.sh (Unicode string functions): Add the new modules.
71366
71367 2007-01-08  Bruno Haible  <bruno@clisp.org>
71368
71369         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71370         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71371         subdirectories.
71372
71373 2007-01-08  Karl Berry  <karl@gnu.org>
71374
71375         * doc/error.texi: mention that main() fns must set program_name
71376         when progname is used.
71377
71378 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71379
71380         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71381         WCTYPE_H is empty, for the benefit of builds from non-distclean
71382         directories.  Problem reported by Eric Blake in
71383         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71384
71385 2007-01-08  Bruno Haible  <bruno@clisp.org>
71386
71387         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71388         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71389         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71390         PROVIDE_CANONICALIZE_FILENAME_MODE.
71391         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71392
71393 2007-01-08  Bruno Haible  <bruno@clisp.org>
71394
71395         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71396         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71397         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71398         * lib/fts.c: Likewise.
71399         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71400
71401 2006-12-25  Bruno Haible  <bruno@clisp.org>
71402
71403         * modules/utf8-ucs4-safe: New file.
71404         * lib/utf8-ucs4-safe.h: New file.
71405         * lib/unistr/utf8-ucs4-safe.c: New file.
71406
71407         * modules/utf16-ucs4-safe: New file.
71408         * lib/utf16-ucs4-safe.h: New file.
71409         * lib/unistr/utf16-ucs4-safe.c: New file.
71410
71411         * MODULES.html.sh (Unicode string functions): Add the new modules.
71412
71413 2007-01-08  Bruno Haible  <bruno@clisp.org>
71414
71415         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71416         (Depends-on): Add unitypes.
71417         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71418         (u8_mbtouc_aux): Move out to separate file.
71419         (u8_mbtouc): Use ucs4_t, uint8_t types.
71420         * lib/unistr/utf8-ucs4.c: New file.
71421
71422         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71423         (Depends-on): Add unitypes.
71424         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71425         (u16_mbtouc_aux): Move out to separate file.
71426         (u16_mbtouc): Use ucs4_t, uint16_t types.
71427         * lib/unistr/utf16-ucs4.c: New file.
71428
71429         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71430         (Depends-on): Add unitypes.
71431         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71432         (u8_uctomb_aux): Move out to separate file.
71433         (u8_uctomb): Use ucs4_t, uint8_t types.
71434         * lib/unistr/ucs4-utf8.c: New file.
71435
71436         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71437         (Depends-on): Add unitypes.
71438         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71439         (u16_uctomb_aux): Move out to separate file.
71440         (u16_uctomb): Use ucs4_t, uint16_t types.
71441         * lib/unistr/ucs4-utf16.c: New file.
71442
71443 2006-12-25  Bruno Haible  <bruno@clisp.org>
71444
71445         * modules/unitypes: New file.
71446         * lib/unitypes.h: New file.
71447         * MODULES.html.sh (func_all_modules): New section "Unicode string
71448         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71449         this section. Add unitypes.
71450
71451 2007-01-08  Bruno Haible  <bruno@clisp.org>
71452
71453         Avoid variable names that conflict with those from libtool.
71454         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71455         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71456         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71457         library_names_spec to acl_library_names_spec, hardcode_* to
71458         acl_hardcode_*.
71459         Reported by Ralf Wildenhues.
71460
71461 2007-01-08  Bruno Haible  <bruno@clisp.org>
71462
71463         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71464         definition.
71465         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71466         definition.
71467         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71468         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71469         definition.
71470         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71471         definition.
71472         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71473         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71474         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71475         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71476         definition.
71477         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71478         definition.
71479         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71480         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71481         GC_USE_<algorithm>.
71482         * lib/gc-libgcrypt.c: Likewise.
71483         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71484         * modules/gc-arctwo (configure.ac): Likewise.
71485         * modules/gc-des (configure.ac): Likewise.
71486         * modules/gc-hmac-md5 (configure.ac): Likewise.
71487         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71488         * modules/gc-md2 (configure.ac): Likewise.
71489         * modules/gc-md4 (configure.ac): Likewise.
71490         * modules/gc-md5 (configure.ac): Likewise.
71491         * modules/gc-random (configure.ac): Likewise.
71492         * modules/gc-rijndael (configure.ac): Likewise.
71493         * modules/gc-sha1 (configure.ac): Likewise.
71494
71495 2007-01-08  Bruno Haible  <bruno@clisp.org>
71496
71497         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71498         macro definition.
71499         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71500         definition.
71501         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71502         definition.
71503         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71504         * modules/fcntl-safer (configure.ac): Likewise.
71505         * modules/fopen-safer (configure.ac): Likewise.
71506         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71507         GNULIB_FWRITEERROR macro definition.
71508
71509 2007-01-08  Bruno Haible  <bruno@clisp.org>
71510
71511         * m4/gnulib-common.m4: New file.
71512         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71513         (func_get_filelist): Add m4/gnulib-common.m4.
71514
71515 2007-01-08  Bruno Haible  <bruno@clisp.org>
71516
71517         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71518         command.
71519
71520 2007-01-08  Jim Meyering  <jim@meyering.net>
71521
71522         Use a more robust test for a "can't happen" condition.
71523         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71524         narrowed the st_size value.  Presuming the "can't happen" condition
71525         is true, that narrowing could conceivably convert an invalid st_size
71526         value into a valid one.  Instead, use a change based on Matthew
71527         Woehlke's original patch.
71528
71529         Slight readability improvement: use an assert-like macro
71530         in place of literal "abort ()" uses.
71531         * lib/fts.c (fts_assert): Define.
71532         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71533         Use this macro instead of a bare 'abort'.
71534
71535 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71536
71537         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71538         simply work around them.
71539         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71540         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71541         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71542         declaring.
71543         Don't bother to define as macros, since the standard doesn't require it.
71544         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71545         longer worry about IRIX 5.3.
71546         (HAVE_WCTYPE_CTMP_BUG): Remove.
71547
71548 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71549
71550         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71551         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71552         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71553         Problems reported by Georg Schwarz for IRIX 5.3.
71554
71555         * gnulib-tool (autoconf_minversion): Take the maximum version number
71556         found, not the minimum.  Problem reported by James Youngman.
71557
71558 2007-01-03  Karl Berry  <karl@gnu.org>
71559
71560         * doc/error.texi: new file, explaining interaction with progname.
71561         * doc/gnulib.texi: include it.  Update copyright.
71562
71563 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71564
71565         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71566         AC_CANONICAL_HOST, to improve autobuild outputs.
71567
71568 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71569             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71570
71571         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71572         sockets, server sockets, and other file descriptors.  Count errors
71573         to compute the return value.  Reorder the code a bit to be easier
71574         to follow.  Don't set event bits that were not requested (except
71575         POLLERR and POLLHUP).
71576
71577 2007-01-01  Bruno Haible  <bruno@clisp.org>
71578
71579         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71580
71581 2007-01-03  Jim Meyering  <jim@meyering.net>
71582
71583         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71584
71585 2007-01-02  Bruno Haible  <bruno@clisp.org>
71586
71587         * modules/settime (Include): Require timespec.h.
71588         * modules/nanosleep (Include): Likewise.
71589
71590 2007-01-01  Bruno Haible  <bruno@clisp.org>
71591
71592         * gnulib-tool (func_emit_copyright_notice): Bump year.
71593         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71594
71595 2007-01-01  Bruno Haible  <bruno@clisp.org>
71596
71597         Improve support for OpenBSD.
71598         * build-aux/config.rpath (libname_spec): Export.
71599         (library_names_spec): New variable. Export.
71600         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71601         library_names_spec from the config.rpath output. Locate shared library
71602         through the name pattern in library_names_spec.
71603
71604 2007-01-01  Eric Blake  <ebb9@byu.net>
71605
71606         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71607
71608 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71609
71610         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71611         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71612         assume the C locale, and avoid an "eval" that could cause trouble.
71613         Problem with SORT reported by Bob Proulx.
71614
71615         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71616         Define.  Trivial patch from Henning Nielsen Lund, originally
71617         sent to bug-grep@gnu.org today.
71618
71619 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71620
71621         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71622         struct stat.  Problem reported by Henning Nielsen Lund.
71623         * lib/acl.c: Include acl.h first, to check interface.  Don't
71624         bother to include sys/types.h and sys/stat.h again.
71625
71626 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         Import the following change from libc; problem reported by
71629         Sven Verdoolaege.
71630
71631         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71632
71633         [BZ #1373]
71634         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71635
71636 2006-12-28  Jim Meyering  <jim@meyering.net>
71637
71638         * build-aux/announce-gen: Do not assume that the package
71639         builds any of tar.gz, tar.bz2, and .xdelta files.
71640         Suggestion from Simon Josefsson.
71641
71642 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71643
71644         * modules/announce-gen: New file.
71645
71646 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71647
71648         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71649         handles its gotchas now.
71650         * lib/mbswidth.c: Likewise.
71651         * lib/wcwidth.h: Likewise.
71652         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71653         and iswcntrl; the wctype module does this stuff now.
71654         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71656         * modules/mbchar (Depends-on): Add wctype.
71657         * modules/mbswidth (Depends-on): Likewise.
71658         * modules/wcwidth (Depends-on): Likewise.
71659
71660 2006-12-27  Eric Blake  <ebb9@byu.net>
71661
71662         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71663         module uses more than what <wctype.h> is required to provide.
71664
71665 2006-12-26  Eric Blake  <ebb9@byu.net>
71666
71667         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71668
71669 2006-12-26  Eric Blake  <ebb9@byu.net>
71670
71671         * modules/absolute-header: New module.
71672         * modules/fcntl (Depends-on): Depend on it.
71673         * modules/inttypes (Depends-on): Likewise.
71674         * modules/stdint (Depends-on): Likewise.
71675         * modules/sys_stat (Depends-on): Likewise.
71676         * modules/wctype (Depends-on): Likewise.
71677         * MODULES.html.sh (Support for building libraries and
71678         executables): Document it.
71679
71680 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71681
71682         * gnulib-tool (SED): Remove, undoing previous change.
71683         The problem was that it broke coreutils on Solaris, because
71684         "sed --posix" leaked into a makefile.
71685         (sed): New alias, if 'alias' and GNU sed.
71686
71687 2006-12-24  Jim Meyering  <jim@meyering.net>
71688
71689         Work around an fchownat bug in glibc-2.4:
71690         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71691         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71692         in spite of the -P option.
71693         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71694         New macros.
71695         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71696         * modules/openat (Files): Add lib/fchownat.c.
71697         * lib/openat.c (fchownat): Don't define here.  Move to...
71698         * lib/fchownat.c: ...this new file.
71699
71700 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71701
71702         Fix bug reported by Bruno Haible in
71703         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71704         where quotearg.c didn't compile on Mac OS X 10.2 because it
71705         lacks <wchar.h> and wint_t.
71706         * lib/wctype_.h (__wctype_wint_t): New type.
71707         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71708         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71709         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71710         Arg is now of type __wctype_wint_t, not wint_t.
71711         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71712         substitute HAVE_WINT_T.
71713         * modules/wctype (Files): Add m4/wint_t.m4.
71714         (wctype.h): Substitute HAVE_WINT_T.
71715
71716 2006-12-23  Bruno Haible  <bruno@clisp.org>
71717
71718         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71719
71720 2006-12-23  Bruno Haible  <bruno@clisp.org>
71721
71722         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71723         S_ISLNK.
71724         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71725         mingw.
71726
71727 2006-12-22  Bruno Haible  <bruno@clisp.org>
71728
71729         * lib/copy-file.c: Include acl.h.
71730         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71731         Close the file descriptors only after being done with copy_acl.
71732         * modules/copy-file (Depends-on): Add acl.
71733
71734 2006-12-22  Bruno Haible  <bruno@clisp.org>
71735
71736         * gnulib-tool (SED): New variable.
71737         Use $SED instead of sed everywhere.
71738
71739 2006-12-22  Bruno Haible  <bruno@clisp.org>
71740
71741         * modules/no-c++: New file.
71742         * m4/no-c++.m4: New file.
71743         * MODULES.html.sh (Support for building libraries and executables):
71744         Add no-c++.
71745
71746 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71747
71748         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71749         Include <limits.h>, and use its INT_MAX to rewrite the
71750         j loop so that it does not overflow 'int'.  Problem reported by
71751         Ralf Wildenhues in
71752         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71753         Play it safe by shifting left by 1 rather than multiplying by 2,
71754         as GCC is less likely to optimize this away when the value
71755         is signed (when it assumes overflow leads to undefined behavior).
71756         Also, don't assume time_t uses two's complement.
71757
71758 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71759
71760         * MODULES.html.sh: New module wctype.
71761         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71762         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71763         <wctype.h>, since the new wctype module should fix this.
71764         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71765         the wctype module should arrange for it.
71766         * lib/regex_internal.h: Likewise.
71767         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71768         since the wctype module should handle this now.
71769         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71770         * modules/fnmatch (Depends-on): Add wctype.
71771         * modules/quotearg (Depends-on): Likewise.
71772         * modules/regex (Depends-on): Likewise.
71773
71774 2006-12-19  Bruno Haible  <bruno@clisp.org>
71775
71776         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71777         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71778
71779 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71780
71781         * modules/savewd (Depends-on): Fix dependency on fcntl.
71782
71783 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71784
71785         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71786         conforms to C99, rather than relying on the user's environment
71787         setting of STDINT_H.
71788
71789 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71790         and Eric Blake  <ebb9@byu.net>
71791
71792         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71793         This is more consistent with the other defines here.
71794         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71795         Port to z/OS.  Problem reported by Paul Gilmartin.
71796         Change local vars to use gl_ prefix rather than ac_.
71797         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71798         with other defines.
71799         * modules/double-slash-root: New module.
71800         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71801         (Depends-on): Add double-slash-root.
71802         * MODULES.html.sh (File system functions): Mention new module.
71803
71804 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71805
71806         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71807         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71808         This is for the benefit of gzip, which doesn't do i18n.
71809
71810 2006-12-12  Jim Meyering  <jim@meyering.net>
71811
71812         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71813         Reported by Andreas Schwab <schwab@suse.de>.
71814
71815 2006-12-12  Bruno Haible  <bruno@clisp.org>
71816
71817         Merge these changes.
71818         2006-09-05  Bruno Haible  <bruno@clisp.org>
71819         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71820         iconv_alloc succeeded.
71821         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71822         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71823         test for " && dest " at the end - dest is always != NULL there. Call
71824         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71825         with 2xNULL arguments, also to flush the state storage. Handle the
71826         IRIX iconv behaviour. Realloc the final result, to throw away unused
71827         memory.
71828
71829 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71830
71831         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71832         and fchmodat unconditionally, since glibc 2.4 has them.
71833         Problem reported by Arkadiusz Miskiewicz.
71834
71835 2006-12-10  Bruno Haible  <bruno@clisp.org>
71836
71837         * gnulib-tool (func_import): Show the include files only for those
71838         modules that are copied and specified.
71839         Reported by Karl Berry.
71840
71841 2006-12-08  Jim Meyering  <jim@meyering.net>
71842
71843         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71844         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71845
71846         * build-aux/announce-gen: Add two new options, both optional:
71847         --bootstrap-tools=TOOL_LIST
71848               a comma-separated list of tools, e.g.,
71849               autoconf,automake,bison,gnulib
71850         --gnulib-snapshot-date=DATE
71851               if gnulib is in the bootstrap tool list,
71852               then report this as the snapshot date.
71853               If not specified, use the current date/time.
71854               If you specify a date here, be sure it's UTC.
71855
71856 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71857
71858         * tests/test-argp-2.sh: Fix test to match actual output.
71859         (func_compare): Fix sed script to be portable.
71860
71861 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71862
71863         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71864         workaround for this case.  It is not autoconfigured now; offhand
71865         it's hard to see how to autoconfigure it.
71866
71867 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71868
71869         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71870         a directory that is about to be chowned.  Such a directory's
71871         initial file permissions should permit the owner only and this
71872         should not be changed until after the chown, since the group and
71873         other bits would be incorrect if they granted permission before
71874         the chown.
71875
71876         Fix porting problem for iswctype reported by Georg Schwarz in:
71877         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71878         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71879         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71880         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71881         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71882
71883 2006-12-03  Jim Meyering  <jim@meyering.net>
71884
71885         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71886         p->fts_statp may not yet be defined.
71887         (fts_read): Instead, set it in the caller, once p->fts_statp is
71888         sure to be defined, and corresponds to a top-level directory.
71889         This bug made du -x fail.  Here's the coreutils test case:
71890         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71891         Reported by Mike Frysinger.
71892
71893 2006-12-01  Jim Meyering  <jim@meyering.net>
71894
71895         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71896         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71897         Reported by Simon Josefsson.
71898
71899 2006-11-30  Jim Meyering  <jim@meyering.net>
71900
71901         * m4/warning.m4: Use the all-permissive copyright notice
71902         recommended by RMS (rather than LGPL).
71903         * m4/vararrays.m4: Likewise.
71904         * m4/flexmember.m4: Likewise.
71905
71906 2006-11-29  Bruno Haible  <bruno@clisp.org>
71907
71908         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71909         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71910         using +=.
71911         Reported by Simon Josefsson <simon@josefsson.org>.
71912
71913 2006-11-28  James Youngman <jay@gnu.org>
71914
71915         * README: Advise users that they might find the bug-gnulib@gnu.org
71916         and autotools-announce@gnu.org mailing lists useful.
71917
71918 2006-11-28  Bruno Haible  <bruno@clisp.org>
71919
71920         * m4/ptrdiff_max.m4: Remove file.
71921
71922 2006-11-21  Bruno Haible  <bruno@clisp.org>
71923
71924         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71925         _AC_COMPUTE_INT.
71926         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71927         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71928         _AC_COMPUTE_INT.
71929         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71930         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71931         _AC_COMPUTE_INT.
71932         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71933
71934 2006-11-28  Jim Meyering  <jim@meyering.net>
71935
71936         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71937         warning from "gcc -Wshadow" about shadowing the builtin.
71938
71939 2006-11-27  Bruno Haible  <bruno@clisp.org>
71940
71941         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71942         _AC_COMPUTE_INT.
71943         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71944
71945 2006-11-27  Bruno Haible  <bruno@clisp.org>
71946             Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71949
71950 2006-11-26  Bruno Haible  <bruno@clisp.org>
71951
71952         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71953         noinst_LTLIBRARIES.
71954
71955 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71956             Bruno Haible  <bruno@clisp.org>
71957
71958         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71959         if compiling with "gcc -ansi".
71960
71961 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71962
71963         Fix some incompatibilities with gcc -ansi -pedantic.
71964         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71965         if compiling pedantically with GCC, unless it's C99 or later.
71966         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71967         it mishandles gcc -ansi -pedantic as well.
71968         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71969         if gcc -pedantic.
71970         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71971         initializers for struct if -pedantic, unless it's C99 or later.
71972
71973 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71974
71975         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71976         Don't close an fd more than once. Identical atimes indicate
71977         success, not failure.
71978
71979 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71980
71981         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71982
71983 2006-11-23  Jim Meyering  <jim@meyering.net>
71984
71985         * build-aux/announce-gen: New file.  From coreutils.
71986
71987 2006-11-22  Jim Meyering  <jim@meyering.net>
71988
71989         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71990         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71991         (fts_read): Use a temporary to narrow the overused st_size member
71992         before using it in a switch statement.  Reported by Matthew Woehlke.
71993
71994         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71995         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71996
71997 2006-11-20  Bruno Haible  <bruno@clisp.org>
71998
71999         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72000         changequote instead of pairs of brackets.
72001         Reported by Andreas Schwab <schwab@suse.de>.
72002
72003 2006-11-21  Jim Meyering  <jim@meyering.net>
72004
72005         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72006         so as to remain compatible with older compilers.
72007         Patch from Michael Deutschmann.
72008
72009 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72010
72011         * MODULES.html.sh (File system functions): Add openat.
72012
72013         * lib/openat.h (rpl_fstatat): New macro, if
72014         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72015         (fstatat): Define to rpl_fstatat under the same conditions,
72016         unless COMPILING_FSTATAT.
72017         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72018         seems to have the bug.
72019         * lib/fstatat.c: New file.
72020         * modules/openat (Files): Add it.
72021
72022 2006-11-20  Bruno Haible  <bruno@clisp.org>
72023
72024         * Makefile: New file.
72025
72026 2006-11-20  Jim Meyering  <jim@meyering.net>
72027
72028         The beginnings of syntax-related checks for gnulib.
72029         * lib/Makefile: New file.
72030         * lib/t-idcache: New script.  Ensure that the two halves of
72031         idcache.c stay in sync.
72032
72033         * lib/idcache.c: Adjust comments in user- and group- portions to
72034         be more accurate, and to be consistent with one another.
72035
72036 2006-11-20  Jim Meyering  <jim@meyering.net>
72037
72038         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72039         continue using the flexible array member (thus, this module performs
72040         half as many malloc calls), with the addition that...
72041         (getgroup, getuser): Consistently record a non-match via an empty
72042         "name" string, and map an empty string match to a NULL return value.
72043         * modules/idcache (Depends-on): Re-add flexmember.
72044
72045         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72046         (getuidbyname, getgroup, getgidbyname): Likewise.
72047
72048         Use cleaner syntax: NULL rather than 0.
72049         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72050
72051 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72052
72053         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72054         It mishandled the case where the group was missing.
72055         Problem reported by Greg Schafer.
72056         * modules/idcache: Likewise.
72057
72058 2006-11-18  Jim Meyering  <jim@meyering.net>
72059
72060         * check-module (%exempt_header): Add exception for some
72061         conditionally-included headers.
72062
72063         * modules/i-ring (Depends-on): Add verify.
72064         (License): Change to LGPL.
72065
72066 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72067
72068         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72069         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72070         and inttostr.h.  Use snprintf rather than uinttostr, so that
72071         LGPLed code doesn't depend on GPLed.
72072
72073 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72074
72075         * modules/inline (License): Change from GPL to LGPL.
72076
72077 2006-11-17  Jim Meyering  <jim@meyering.net>
72078
72079         * modules/d-type (License): Switch to LGPL.
72080
72081 2006-11-15  Bruno Haible  <bruno@clisp.org>
72082
72083         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72084
72085 2006-11-15  Eric Blake  <ebb9@byu.net>
72086
72087         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72088         the module dependency.
72089
72090 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72091             Bruno Haible  <bruno@clisp.org>
72092
72093         * gnulib-tool (func_create_testdir): Add license consistency check.
72094
72095 2006-11-15  Eric Blake  <ebb9@byu.net>
72096
72097         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72098         random "(cached)" in configure output.
72099
72100 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72101
72102         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72103         test for conforming inttypes.h is both announced and cached.
72104
72105         * MODULES.html.sh (seen_modules, seen_files): New variables.
72106         (func_module): Rewrite to use a few less gnulib-tool and sed
72107         invocations.  Avoid a couple of quadratic algorithms for ...
72108         (missed_modules, missed_files): ... these, with ...
72109         (func_append, func_tmpdir): ... these new functions, from
72110         gnulib-tool.  Analogously, install traps for cleanup.
72111
72112         * tests/test-gc.c (main): Remove unused variables.
72113         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72114
72115 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         * modules/inttostr (License): Change to LGPL.
72118
72119 2006-11-14  Eric Blake  <ebb9@byu.net>
72120
72121         * modules/tempname (License): Change to LGPL.
72122
72123 2006-11-14  Eric Blake  <ebb9@byu.net>
72124
72125         * doc/functions.texi (Function Portability): *printf functions on
72126         Cygwin now understand all POSIX size specifiers.
72127
72128 2006-11-14  Bruno Haible  <bruno@clisp.org>
72129
72130         * modules/c-ctype (License): Change to LGPL.
72131
72132 2006-11-12  Bruno Haible  <bruno@clisp.org>
72133
72134         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72135         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72136         for GNOME libraries, for which the include files are installed in
72137         subdirectories of $prefix/include.
72138
72139 2006-11-12  Bruno Haible  <bruno@clisp.org>
72140
72141         * m4/lib-link.m4: Require at least autoconf-2.54.
72142         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72143         name to underscores for the --with option.
72144
72145 2006-11-13  Bruno Haible  <bruno@clisp.org>
72146
72147         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72148         the tests directory.
72149         Reported by Ralf Wildenhues.
72150
72151 2006-11-13  Bruno Haible  <bruno@clisp.org>
72152
72153         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72154         (func_emit_initmacro_end): Undo the override here.
72155         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72156         Works around the famous automake error in coreutils.
72157
72158 2006-11-13  Eric Blake  <ebb9@byu.net>
72159
72160         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72161         element, not its node.
72162
72163 2006-11-12  Bruno Haible  <bruno@clisp.org>
72164
72165         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72166         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72167
72168 2006-11-12  Bruno Haible  <bruno@clisp.org>
72169
72170         * gnulib-tool: New option --local-symlink.
72171         (func_usage): Document it.
72172         (lsymbolic): New variable.
72173         (func_import, func_create_testdir): If --symlink was not specified,
72174         test whether --local-symlink was specified and the file comes from
72175         the local_gnulib_dir.
72176
72177 2006-11-12  Bruno Haible  <bruno@clisp.org>
72178
72179         * gnulib-tool (func_ln): New function.
72180         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72181
72182 2006-11-12  Bruno Haible  <bruno@clisp.org>
72183
72184         Finish support for source files in subdirectories.
72185         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72186         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72187         AUTOMAKE_OPTIONS.
72188         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72189
72190 2006-11-12  Bruno Haible  <bruno@clisp.org>
72191
72192         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72193         EXTRA_lib_SOURCES augmentation.
72194         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72195
72196 2006-11-12  Jim Meyering  <jim@meyering.net>
72197
72198         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72199         file descriptors.  This also averts a failure on systems with
72200         native openat support when a traversed directory lacks "x" access.
72201         * lib/fts_.h: Include "i-ring.h"
72202         (struct FTS) [fts_fd_ring]: New member.
72203         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72204         (FCHDIR): Add parentheses.
72205         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72206         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72207         When descending, rather than simply closing the previous
72208         fts_cwd_fd value, push that file descriptor onto the ring.
72209         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72210         (fts_open): Initialize the new fd_ring member.
72211         (fts_close): Clear the ring.
72212         (fts_safe_changedir): When possible, use our new fd_ring to skip
72213         the diropen and fstat and dev/ino comparison that would normally
72214         accompany a virtual `chdir ("..")'.
72215
72216         * modules/fts (Depends-on): Add i-ring.
72217         * modules/i-ring: New module.
72218         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72219         * m4/i-ring.m4: New file.
72220
72221 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72222
72223         * gnulib-tool (func_create_testdir): Fix replacement of
72224         `build-aux' in configure.ac.  Run autotools in gltests
72225         subdirectory.
72226         (func_create_testdir, func_create_megatestdir, test): There is
72227         no need for '--force' in most autotool invocations in a new
72228         tree.  Actually fail the whole test if any of the tools, or the
72229         configure or make stages fail.
72230
72231         Sync from Automake.
72232         * build-aux/gnupload: Revert last change.  Add pointer to upload
72233         instructions of the GNU Maintenance Instructions.
72234         Suggestion by Karl Berry.
72235
72236 2006-11-10  Jim Meyering  <jim@meyering.net>
72237
72238         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72239
72240 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72241
72242         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72243         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72244         (bind_textdomain_codeset) [! ENABLE_NLS]:
72245         Evaluate all the arguments.  That way, callers get compatible behavior
72246         if the arguments have side effects.  Also, it avoids some GCC
72247         diagnostics in some cases; Joel E. Denny reported problems when Bison
72248         was configured with --enable-gcc-warnigs.
72249
72250 2006-11-10  Jim Meyering  <jim@meyering.net>
72251
72252         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72253         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72254         account.
72255
72256 2006-11-10  Jim Meyering  <jim@meyering.net>
72257
72258         * modules/inline: New file/module.
72259         * modules/xalloc (Files): Remove m4/inline.m4.
72260         (Depends-on): Add inline, instead.
72261         * modules/oset: Likewise.
72262         * modules/list: Likewise.
72263
72264 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72265
72266         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72267         Problem reported by Matthew Woehlke.
72268
72269 2006-11-09  Bruno Haible  <bruno@clisp.org>
72270
72271         * lib/tempname.c (gen_tempname): Remove variant that invokes
72272         __gen_tempname.
72273         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72274         __gen_tempname.
72275
72276 2006-11-08  Bruno Haible  <bruno@clisp.org>
72277
72278         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72279         to 'yes' instead of 'cross-compiling'.
72280
72281 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72282
72283         * lib/quotearg.h (quotearg_free): New decl.
72284         * lib/quotearg.c (quotearg_free): New function.
72285         (slot0, nslots, slotvec0, slotvec):
72286         Now file-scope so that quotearg_free can get at them.
72287
72288 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72289
72290         Sync from Automake.
72291         * build-aux/gnupload: Add missing 'gnu' to example URL.
72292         Report by Karl Berry.
72293
72294 2006-11-08  Bruno Haible  <bruno@clisp.org>
72295
72296         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72297         Suggested by Paul Eggert.
72298
72299 2006-11-08  Jim Meyering  <jim@meyering.net>
72300
72301         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72302         It's already included if !_LIBC.
72303         (fts_safe_changedir): Add a comment.
72304
72305 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72306
72307         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72308         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72309         Matthew Woehlke.
72310
72311         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72312         definitions up, to avoid colliding with change below.
72313         (static_inline) [HAVE_INLINE]: New macro.
72314         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72315         Provide extern decls when !HAVE_INLINE.  Do not define unless
72316         static_inline is defined, either by us or by xmalloc.c.  Use
72317         static_inline rather than static inline.
72318         (XCALLOC): Optimize sizeof(T) = 1 case.
72319         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72320
72321 2006-11-07  Bruno Haible  <bruno@clisp.org>
72322
72323         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72324         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72325         AC_C_INLINE.
72326         * modules/xalloc (Files): Add m4/inline.m4.
72327
72328 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72329
72330         * README: Fix typo.
72331         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72332         (Miscellanous Notes): ...from this.
72333
72334 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72335
72336         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72337         Mention that offsetof should be used instead of sizeof.
72338         From Bruno Haible.
72339
72340 2006-11-07  Bruno Haible  <bruno@clisp.org>
72341
72342         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72343
72344 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72345
72346         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72347         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72348         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72349         (gl_tree_add_before, gl_tree_add_after):
72350         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72351         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72352         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72353         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72354         (gl_linked_add_after, gl_linked_add_at): Likewise.
72355         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72356         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72357         (gl_tree_add_before, gl_tree_add_after): Likewise.
72358         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72359         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72360         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72361
72362 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72363
72364         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72365
72366 2006-11-06  Bruno Haible  <bruno@clisp.org>
72367
72368         * m4/inline.m4: New file.
72369         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72370         * modules/list (Files): Add m4/inline.m4.
72371         * modules/oset (Files): Likewise.
72372
72373 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72374
72375         * lib/idcache.c: Include <stddef.h>, for offsetof.
72376         (struct userid.name): Change from char * to a flexible array member.
72377         All uses changed.
72378         * modules/idcache (Depends-on): Add flexmember.
72379
72380         * MODULES.html.sh (Core language properties): New module flexmember.
72381         * modules/flexmember, m4/flexmember.m4: New files.
72382
72383         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72384         inline functions that are identical with the old xnmalloc_inline,
72385         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72386         that we can avoid some unnecessary integer multiplications and
72387         divisions in the common case where the element size is known at
72388         compile time.
72389         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72390         needed.
72391         (xnboundedmalloc): Remove.
72392         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72393         arguments, for consistency with rest of this header.
72394         (xcharalloc): Rewrite using XNMALLOC.
72395         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72396         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72397         versions have been moved to lib/xalloc.h and renamed to be the
72398         non-*_inline versions.
72399         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72400         and xnrealloc functions, since those functions are now inline and
72401         now call us.
72402         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72403         renaming described above.
72404         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72405         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72406         captures the dependency in AC_C_INLINE.
72407
72408         New module canonicalize-lgpl, proposed by Charles Wilson in
72409         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72410         with a few small changes afterwards.
72411         * MODULES.html.sh (File system functions): New module
72412         canonicalize-lgpl.
72413         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72414         and canonicalize_file_name.
72415         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72416         * modules/canonicalize-lgpl: New files.
72417
72418 2006-11-05  Bruno Haible  <bruno@clisp.org>
72419
72420         * gnulib-tool (func_import, func_create_testdir): Create directories
72421         also for files in subdirectories of lib/.
72422
72423 2006-11-05  Bruno Haible  <bruno@clisp.org>
72424
72425         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72426         ANSI C compliant.
72427
72428 2006-11-03  Bruno Haible  <bruno@clisp.org>
72429
72430         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72431         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72432         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72433         (xnboundedmalloc): New inline function.
72434         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72435         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72436         xmalloc.
72437         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72438         xmalloc.
72439         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72440         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72441         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72442         xmalloc.
72443         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72444         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72445         xmalloc.
72446         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72447         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72448         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72449         xmalloc.
72450         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72451         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72452         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72453         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72454         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72455         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72456         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72457
72458 2006-11-03  Bruno Haible  <bruno@clisp.org>
72459
72460         * lib/c-ctype.h [C++]: Define functions without name mangling.
72461         * lib/fwriteerror.h [C++]: Likewise.
72462         * lib/gcd.h [C++]: Likewise.
72463         * lib/linebreak.h [C++]: Likewise.
72464
72465 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72466
72467         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72468         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72469         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72470         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72471         Check for functions and headers just once.
72472         Check for declaration of canonicalize_file_name.
72473         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72474
72475 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72476
72477         * gnulib-tool (func_import): Fix typo in actioncmd.
72478
72479 2006-11-02  Bruno Haible  <bruno@clisp.org>
72480
72481         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72482         newline sequence in the Makefile.am snippet as a space, like "make"
72483         does.
72484         Reported by Roger Persson <perrog@gmail.com>.
72485
72486 2006-11-01  Bruno Haible  <bruno@clisp.org>
72487
72488         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72489         already declared in <string.h>.
72490         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72491
72492 2006-11-01  Bruno Haible  <bruno@clisp.org>
72493
72494         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72495         * lib/strcase.h: Include <string.h>.
72496         (strcasecmp): Define to rpl_strcasecmp here.
72497
72498 2006-11-01  Bruno Haible  <bruno@clisp.org>
72499
72500         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72501
72502 2006-11-01  Eric Blake  <ebb9@byu.net>
72503
72504         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72505
72506         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72507
72508 2006-10-29  Bruno Haible  <bruno@clisp.org>
72509
72510         Make it compile in C++ mode.
72511         * lib/full-write.c (full_rw): Add a cast.
72512
72513 2006-11-01  Bruno Haible  <bruno@clisp.org>
72514
72515         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72516         be POSIX compliant.
72517         Reported by Roger Persson <perrog@gmail.com>.
72518
72519 2006-11-01  Eric Blake  <ebb9@byu.net>
72520
72521         * lib/getopt_.h: Fix comments.
72522
72523 2006-10-31  Eric Blake  <ebb9@byu.net>
72524
72525         * modules/tmpdir (Depends-on): Add sys_stat.
72526         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72527         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72528         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72529         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72530         tempname.
72531
72532 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72533
72534         Avoid some C++ diagnostics reported by Bruno Haible.
72535         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72536         xmalloc.
72537         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72538         (struct slotvec): Move to top level.
72539         (quotearg_n_options): Rewrite to avoid xmalloc.
72540         * lib/xalloc.h (xcharalloc): New function.
72541         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72542         [defined __cplusplus]: Add function template that provides result
72543         type propagation.  This part of the change is from Bruno Haible.
72544
72545 2006-10-29  Bruno Haible  <bruno@clisp.org>
72546
72547         Make it compile in C++ mode.
72548         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72549         * lib/strnlen1.c (strnlen1): Cast memchr result.
72550         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72551         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72552         (create_temp_dir): Rename local variable 'template'.
72553         (compile_csharp_using_sscli): Add cast.
72554         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72555         * lib/findprog.c (find_in_path): Likewise.
72556         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72557         * lib/wait-process.c (register_slave_subprocess): Likewise.
72558
72559 2006-10-22  Bruno Haible  <bruno@clisp.org>
72560
72561         * modules/tsearch: New file.
72562         * lib/tsearch.h: New file.
72563         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72564         * m4/tsearch.m4: New file.
72565         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72566
72567 2006-10-29  Eric Blake  <ebb9@byu.net>
72568
72569         * lib/arcfour.c: Assume config.h.
72570         * lib/arctwo.c: Likewise.
72571         * lib/base64.c: Likewise.
72572         * lib/check-version.c: Likewise.
72573         * lib/crc.c: Likewise.
72574         * lib/des.c: Likewise.
72575         * lib/gc-gnulib.c: Likewise.
72576         * lib/gc-libgcrypt.c: Likewise.
72577         * lib/gc-pbkdf2-sha1.c: Likewise.
72578         * lib/getaddrinfo.c: Likewise.
72579         * lib/getdelim.c: Likewise.
72580         * lib/getline.c: Likewise.
72581         * lib/hmac-md5.c: Likewise.
72582         * lib/hmac-sha1.c: Likewise.
72583         * lib/iconvme.c: Likewise.
72584         * lib/md2.c: Likewise.
72585         * lib/md4.c: Likewise.
72586         * lib/memxor.c: Likewise.
72587         * lib/read-file.c: Likewise.
72588         * lib/readline.c: Likewise.
72589         * lib/rijndael-alg-fst.c: Likewise.
72590         * lib/rijndael-api-fst.c: Likewise.
72591         * lib/xgetdomainname.c: Likewise.
72592
72593 2006-10-28  Eric Blake  <ebb9@byu.net>
72594
72595         * lib/xstrndup.c: Assume config.h.
72596
72597 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72598
72599         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72600         stat-macros.h is now for our own macros, whereas stat_h is for
72601         macros in the <sys/stat.h> name space.
72602         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72603         (STAT_MACROS_H): Remove.
72604         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72605         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72606         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72607         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72608         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72609         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72610         Move these macros to ...
72611         * lib/stat_.h: here.  Don't include stat-macros.h.
72612         * lib/canonicalize.c: Don't include stat-macros.h.
72613         * lib/chown.c: Likewise.
72614         * lib/euidaccess.c: Likewise.
72615         * lib/file-type.c: Likewise.
72616         * lib/filemode.c: Likewise.
72617         * lib/glob.c: Likewise.
72618         * lib/isapipe.c: Likewise.
72619         * lib/lchown.c: Likewise.
72620         * lib/lstat.c: Likewise.
72621         * lib/mkdir-p.c: Likewise.
72622         * lib/rmdir.c: Likewise.
72623         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72624         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72625         unless mkdir isn't declared, to speed up 'configure'.
72626         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72627         would define all the S_* symbols.
72628         * modules/canonicalize (Depends-on):
72629         Depend on sys_stat, not stat-macros.
72630         * modules/chown: Likewise.
72631         * modules/euidaccess: Likewise.
72632         * modules/filemode: Likewise.
72633         * modules/file-type: Likewise.
72634         * modules/glob: Likewise.
72635         * modules/isapipe: Likewise.
72636         * modules/lchown: Likewise.
72637         * modules/lstat: Likewise.
72638         * modules/mkancesdirs: Likewise.
72639         * modules/rmdir: Likewise.
72640         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72641         * modules/modechange: Likewise.
72642         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72643         (configure.ac): Remove gl_STAT_MACROS.
72644         * modules/sys_stat (Depends-on): Remove stat-macros.
72645
72646 2006-10-27  Bruno Haible  <bruno@clisp.org>
72647
72648         * m4/signed.m4: Remove file.
72649         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72650         invocation.
72651         * modules/vasnprintf (Files): Remove m4/signed.m4.
72652
72653 2006-10-27  Bruno Haible  <bruno@clisp.org>
72654
72655         Update to GNU gettext 0.16.
72656         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72657         m4/inttypes-h.m4, m4/signed.m4.
72658         * m4/gettext.m4: Update to GNU gettext 0.16.
72659         * m4/intl.m4: New file, from GNU gettext.
72660         * m4/intldir.m4: New file, from GNU gettext.
72661         * config/srclist.txt: Update
72662
72663 2006-10-27  Eric Blake  <ebb9@byu.net>
72664
72665         * MODULES.html.sh: Document tempname.
72666         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72667         dependencies.
72668         (Files): Move lib/tempname.c...
72669         * modules/tempname: ...to this new module.
72670         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72671         (gl_PREREQ_TEMPNAME): Move...
72672         * m4/tempname.m4: ...to this new file.
72673         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72674         * modules/sys_stat (Depends-on): Add stat-macros.
72675         * lib/stat_.h (includes): Pick up stat macros.
72676         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72677         if stat macros are broken.
72678         * lib/tempname.c (includes): No need to include "stat-macros.h".
72679         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72680         (direxists, __path_search) [!_LIBC]: Don't compile these in
72681         gnulib; the tmpdir module covers that.
72682         * lib/tempname.h: New file.
72683
72684 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72685
72686         * COPYING: Explain how gnulib-tool converts licence headers.
72687         Almost all wording by Eric Blake.
72688
72689 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72690
72691         * lib/mbchar.h (is_basic_table): Make read-only.
72692         * lib/mbchar.c (is_basic_table): Likewise.
72693         Reported by John Darrington.
72694
72695 2006-10-25  Bruno Haible  <bruno@clisp.org>
72696
72697         * lib/progname.h (set_program_name): Undefine before defining.
72698
72699 2006-10-25  Bruno Haible  <bruno@clisp.org>
72700
72701         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72702         false for non-gcc C++ compilers.
72703         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72704
72705 2006-10-24  Bruno Haible  <bruno@clisp.org>
72706
72707         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72708         iconv implementations like Irix iconv.
72709
72710 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72711
72712         * modules/vararrays: New file.
72713         * m4/vararrays.m4: New file, taken from diffutils.
72714         * MODULES.html.sh: New module vararrays.
72715
72716 2006-10-24  Karl Berry  <karl@gnu.org>
72717
72718         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72719         Don't call GNU Unix.
72720
72721 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72722
72723         * users.txt: Add Libtool.
72724
72725         Sync from Libtool:
72726
72727         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72728
72729         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72730         to gnulib's policy of including config.h unconditionally.
72731
72732 2006-10-24  Bruno Haible  <bruno@clisp.org>
72733
72734         * modules/wcwidth (Files): Add m4/wint_t.m4.
72735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72736         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72737
72738 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72739
72740         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72741         to pacify GCC with some -W flags enabled.  Problem reported by
72742         Bruno Haible.
72743
72744 2006-10-24  Jim Meyering  <jim@meyering.net>
72745
72746         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72747         Reported by Karl Berry.
72748
72749 2006-10-23  Bruno Haible  <bruno@clisp.org>
72750
72751         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72752
72753 2006-10-24  Bruno Haible  <bruno@clisp.org>
72754
72755         * lib/gl_list.h: Use C comment style, not C++ comment style.
72756
72757 2006-10-23  Eric Blake  <ebb9@byu.net>
72758
72759         * lib/getaddrinfo.c (includes): Add missing include.
72760
72761 2006-10-23  Bruno Haible  <bruno@clisp.org>
72762             Paul Eggert  <eggert@cs.ucla.edu>
72763
72764         Ability to rename obstack_free.
72765         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72766         obstack_free.
72767         (obstack_free): Invoke the __obstack_free macro.
72768         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72769
72770 2006-10-23  Bruno Haible  <bruno@clisp.org>
72771             Paul Eggert  <eggert@cs.ucla.edu>
72772
72773         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72774         __argc, __argv from the declaration. (They are defined as macros on
72775         mingw.)
72776
72777 2006-10-22  Bruno Haible  <bruno@clisp.org>
72778
72779         * doc/gnulib-intro.texi: New file.
72780         * doc/gnulib.texi: Include it.
72781
72782 2006-10-21  Bruno Haible  <bruno@clisp.org>
72783
72784         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72785         "Introduction", "Miscellanous Notes", "Particular Modules".
72786
72787 2006-10-21  Bruno Haible  <bruno@clisp.org>
72788
72789         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72790         Change mostlyclean-local rule to avoid sh syntax error from bash
72791         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72792
72793 2006-10-23  Jim Meyering  <jim@meyering.net>
72794
72795         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72796         in place of snprintf.
72797
72798         * modules/inttostr (Files): Add lib/uinttostr.c.
72799         * lib/uinttostr.c (inttostr): New file/function.
72800         * lib/inttostr.h (uinttostr): Declare.
72801         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72802         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72803         Add uinttostr.
72804         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72805
72806 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72807
72808         * lib/canonicalize.c (ELOOP): Define if not already defined.
72809         Problem reported by Bruno Haible in
72810         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72811
72812 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72813
72814         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72815         Problem reported by Perry Smith and Ville Laurikari.
72816
72817         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72818         uses.
72819
72820 2006-10-19  Bruno Haible  <bruno@clisp.org>
72821
72822         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72823         for mingw.
72824
72825 2006-10-19  Bruno Haible  <bruno@clisp.org>
72826
72827         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72828         Needed for mingw.
72829
72830 2006-10-19  Bruno Haible  <bruno@clisp.org>
72831
72832         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72833
72834 2006-10-19  Bruno Haible  <bruno@clisp.org>
72835
72836         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72837         it.
72838
72839 2006-10-19  Bruno Haible  <bruno@clisp.org>
72840
72841         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72842         invocation.
72843
72844 2006-10-19  Bruno Haible  <bruno@clisp.org>
72845
72846         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72847         mountlist by default.
72848
72849 2006-10-16  Bruno Haible  <bruno@clisp.org>
72850
72851         * lib/c-strstr.c: Include c-strstr.h.
72852
72853 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72854
72855         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72856         in a slash.
72857
72858 2006-10-18  Bruno Haible  <bruno@clisp.org>
72859
72860         * lib/lock.h [C++]: Wrap definitions in extern "C".
72861
72862 2006-10-18  Bruno Haible  <bruno@clisp.org>
72863
72864         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72865         gl_LIBOBJS list.
72866
72867 2006-10-18  Bruno Haible  <bruno@clisp.org>
72868
72869         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72870
72871 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         * lib/xstrtol.h: Include gettext.h.
72874         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72875         Problem reported by Eric Blake.
72876         * modules/xstrtol (Depends-on): Add gettext-h.
72877
72878 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72879
72880         * lib/strftime.c (advance): New macro.
72881         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72882         incomplete type, so you can't add 0 to it.  Problem and patch
72883         reported by Eelco Dolstra for dietlibc.
72884
72885 2006-10-18  Jim Meyering  <jim@meyering.net>
72886
72887         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72888         type for a local, and rename it: s/up/user_proc/.
72889
72890 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72891
72892         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72893         READ_UTMP_USER_PROCESS.
72894         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72895
72896 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72897
72898         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72899         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72900
72901 2006-10-17  Eric Blake  <ebb9@byu.net>
72902
72903         * lib/sigprocmask.c (sigprocmask): Fix typo.
72904
72905         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72906
72907         * modules/clean-temp (Makefile.am): Don't add to make output...
72908         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72909         config.h.
72910
72911 2006-10-17  Bruno Haible  <bruno@clisp.org>
72912
72913         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72914         differently if DEFAULT_TEXT_DOMAIN is set.
72915
72916 2006-10-16  Bruno Haible  <bruno@clisp.org>
72917
72918         * lib/clean-temp.c: Include fwriteerror.h.
72919
72920 2006-10-16  Bruno Haible  <bruno@clisp.org>
72921
72922         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72923
72924 2006-10-16  Bruno Haible  <bruno@clisp.org>
72925
72926         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72927         * lib/sigprocmask.h: Include <sys/types.h>.
72928         (sigset_t): Use the system's definition if present.
72929
72930 2006-10-17  Eric Blake  <ebb9@byu.net>
72931
72932         * lib/xvasprintf.c (includes): Assume config.h.
72933         * lib/xasprintf.c (includes): Likewise.
72934
72935 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72936
72937         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72938         at least as wide as intmax_t.
72939
72940 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72941
72942         (Imported from Automake.)
72943         * build-aux/gnupload: Update to version 1.1 of directive file.
72944
72945 2006-10-16  Eric Blake  <ebb9@byu.net>
72946
72947         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72948         match Automake 1.10a.
72949
72950 2006-10-14  Bruno Haible  <bruno@clisp.org>
72951
72952         * modules/sigprocmask: New file.
72953         * lib/sigprocmask.h: New file.
72954         * lib/sigprocmask.c: New file.
72955         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72956         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72957         request sigprocmask.o.
72958         (gl_PREREQ_SIGPROCMASK): New macro.
72959         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72960         (Depends-on): Add sigprocmask.
72961         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72962         gt_SIGNALBLOCKING. Test for 'raise' only once.
72963         * lib/fatal-signal.c: Include sigprocmask.h.
72964         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72965         unblock_fatal_signals): Define always.
72966         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72967         sigprocmask.
72968
72969 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72970
72971         Sync from Automake.
72972         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72973         which incorrectly sets the mode of an existing destination
72974         directory.  In some cases the unpatched install-sh could do the
72975         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72976         system.  We hope this is rare in practice, but it's clearly worth
72977         fixing.  Problem reported by Alex Unleashed in
72978         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72979         Also, don't bother to check for -m bugs unless we're using -m;
72980         suggested by Stepan Kasal.
72981
72982 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72983
72984         Sync from Automake.
72985         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72986         `-c' flag, so they appear at the same position as in %FASTDEP%
72987         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72988         which ignores unknown options only after the first non-option.
72989         Bug report against M4 by Nelson H. F. Beebe.
72990
72991 2006-10-13  Jim Meyering  <jim@meyering.net>
72992
72993         Fix a bug in yesterday's change.
72994         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72995         p->fts_statp->st_dev would be used uninitialized.
72996         Ensures that we always call fts_stat on the very first entry.
72997         Miklos Szeredi reported that find -xdev stopped working.
72998
72999 2006-10-12  Bruno Haible  <bruno@clisp.org>
73000
73001         * gnulib-tool (func_get_automake_snippet): Append an automatically
73002         computed EXTRA_DIST augmentation.
73003         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73004         * modules/alloca-opt (Makefile.am): Likewise.
73005         * modules/allocsa (Makefile.am): Likewise.
73006         * modules/arcfour (Makefile.am): Likewise.
73007         * modules/arctwo (Makefile.am): Likewise.
73008         * modules/argmatch (Makefile.am): Likewise.
73009         * modules/argz (Makefile.am): Likewise.
73010         * modules/atexit (Makefile.am): Likewise.
73011         * modules/backupfile (Makefile.am): Likewise.
73012         * modules/byteswap (Makefile.am): Likewise.
73013         * modules/c-strtod (Makefile.am): Likewise.
73014         * modules/c-strtold (Makefile.am): Likewise.
73015         * modules/calloc (Makefile.am): Likewise.
73016         * modules/canon-host (Makefile.am): Likewise.
73017         * modules/canonicalize (Makefile.am): Likewise.
73018         * modules/chdir-long (Makefile.am): Likewise.
73019         * modules/chdir-safer (Makefile.am): Likewise.
73020         * modules/check-version (Makefile.am): Likewise.
73021         * modules/chown (Makefile.am): Likewise.
73022         * modules/cloexec (Makefile.am): Likewise.
73023         * modules/close-stream (Makefile.am): Likewise.
73024         * modules/closeout (Makefile.am): Likewise.
73025         * modules/crc (Makefile.am): Likewise.
73026         * modules/csharpexec (Makefile.am): Likewise.
73027         * modules/cycle-check (Makefile.am): Likewise.
73028         * modules/des (Makefile.am): Likewise.
73029         * modules/dev-ino (Makefile.am): Likewise.
73030         * modules/dirfd (Makefile.am): Likewise.
73031         * modules/dirname (Makefile.am): Likewise.
73032         * modules/dup2 (Makefile.am): Likewise.
73033         * modules/eealloc (Makefile.am): Likewise.
73034         * modules/error (Makefile.am): Likewise.
73035         * modules/euidaccess (Makefile.am): Likewise.
73036         * modules/exclude (Makefile.am): Likewise.
73037         * modules/exitfail (Makefile.am): Likewise.
73038         * modules/fcntl-safer (Makefile.am): Likewise.
73039         * modules/fcntl (Makefile.am): Likewise.
73040         * modules/file-type (Makefile.am): Likewise.
73041         * modules/fileblocks (Makefile.am): Likewise.
73042         * modules/filemode (Makefile.am): Likewise.
73043         * modules/filenamecat (Makefile.am): Likewise.
73044         * modules/fnmatch (Makefile.am): Likewise.
73045         * modules/fopen-safer (Makefile.am): Likewise.
73046         * modules/fpending (Makefile.am): Likewise.
73047         * modules/fprintftime (Makefile.am): Likewise.
73048         * modules/free (Makefile.am): Likewise.
73049         * modules/fsusage (Makefile.am): Likewise.
73050         * modules/ftruncate (Makefile.am): Likewise.
73051         * modules/fts (Makefile.am): Likewise.
73052         * modules/gc-arcfour (Makefile.am): Likewise.
73053         * modules/gc-des (Makefile.am): Likewise.
73054         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73055         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73056         * modules/gc-md4 (Makefile.am): Likewise.
73057         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73058         * modules/gc-sha1 (Makefile.am): Likewise.
73059         * modules/gc (Makefile.am): Likewise.
73060         * modules/getaddrinfo (Makefile.am): Likewise.
73061         * modules/getcwd (Makefile.am): Likewise.
73062         * modules/getdelim (Makefile.am): Likewise.
73063         * modules/getdomainname (Makefile.am): Likewise.
73064         * modules/getgroups (Makefile.am): Likewise.
73065         * modules/gethostname (Makefile.am): Likewise.
73066         * modules/gethrxtime (Makefile.am): Likewise.
73067         * modules/getline (Makefile.am): Likewise.
73068         * modules/getloadavg (Makefile.am): Likewise.
73069         * modules/getlogin_r (Makefile.am): Likewise.
73070         * modules/getndelim2 (Makefile.am): Likewise.
73071         * modules/getopt (Makefile.am): Likewise.
73072         * modules/getpagesize (Makefile.am): Likewise.
73073         * modules/getpass-gnu (Makefile.am): Likewise.
73074         * modules/getpass (Makefile.am): Likewise.
73075         * modules/getsubopt (Makefile.am): Likewise.
73076         * modules/gettime (Makefile.am): Likewise.
73077         * modules/gettimeofday (Makefile.am): Likewise.
73078         * modules/getugroups (Makefile.am): Likewise.
73079         * modules/getusershell (Makefile.am): Likewise.
73080         * modules/glob (Makefile.am): Likewise.
73081         * modules/group-member (Makefile.am): Likewise.
73082         * modules/hard-locale (Makefile.am): Likewise.
73083         * modules/hash (Makefile.am): Likewise.
73084         * modules/hmac-md5 (Makefile.am): Likewise.
73085         * modules/hmac-sha1 (Makefile.am): Likewise.
73086         * modules/human (Makefile.am): Likewise.
73087         * modules/idcache (Makefile.am): Likewise.
73088         * modules/imaxabs (Makefile.am): Likewise.
73089         * modules/imaxdiv (Makefile.am): Likewise.
73090         * modules/inet_ntop (Makefile.am): Likewise.
73091         * modules/inet_pton (Makefile.am): Likewise.
73092         * modules/intprops (Makefile.am): Likewise.
73093         * modules/inttostr (Makefile.am): Likewise.
73094         * modules/inttypes (Makefile.am): Likewise.
73095         * modules/isapipe (Makefile.am): Likewise.
73096         * modules/javaversion (Makefile.am): Likewise.
73097         * modules/lchmod (Makefile.am): Likewise.
73098         * modules/lchown (Makefile.am): Likewise.
73099         * modules/localcharset (Makefile.am): Likewise.
73100         * modules/long-options (Makefile.am): Likewise.
73101         * modules/lstat (Makefile.am): Likewise.
73102         * modules/malloc (Makefile.am): Likewise.
73103         * modules/mathl (Makefile.am): Likewise.
73104         * modules/mbchar (Makefile.am): Likewise.
73105         * modules/md2 (Makefile.am): Likewise.
73106         * modules/md4 (Makefile.am): Likewise.
73107         * modules/md5 (Makefile.am): Likewise.
73108         * modules/memcasecmp (Makefile.am): Likewise.
73109         * modules/memchr (Makefile.am): Likewise.
73110         * modules/memcmp (Makefile.am): Likewise.
73111         * modules/memcoll (Makefile.am): Likewise.
73112         * modules/memcpy (Makefile.am): Likewise.
73113         * modules/memmem (Makefile.am): Likewise.
73114         * modules/memmove (Makefile.am): Likewise.
73115         * modules/mempcpy (Makefile.am): Likewise.
73116         * modules/memrchr (Makefile.am): Likewise.
73117         * modules/memset (Makefile.am): Likewise.
73118         * modules/memxor (Makefile.am): Likewise.
73119         * modules/mkancesdirs (Makefile.am): Likewise.
73120         * modules/mkdir-p (Makefile.am): Likewise.
73121         * modules/mkdir (Makefile.am): Likewise.
73122         * modules/mkdtemp (Makefile.am): Likewise.
73123         * modules/mkstemp (Makefile.am): Likewise.
73124         * modules/mktime (Makefile.am): Likewise.
73125         * modules/modechange (Makefile.am): Likewise.
73126         * modules/mountlist (Makefile.am): Likewise.
73127         * modules/nanosleep (Makefile.am): Likewise.
73128         * modules/obstack (Makefile.am): Likewise.
73129         * modules/openat (Makefile.am): Likewise.
73130         * modules/pagealign_alloc (Makefile.am): Likewise.
73131         * modules/pathmax (Makefile.am): Likewise.
73132         * modules/physmem (Makefile.am): Likewise.
73133         * modules/poll (Makefile.am): Likewise.
73134         * modules/posixtm (Makefile.am): Likewise.
73135         * modules/posixver (Makefile.am): Likewise.
73136         * modules/putenv (Makefile.am): Likewise.
73137         * modules/quote (Makefile.am): Likewise.
73138         * modules/quotearg (Makefile.am): Likewise.
73139         * modules/raise (Makefile.am): Likewise.
73140         * modules/read-file (Makefile.am): Likewise.
73141         * modules/readline (Makefile.am): Likewise.
73142         * modules/readlink (Makefile.am): Likewise.
73143         * modules/readtokens (Makefile.am): Likewise.
73144         * modules/readutmp (Makefile.am): Likewise.
73145         * modules/realloc (Makefile.am): Likewise.
73146         * modules/regex (Makefile.am): Likewise.
73147         * modules/rename-dest-slash (Makefile.am): Likewise.
73148         * modules/rename (Makefile.am): Likewise.
73149         * modules/rijndael (Makefile.am): Likewise.
73150         * modules/rmdir (Makefile.am): Likewise.
73151         * modules/rpmatch (Makefile.am): Likewise.
73152         * modules/safe-read (Makefile.am): Likewise.
73153         * modules/safe-write (Makefile.am): Likewise.
73154         * modules/same-inode (Makefile.am): Likewise.
73155         * modules/same (Makefile.am): Likewise.
73156         * modules/save-cwd (Makefile.am): Likewise.
73157         * modules/savedir (Makefile.am): Likewise.
73158         * modules/setenv (Makefile.am): Likewise.
73159         * modules/settime (Makefile.am): Likewise.
73160         * modules/sha1 (Makefile.am): Likewise.
73161         * modules/sig2str (Makefile.am): Likewise.
73162         * modules/snprintf (Makefile.am): Likewise.
73163         * modules/stat-macros (Makefile.am): Likewise.
73164         * modules/stat-time (Makefile.am): Likewise.
73165         * modules/stdbool (Makefile.am): Likewise.
73166         * modules/stdint (Makefile.am): Likewise.
73167         * modules/stdlib-safer (Makefile.am): Likewise.
73168         * modules/stpcpy (Makefile.am): Likewise.
73169         * modules/stpncpy (Makefile.am): Likewise.
73170         * modules/strcase (Makefile.am): Likewise.
73171         * modules/strcasestr (Makefile.am): Likewise.
73172         * modules/strchrnul (Makefile.am): Likewise.
73173         * modules/strcspn (Makefile.am): Likewise.
73174         * modules/strdup (Makefile.am): Likewise.
73175         * modules/strerror (Makefile.am): Likewise.
73176         * modules/strftime (Makefile.am): Likewise.
73177         * modules/strndup (Makefile.am): Likewise.
73178         * modules/strnlen (Makefile.am): Likewise.
73179         * modules/strpbrk (Makefile.am): Likewise.
73180         * modules/strsep (Makefile.am): Likewise.
73181         * modules/strstr (Makefile.am): Likewise.
73182         * modules/strtod (Makefile.am): Likewise.
73183         * modules/strtoimax (Makefile.am): Likewise.
73184         * modules/strtok_r (Makefile.am): Likewise.
73185         * modules/strtol (Makefile.am): Likewise.
73186         * modules/strtoll (Makefile.am): Likewise.
73187         * modules/strtoul (Makefile.am): Likewise.
73188         * modules/strtoull (Makefile.am): Likewise.
73189         * modules/strtoumax (Makefile.am): Likewise.
73190         * modules/strverscmp (Makefile.am): Likewise.
73191         * modules/sys_socket (Makefile.am): Likewise.
73192         * modules/sys_stat (Makefile.am): Likewise.
73193         * modules/sysexits (Makefile.am): Likewise.
73194         * modules/time_r (Makefile.am): Likewise.
73195         * modules/timegm (Makefile.am): Likewise.
73196         * modules/timespec (Makefile.am): Likewise.
73197         * modules/tmpfile-safer (Makefile.am): Likewise.
73198         * modules/trim (Makefile.am): Likewise.
73199         * modules/unistd-safer (Makefile.am): Likewise.
73200         * modules/unlinkdir (Makefile.am): Likewise.
73201         * modules/unlocked-io (Makefile.am): Likewise.
73202         * modules/userspec (Makefile.am): Likewise.
73203         * modules/utime (Makefile.am): Likewise.
73204         * modules/utimecmp (Makefile.am): Likewise.
73205         * modules/utimens (Makefile.am): Likewise.
73206         * modules/vasnprintf (Makefile.am): Likewise.
73207         * modules/vasprintf (Makefile.am): Likewise.
73208         * modules/vsnprintf (Makefile.am): Likewise.
73209         * modules/xalloc (Makefile.am): Likewise.
73210         * modules/xgetcwd (Makefile.am): Likewise.
73211         * modules/xnanosleep (Makefile.am): Likewise.
73212         * modules/xreadlink (Makefile.am): Likewise.
73213         * modules/xstrtod (Makefile.am): Likewise.
73214         * modules/xstrtol (Makefile.am): Likewise.
73215         * modules/xstrtold (Makefile.am): Likewise.
73216         * modules/yesno (Makefile.am): Likewise.
73217         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73218
73219 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73220
73221         * modules/error (Makefile.am): Distribute files through
73222         EXTRA_DIST, not lib_SOURCES.
73223
73224 2006-10-12  Eric Blake  <ebb9@byu.net>
73225
73226         * modules/error (Makefile.am): Distribute files in /lib.
73227         * modules/obstack (Makefile.am): Likewise.
73228
73229 2006-10-12  Bruno Haible  <bruno@clisp.org>
73230
73231         * modules/acl (Makefile.am): Distribute all files in lib/ through
73232         EXTRA_DIST.
73233         * modules/arcfour (Makefile.am): Likewise.
73234         * modules/arctwo (Makefile.am): Likewise.
73235         * modules/argmatch (Makefile.am): Likewise.
73236         * modules/argz (Makefile.am): Likewise.
73237         * modules/atexit (Makefile.am): Likewise.
73238         * modules/backupfile (Makefile.am): Likewise.
73239         * modules/c-strtod (Makefile.am): Likewise.
73240         * modules/c-strtold (Makefile.am): Likewise.
73241         * modules/calloc (Makefile.am): Likewise.
73242         * modules/canon-host (Makefile.am): Likewise.
73243         * modules/canonicalize (Makefile.am): Likewise.
73244         * modules/chdir-long (Makefile.am): Likewise.
73245         * modules/chdir-safer (Makefile.am): Likewise.
73246         * modules/check-version (Makefile.am): Likewise.
73247         * modules/chown (Makefile.am): Likewise.
73248         * modules/cloexec (Makefile.am): Likewise.
73249         * modules/close-stream (Makefile.am): Likewise.
73250         * modules/closeout (Makefile.am): Likewise.
73251         * modules/crc (Makefile.am): Likewise.
73252         * modules/cycle-check (Makefile.am): Likewise.
73253         * modules/des (Makefile.am): Likewise.
73254         * modules/dirfd (Makefile.am): Likewise.
73255         * modules/dirname (Makefile.am): Likewise.
73256         * modules/dup2 (Makefile.am): Likewise.
73257         * modules/euidaccess (Makefile.am): Likewise.
73258         * modules/exclude (Makefile.am): Likewise.
73259         * modules/exitfail (Makefile.am): Likewise.
73260         * modules/fcntl-safer (Makefile.am): Likewise.
73261         * modules/file-type (Makefile.am): Likewise.
73262         * modules/fileblocks (Makefile.am): Likewise.
73263         * modules/filemode (Makefile.am): Likewise.
73264         * modules/filenamecat (Makefile.am): Likewise.
73265         * modules/fnmatch (Makefile.am): Likewise.
73266         * modules/fopen-safer (Makefile.am): Likewise.
73267         * modules/fpending (Makefile.am): Likewise.
73268         * modules/fprintftime (Makefile.am): Likewise.
73269         * modules/free (Makefile.am): Likewise.
73270         * modules/fsusage (Makefile.am): Likewise.
73271         * modules/ftruncate (Makefile.am): Likewise.
73272         * modules/fts (Makefile.am): Likewise.
73273         * modules/gc (Makefile.am): Likewise.
73274         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73275         * modules/getaddrinfo (Makefile.am): Likewise.
73276         * modules/getcwd (Makefile.am): Likewise.
73277         * modules/getdelim (Makefile.am): Likewise.
73278         * modules/getdomainname (Makefile.am): Likewise.
73279         * modules/getgroups (Makefile.am): Likewise.
73280         * modules/gethostname (Makefile.am): Likewise.
73281         * modules/gethrxtime (Makefile.am): Likewise.
73282         * modules/getline (Makefile.am): Likewise.
73283         * modules/getloadavg (Makefile.am): Likewise.
73284         * modules/getlogin_r (Makefile.am): Likewise.
73285         * modules/getopt (Makefile.am): Likewise.
73286         * modules/getpass (Makefile.am): Likewise.
73287         * modules/getpass-gnu (Makefile.am): Likewise.
73288         * modules/getsubopt (Makefile.am): Likewise.
73289         * modules/gettime (Makefile.am): Likewise.
73290         * modules/gettimeofday (Makefile.am): Likewise.
73291         * modules/getugroups (Makefile.am): Likewise.
73292         * modules/getusershell (Makefile.am): Likewise.
73293         * modules/glob (Makefile.am): Likewise.
73294         * modules/group-member (Makefile.am): Likewise.
73295         * modules/hard-locale (Makefile.am): Likewise.
73296         * modules/hash (Makefile.am): Likewise.
73297         * modules/hmac-md5 (Makefile.am): Likewise.
73298         * modules/hmac-sha1 (Makefile.am): Likewise.
73299         * modules/human (Makefile.am): Likewise.
73300         * modules/idcache (Makefile.am): Likewise.
73301         * modules/imaxabs (Makefile.am): Likewise.
73302         * modules/imaxdiv (Makefile.am): Likewise.
73303         * modules/inet_ntop (Makefile.am): Likewise.
73304         * modules/inet_pton (Makefile.am): Likewise.
73305         * modules/inttostr (Makefile.am): Likewise.
73306         * modules/isapipe (Makefile.am): Likewise.
73307         * modules/lchown (Makefile.am): Likewise.
73308         * modules/long-options (Makefile.am): Likewise.
73309         * modules/lstat (Makefile.am): Likewise.
73310         * modules/malloc (Makefile.am): Likewise.
73311         * modules/mathl (Makefile.am): Likewise.
73312         * modules/mbchar (Makefile.am): Likewise.
73313         * modules/md2 (Makefile.am): Likewise.
73314         * modules/md4 (Makefile.am): Likewise.
73315         * modules/md5 (Makefile.am): Likewise.
73316         * modules/memcasecmp (Makefile.am): Likewise.
73317         * modules/memchr (Makefile.am): Likewise.
73318         * modules/memcmp (Makefile.am): Likewise.
73319         * modules/memcoll (Makefile.am): Likewise.
73320         * modules/memcpy (Makefile.am): Likewise.
73321         * modules/memmem (Makefile.am): Likewise.
73322         * modules/memmove (Makefile.am): Likewise.
73323         * modules/mempcpy (Makefile.am): Likewise.
73324         * modules/memrchr (Makefile.am): Likewise.
73325         * modules/memset (Makefile.am): Likewise.
73326         * modules/memxor (Makefile.am): Likewise.
73327         * modules/mkancesdirs (Makefile.am): Likewise.
73328         * modules/mkdir (Makefile.am): Likewise.
73329         * modules/mkdir-p (Makefile.am): Likewise.
73330         * modules/mkdtemp (Makefile.am): Likewise.
73331         * modules/mkstemp (Makefile.am): Likewise.
73332         * modules/mktime (Makefile.am): Likewise.
73333         * modules/modechange (Makefile.am): Likewise.
73334         * modules/mountlist (Makefile.am): Likewise.
73335         * modules/nanosleep (Makefile.am): Likewise.
73336         * modules/openat (Makefile.am): Likewise.
73337         * modules/pagealign_alloc (Makefile.am): Likewise.
73338         * modules/physmem (Makefile.am): Likewise.
73339         * modules/poll (Makefile.am): Likewise.
73340         * modules/posixtm (Makefile.am): Likewise.
73341         * modules/posixver (Makefile.am): Likewise.
73342         * modules/putenv (Makefile.am): Likewise.
73343         * modules/quote (Makefile.am): Likewise.
73344         * modules/quotearg (Makefile.am): Likewise.
73345         * modules/raise (Makefile.am): Likewise.
73346         * modules/read-file (Makefile.am): Likewise.
73347         * modules/readline (Makefile.am): Likewise.
73348         * modules/readlink (Makefile.am): Likewise.
73349         * modules/readtokens (Makefile.am): Likewise.
73350         * modules/readutmp (Makefile.am): Likewise.
73351         * modules/realloc (Makefile.am): Likewise.
73352         * modules/regex (Makefile.am): Likewise.
73353         * modules/rename (Makefile.am): Likewise.
73354         * modules/rename-dest-slash (Makefile.am): Likewise.
73355         * modules/rijndael (Makefile.am): Likewise.
73356         * modules/rmdir (Makefile.am): Likewise.
73357         * modules/rpmatch (Makefile.am): Likewise.
73358         * modules/safe-read (Makefile.am): Likewise.
73359         * modules/safe-write (Makefile.am): Likewise.
73360         * modules/same (Makefile.am): Likewise.
73361         * modules/save-cwd (Makefile.am): Likewise.
73362         * modules/savedir (Makefile.am): Likewise.
73363         * modules/setenv (Makefile.am): Likewise.
73364         * modules/settime (Makefile.am): Likewise.
73365         * modules/sha1 (Makefile.am): Likewise.
73366         * modules/sig2str (Makefile.am): Likewise.
73367         * modules/snprintf (Makefile.am): Likewise.
73368         * modules/stdlib-safer (Makefile.am): Likewise.
73369         * modules/stpcpy (Makefile.am): Likewise.
73370         * modules/stpncpy (Makefile.am): Likewise.
73371         * modules/strcase (Makefile.am): Likewise.
73372         * modules/strcasestr (Makefile.am): Likewise.
73373         * modules/strchrnul (Makefile.am): Likewise.
73374         * modules/strcspn (Makefile.am): Likewise.
73375         * modules/strdup (Makefile.am): Likewise.
73376         * modules/strerror (Makefile.am): Likewise.
73377         * modules/strftime (Makefile.am): Likewise.
73378         * modules/strndup (Makefile.am): Likewise.
73379         * modules/strnlen (Makefile.am): Likewise.
73380         * modules/strpbrk (Makefile.am): Likewise.
73381         * modules/strsep (Makefile.am): Likewise.
73382         * modules/strstr (Makefile.am): Likewise.
73383         * modules/strtod (Makefile.am): Likewise.
73384         * modules/strtoimax (Makefile.am): Likewise.
73385         * modules/strtok_r (Makefile.am): Likewise.
73386         * modules/strtol (Makefile.am): Likewise.
73387         * modules/strtoll (Makefile.am): Likewise.
73388         * modules/strtoul (Makefile.am): Likewise.
73389         * modules/strtoull (Makefile.am): Likewise.
73390         * modules/strtoumax (Makefile.am): Likewise.
73391         * modules/strverscmp (Makefile.am): Likewise.
73392         * modules/time_r (Makefile.am): Likewise.
73393         * modules/timegm (Makefile.am): Likewise.
73394         * modules/tmpfile-safer (Makefile.am): Likewise.
73395         * modules/unistd-safer (Makefile.am): Likewise.
73396         * modules/unlinkdir (Makefile.am): Likewise.
73397         * modules/userspec (Makefile.am): Likewise.
73398         * modules/utime (Makefile.am): Likewise.
73399         * modules/utimecmp (Makefile.am): Likewise.
73400         * modules/utimens (Makefile.am): Likewise.
73401         * modules/vasnprintf (Makefile.am): Likewise.
73402         * modules/vasprintf (Makefile.am): Likewise.
73403         * modules/vsnprintf (Makefile.am): Likewise.
73404         * modules/xalloc (Makefile.am): Likewise.
73405         * modules/xgetcwd (Makefile.am): Likewise.
73406         * modules/xnanosleep (Makefile.am): Likewise.
73407         * modules/xreadlink (Makefile.am): Likewise.
73408         * modules/xstrtod (Makefile.am): Likewise.
73409         * modules/xstrtol (Makefile.am): Likewise.
73410         * modules/xstrtold (Makefile.am): Likewise.
73411         * modules/yesno (Makefile.am): Likewise.
73412
73413 2006-10-12  Jim Meyering  <jim@meyering.net>
73414
73415         * m4/getloadavg.m4: Revert the change below.
73416
73417         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73418         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73419         fail with a symlink, which is what coreutils' ./bootstrap now
73420         creates by default.
73421
73422 2006-10-12  Bruno Haible  <bruno@clisp.org>
73423
73424         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73425         mingw.
73426         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73427         MSVC and mingw explicitly.
73428
73429 2006-10-11  Simon Josefsson  <jas@extundo.com>
73430             Bruno Haible  <bruno@clisp.org>
73431
73432         Add support for multiple gnulib-tool invocations in the scope of a
73433         single configure.ac file.
73434         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73435         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73436         with the same contents as the _LIBADD variable.
73437         (func_emit_initmacro_start, func_emit_initmacro_end,
73438         func_emit_initmacro_done): New functions.
73439         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73440         gl_LIBOBJS and gl_LTLIBOBJS.
73441
73442 2006-10-11  Bruno Haible  <bruno@clisp.org>
73443
73444         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73445         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73446         autoreconf. Instead, invoke autopoint explicitly but move back the
73447         *.m4 files from gnulib.
73448
73449 2006-10-11  Bruno Haible  <bruno@clisp.org>
73450
73451         * gnulib-tool (func_usage): Make module names after --create-testdir
73452         optional.
73453         (func_create_testdir): If no module was specified, use nearly all
73454         modules.
73455
73456 2006-10-12  Jim Meyering  <jim@meyering.net>
73457
73458         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73459         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73460         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73461         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73462         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73463         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73464         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73465         (fts_set_stat_required): New function.
73466         (fts_open): Defer the calls to fts_stat, if possible or requested.
73467         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73468         into fts_stat itself.
73469         (fts_read): Perform any required (deferred) fts_stat call.
73470         (fts_build): Likewise, for the directory we're about to open and read.
73471         In the readdir loop, carefully decide whether each entry will require
73472         an eventual call to fts_stat, using dirent.d_type info if available.
73473         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73474         a command line argument into this function.  Update all callers.
73475         Map a return value of FTS_DOT to FTS_D for a command line argument.
73476         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73477         Thanks to Miklos Szeredi for his tenacity and for the initial
73478         bug report about "find" failing on a FUSE-based file system.
73479
73480         * lib/fts.c (fts_open): Use consistent indentation.
73481
73482 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73483
73484         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73485         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73486         reported by Jim Meyering.  All uses of cache variables renamed
73487         to match Autoconf's.
73488         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73489         the other one.
73490
73491         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73492         Fix misspelling in diagnostic.
73493
73494 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73495
73496         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73497         defined.  Problem reported by Matthew Woehlke.
73498
73499         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73500         Add support for Tandem NonStop R series.
73501         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73502         Use new macro.
73503
73504         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73505         (has_trailing_slash): Omit size arg; all callers changed.
73506         Omit 'inline', since it doesn't help performance and we'd
73507         need to configure it.
73508         Don't count //, ///, etc. as having a trailing slash.
73509         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73510         (rpl_rename_dest_slash): On failure, use rename's errno rather
73511         than (in some cases) an incorrect or junk errno.
73512         Simplify code by removing need to compute length; this does
73513         cause it to make two passes instead of one over the file name,
73514         but it's worth it.
73515
73516         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73517         change, since Autoconf's version may no longer be appropriate now
73518         that we are using CVS Autoconf's version.  Add support for Tandem.
73519
73520 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73521             Bruno Haible  <bruno@clisp.org>
73522
73523         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73524         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73525         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73526         gl_AC_TYPE_LONG_LONG.
73527
73528         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73529         instead of HAVE_LONG_LONG.
73530         * lib/printf-args.c (printf_fetchargs): Likewise.
73531         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73532         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73533         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73534         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73535         gl_AC_TYPE_LONG_LONG.
73536
73537 2006-10-11  Bruno Haible  <bruno@clisp.org>
73538
73539         * m4/longlong.m4: Add comments.
73540         * m4/ulonglong.m4: Likewise.
73541
73542 2006-10-10  Bruno Haible  <bruno@clisp.org>
73543
73544         Make it possible to #define stpcpy, strdup to aliases.
73545         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73546         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73547
73548 2006-10-10  Bruno Haible  <bruno@clisp.org>
73549
73550         Make it possible to #define gcd to an alias.
73551         * lib/gcd.c: Include config.h.
73552
73553 2006-10-10  Bruno Haible  <bruno@clisp.org>
73554
73555         Make it possible to #define c_isascii to an alias.
73556         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73557         defined. Undefine the macros before defining them, to avoid gcc
73558         warnings.
73559         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73560         define NO_C_CTYPE_MACROS early.
73561
73562 2006-10-10  Bruno Haible  <bruno@clisp.org>
73563
73564         Make it possible to #define set_program_name to an alias.
73565         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73566         ENABLE_RELOCATABLE early.
73567
73568 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73569
73570         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73571         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73572         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73573         More generally, don't assume that 64-bit signed int is available
73574         if unsigned int is, and vice versa.
73575         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73576         unsigned symbols, not on their signed counterparts.
73577         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73578         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73579         (UINT64_C, UINTMAX_C):
73580         Likewise.
73581         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73582         unsigned counterparts.
73583         (Have_long_long, Unsigned): New macros.
73584         (Int): Renamed from INT.
73585         (strtoimax): Use the new macros.
73586         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73587         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73588         * modules/inttypes (inttypes.h): Substitute
73589         HAVE_UNSIGNED_LONG_LONG_INT.
73590         * modules/stdint (stdint.h): Likewise.
73591         (Files): Add m4/ulonglong.m4.
73592
73593 2006-10-10  Bruno Haible  <bruno@clisp.org>
73594
73595         Fix a gcc -Wshadow warning.
73596         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73597         to 'bucket'.
73598         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73599         gl_linked_indexof_from_to): Likewise.
73600         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73601         Likewise.
73602         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73603         Likewise.
73604         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73605         Reported by Eric Blake.
73606
73607 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73608
73609         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73610         for NetBSD.  Problem reported by Bruno Haible.
73611
73612 2006-10-09  Jim Meyering  <jim@meyering.net>
73613
73614         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73615         Patch from Bruno Haible.
73616
73617 2006-10-09  Jim Meyering  <jim@meyering.net>
73618
73619         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73620         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73621         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73622
73623 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         Don't include <config.h> twice; this doesn't work in some cases,
73626         e.g., when config.h has "#define intmax_t long long int" and
73627         we include <config.h>, <inttypes.h>, <config.h> in that order.
73628         Problem reported by Matthew Woehlke in:
73629         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73630         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73631         * lib/fts-cycle.c: Don't include config.h.
73632         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73633         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73634         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73635         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73636         inttypes.h.
73637         * lib/xstrtoumax.c: Likewise.
73638         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73639         __strtol and the like, so that this module is more like its siblings.
73640         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73641         Remove; no longer needed now that we assume gnulib inttypes.h.
73642
73643 2006-10-08  Bruno Haible  <bruno@clisp.org>
73644
73645         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73646         option.
73647
73648 2006-10-07  Jim Meyering  <jim@meyering.net>
73649
73650         * modules/inttypes (inttypes.h): Revert what seems to have been
73651         an inadvertent part of today's change: use "|", not "/" in the
73652         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73653
73654 2006-10-07  Bruno Haible  <bruno@clisp.org>
73655
73656         * modules/sublist: New file.
73657
73658 2006-10-07  Bruno Haible  <bruno@clisp.org>
73659
73660         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73661         * modules/argz (argz.h): Likewise.
73662         * modules/arpa_inet (arpa/inet.h): Likewise.
73663         * modules/byteswap (byteswap.h): Likewise.
73664         * modules/configmake (configmake.h): Likewise.
73665         * modules/fcntl (fcntl.h): Likewise.
73666         * modules/fnmatch (fnmatch.h): Likewise.
73667         * modules/getopt (getopt.h): Likewise.
73668         * modules/glob (glob.h): Likewise.
73669         * modules/inttypes (inttypes.h): Likewise.
73670         * modules/netinet_in (netinet/in.h): Likewise.
73671         * modules/poll (poll.h): Likewise.
73672         * modules/stdbool (stdbool.h): Likewise.
73673         * modules/stdint (stdint.h): Likewise.
73674         * modules/sys_select (sys/select.h): Likewise.
73675         * modules/sys_socket (sys/socket.h): Likewise.
73676         * modules/sys_stat (sys/stat.h): Likewise.
73677         * modules/sysexits (sysexits.h): Likewise.
73678         * modules/unistd (unistd.h): Likewise.
73679         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73680         Add a "DO NOT EDIT" comment to the generated file.
73681         (func_import): Likewise for gnulib-comp.m4.
73682
73683 2006-10-07  Bruno Haible  <bruno@clisp.org>
73684
73685         * lib/gl_sublist.h: New file.
73686         * lib/gl_sublist.c: New file.
73687
73688 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73689
73690         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73691         name (relative to the original working directory) and the file
73692         name component (relative to the temporary working directory).  All
73693         callers changed.
73694         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73695         * lib/mkdir-p.c (make_dir_parents): Likewise.
73696         * lib/mkdir-p.h (make_dir_parents): Likewise.
73697
73698 2006-10-06  Eric Blake  <ebb9@byu.net>
73699
73700         Define several macros for use by the clean-temp module.
73701         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73702         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73703         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73704
73705         * lib/clean-temp.h (close_stream_temp): New declaration.
73706         * lib/clean-temp.c (includes): Pull in headers according to what
73707         other modules are in use.
73708         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73709
73710 2006-10-06  Bruno Haible  <bruno@clisp.org>
73711
73712         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73713         instead of fopen, fwriteerror.
73714
73715 2006-10-06  Bruno Haible  <bruno@clisp.org>
73716
73717         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73718         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73719         int.
73720         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73721         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73722         Return an error indicator.
73723         Suggested by Eric Blake.
73724
73725 2006-10-06  Bruno Haible  <bruno@clisp.org>
73726
73727         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73728         Reported by Eric Blake.
73729
73730 2006-10-06  Bruno Haible  <bruno@clisp.org>
73731
73732         * modules/closeout (Description): Mention stderr too.
73733
73734 2006-10-06  Bruno Haible  <bruno@clisp.org>
73735         and Paul Eggert  <eggert@cs.ucla.edu>
73736
73737         * lib/closeout.c (close_stdout): Also close stderr.
73738         * lib/closeout.h: Update comment.
73739
73740 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73741
73742         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73743         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73744         * lib/dirchownmod.c: Include lchown.h.
73745         * lib/lchown.c: Don't include files that lchown.h now includes.
73746         Don't declare chown, since lchown.h now does that.
73747         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73748         (lchown): Define to rpl_chown if lchown is declared but
73749         does not exist.  Declare using a prototype if lchown is not
73750         declared.  Add a copyright notice.
73751         * lib/mkstemp.h: Include <unistd.h>.
73752         * lib/openat.c: Include lchown.h.
73753
73754         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73755         we now test for that separately.
73756         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73757         rather than O_NOFOLLOW, when testing whether it's possible to
73758         avoid a race condition reliably.
73759         * lib/savewd.c (savewd_chdir): Likewise.
73760
73761         Remove macros that are no longer needed now that stdint.h is
73762         reliable.
73763         * lib/fsusage.c (UINTMAX_MAX): Remove.
73764         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73765         * lib/utimecmp.c (SIZE_MAX): Remove.
73766
73767         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73768
73769         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73770         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73771         O_NOATIME works.
73772
73773 2006-10-05  Bruno Haible  <bruno@clisp.org>
73774
73775         * lib/gl_list.h (gl_sortedlist_search_from_to,
73776         gl_sortedlist_indexof_from_to): New declarations.
73777         (gl_list_implementation): New fields sortedlist_search_from_to,
73778         sortedlist_indexof_from_to.
73779         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73780         inline functions.
73781         * lib/gl_list.c (gl_sortedlist_search_from_to,
73782         gl_sortedlist_indexof_from_to): New functions.
73783         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73784         function.
73785         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73786         (gl_array_sortedlist_search_from_to): New function.
73787         (gl_array_list_implementation): Update.
73788         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73789         function.
73790         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73791         (gl_carray_sortedlist_search_from_to): New function.
73792         (gl_carray_list_implementation): Update.
73793         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73794         gl_linked_sortedlist_indexof_from_to): New functions.
73795         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73796         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73797         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73798         gl_tree_sortedlist_indexof_from_to): New functions.
73799         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73800         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73801         Update.
73802         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73803         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73804         Update.
73805
73806 2006-10-05  Bruno Haible  <bruno@clisp.org>
73807
73808         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73809         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73810         (struct gl_list_implementation): Add fields search_from_to,
73811         indexof_from_to. Remove fields search, indexof.
73812         (gl_list_search): Use the search_from_to method.
73813         (gl_list_search_from, gl_list_search_from_to): New functions.
73814         (gl_list_indexof): Use the indexof_from_to method.
73815         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73816         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73817         (gl_list_search_from, gl_list_search_from_to): New functions.
73818         (gl_list_indexof): Use the indexof_from_to method.
73819         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73820         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73821         gl_array_indexof. Add start_index, end_index arguments.
73822         (gl_array_search_from_to): Renamed from gl_array_search. Add
73823         start_index, end_index arguments.
73824         (gl_array_remove, gl_array_list_implementation): Update.
73825         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73826         gl_carray_indexof. Add start_index, end_index arguments.
73827         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73828         start_index, end_index arguments.
73829         (gl_carray_remove, gl_carray_list_implementation): Update.
73830         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73831         gl_linked_search. Add start_index, end_index arguments.
73832         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73833         start_index, end_index arguments.
73834         (gl_linked_remove): Update.
73835         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73836         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73837         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73838         field to 'size_t'.
73839         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73840         gl_tree_search. Add start_index, end_index arguments.
73841         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73842         start_index, end_index arguments.
73843         (gl_tree_remove): Update.
73844         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73845         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73846         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73847         function.
73848         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73849         gl_tree_search. Add start_index, end_index arguments.
73850         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73851         start_index, end_index arguments.
73852         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73853         Update.
73854         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73855
73856 2006-10-05  Bruno Haible  <bruno@clisp.org>
73857
73858         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73859
73860         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73861         fwriteerror_temp): New declarations.
73862         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73863         (descriptors): New variable.
73864         (cleanup): First, close the descriptors.
73865         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73866         fclose_temp, fwriteerror_temp): New functions.
73867
73868 2006-10-04  Jim Meyering  <jim@meyering.net>
73869
73870         * lib/fts.c (fts_open): Tiny comment change.
73871
73872 2006-10-04  Bruno Haible  <bruno@clisp.org>
73873
73874         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73875         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73876         gl_LOCK_BODY.
73877         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73878         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73879         gl_LOCK_EARLY_BODY.
73880         (gl_LOCK): Require gl_LOCK_BODY.
73881
73882 2006-10-04  Bruno Haible  <bruno@clisp.org>
73883
73884         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73885         (gl_oset_search_atleast): New declaration.
73886         (struct gl_oset_implementation): Add field 'search_atleast'.
73887         (gl_oset_search_atleast): New inline function.
73888         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73889         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73890         (gl_array_oset_implementation): Update.
73891         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73892         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73893         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73894
73895 2006-10-04  Bruno Haible  <bruno@clisp.org>
73896
73897         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73898
73899 2006-10-03  Bruno Haible  <bruno@clisp.org>
73900
73901         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73902         from gl_avltreehash_list_implementation.
73903
73904 2006-10-03  Bruno Haible  <bruno@clisp.org>
73905
73906         * lib/gl_oset.c (gl_oset_add): Fix return type.
73907
73908 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73909
73910         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73911
73912 2006-10-02  Eric Blake  <ebb9@byu.net>
73913
73914         * modules/strnlen (Depends-on): Add extensions.
73915
73916 2006-10-02  Eric Blake  <ebb9@byu.net>
73917
73918         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73919         definition in 2.60+.
73920
73921 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73922
73923         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73924         checks.
73925
73926 2006-10-02  Bruno Haible  <bruno@clisp.org>
73927
73928         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73929         to the AUTOMAKE_OPTIONS.
73930         Reported by Jim Meyering.
73931
73932 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73933
73934         Work around bug in Solaris 10 /proc file system:
73935         /proc/self/fd/NNN/.. isn't the parent directory of
73936         the directory whose file descriptor is NNN.  This needs to
73937         be worked around at run time, not compile time, since a
73938         program might be built on Solaris 8, where things work, and
73939         run on Solaris 10.
73940         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73941         to use the following interface instead:
73942         (OPENAT_BUFFER_SIZE): New macro.
73943         (openat_proc_name): New function.
73944         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73945         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73946         Likewise.
73947         * lib/openat-proc.c: New file.
73948         * modules/openat (Files): Add lib/openat-proc.c.
73949         (Depends-on): Add same-inode, stdbool.
73950         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73951
73952 2006-09-29  Bruno Haible  <bruno@clisp.org>
73953
73954         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73955         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73956         argument. Set stdout_closed before testing for ferror, not after.
73957         (fwriteerror, fwriteerror_no_ebadf): New functions.
73958
73959 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73960
73961         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73962
73963 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73964
73965         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73966         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73967
73968 2006-09-28  Jim Meyering  <jim@meyering.net>
73969
73970         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73971         Include <unistd.h>.
73972
73973 2006-09-28  Bruno Haible  <bruno@clisp.org>
73974
73975         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73976         * modules/linkedhash-list (Depends-on): Likewise.
73977         * modules/rbtreehash-list (Depends-on): Likewise.
73978
73979 2006-09-28  Bruno Haible  <bruno@clisp.org>
73980
73981         * lib/strndup.h: Simplify the redefinition of strndup.
73982         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73983         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73984
73985 2006-09-28  Bruno Haible  <bruno@clisp.org>
73986
73987         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73988         * lib/gl_linkedhash_list.c: Likewise.
73989         * lib/gl_rbtreehash_list.c: Likewise.
73990
73991 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73992
73993         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73994         getaddrinfo.
73995
73996         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73997         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73998         it causes <stdio_ext.h> to cause a compile-time error.
73999         Problem reported by Nelson H. F. Beebe.
74000         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74001         of HAVE_DECL___PENDING.
74002
74003         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74004         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74005         declaration.
74006
74007 2006-09-27  Jim Meyering  <jim@meyering.net>
74008
74009         This file could end up with a definition for a function
74010         named __strndup, rather than rpl_strndup on a system with
74011         incomplete weak_alias support.
74012         * lib/strndup.c (strndup): Rename from __strndup.
74013         Remove #defines that used to map __strndup to strndup.
74014         Don't use K&R prototypes.
74015         Remove LIBC-related code, since this file is not sync'd with glibc.
74016         * lib/strndup.h: Revamp, accordingly.
74017         * m4/strndup.m4: Modernize.
74018
74019 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74020
74021         * modules/savewd (Depends-on): Add 'raise'.
74022         * lib/savewd.c: Include <signal.h>, for 'raise'.
74023
74024 2006-09-26  Jim Meyering  <jim@meyering.net>
74025
74026         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74027         when we detect Darwin 8.7.0's acl_get_file bug.
74028         Rearrange to perform the new (below) run-test while $LIBS
74029         contains any acl-related library.  Set USE_ACL at the end.
74030         (gl_ACL_GET_FILE): New function.
74031
74032 2006-09-26  Eric Blake  <ebb9@byu.net>
74033
74034         * lib/verror.c: Include <config.h> unconditionally.
74035
74036 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74037
74038         * modules/clock-time (Maintainer): Add self.
74039         * modules/getlogin_r (Depends-on): Add extensions.
74040
74041 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74042
74043         * modules/clock-time: New module.
74044         * modules/nanosleep (Depends-on): Add clock-time.
74045         * modules/gethrxtime (Depends-on): Likewise.
74046         * modules/gettime (Depends-on): Likewise.
74047         * modules/settime (Depends-on): Likewise.
74048
74049         * modules/fts-lgpl: Depend on openat.
74050         * modules/mkancesdirs: Depend on savewd.
74051         * modules/mkdir-p: Likewise.
74052
74053 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74054
74055         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74056
74057         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74058         `gl_have_arbitrary_file_name_length_limit' to
74059         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74060         actually works between configure runs.
74061
74062 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74063             Bruno Haible  <bruno@clisp.org>
74064
74065         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74066
74067 2006-09-25  Jim Meyering  <jim@meyering.net>
74068
74069         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74070         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74071
74072 2006-09-25  Eric Blake  <ebb9@byu.net>
74073
74074         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74075         exec's in 2006-09-18 patch when shuffling fds.
74076
74077 2006-09-25  Bruno Haible  <bruno@clisp.org>
74078
74079         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74080         Reported by Jim Meyering.
74081
74082 2006-09-24  Jim Meyering  <jim@meyering.net>
74083
74084         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74085         compare a pointer against a literal "0".  That caused failures with
74086         at least HP-UX's hpcc.
74087
74088 2006-09-22  Simon Josefsson  <jas@extundo.com>
74089
74090         * modules/gc-sha1:
74091         * modules/gc-md4:
74092         * modules/gc-hmac-sha1:
74093         * modules/gc-hmac-md5:
74094         * modules/gc-des:
74095         * modules/gc-arcfour: Distribute more files.
74096
74097 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74098
74099         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74100         (gl_linked_iterator_from_to): Initialize struct completely.
74101         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74102         (gl_tree_iterator_from_to): Likewise
74103         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74104         * lib/gl_array_list.c [lint] (gl_array_iterator)
74105         (gl_array_iterator_from_to): Likewise.
74106         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74107         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74108         (gl_carray_iterator_from_to): Likewise.
74109
74110         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74111         * lib/md4.c (md4_process_block): Remove unused variable.
74112         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74113         parentheses for clarity.
74114
74115 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74116
74117         * modules/bison-i18n (Depends-on): Add gettext.
74118
74119 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74120
74121         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74122         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74123         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74124         also add missing comma that caused broken test.
74125         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74126         stdlib.h, for `abort'.
74127         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74128         variables.
74129         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74130         include unistd.h if present, for `rmdir'.
74131         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74132         variables.
74133         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74134         in the process include standard headers for prototypes.
74135         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74136         gets declared on GNU/Linux.
74137         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74138         unistd.h, for `rmdir'.
74139         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74140
74141         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74142         always true.
74143         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74144
74145         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74146
74147 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74148
74149         * gnulib-tool (func_version): Create output all at once.  This
74150         may help avoid triggering unnecessary SIGPIPEs, and at any
74151         rate it doesn't hurt.
74152
74153 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74154             Bruno Haible  <bruno@clisp.org>
74155
74156         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74157         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74158         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74159
74160         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74161         (gl_FUNC_VASPRINTF): Invoke it.
74162
74163 2006-09-22  Bruno Haible  <bruno@clisp.org>
74164
74165         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74166         getloadavg.c as first argument.
74167
74168 2006-09-22  Bruno Haible  <bruno@clisp.org>
74169
74170         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74171         at the beginning of the gl_INIT macro.
74172         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74173         gl_GETLOADAVG.
74174
74175 2006-09-22  Bruno Haible  <bruno@clisp.org>
74176
74177         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74178         module.
74179         Suggested by Ralf Wildenhues.
74180
74181 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74182
74183         Import this patch from libc:
74184
74185         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74186
74187         * lib/regex_internal.c (re_string_reconstruct): Handle
74188         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74189         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74190         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74191         re_string_context_at.
74192
74193         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74194         now requires it.
74195         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74196         gl_REGEX now does it for us.
74197         (gl_REGEX): Add test taken from
74198         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74199
74200         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74201         Check that large offsets work.  Modernize Autoconf usages.
74202         Prefer "yes" to mean a good thing rather than a bad.
74203         Don't put "#define mkstemp" in config.h, as this might interfere
74204         with standard system headers that "#define mkstemp mkstemp64".
74205
74206         * modules/mkstemp (Depends-on): Add extensions, so that
74207         mkstemp is visible on some platforms.
74208         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74209         (Include): Change to "mkstemp.h" from <stdlib.h>.
74210         (Files): Add mkstemp.h.
74211
74212         * lib/mkstemp.h: New file, since some standard headers
74213         #define mkstemp.
74214         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74215         Include "mkstemp.h".
74216         Make the _LIBC code resemble glibc original more,
74217         e.g., use K&R style.
74218         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74219         (mkstemp): Remove, since mkstemp.h does this for us.
74220         * lib/stdlib--.h: Include mkstemp.h.
74221
74222         Import this patch from libc:
74223
74224         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74225
74226         * lib/tempname.c (__gen_tempname): Change attempts_min
74227         into a macro.  Use preprocessor to decide how to initialize
74228         attempts [Coverity CID 67].
74229
74230 2006-09-20  Bruno Haible  <bruno@clisp.org>
74231
74232         * lib/mkdtemp.c: Import from libc.
74233         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74234                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74235                 attempts_min into a macro.  Use preprocessor to decide how to
74236                 initialize attempts [Coverity CID 67].
74237         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74238                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74239                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74240
74241 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74242
74243         * gnulib-tool (func_exit): New function, to allow to pass the
74244         exit status portably through the trap.  Use everywhere.
74245         (--help, --version): Signal a write error.
74246         (trap): catch SIGPIPE, for write errors.
74247         Exit at the end of the trap, with the correct exit status.
74248
74249 2006-09-19  Karl Berry  <karl@gnu.org>
74250
74251         * doc/gnulib.texi: note about the license texinfo files.
74252
74253 2006-09-19  Eric Blake  <ebb9@byu.net>
74254
74255         * gnulib-tool: Avoid space-tab.
74256
74257 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74258
74259         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74260         that prevented coreutils 6.1 from building.  Problem reported
74261         by Petter Reinholdtsen.
74262
74263 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74264
74265         * gnulib-tool (avoidlist): Fix typo that broke options like
74266         --avoid=lock that are used by coreutils bootstrap.
74267
74268 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74269
74270         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74271         more systematically.
74272
74273 2006-09-18  Jim Meyering  <jim@meyering.net>
74274
74275         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74276
74277 2006-09-18  Bruno Haible  <bruno@clisp.org>
74278
74279         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74280
74281 2006-09-18  Bruno Haible  <bruno@clisp.org>
74282
74283         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74284         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74285         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74286         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74287         * m4/gettext.m4: Require autoconf >= 2.52.
74288         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74289         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74290         of gl_cv_header_inttypes_h.
74291
74292 2006-09-18  Bruno Haible  <bruno@clisp.org>
74293
74294         * lib/javaversion.c: Include configmake.h.
74295
74296 2006-09-18  Bruno Haible  <bruno@clisp.org>
74297
74298         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74299         avoid that the while loops be executed in a subshell.
74300
74301 2006-09-18  Bruno Haible  <bruno@clisp.org>
74302
74303         * MODULES.html.sh (func_module): Break long lines.
74304         Suggested by Bruce Korb <bkorb@gnu.org>.
74305
74306 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74307
74308         Speed up by a factor of 1.12.
74309         * gnulib-tool (nl): New variable.
74310         (func_import): Rewrite include directive extraction to only read each
74311         directive once.
74312
74313 2006-09-17  Bruno Haible  <bruno@clisp.org>
74314
74315         * modules/javaversion (Makefile.am): Remove DEFS setting.
74316         (Depends-on): Add configmake, for PKGDATADIR definition.
74317
74318 2006-09-17  Bruno Haible  <bruno@clisp.org>
74319
74320         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74321
74322 2006-09-17  Bruno Haible  <bruno@clisp.org>
74323
74324         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74325         (func_modules_transitive_closure, func_modules_add_dummy,
74326         func_modules_to_filelist, func_import, func_create_testdir,
74327         func_create_megatestdir, ...): Use it wherever possible.
74328         Suggested by Ralf Wildenhues.
74329
74330 2006-09-16  Karl Berry  <karl@gnu.org>
74331
74332         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74333         to avoid sectioning errors.
74334         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74335         [ifinfo]: blank line after @center-ed titles.
74336         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74337         Spell FSF address consistently with others.
74338         (These changes approved by rms.)
74339
74340 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74341
74342         Speed up by a factor of 1.61.
74343         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74344         already checked module names again.
74345
74346 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74347
74348         Speed up by a factor of 1.13.
74349         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74350         for new_files, and the input to func_add_or_update.
74351
74352 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74353
74354         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74355         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74356
74357 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74358
74359         * modules/mkancesdirs (Depends-on): Add fcntl.
74360         * modules/savewd: New file.
74361         * MODULES.html.sh (File system functions): Add savewd.
74362
74363         * modules/configmake (Makefile.am): Add support for the
74364         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74365
74366 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74367
74368         * m4/savewd.m4: New file.
74369
74370 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74371
74372         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74373         (dirchownmod): New arg FD.  All callers changed.
74374         Use FD rather than opening the directory ourself, as opening is
74375         now the caller's responsibility.
74376         * lib/dirchownmod.h: Likewise.
74377         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74378         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74379         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74380         (test_dir): Remove.
74381         (mkancesdirs): Return length of prefix of FILE that has already
74382         been made, or -2 if there is a child doing the work.  Redo
74383         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74384         ".", and treat ".." specially since it might stray back into
74385         already-created areas.  Use a subprocess if necessary.  New arg
74386         WD; all users changed.  MAKE_DIR function should now return 1
74387         if it creates a directory that is not readable.  Return -2 if
74388         a child process is spun off.
74389         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74390         Adjust signature to match code.
74391         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74392         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74393         all users changed.
74394         * lib/savewd.c, lib/savewd.h: New files.
74395
74396 2006-09-15  Jim Meyering  <jim@meyering.net>
74397
74398         * modules/rename-dest-slash: New module.
74399         * MODULES.html.sh (posix_compat): Add it here.
74400
74401         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74402
74403 2006-09-15  Jim Meyering  <jim@meyering.net>
74404
74405         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74406         file.
74407
74408         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74409
74410 2006-09-15  Jim Meyering  <jim@meyering.net>
74411
74412         * lib/rename-dest-slash.c (has_trailing_slash): Use
74413         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74414         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74415         test before testing whether SRC is a directory.
74416         Suggestions from Bruno Haible.
74417
74418         Avoid a warning about an unused variable.
74419         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74420         into the #ifdef block where it's used.
74421
74422         * lib/rename-dest-slash.c: New file.
74423
74424 2006-09-14  Bruno Haible  <bruno@clisp.org>
74425
74426         * lib/allocsa.c: Include <config.h> unconditionally.
74427         * lib/asnprintf.c: Likewise.
74428         * lib/asprintf.c: Likewise.
74429         * lib/c-strcasecmp.c: Likewise.
74430         * lib/c-strcasestr.c: Likewise.
74431         * lib/c-strncasecmp.c: Likewise.
74432         * lib/c-strstr.c: Likewise.
74433         * lib/classpath.c: Likewise.
74434         * lib/clean-temp.c: Likewise.
74435         * lib/concatpath.c: Likewise.
74436         * lib/copy-file.c: Likewise.
74437         * lib/csharpcomp.c: Likewise.
74438         * lib/csharpexec.c: Likewise.
74439         * lib/execute.c: Likewise.
74440         * lib/fatal-signal.c: Likewise.
74441         * lib/findprog.c: Likewise.
74442         * lib/fwriteerror.c: Likewise.
74443         * lib/gl_array_list.c: Likewise.
74444         * lib/gl_array_oset.c: Likewise.
74445         * lib/gl_avltree_list.c: Likewise.
74446         * lib/gl_avltree_oset.c: Likewise.
74447         * lib/gl_avltreehash_list.c: Likewise.
74448         * lib/gl_carray_list.c: Likewise.
74449         * lib/gl_linked_list.c: Likewise.
74450         * lib/gl_linkedhash_list.c: Likewise.
74451         * lib/gl_list.c: Likewise.
74452         * lib/gl_oset.c: Likewise.
74453         * lib/gl_rbtree_list.c: Likewise.
74454         * lib/gl_rbtree_oset.c: Likewise.
74455         * lib/gl_rbtreehash_list.c: Likewise.
74456         * lib/imaxabs.c: Likewise.
74457         * lib/imaxdiv.c: Likewise.
74458         * lib/javacomp.c: Likewise.
74459         * lib/javaexec.c: Likewise.
74460         * lib/javaversion.c: Likewise.
74461         * lib/linebreak.c: Likewise.
74462         * lib/localcharset.c: Likewise.
74463         * lib/lock.c: Likewise.
74464         * lib/mbchar.c: Likewise.
74465         * lib/mbswidth.c: Likewise.
74466         * lib/mkdtemp.c: Likewise.
74467         * lib/pipe.c: Likewise.
74468         * lib/printf-args.c: Likewise.
74469         * lib/printf-parse.c: Likewise.
74470         * lib/progname.c: Likewise.
74471         * lib/progreloc.c: Likewise.
74472         * lib/readlink.c: Likewise.
74473         * lib/sh-quote.c: Likewise.
74474         * lib/stpcpy.c: Likewise.
74475         * lib/stpncpy.c: Likewise.
74476         * lib/strcasecmp.c: Likewise.
74477         * lib/strcasestr.c: Likewise.
74478         * lib/strcspn.c: Likewise.
74479         * lib/striconv.c: Likewise.
74480         * lib/strncasecmp.c: Likewise.
74481         * lib/strnlen1.c: Likewise.
74482         * lib/strstr.c: Likewise.
74483         * lib/strtok_r.c: Likewise.
74484         * lib/tls.c: Likewise.
74485         * lib/tmpdir.c: Likewise.
74486         * lib/unicodeio.c: Likewise.
74487         * lib/unsetenv.c: Likewise.
74488         * lib/vasnprintf.c: Likewise.
74489         * lib/vasprintf.c: Likewise.
74490         * lib/wait-process.c: Likewise.
74491         * lib/xallocsa.c: Likewise.
74492         * lib/xsetenv.c: Likewise.
74493         * lib/xstriconv.c: Likewise.
74494
74495 2006-09-13  Simon Josefsson  <jas@extundo.com>
74496
74497         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74498         that internally, suggested by Ralf Wildenhues
74499         <Ralf.Wildenhues@gmx.de>.
74500
74501 2006-09-13  Simon Josefsson  <jas@extundo.com>
74502
74503         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74504         @LIBOBJS@.
74505         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74506
74507 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74508
74509         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74510         longer worry about uses that don't define HAVE_CONFIG_H.
74511         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74512         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74513         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74514         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74515         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74516         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74517         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74518         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74519         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74520         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74521         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74522         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74523         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74524         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74525         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74526         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74527         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74528         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74529         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74530         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74531         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74532         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74533         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74534         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74535         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74536         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74537         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74538         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74539         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74540         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74541         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74542         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74543         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74544         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74545         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74546         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74547         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74548         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74549         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74550         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74551         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74552         Likewise.
74553
74554 2006-09-13  Eric Blake  <ebb9@byu.net>
74555
74556         * lib/getopt.c: Fix typo in last commit.
74557
74558 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74559
74560         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74561         dgettext.
74562
74563 2006-09-12  Jim Meyering  <jim@meyering.net>
74564
74565         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74566         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74567         Reported by Nelson H. F. Beebe.
74568
74569 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74570
74571         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74572         program_invocation_name and program_invocation_short_name are
74573         initialized.
74574         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74575         and program_invocation_short_name to argp.h, so they are visible
74576         to user programs.
74577         * lib/argp.h: Likewise
74578
74579 2006-09-10  Bruno Haible  <bruno@clisp.org>
74580
74581         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74582         m4/inttypes_h.m4, m4/uintmax_t.m4.
74583
74584 2006-09-10  Bruno Haible  <bruno@clisp.org>
74585
74586         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74587         gl_AC_TYPE_UINTMAX_T.
74588
74589 2006-09-10  Bruno Haible  <bruno@clisp.org>
74590
74591         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74592
74593 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74594
74595         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74596         convention.  Text proposed by Bruno Haible.
74597         (struct argp_option): Document the use of N_() wrappers.
74598
74599         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74600         '\v', and translate the two parts separately, instead of feeding
74601         the whole string to gettext.  This allows to exclude
74602         '\v' from the strings visible to the translator by writing doc
74603         strings as N_("..") "\v" N_("..").
74604
74605 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74606
74607         * config/srclist.txt: Undo latest change; the bug was fixed.
74608
74609 2006-09-09  Bruno Haible  <bruno@clisp.org>
74610
74611         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74612         assignments if building a library without libtool.
74613         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74614         in func_emit_lib_Makefile_am.
74615         (func_import): When building a static library libfoo.a, arrange to
74616         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74617         (func_create_testdir): Likewise.
74618         * modules/gc (configure.ac, Makefile.am): If building statically,
74619         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74620         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74621         * modules/striconv (configure.ac, Makefile.am): Likewise.
74622         Based on a suggestion by Ralf Wildenhues.
74623
74624 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74625
74626         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74627         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74628         Also:
74629
74630         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74631         Add year_2050_test to catch glibc bug 2821
74632         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74633
74634         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74635         Prefer #ifdef to #if.
74636
74637         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74638         Return from 'main' instead of calling 'exit'.
74639
74640 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74643         returned the maximum time_t value rather than (time_t) -1.
74644         Problem originally reported by William Bardwell
74645         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74646
74647         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74648         Moved to here ...
74649         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74650         ... from here.
74651
74652 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74653
74654         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74655         2821 is fixed.
74656
74657 2006-09-08  Jim Meyering  <jim@meyering.net>
74658
74659         Don't make generated files read-only.  That would bother too many
74660         people.  However, do retain the ability to work when targets are
74661         read-only: remove the destination and temporary files before writing
74662         them (when generated via sed or echo), or by using the -f option for
74663         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74664         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74665         * modules/byteswap, modules/configmake, modules/fcntl:
74666         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74667         * modules/localcharset, modules/netinet_in, modules/poll:
74668         * modules/stdbool, modules/stdint, modules/sys_select:
74669         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74670
74671 2006-09-08  Jim Meyering  <jim@meyering.net>
74672
74673         Avoid new build failure on FreeBSD 6.0.
74674         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74675         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74676         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74677
74678 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74679
74680         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74681
74682 2006-09-07  Jim Meyering  <jim@meyering.net>
74683
74684         Fix global typo in last change: use chmod u-w, not chmod u-x.
74685         Spotted by Paul Eggert and Bruce Korb.
74686         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74687         * modules/byteswap, modules/configmake, modules/fcntl:
74688         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74689         * modules/localcharset, modules/netinet_in, modules/poll:
74690         * modules/stdbool, modules/stdint, modules/sys_select:
74691         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74692
74693 2006-09-06  Jim Meyering  <jim@meyering.net>
74694
74695         Make generated files be read-only.
74696         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74697         Ensure that each generated file is now read-only.
74698         * modules/argz: Likewise.
74699         * modules/arpa_inet: Likewise.
74700         * modules/byteswap: Likewise.
74701         * modules/configmake: Likewise.
74702         * modules/fcntl: Likewise.
74703         * modules/fnmatch: Likewise.
74704         * modules/getopt: Likewise.
74705         * modules/glob: Likewise.
74706         * modules/inttypes: Likewise.
74707         * modules/netinet_in: Likewise.
74708         * modules/poll: Likewise.
74709         * modules/stdbool: Likewise.
74710         * modules/stdint: Likewise.
74711         * modules/sys_select: Likewise.
74712         * modules/sys_socket: Likewise.
74713         * modules/sys_stat: Likewise.
74714         * modules/sysexits: Likewise.
74715         * modules/localcharset: Same as above, but continue using temporary
74716         file named "t-$@" (why different?) rather than the "$@-t" used
74717         everywhere else.
74718
74719         * modules/sysexits (Makefile.am): Replace literal occurrences
74720         of "sysexit.h" more readable, and more consistent, "$@".
74721
74722 2006-09-06  Bruno Haible  <bruno@clisp.org>
74723
74724         * modules/striconv: New file.
74725         * modules/xstriconv: New file.
74726         * MODULES.html.sh (Internationalization functions): Add striconv,
74727         xstriconv.
74728
74729 2006-09-06  Bruno Haible  <bruno@clisp.org>
74730
74731         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74732         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74733         not using libtool correctly.
74734
74735 2006-09-06  Bruno Haible  <bruno@clisp.org>
74736
74737         * lib/striconv.h: New file.
74738         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74739         iconvstring.c.
74740         * lib/xstriconv.h: New file.
74741         * lib/xstriconv.c: New file.
74742
74743 2006-09-06  Bruno Haible  <bruno@clisp.org>
74744
74745         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74746         lib_..._LDFLAGS.
74747
74748 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74749
74750         * lib/argz_.h: Sync from Libtool.
74751
74752         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74753                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74754
74755         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74756
74757 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74758
74759         * modules/trim: New file.
74760
74761 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74762
74763         * lib/trim.h: New file.
74764         * lib/trim.c: New file.
74765
74766 2006-09-05  Bruno Haible  <bruno@clisp.org>
74767
74768         * MODULES.html.sh (String handling): Add trim.
74769
74770 2006-09-04  Karl Berry  <karl@gnu.org>
74771
74772         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74773         until next release.
74774
74775 2006-09-03  Bruno Haible  <bruno@clisp.org>
74776
74777         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74778         correctly.
74779
74780 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74783         not gl_GETLOADAVG.  Omit unneeded semicolons.
74784         Problems reported by Ralf Wildenhues in
74785         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74786         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74787         at the end, which is the usual gnulib style.
74788
74789         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74790         of doing all the work ourselves.
74791         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74792         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74793
74794 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74795
74796         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74797         Problem reported by Ralf Wildenhues in
74798         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74799
74800         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74801         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74802
74803 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74806         yesterday's patch by changing test -n to test -z.
74807
74808 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74811         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74812         the former is now obsolescent.
74813
74814         * modules/chdir-long (Depends-on): Add fcntl.
74815
74816 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74817
74818         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74819         obsolescent, and programs should use gnulib instead.
74820         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74821         but with prefixes changed.
74822
74823 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74826         or stdbool.h, because they might not exist while configuring.
74827
74828         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74829         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74830         does that for us.
74831         (O_DIRECTORY): Remove.
74832
74833 2006-08-31  Eric Blake  <ebb9@byu.net>
74834
74835         * gnulib-tool: Don't let emacs change spaces to TAB.
74836
74837 2006-08-31  Bruno Haible  <bruno@clisp.org>
74838
74839         * gnulib-tool: When calling func_import more than once, do it in a
74840         subshell.
74841         Reported by Eric Blake <ebb9@byu.net>.
74842
74843 2006-08-31  Bruno Haible  <bruno@clisp.org>
74844
74845         * gnulib-tool (nl): Remove variable.
74846         (sed_transform_lib_file): Use more robust test for config-h module.
74847         (func_import): Fix typo in 2006-08-25 patch.
74848
74849 2006-08-31  Bruno Haible  <bruno@clisp.org>
74850
74851         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74852         specified, augment Makefile.am variables instead of assigning them.
74853
74854 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74855
74856         Work around a bug in both the Linux and SunOS 64-bit kernels:
74857         nanosleep mishandles sleeps for longer than 2**31 seconds.
74858         Problem reported by Frank v Waveren in
74859         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74861         Check for nanosleep bug.
74862         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74863
74864 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74865
74866         Work around a bug in both the Linux and SunOS 64-bit kernels:
74867         nanosleep mishandles sleeps for longer than 2**31 seconds.
74868         Problem reported by Frank v Waveren in
74869         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74870         * lib/nanosleep.c (BILLION): New constant.
74871         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74872         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74873         implementation.
74874
74875 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74876
74877         * modules/nanosleep (Depends-on): Add gettime.
74878
74879 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74880         and Simon Josefsson  <jas@extundo.com>
74881         and Oskar Liljeblad  <oskar@osk.mine.nu>
74882
74883         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74884         * gnulib-tool (func_import): New license type 'unmodifiable license
74885         text'.
74886         * modules/fdl: Use it.  Longer description.
74887         * module/gpl, module/lgpl: New files.
74888
74889 2006-08-30  Jim Meyering  <jim@meyering.net>
74890
74891         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74892         shadowing the parameter.
74893
74894 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74895
74896         Sync from Libtool:
74897
74898         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74899
74900         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74901         sharing with gnulib.  Report by Eric Blake.
74902
74903 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74904
74905         * modules/isapipe: New file.
74906         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74907
74908 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74909
74910         * modules/configmake (Makefile.am): Add a comment, and omit
74911         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74912         by Bruno Haible.
74913
74914 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74915
74916         * m4/isapipe.m4: New file.
74917
74918 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74919
74920         * lib/isapipe.c, lib/isapipe.h: New files.
74921
74922 2006-08-29  Jim Meyering  <jim@meyering.net>
74923
74924         * modules/configmake (Makefile.am): Make configmake.h depend on
74925         Makefile.  Otherwise, a stale configmake.h could hang around.
74926
74927 2006-08-29  Eric Blake  <ebb9@byu.net>
74928
74929         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74930         resolution of upstream bug 3044.
74931
74932 2006-08-29  Bruno Haible  <bruno@clisp.org>
74933
74934         * modules/localcharset (Depends-on): Add configmake.
74935         (Makefile.am): Remove setting of LIBDIR through DEFS.
74936
74937 2006-08-29  Bruno Haible  <bruno@clisp.org>
74938
74939         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74940         defined.
74941
74942 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74943
74944         * modules/fcntl: New file.
74945         * modules/chdir-safer (Depends-on): Add fcntl.
74946         * modules/fts: Likewise.
74947         * modules/mkdir-p: Likewise.
74948
74949         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74950         This undoes the most recent change, since we're now addressing the
74951         problem in a different way.
74952
74953         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74954         into output, since the output might be called Makefile.am even
74955         if $makefile_name is something different.
74956         (func_import): Use $makefile_am rather than
74957         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74958         empty.
74959
74960         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74961
74962 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74965         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74966         recent change to stdint.m4, since we're now addressing the problem in a
74967         different way.
74968
74969 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74970
74971         * m4/fcntl_h.m4: New file.
74972
74973 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74974
74975         * lib/fcntl_.h: New file.
74976         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74977         the fcntl module.
74978         * lib/dirchownmod.c: Likewise.
74979         * lib/fts.c: Likewise.
74980
74981         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74982         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74983         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74984         just before including <inttypes.h>, to avoid circular inclusion.
74985
74986 2006-08-28  Jim Meyering  <jim@meyering.net>
74987
74988         * doc/visibility.texi: Actually read and correct the grammar of the
74989         sentence affected by yesterday's change.
74990
74991 2006-08-28  Eric Blake  <ebb9@byu.net>
74992
74993         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74994         needs wrapper.
74995
74996 2006-08-28  Eric Blake  <ebb9@byu.net>
74997
74998         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74999
75000 2006-08-28  Eric Blake  <ebb9@byu.net>
75001
75002         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75003
75004 2006-08-28  Bruno Haible  <bruno@clisp.org>
75005
75006         * modules/c-strstr: New file, from GNU gettext.
75007         * MODULES.html.sh (String handling): Add c-strstr.
75008
75009 2006-08-28  Bruno Haible  <bruno@clisp.org>
75010
75011         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75012         macros.
75013         Reported by Eric Blake.
75014
75015 2006-08-28  Bruno Haible  <bruno@clisp.org>
75016
75017         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75018         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75019         * lib/vasprintf.c: Include errno.h, limits.h.
75020         (EOVERFLOW): New fallback definition.
75021         (vasprintf): Test here whether the string length is > INT_MAX.
75022         * lib/vsnprintf.c: Include errno.h, limits.h.
75023         (EOVERFLOW): New fallback definition.
75024         (vsnprintf): Fix bug when generated string was too long for the buffer.
75025         Test here whether the string length is > INT_MAX.
75026
75027 2006-08-28  Bruno Haible  <bruno@clisp.org>
75028
75029         * lib/inttypes_.h (SCNX*): Remove definitions.
75030         Reported by Eric Blake.
75031
75032 2006-08-28  Bruno Haible  <bruno@clisp.org>
75033
75034         * lib/c-strstr.h: New file, from GNU gettext.
75035         * lib/c-strstr.c: New file, from GNU gettext.
75036
75037 2006-08-28  Bruno Haible  <bruno@clisp.org>
75038
75039         * gnulib-tool: Reorder some statements.
75040
75041 2006-08-28  Bruno Haible  <bruno@clisp.org>
75042
75043         * gnulib-tool: New option --makefile-name.
75044         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75045         $makefile_name.
75046         (func_import): Write $makefile_name to the cache file, and read it from
75047         there unless explicitly specified. Use $makefile_name as file name
75048         instead of Makefile.am. Adjust the recommendations accordingly.
75049
75050 2006-08-28  Bruno Haible  <bruno@clisp.org>
75051
75052         * gnulib-tool (func_verify_module): Check against misapplying patch.
75053
75054 2006-08-28  Bruno Haible  <bruno@clisp.org>
75055
75056         * gnulib-tool (func_relativize, func_relconcat): New functions.
75057         Give an error if --local-dir is given with --update.
75058         Remove trailing slashes from $local_gnulib_dir.
75059         (func_import): Store the relativized $local_gnulib_dir in
75060         gnulib-cache.m4, and read it from there if not specified explicitly.
75061
75062 2006-08-28  Bruno Haible  <bruno@clisp.org>
75063
75064         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75065         is the current directory. Respect also $local_gnulib_dir.
75066
75067 2006-08-28  Bruno Haible  <bruno@clisp.org>
75068             Simon Josefsson  <jas@extundo.com>
75069
75070         BeOS portability.
75071         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75072
75073 2006-08-27  Jim Meyering  <jim@meyering.net>
75074
75075         * doc/visibility.texi: Remove duplicate word: "pointer".
75076
75077 2006-08-26  Bruno Haible  <bruno@clisp.org>
75078
75079         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75080         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75081         (Makefile.am): Create inttypes.h from inttypes_.h.
75082         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75083
75084         * modules/imaxabs: New file.
75085
75086         * modules/imaxdiv: New file.
75087
75088 2006-08-26  Bruno Haible  <bruno@clisp.org>
75089
75090         * m4/inttypes.m4: New file.
75091         * m4/_inttypes_h.m4: Remove file.
75092         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75093         PRI_MACROS_BROKEN.
75094         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75095
75096         * m4/imaxabs.m4: New file.
75097
75098         * m4/imaxdiv.m4: New file.
75099
75100 2006-08-26  Bruno Haible  <bruno@clisp.org>
75101
75102         * lib/inttypes_.h: New file.
75103         * lib/inttypes.h: Remove file.
75104         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75105
75106         * lib/imaxabs.c: New file.
75107
75108         * lib/imaxdiv.c: New file.
75109
75110 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75111
75112         New config-h module, so that "make" output needn't be cluttered
75113         by -DHAVE_CONFIG_H.
75114         * MODULES.html.sh (Support for building libraries and executables):
75115         Add config-h.
75116         * modules/config-h: New file.
75117         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75118         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75119         the config-h module is used.
75120
75121         New configmake module, so that "make" output needn't be cluttered
75122         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75123         * MODULES.html.sh (Support for building libraries and executables):
75124         Add configmake.
75125         * modules/configmake: New file.
75126
75127 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75128
75129         * m4/config-h.m4: New file.
75130
75131 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75132
75133         * config/srclist.txt: Add elisp-comp.
75134
75135 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         * MODULES.html.sh (Support for building libraries and executables):
75138         Add elisp-comp.
75139         * build-aux/elisp-comp: New file.
75140         * modules/elisp-comp: New file.
75141
75142 2006-08-24  Bruno Haible  <bruno@clisp.org>
75143
75144         * gnulib-tool (func_create_testdir): Use non-default values of
75145         sourcebase and m4base.
75146
75147 2006-08-24  Bruno Haible  <bruno@clisp.org>
75148
75149         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75150         HTML structure.
75151
75152 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75153
75154         * modules/openat (Depends-on): Add lchown.
75155
75156 2006-08-23  Bruno Haible  <bruno@clisp.org>
75157
75158         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75159         of gl_LOCK_EARLY instead of gl_LOCK.
75160
75161 2006-08-23  Bruno Haible  <bruno@clisp.org>
75162
75163         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75164         on OSF/1 to no.
75165         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75166
75167 2006-08-23  Bruno Haible  <bruno@clisp.org>
75168
75169         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75170         as unusable.
75171
75172         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75173         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75174         (gl_LOCK): New macro.
75175
75176 2006-08-22  Simon Josefsson  <jas@extundo.com>
75177
75178         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75179         to md5 module.
75180
75181 2006-08-22  Simon Josefsson  <jas@extundo.com>
75182
75183         * MODULES.html.sh: Add "Support for maintaining and release
75184         projects".
75185
75186         * build-aux/gnupload: New file, from coreutils.
75187
75188 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75189
75190         Avoid the need for AC_LIBSOURCES in m4 macros.
75191         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75192         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75193         * modules/check-version (EXTRA_DIST): Add check-version.h.
75194         * modules/crc (EXTRA_DIST): Add crc.h.
75195         * modules/des (EXTRA_DIST): Add des.h.
75196         * modules/gc (EXTRA_DIST): Add gc.h.
75197         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75198         * modules/getline (EXTRA_DIST): Add getline.h.
75199         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75200         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75201         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75202         * modules/md2 (EXTRA_DIST): Add md2.h.
75203         * modules/md4 (EXTRA_DIST): Add md4.h.
75204         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75205         * modules/read-file (EXTRA_DIST): Add read-file.h.
75206         * modules/readline (EXTRA_DIST): Add readline.h.
75207         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75208         rijndael-api-fst.h.
75209
75210 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         * m4/rijndael.m4 (gl_ARCFOUR):
75213         * m4/arctwo.m4 (gl_ARCTWO):
75214         * m4/check-version.m4 (gl_CHECK_VERSION):
75215         * m4/crc.m4 (gl_CRC):
75216         * m4/des.m4 (gl_DES):
75217         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75218         * m4/gc.m4 (gl_GC):
75219         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75220         * m4/getline.m4 (gl_FUNC_GETLINE):
75221         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75222         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75223         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75224         * m4/md2.m4 (gl_MD2):
75225         * m4/md4.m4 (gl_MD4):
75226         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75227         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75228         * m4/readline.m4 (gl_FUNC_READLINE):
75229         * m4/rijndael.m4 (gl_RIJNDAEL):
75230         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75231         to get the necessary .h files and whatnot.
75232
75233 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75234
75235         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75236         gnulib rather than the other way around.
75237         * config/srclistvars.sh (COREUTILS): Remove.
75238
75239 2006-08-22  Jim Meyering  <jim@meyering.net>
75240
75241         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75242
75243         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75244
75245 2006-08-22  Eric Blake  <ebb9@byu.net>
75246
75247         * modules/regexprops-generic: New file.
75248         * MODULES.html.sh (Support for building documentation): List it.
75249
75250 2006-08-22  Eric Blake  <ebb9@byu.net>
75251
75252         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75253         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75254         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75255         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75256
75257 2006-08-22  Bruno Haible  <bruno@clisp.org>
75258
75259         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75260         and lib_LTLIBRARIES like the other lib_* variables.
75261
75262 2006-08-22  Bruno Haible  <bruno@clisp.org>
75263
75264         * build-aux/x-to-1.in: New file, from GNU gettext.
75265
75266 2006-08-22  Bruno Haible  <bruno@clisp.org>
75267
75268         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75269         <utmpx.h> exists.
75270
75271 2006-08-22  Bruno Haible  <bruno@clisp.org>
75272
75273         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75274         <utmpx.h> exists.
75275
75276 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75277
75278         BeOS portability.
75279         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75280         exist.
75281         Problem reported by Bruno Haible.
75282
75283 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75284
75285         Avoid the need for AC_LIBSOURCES in m4 macros.
75286         * modules/acl (EXTRA_DIST): Add acl.h.
75287         * modules/argmatch (Files): Add m4/argmatch.m4.
75288         (configure.ac): Add gl_ARGMATCH.
75289         (EXTRA_DIST): Renamed from lib_SOURCES, for
75290         consistency with the other modules.  Remove argmatch.c.
75291         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75292         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75293         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75294         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75295         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75296         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75297         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75298         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75299         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75300         * modules/closeout (EXTRA_DIST): Add closeout.h.
75301         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75302         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75303         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75304         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75305         dirname.h; remove basename.c and stripslash.c.
75306         * modules/exclude (EXTRA_DIST): Add exclude.h.
75307         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75308         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75309         * modules/file-type (EXTRA_DIST): Add file-type.h.
75310         * modules/filemode (EXTRA_DIST): Add filemode.h.
75311         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75312         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75313         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75314         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75315         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75316         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75317         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75318         * modules/getdate (EXTRA_DIST): Add getdate.c.
75319         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75320         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75321         * modules/getpass (EXTRA_DIST): Add getpass.h.
75322         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75323         * modules/group-member (EXTRA_DIST): Add group-member.h.
75324         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75325         * modules/hash (EXTRA_DIST): Add hash.h.
75326         * modules/human (EXTRA_DIST): Add human.h.
75327         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75328         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75329         * modules/lchown (EXTRA_DIST): Add lchown.h.
75330         * modules/long-options (EXTRA_DIST): Add long-options.h.
75331         * modules/lstat (EXTRA_DIST): Add lstat.h.
75332         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75333         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75334         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75335         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75336         * modules/memxor (EXTRA_DIST): Add memxor.h.
75337         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75338         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75339         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75340         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75341         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75342         * modules/physmem (EXTRA_DIST): Add physmem.h.
75343         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75344         * modules/posixver (EXTRA_DIST): Add posixver.h.
75345         * modules/quote (EXTRA_DIST): Add quote.h.
75346         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75347         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75348         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75349         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75350         regex_internal.h regexec.c.
75351         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75352         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75353         * modules/same (EXTRA_DIST): Add same.h.
75354         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75355         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75356         * modules/savedir (EXTRA_DIST): Add savedir.h.
75357         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75358         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75359         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75360         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75361         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75362         * modules/strdup (EXTRA_DIST): Add strdup.h.
75363         * modules/strftime (EXTRA_DIST): Add strftime.h.
75364         * modules/strndup (EXTRA_DIST): Add strndup.h.
75365         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75366         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75367         * modules/time_r (EXTRA_DIST): Add time_r.h.
75368         * modules/timespec (EXTRA_DIST): Add timespec.h.
75369         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75370         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75371         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75372         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75373         * modules/userspec (EXTRA_DIST): Add userspec.h.
75374         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75375         * modules/utimens (EXTRA_DIST): Add utimens.h.
75376         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75377         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75378         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75379         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75380         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75381         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75382         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75383         * modules/yesno (EXTRA_DIST): Add yesno.h.
75384
75385 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75386
75387         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75388
75389         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75390         * m4/dev-ino.m4, same-inode.m4: Remove.
75391
75392         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75393         * m4/acl.m4 (AC_FUNC_ACL):
75394         * m4/backupfile.m4 (gl_BACKUPFILE):
75395         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75396         * m4/canon-host.m4 (gl_CANON_HOST):
75397         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75398         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75399         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75400         * m4/cloexec.m4 (gl_CLOEXEC):
75401         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75402         * m4/closeout.m4 (gl_CLOSEOUT):
75403         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75404         * m4/dirname.m4 (gl_DIRNAME):
75405         * m4/exclude.m4 (gl_EXCLUDE):
75406         * m4/exitfail.m4 (gl_EXITFAIL):
75407         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75408         * m4/file-type.m4 (gl_FILE_TYPE):
75409         * m4/filemode.m4 (gl_FILEMODE):
75410         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75411         * m4/fpending.m4 (gl_FUNC_FPENDING):
75412         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75413         * m4/fts.m4 (gl_FUNC_FTS):
75414         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75415         * m4/getdate.m4 (gl_GETDATE):
75416         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75417         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75418         * m4/getpass.m4 (gl_FUNC_GETPASS):
75419         * m4/gettime.m4 (gl_GETTIME):
75420         * m4/getugroups.m4 (gl_GETUGROUPS):
75421         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75422         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75423         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75424         * m4/hash.m4 (gl_HASH):
75425         * m4/idcache.m4 (gl_IDCACHE):
75426         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75427         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75428         * m4/long-options.m4 (gl_LONG_OPTIONS):
75429         * m4/lstat.m4 (gl_FUNC_LSTAT):
75430         * m4/md5.m4 (gl_MD5):
75431         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75432         * m4/memcoll.m4 (gl_MEMCOLL):
75433         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75434         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75435         * m4/memxor.m4 (gl_MEMXOR):
75436         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75437         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75438         * m4/modechange.m4 (gl_MODECHANGE):
75439         * m4/mountlist.m4 (gl_MOUNTLIST):
75440         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75441         * m4/openat.m4 (gl_FUNC_OPENAT):
75442         * m4/pathmax.m4 (gl_PATHMAX):
75443         * m4/physmem.m4 (gl_PHYSMEM):
75444         * m4/posixtm.m4 (gl_POSIXTM):
75445         * m4/posixver.m4 (gl_POSIXVER):
75446         * m4/quote.m4 (gl_QUOTE):
75447         * m4/quotearg.m4 (gl_QUOTEARG):
75448         * m4/readtokens.m4 (gl_READTOKENS):
75449         * m4/readutmp.m4 (gl_READUTMP):
75450         * m4/regex.m4 (gl_REGEX):
75451         * m4/safe-read.m4 (gl_SAFE_READ):
75452         * m4/safe-write.m4 (gl_SAFE_WRITE):
75453         * m4/same.m4 (gl_SAME):
75454         * m4/save-cwd.m4 (gl_SAVE_CWD):
75455         * m4/savedir.m4 (gl_SAVEDIR):
75456         * m4/settime.m4 (gl_SETTIME):
75457         * m4/sha1.m4 (gl_SHA1):
75458         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75459         * m4/stat-macros.m4 (gl_STAT_MACROS):
75460         * m4/stat-time.m4 (gl_STAT_TIME):
75461         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75462         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75463         * m4/strdup.m4 (gl_FUNC_STRDUP):
75464         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75465         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75466         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75467         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75468         * m4/time_r.m4 (gl_TIME_R):
75469         * m4/timespec.m4 (gl_TIMESPEC):
75470         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75471         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75472         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75473         * m4/userspec.m4 (gl_USERSPEC):
75474         * m4/utimecmp.m4 (gl_UTIMECMP):
75475         * m4/utimens.m4 (gl_UTIMENS):
75476         * m4/xalloc.m4 (gl_XALLOC):
75477         * m4/xgetcwd.m4 (gl_XGETCWD):
75478         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75479         * m4/xreadlink.m4 (gl_XREADLINK):
75480         * m4/xstrtod.m4 (gl_XSTRTOD):
75481         * m4/yesno.m4 (gl_YESNO):
75482         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75483         to get the necessary .h files and whatnot.
75484
75485 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75486             Bruno Haible  <bruno@clisp.org>
75487
75488         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75489         /bin/sh understanding of '!' conditional negation.
75490
75491 2006-08-21  Jim Meyering  <jim@meyering.net>
75492
75493         * modules/openat (Depends-on): Really alphabetize.
75494
75495         * modules/acl (Depends-on): Add error and quote.
75496
75497         * check-module (find_included_lib_files): Add at-func.c to the
75498         ok-to-include-more-than-once white list.
75499
75500         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75501
75502 2006-08-21  Bruno Haible  <bruno@clisp.org>
75503
75504         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75505         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75506         Reported by Martin Lambers <marlam@marlam.de>.
75507
75508 2006-08-21  Bruno Haible  <bruno@clisp.org>
75509
75510         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75511         specify an installation location, don't emit a noinst_LIBRARIES or
75512         noinst_LTLIBRARIES assignment.
75513
75514 2006-08-21  Bruno Haible  <bruno@clisp.org>
75515
75516         BeOS portability.
75517         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75518         BeOS has mbrtowc() but no <wctype.h>.
75519
75520 2006-08-21  Bruno Haible  <bruno@clisp.org>
75521
75522         BeOS portability.
75523         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75524         exist.
75525
75526 2006-08-21  Bruno Haible  <bruno@clisp.org>
75527
75528         BeOS portability.
75529         * lib/mbchar.h: Include <wctype.h> only if it exists.
75530
75531 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75532
75533         Remove files that are no longer needed by their respective modules.
75534         * m4/obstack.m4: Remove.
75535         * m4/strerror_r.m4: Remove.
75536         * m4/uint32_t.m4: Remove.
75537         * m4/uintptr_t.m4: Remove.
75538         * m4/ullong_max.m4: Remove.
75539         * m4/xstrtoimax.m4: Remove.
75540         * m4/xstrtoumax.m4: Remove.
75541
75542         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75543         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75544         dependencies now capture this.
75545
75546         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75547         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75548         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75549         * m4/human.m4 (gl_HUMAN): Likewise.
75550         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75551         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75552
75553         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75554
75555         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75556         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75557         stdint.
75558         * m4/human.m4 (gl_HUMAN): Likewise.
75559         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75560         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75561         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75562         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75563         * m4/xstrtol (gl_XSTRTOL): Likewise.
75564
75565         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75566         AC_TYPE_LONG_LONG_INT.
75567         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75568         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75569         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75570         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75571
75572         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75573         on stdbool.
75574
75575         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75576         (gl_PREREQ_XSTRTOUL): Remove.
75577
75578         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75579
75580         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75581         mode.
75582
75583 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75584
75585         Add and change modules to make it easier for coreutils to use
75586         gnulib-tool.
75587         * modules/backupfile (Files): Remove m4/d-ino.m4.
75588         (Depends-on): Add d-ino.
75589         * modules/cycle-check (Depends-on): Add stdint.
75590         (lib_SOURCES): Add cycle-check.h.
75591         * modules/d-ino: New module.
75592         * modules/d-type: New module.
75593         * modules/error (Files): Remove m4/strerror_r.m4.
75594         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75595         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75596         m4/inttypes_h.m4, m4/uintmax_t.m4.
75597         (Depends-on): Add stdint.
75598         (lib_SOURCES): Add fsusage.h.
75599         * modules/getcwd (Files): Remove d-ino.m4.
75600         (Depends-on): Add d-ino.
75601         * modules/getndelim2 (Depends-on): Add stdint.
75602         * modules/glob (Files): Remove m4/d-type.m4.
75603         (Depends-on): Add d-type.
75604         * modules/host-os: New module.
75605         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75606         m4/inttypes_h.m4, m4/uintmax_t.m4.
75607         * Depends-on: Add stdint.
75608         (lib_SOURCES): Add human.h.
75609         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75610         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75611         m4/uintmax_t.m4, m4/ulonglong.m4.
75612         (Depends-on): Add stdint.
75613         (EXTRA_DIST): Add inttostr.h.
75614         * modules/lchmod: New module.
75615         * modules/link-follow: New module.
75616         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75617         (Depends-on): Add lchmod.
75618         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75619         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75620         (Depends-on): Add stdint.
75621         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75622         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75623         (Depends-on): Add stdint.
75624         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75625         * modules/perl: New module.
75626         * modules/regex (Depends-on): Add stdint.
75627         * modules/rmdir-errno: New module.
75628         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75629         m4/intmax_t.m4.
75630         (Depends-on): Add stdint.
75631         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75632         m4/uintmax_t.m4.
75633         (Depends-on): Add stdint.
75634         * modules/unlink-busy: New module.
75635         * modules/utimecmp (Depends-on): Add stdint.
75636         * modules/uptime: New module.
75637         * modules/winsz-ioctl: New module.
75638         * modules/winsz-termios: New module.
75639         * modules/xnanosleep (Depends-on): Add nanosleep.
75640         * modules/ullong_max: Remove.
75641         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75642         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75643         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75644         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75645         (Depends-on): Add inttypes.
75646         (lib_SOURCES): Add xstrtol.h.
75647         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75648         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75649         * MODULES.html.sh: Move 'assert' into the assert section.
75650         Move 'dummy' into the linking section.
75651         Remove ullong_max.
75652         Add section for compatibility checks for POSIX:2001 functions,
75653         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75654         winsz-ioctl, and winsz-termios into it.
75655         Add lchmod.
75656         Add top-level Misc section and put host-os, perl, and uptime
75657         into it.
75658
75659 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75660
75661         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75662         now assume the stdint module.  Do not include inttypes.h.
75663         * lib/fsusage.h: Likewise.
75664         * lib/getndelim2.c: Likewise.
75665         * lib/human.h: Likewise.
75666         * lib/inttostr.h: Likewise.
75667         * lib/obstack.c: Likewise.
75668         * lib/regex_internal.h: Likewise.
75669         * lib/tempname.c: Likewise.
75670         * lib/utimecmp.c: Likewise.
75671         * lib/xstrtol.h: Likewise.
75672
75673         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75674
75675         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75676         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75677         * lib/xtime.h: Likewise.
75678
75679 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75680
75681         * modules/openat (Files): Add lib/fchmodat.c.
75682         Fixes problem reported by Jay Youngman.
75683
75684 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75687         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75688
75689 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75690             Bruno Haible  <bruno@clisp.org>
75691
75692         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75693         and is a script that invokes bison. Tighten the code. Add comments.
75694
75695 2006-08-18  Jim Meyering  <jim@meyering.net>
75696
75697         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75698         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75699         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75700         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75701
75702 2006-08-18  Bruno Haible  <bruno@clisp.org>
75703
75704         * modules/bison-i18n: New file.
75705         * MODULES.html.sh (Internationalization functions): Add it.
75706
75707 2006-08-18  Bruno Haible  <bruno@clisp.org>
75708
75709         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75710         sys/statvfs.h. When getmntinfo was found, check its declaration and
75711         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75712
75713 2006-08-18  Bruno Haible  <bruno@clisp.org>
75714
75715         * m4/bison-i18n.m4: New file, from bison.
75716
75717 2006-08-18  Bruno Haible  <bruno@clisp.org>
75718
75719         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75720         (ME_DUMMY): Treat "kernfs" as a dummy.
75721         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75722
75723 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75724
75725         Update from coreutils.
75726
75727         2006-08-15  Jim Meyering  <jim@meyering.net>
75728
75729         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75730
75731         2006-01-17  Jim Meyering  <jim@meyering.net>
75732
75733         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75734
75735         2006-01-11  Jim Meyering  <jim@meyering.net>
75736
75737         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75738         Check for the lchmod function.
75739
75740 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75741
75742         Update from coreutils.
75743
75744         * lib/__fpending.h: Add copyright notice.
75745         * lib/fprintftime.h: Likewise.
75746         * lib/savedir.c: Use (C) in copyright notice.
75747         * lib/savedir.h: Likewise.
75748
75749         2006-08-15  Jim Meyering  <jim@meyering.net>
75750
75751         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75752         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75753         in support of the EXPECTED_ERRNO macro.
75754         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75755         definitions.  Instead, define the appropriate symbols and include
75756         "at-func.c".
75757         * lib/mkdirat.c (mkdirat): Likewise.
75758         * lib/fchmodat.c (fchmodat): Likewise.
75759         (ENOSYS): Remove definition.
75760         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75761         it.  Don't include "unistd--.h" -- it wasn't ever used.
75762
75763         2006-01-17  Jim Meyering  <jim@meyering.net>
75764
75765         Rewrite fts.c not to change the current working directory,
75766         by using openat, fstatat, fdopendir, etc..
75767
75768         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75769         (HAVE_OPENAT_SUPPORT): Define.
75770         [_LIBC] (fchdir): Don't undef or define; no longer used.
75771         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75772         Now, this `function' always succeeds, and consumes its file descriptor
75773         parameter -- so callers must not close such FDs.  Update callers.
75774         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75775         (diropen): Add parameter, SP.  Adjust all callers.
75776         Implement using diropen_fd, rather than open.
75777         (fts_open): Initialize new member, fts_cwd_fd.
75778         Remove fts_rft-setting code.
75779         (fts_close): Close fts_cwd_fd, if necessary.
75780         (__opendir2): Define in terms of opendir or opendirat,
75781         depending on whether the FST_NOCHDIR flag is set.
75782         (fts_build): Since fts_safe_changedir consumes its FD, and since
75783         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75784         and close the dup'd file descriptor upon failure.
75785         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75786         (fts_safe_changedir): Tweak semantics to reflect that this function
75787         now calls cwd_advance_fd and hence consumes its FD argument.
75788         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75789         [struct FTS] (fts_rft): Remove now-unused member.
75790         [struct FTS] (fts_cycle.state): Improve comment.
75791
75792         * lib/openat.c (openat_needs_fchdir): New function.
75793         * lib/openat.h (openat_needs_fchdir): Declare it.
75794
75795 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75796
75797         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75798         Problem and fix reported by Pádraig Brady in
75799         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75800
75801 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75802
75803         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75804
75805 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75806
75807         * lib/memcoll.c (memcoll): Optimize for the common case where the
75808         arguments are bytewise equal.
75809
75810 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75811
75812         * doc/regexprops-generic.texi: Add a copyright notice.
75813
75814 2006-08-15  Bruno Haible  <bruno@clisp.org>
75815
75816         * modules/tmpdir (License): Change to LGPL.
75817
75818 2006-08-15  Bruno Haible  <bruno@clisp.org>
75819
75820         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75821         module.
75822
75823 2006-08-14  Simon Josefsson  <jas@extundo.com>
75824
75825         * config/srclist.txt: Add gnupload.
75826
75827 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75828
75829         Change copyright notice from LGPL 2 to GPL 2, since that's the
75830         standard form used in the gnulib repository.
75831         * tests/test-lock.c: Likewise.
75832         * tests/test-stdint.c: Likewise.
75833         * tests/test-tls.c: Likewise.
75834
75835         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75836         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75837         Add copyright notice.
75838
75839         * check-module: Add copyright notice.  Output a copyright
75840         notice if "--version" is specified.
75841         * modules/COPYING: New file.
75842         * tests/test-getaddrinfo.c: Add copyright notice.
75843         * tests/test-verify.c: Likewise.
75844
75845 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75846
75847         Change copyright notice from LGPL 2 to GPL 2, since that's the
75848         standard form used in the gnulib repository.
75849         * lib/lock.c: LGPL -> GPL.
75850         * lib/lock.h: Likewise.
75851         * lib/strnlen1.c: Likewise.
75852         * lib/strnlen1.h: Likewise.
75853         * lib/tls.c: Likewise.
75854         * lib/tls.h: Likewise.
75855         * lib/tmpdir.c: Likewise.
75856
75857         * lib/TODO: Remove; this belongs only in coreutils.
75858
75859 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75860
75861         Add copyright notices to long-enough files that lack them, since
75862         otherwise the files aren't clearly free.  Use the same notice that
75863         getdate.texi already uses.
75864         * doc/alloca-opt.texi: Add copyright notice.
75865         * doc/alloca.texi: Likewise.
75866         * doc/ctime.texi: Likewise.
75867         * doc/functions.texi: Likewise.
75868         * doc/gcd.texi: Likewise.
75869         * doc/gnulib-tool.texi: Likewise.
75870         * doc/inet_ntoa.texi: Likewise.
75871         * doc/visibility.texi: Likewise.
75872
75873         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75874         * doc/quote.texi: Add copyright notice.
75875
75876         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75877         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75878         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75879         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75880         is now obsolete, and give a pointer to the Sun list.
75881         Add copyright notice.
75882
75883 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75884
75885         * config/srclistvars.sh: Add copyright notice.
75886
75887 2006-08-14  Eric Blake  <ebb9@byu.net>
75888
75889         Import the following change from libc:
75890
75891         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75892
75893         Upstream bug 2997.
75894         * lib/misc/error.c: Add space between program name and message if file
75895         name is missing.
75896
75897 2006-08-12  Karl Berry  <karl@gnu.org>
75898
75899         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75900         remove, these originate in gnulib now.
75901
75902 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75903
75904         * doc/Makefile (standards.info standards.html standards.dvi):
75905         Also depend on make-stds.texi.
75906
75907 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75908
75909         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75910         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75911
75912         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75913         in wchar_t.  Problem reported by Eric Blake.
75914
75915         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75916         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75917         Also, help the compiler to keep LEN in a register.
75918
75919 2006-08-11  Eric Blake  <ebb9@byu.net>
75920
75921         * users.txt: Sort.  Add tar.
75922
75923 2006-08-11  Bruno Haible  <bruno@clisp.org>
75924
75925         * users.txt: New file.
75926
75927 2006-08-11  Bruno Haible  <bruno@clisp.org>
75928
75929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75930         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75931
75932 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75933
75934         * modules/snprintf (Depends-on): Remove minmax.
75935         (Maintainer): Add self and Bruno.
75936
75937 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75938
75939         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75940         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75941         (EOVERFLOW): Define if the system does not.
75942         Do not include "minmax.h"; it wasn't used.
75943         (snprintf): Don't assume size_t promotes to an unsigned type.
75944         Fix bug when generated string was too long for the buffer: the
75945         buffer's contents are supposed to be the initial prefix of the
75946         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75947         exceeds INT_MAX; do the check ourselves.
75948
75949         Import the following changes from libc:
75950
75951         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75952
75953         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75954         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75955         set wc to the byte which couldn't be converted.
75956         (re_string_reconstruct): Don't clear valid_raw_len before calling
75957         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75958         tip_context using re_string_context_at.
75959
75960         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75961
75962         * lib/posix/regex.h: g++ still cannot handled [restrict].
75963
75964         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75965
75966         * lib/posix/regex.h: Remove special handling for VMS.
75967
75968 2006-08-10  Jim Meyering  <jim@meyering.net>
75969
75970         * modules/same-inode: New module.
75971         * modules/dev-ino: New module.
75972         * modules/cycle-check: Depend on these modules, rather than simply
75973         including their .h files.
75974         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75975         required via m4/cycle-check.m4.
75976         * modules/same: Depend on new same-inode module, rather than
75977         including same-inode.h.
75978         * modules/chdir-safer: New file.
75979
75980         * modules/chown (Depends-on): Add stat-macros.
75981
75982 2006-08-10  Jim Meyering  <jim@meyering.net>
75983
75984         * m4/cycle-check.m4: New file.
75985         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75986         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75987
75988 2006-08-10  Eric Blake  <ebb9@byu.net>
75989
75990         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75991         in from original proposal.
75992
75993 2006-08-10  Eric Blake  <ebb9@byu.net>
75994         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75995
75996         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75997         namespace.
75998
75999 2006-08-10  Bruno Haible  <bruno@clisp.org>
76000
76001         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76002         as well.
76003
76004 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76005
76006         Sync from coreutils.
76007
76008         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76009
76010         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76011         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76012
76013 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76014
76015         * modules/restrict: Remove; no longer needed now that we assume
76016         Autoconf 2.59 or later.
76017         * MODULES.html.sh: Remove 'restrict'.
76018         * modules/argp (Depends-on): Remove 'restrict'.
76019         * modules/base64 (Depends-on): Likewise.
76020         * modules/gc (Depends-on): Likewise.
76021         * modules/getaddrinfo (Depends-on): Likewise.
76022         * modules/glob (Depends-on): Likewise.
76023         * modules/inet_ntop (Depends-on): Likewise.
76024         * modules/inet_pton (Depends-on): Likewise.
76025         * modules/memxor (Depends-on): Likewise.
76026         * modules/regex (Depends-on): Likewise.
76027         * modules/strtok_r (Depends-on): Likewise.
76028         * modules/time_r (Depends-on): Likewise.
76029
76030 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76031
76032         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76033         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76034         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76035         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76036         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76037         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76038         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76039         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76040
76041         Merge from coreutils.
76042         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76043         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76044         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76045         * m4/time_r.m4 (gl_TIME_R): Likewise.
76046
76047 2006-08-09  Karl Berry  <karl@gnu.org>
76048
76049         * config/srclist.txt: no more gettext-tools, per Bruno.
76050
76051 2006-08-08  Eric Blake  <ebb9@byu.net>
76052
76053         * modules/verror: New module.
76054         * MODULES.html.sh: Document it.
76055
76056 2006-08-08  Eric Blake  <ebb9@byu.net>
76057
76058         * lib/verror.h, lib/verror.c: New files.
76059
76060 2006-08-08  Eric Blake  <ebb9@byu.net>
76061
76062         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76063         verror_at_line output complies with GNU Coding Standards even when
76064         file is NULL.
76065
76066 2006-08-07  Bruno Haible  <bruno@clisp.org>
76067
76068         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76069         versions of AIX.
76070         Reported by Ralf Wildenhues.
76071
76072 2006-08-07  Bruno Haible  <bruno@clisp.org>
76073
76074         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76075         in an AC_DEFUN. Needed so that the autoconf snippets can use
76076         AC_REQUIRE.
76077
76078 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76079
76080         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76081         Initialize pkgdata_DATA.
76082         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76083         overriding it.
76084
76085 2006-08-06  Eric Blake  <ebb9@byu.net>
76086
76087         * lib/error.h: Fold in some upstream changes from glibc.
76088         * lib/error.c: Likewise.
76089
76090 2006-08-04  Bruno Haible  <bruno@clisp.org>
76091
76092         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76093         Make the mostlyclean-local rule depend on mostlyclean-generic.
76094         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76095
76096 2006-07-31  Bruno Haible  <bruno@clisp.org>
76097
76098         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76099         <stdlib.h>, <string.h>.
76100
76101 2006-07-30  Bruno Haible  <bruno@clisp.org>
76102
76103         * modules/readlink (License): Change to LGPL.
76104
76105 2006-07-30  Bruno Haible  <bruno@clisp.org>
76106
76107         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76108         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76109         set PKGDATADIR to point to it.
76110
76111 2006-07-30  Bruno Haible  <bruno@clisp.org>
76112
76113         * modules/csharpexec (configure.ac): Comment out macro invocation.
76114         * modules/javaexec (configure.ac): Likewise.
76115         * modules/javacomp-script (configure.ac): Likewise.
76116
76117         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76118
76119 2006-07-30  Bruno Haible  <bruno@clisp.org>
76120
76121         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76122         linked-list.
76123
76124 2006-07-30  Bruno Haible  <bruno@clisp.org>
76125
76126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76127
76128 2006-07-30  Bruno Haible  <bruno@clisp.org>
76129
76130         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76131         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76132         get removed.
76133
76134 2006-07-29  Bruno Haible  <bruno@clisp.org>
76135
76136         Make it possible for gnulib-tool to work with locally modified or
76137         augmented gnulib repositories.
76138         * gnulib-tool (func_usage): Document --local-dir option.
76139         (local_gnulib_dir): New variable.
76140         Handle --local-dir option.
76141         (func_lookup_file): New function.
76142         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76143         (func_get_description, func_get_filelist, func_get_description,
76144         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76145         func_get_automake_snippet, func_get_include_directive,
76146         func_get_license, func_get_maintainer): Use func_lookup_file.
76147         (func_import, func_create_testdir): Use func_lookup_file.
76148
76149 2006-07-29  Bruno Haible  <bruno@clisp.org>
76150
76151         * modules/setenv (Depends-on): Add unistd.
76152
76153 2006-07-29  Bruno Haible  <bruno@clisp.org>
76154
76155         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76156
76157 2006-07-29  Bruno Haible  <bruno@clisp.org>
76158
76159         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76160
76161 2006-07-29  Bruno Haible  <bruno@clisp.org>
76162
76163         * gnulib-tool (import, update): If there is no Makefile.am, look at
76164         aclocal.m4, instead of bailing out.
76165
76166 2006-07-29  Bruno Haible  <bruno@clisp.org>
76167
76168         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76169         Categorize the options by when they are useful.
76170
76171 2006-07-29  Bruno Haible  <bruno@clisp.org>
76172
76173         * gnulib-tool (func_usage): Document option --no-libtool.
76174         Handle option --no-libtool.
76175         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76176         for changed semantics of $libtool variable.
76177         (func_import): Likewise. If libtool is not used, show this through
76178         an option --no-libtool.
76179         (func_create_testdir): Update.
76180
76181 2006-07-29  Bruno Haible  <bruno@clisp.org>
76182
76183         * gnulib-tool (func_import): Extend error message about missing
76184         --doc-base.
76185
76186 2006-07-29  Bruno Haible  <bruno@clisp.org>
76187
76188         * gnulib-tool (func_import): Don't create the $docbase directory if
76189         there is no file to store there.
76190
76191 2006-07-29  Bruno Haible  <bruno@clisp.org>
76192
76193         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76194         relevant, look for configure.ac there, not in the current directory.
76195         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76196
76197 2006-07-29  Bruno Haible  <bruno@clisp.org>
76198
76199         * gnulib-tool (SORT): New variable.
76200         (func_usage): Undocument --assume-autoconf option.
76201         Remove --assume-autoconf option handling.
76202         (autoconf_minversion): Determine from the contents of configure.ac.
76203         (func_import): Remove autoconf_minversion handling.
76204         Suggested by Eric Blake.
76205
76206 2006-07-29  Bruno Haible  <bruno@clisp.org>
76207
76208         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76209
76210 2006-07-29  Bruno Haible  <bruno@clisp.org>
76211
76212         * config/srclist.txt (*setenv.[ch]): Remove rules.
76213
76214 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76215
76216         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76217
76218 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76219
76220         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76221         arpa/inet.h.
76222
76223 2006-07-28  Simon Josefsson  <jas@extundo.com>
76224
76225         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76226         * modules/inet_pton (Depends-on): Likewise.
76227
76228 2006-07-28  Simon Josefsson  <jas@extundo.com>
76229
76230         * m4/netinet_in_h.m4: New file.
76231
76232 2006-07-28  Simon Josefsson  <jas@extundo.com>
76233
76234         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76235         #include's.
76236
76237 2006-07-28  Simon Josefsson  <jas@extundo.com>
76238
76239         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76240         #include's.
76241
76242 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76243
76244         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76245         setgid on directories only if they set these bits.
76246         * lib/modechange.h: Remove obsolete comment about masks.
76247
76248 2006-07-28  Eric Blake  <ebb9@byu.net>
76249
76250         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76251         macro expansion.
76252
76253 2006-07-28  Bruno Haible  <bruno@clisp.org>
76254
76255         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76256
76257 2006-07-28  Bruno Haible  <bruno@clisp.org>
76258
76259         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76260
76261 2006-07-28  Bruno Haible  <bruno@clisp.org>
76262
76263         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76264         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76265         Define fallbacks.
76266         Avoids link error on FreeBSD 4.x.
76267         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76268
76269         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76270         encoding.
76271         * lib/mbswidth.c (iswcntrl): Likewise.
76272
76273 2006-07-27  Bruno Haible  <bruno@clisp.org>
76274
76275         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76276         test.
76277
76278 2006-07-27  Bruno Haible  <bruno@clisp.org>
76279
76280         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76281         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76282         defined.
76283
76284 2006-07-26  Eric Blake  <ebb9@byu.net>
76285
76286         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76287
76288 2006-07-26  Eric Blake  <ebb9@byu.net>
76289
76290         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76291         like mingw that lack mkstemp.
76292         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76293         avoid compilation warning on mingw.
76294
76295 2006-07-26  Bruno Haible  <bruno@clisp.org>
76296
76297         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76298         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76299         INT_FAST*_MIN, INTPTR_MIN.
76300
76301 2006-07-25  Bruno Haible  <bruno@clisp.org>
76302
76303         * modules/version-etc (Depends-on): Add stdarg.
76304
76305 2006-07-25  Bruno Haible  <bruno@clisp.org>
76306
76307         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76308         complex commands.
76309
76310 2006-07-25  Bruno Haible  <bruno@clisp.org>
76311
76312         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76313         defined in <stdarg.h> or config.h.
76314
76315 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76316
76317         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76318         (gl_STDIO_SAFER): Remove.
76319
76320 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76321
76322         * MODULES.html.sh (File stream based Input/Output):
76323         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76324         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76325         * modules/fopen-safer, modules/tmpfile-safer: New files.
76326         * modules/stdio-safer: Remove.
76327
76328 2006-07-24  Bruno Haible  <bruno@clisp.org>
76329
76330         * modules/tmpdir: New file.
76331         * MODULES.html.sh (File system functions): Add it.
76332
76333 2006-07-24  Bruno Haible  <bruno@clisp.org>
76334
76335         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76336         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76337
76338 2006-07-24  Bruno Haible  <bruno@clisp.org>
76339
76340         * modules/clean-temp: New file.
76341
76342 2006-07-24  Bruno Haible  <bruno@clisp.org>
76343
76344         * m4/tmpdir.m4: New file, from GNU gettext.
76345
76346 2006-07-24  Bruno Haible  <bruno@clisp.org>
76347
76348         * lib/tmpdir.h: New file, from GNU gettext.
76349         * lib/tmpdir.c: New file, from GNU gettext.
76350
76351 2006-07-24  Bruno Haible  <bruno@clisp.org>
76352
76353         * lib/clean-temp.h: New file, from GNU gettext.
76354         * lib/clean-temp.c: New file, from GNU gettext.
76355
76356 2006-07-23  Eric Blake  <ebb9@byu.net>
76357
76358         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76359         (Depends-on): Add binary-io.
76360
76361 2006-07-23  Eric Blake  <ebb9@byu.net>
76362
76363         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76364
76365 2006-07-23  Eric Blake  <ebb9@byu.net>
76366
76367         * lib/tmpfile-safer.c: New file.
76368         * lib/stdio-safer.h (fopen_safer): Add prototype.
76369         * lib/stdio--.h (tmpfile): Make safer.
76370
76371 2006-07-23  Bruno Haible  <bruno@clisp.org>
76372
76373         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76374         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76375         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76376         gl_linked_remove_at): Use it.
76377
76378 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76379         and Simon Josefsson <jas@extundo.com>
76380
76381         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76382
76383         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76384
76385 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76386
76387         * modules/close-stream: New file.
76388         * modules/closeout (Description): Make it clear that it exits
76389         with a diagnostic on error.
76390         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76391         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76392
76393 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76394
76395         * m4/close-stream.m4: New file.
76396
76397 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76398
76399         * lib/close-stream.c, lib/close-stream.h: New files.
76400
76401 2006-07-22  Bruno Haible  <bruno@clisp.org>
76402
76403         Merge from GNU gettext 0.15.
76404
76405         2006-05-01  Bruno Haible  <bruno@clisp.org>
76406
76407                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76408
76409         2006-07-22  Bruno Haible  <bruno@clisp.org>
76410
76411                 * modules/javaversion: New file.
76412                 * MODULES.html.sh (Java): Add javaversion.
76413
76414         2006-03-12  Bruno Haible  <bruno@clisp.org>
76415
76416                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76417
76418         2005-12-04  Bruno Haible  <bruno@clisp.org>
76419
76420                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76421                 (untested).
76422
76423         2006-06-21  Bruno Haible  <bruno@clisp.org>
76424
76425                 Avoid warnings from recent versions of mcs.
76426                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76427                 -o, -L, -r any more. Use options documented since mcs-1.0
76428                 instead. Similarly for -g.
76429
76430         2005-12-04  Bruno Haible  <bruno@clisp.org>
76431
76432                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76433                 .resources, not .resource.
76434
76435         2005-07-09  Bruno Haible  <bruno@clisp.org>
76436
76437                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76438                 add a .dll suffix.
76439                 Reported by Mark Junker <mjscod@gmx.de>.
76440
76441         2006-07-22  Bruno Haible  <bruno@clisp.org>
76442
76443                 * modules/gettext: Upgrade to gettext-0.15.
76444                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76445                 m4/visibility.m4.
76446                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76447
76448 2006-07-22  Bruno Haible  <bruno@clisp.org>
76449
76450         Merge from GNU gettext 0.15.
76451
76452         2006-03-25  Bruno Haible  <bruno@clisp.org>
76453
76454                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76455
76456         2006-07-21  Bruno Haible  <bruno@clisp.org>
76457
76458                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76459                 "1.1".
76460
76461         2006-05-09  Bruno Haible  <bruno@clisp.org>
76462
76463                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76464                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76465                 for the conftestver execution.
76466
76467         2006-05-01  Bruno Haible  <bruno@clisp.org>
76468
76469                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76470                 optional target-version argument. Verify that the compiler
76471                 groks source of the specified source-version, or add -source
76472                 option as necessary. Verify that the compiler produces
76473                 bytecode in the specified target-version, or add -target and
76474                 -source options as necessary. Make the result of the test
76475                 available as variable CONF_JAVAC. Also log error output in
76476                 config.log.
76477
76478         2006-03-11  Bruno Haible  <bruno@clisp.org>
76479
76480                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76481
76482         2006-05-09  Bruno Haible  <bruno@clisp.org>
76483
76484                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76485                 CLASSPATH_SEPARATOR to a semicolon.
76486
76487         2006-03-12  Bruno Haible  <bruno@clisp.org>
76488
76489                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76490                 available as variable CONF_JAVA, for subsequent autoconf
76491                 tests. Also log error output in config.log.
76492
76493         2006-07-19  Bruno Haible  <bruno@clisp.org>
76494
76495                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76496                 that getline works on glibc2 systems. Needed to avoid trouble
76497                 in relocatable.c.
76498                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76499
76500         2005-12-04  Bruno Haible  <bruno@clisp.org>
76501
76502                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76503                 launcher (untested).
76504
76505         2005-12-04  Bruno Haible  <bruno@clisp.org>
76506
76507                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76508
76509         2006-07-22  Bruno Haible  <bruno@clisp.org>
76510
76511                 * gettext.m4: Update from GNU gettext-0.15.
76512                 * nls.m4: Likewise.
76513                 * po.m4: Likewise.
76514                 * inttypes-pri.m4: Likewise.
76515                 * inttypes-h.m4: Renamed from inttypes.m4.
76516                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76517
76518 2006-07-22  Bruno Haible  <bruno@clisp.org>
76519
76520         Merge from GNU gettext 0.15.
76521
76522         2005-07-05  Bruno Haible  <bruno@clisp.org>
76523
76524                 * printf-args.c (printf_fetchargs): Work around broken
76525                 definition of wint_t on mingw.
76526
76527         2005-02-12  Bruno Haible  <bruno@clisp.org>
76528
76529                 * xallocsa.h: Add extern "C" for C++.
76530
76531         2006-05-17  Bruno Haible  <bruno@clisp.org>
76532
76533                 Cygwin portability.
76534                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76535
76536         2006-04-30  Bruno Haible  <bruno@clisp.org>
76537
76538                 * progreloc.c: Include <mach-o/dyld.h> if available.
76539                 (find_executable): Use _NSGetExecutablePath when possible.
76540
76541         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76542
76543                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76544                 function.
76545
76546         2005-12-29  Bruno Haible  <bruno@clisp.org>
76547
76548                 * progreloc.c (set_program_name_and_installdir): Fix
76549                 compilation error.
76550
76551         2005-12-04  Bruno Haible  <bruno@clisp.org>
76552
76553                 Cygwin portability.
76554                 * progreloc.c: Include <windows.h> also on Cygwin.
76555                 (find_executable): Add support for Cygwin.
76556                 (set_program_name_and_installdir): Handle also platforms with
76557                 nonempty EXEEXT.
76558
76559         2006-07-11  Bruno Haible  <bruno@clisp.org>
76560
76561                 * javacomp.c: Fix a comment.
76562                 Reported by Jim Meyering.
76563
76564         2006-04-30  Bruno Haible  <bruno@clisp.org>
76565
76566                 * javacomp.h (compile_java_class): Add source_version,
76567                 target_version arguments.
76568                 * javacomp.c: Rewritten to choose only a compiler that
76569                 respects the specified source_version and target_version.
76570
76571         2006-06-27  Bruno Haible  <bruno@clisp.org>
76572
76573                 Assume correct S_ISDIR macro.
76574                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76575
76576         2006-07-22  Bruno Haible  <bruno@clisp.org>
76577
76578                 * javaversion.h: New file, from GNU gettext.
76579                 * javaversion.c: New file, from GNU gettext.
76580                 * javaversion.java: New file, from GNU gettext.
76581                 * javaversion.class: New file, from GNU gettext.
76582
76583         2006-05-17  Bruno Haible  <bruno@clisp.org>
76584
76585                 Cygwin portability.
76586                 * javaexec.c (execute_java_class): Test for jview program
76587                 also on Cygwin.
76588
76589         2006-04-09  Bruno Haible  <bruno@clisp.org>
76590
76591                 * fatal-signal.c: Don't include string.h.
76592                 (at_fatal_signal): Use a copying loop instead of memcpy.
76593
76594         2005-12-04  Bruno Haible  <bruno@clisp.org>
76595
76596                 * csharpexec.c: Add support for 'clix' launcher (untested).
76597                 (execute_csharp_using_sscli): New function.
76598                 (execute_csharp_program): Call it.
76599
76600         2006-06-21  Bruno Haible  <bruno@clisp.org>
76601
76602                 Avoid warnings from recent versions of mcs.
76603                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76604                 -o, -L, -r any more. Use options documented since mcs-1.0
76605                 instead. Similarly for -g.
76606
76607         2005-07-09  Bruno Haible  <bruno@clisp.org>
76608
76609                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76610                 add a .dll suffix.
76611                 Reported by Mark Junker <mjscod@gmx.de>.
76612
76613         2006-06-17  Bruno Haible  <bruno@clisp.org>
76614
76615                 * config.charset: Update for NetBSD 3.0.
76616
76617         2006-05-17  Bruno Haible  <bruno@clisp.org>
76618
76619                 Cygwin portability.
76620                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76621
76622         2006-05-16  Bruno Haible  <bruno@clisp.org>
76623
76624                 * localcharset.c [CYGWIN]: Include <windows.h>.
76625                 (get_charset_aliases): For Cygwin, return the same CPxxx
76626                 aliases list as under WIN32.
76627                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76628                 the environment variables. Fall back to GetACP().
76629
76630         2006-04-05  Bruno Haible  <bruno@clisp.org>
76631
76632                 * config.charset: Update Juan Manuel Guerrero's address.
76633
76634         2005-02-12  Bruno Haible  <bruno@clisp.org>
76635
76636                 * allocsa.h: Add extern "C" for C++.
76637
76638         2005-02-10  Bruno Haible  <bruno@clisp.org>
76639
76640                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76641                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76642
76643         2006-07-22  Bruno Haible  <bruno@clisp.org>
76644
76645                 * gettext.h: Update to GNU gettext-0.15.
76646
76647 2006-07-22  Bruno Haible  <bruno@clisp.org>
76648
76649         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76650         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76651         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76652
76653 2006-07-21  Eric Blake  <ebb9@byu.net>
76654
76655         * modules/stdlib-safer: New file.
76656         * MODULES.html.sh (File stream based Input/Output): Add
76657         stdlib-safer.
76658
76659 2006-07-21  Eric Blake  <ebb9@byu.net>
76660
76661         * lib/stdlib-safer.h: New file from coreutils, required by
76662         stdlib--.h.
76663
76664 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76665
76666         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76667
76668 2006-07-20  Bruno Haible  <bruno@clisp.org>
76669
76670         * gnulib-tool: Recognize new option --assume-autoconf.
76671         (autoconf_minversion): New variable.
76672         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76673
76674 2006-07-20  Bruno Haible  <bruno@clisp.org>
76675
76676         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76677
76678 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76679
76680         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76681         Reindent and repaginate.
76682
76683 2006-07-19  Derek Price  <derek@ximbiot.com>
76684
76685         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76686         Correct grammar.
76687
76688 2006-07-17  Bruno Haible  <bruno@clisp.org>
76689
76690         * modules/list: New file.
76691         * modules/array-list: New file.
76692         * modules/carray-list, modules/carray-list-tests: New files.
76693         * modules/linked-list, modules/linked-list-tests: New files.
76694         * modules/avltree-list, modules/avltree-list-tests: New files.
76695         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76696         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76697         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76698         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76699         * modules/oset: New file.
76700         * modules/array-oset: New file.
76701         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76702         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76703         * tests/test-carray_list.c: New file.
76704         * tests/test-linked_list.c: New file.
76705         * tests/test-avltree_list.c: New file.
76706         * tests/test-rbtree_list.c: New file.
76707         * tests/test-linkedhash_list.c: New file.
76708         * tests/test-avltreehash_list.c: New file.
76709         * tests/test-rbtreehash_list.c: New file.
76710         * tests/test-avltree_oset.c: New file.
76711         * tests/test-rbtree_oset.c: New file.
76712         * MODULES.html.sh (Container data structures): New section.
76713
76714 2006-07-17  Bruno Haible  <bruno@clisp.org>
76715
76716         * m4/gl_list.m4: New file.
76717
76718 2006-07-17  Bruno Haible  <bruno@clisp.org>
76719
76720         * lib/gl_list.h: New file.
76721         * lib/gl_list.c: New file.
76722         * lib/gl_array_list.h: New file.
76723         * lib/gl_array_list.c: New file.
76724         * lib/gl_carray_list.h: New file.
76725         * lib/gl_carray_list.c: New file.
76726         * lib/gl_linked_list.h: New file.
76727         * lib/gl_linked_list.c: New file.
76728         * lib/gl_anylinked_list1.h: New file.
76729         * lib/gl_anylinked_list2.h: New file.
76730         * lib/gl_avltree_list.h: New file.
76731         * lib/gl_avltree_list.c: New file.
76732         * lib/gl_anyavltree_list1.h: New file.
76733         * lib/gl_anyavltree_list2.h: New file.
76734         * lib/gl_rbtree_list.h: New file.
76735         * lib/gl_rbtree_list.c: New file.
76736         * lib/gl_anyrbtree_list1.h: New file.
76737         * lib/gl_anyrbtree_list2.h: New file.
76738         * lib/gl_anytree_list1.h: New file.
76739         * lib/gl_anytree_list2.h: New file.
76740         * lib/gl_linkedhash_list.h: New file.
76741         * lib/gl_linkedhash_list.c: New file.
76742         * lib/gl_anyhash_list1.h: New file.
76743         * lib/gl_anyhash_list2.h: New file.
76744         * lib/gl_avltreehash_list.h: New file.
76745         * lib/gl_avltreehash_list.c: New file.
76746         * lib/gl_rbtreehash_list.h: New file.
76747         * lib/gl_rbtreehash_list.c: New file.
76748         * lib/gl_anytreehash_list1.h: New file.
76749         * lib/gl_anytreehash_list2.h: New file.
76750
76751         * lib/gl_oset.h: New file.
76752         * lib/gl_oset.c: New file.
76753         * lib/gl_array_oset.h: New file.
76754         * lib/gl_array_oset.c: New file.
76755         * lib/gl_avltree_oset.h: New file.
76756         * lib/gl_avltree_oset.c: New file.
76757         * lib/gl_rbtree_oset.h: New file.
76758         * lib/gl_rbtree_oset.c: New file.
76759         * lib/gl_anytree_oset.h: New file.
76760
76761 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76762
76763         * m4/mkancesdirs.m4: New file.
76764         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76765         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76766         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76767         it.
76768
76769 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76770
76771         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76772         * lib/mkancesdirs.h: New files.
76773         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76774         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76775         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76776         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76777         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76778         callers changed.  Revamp internals significantly, by not
76779         attempting to create directories that are temporarily more
76780         permissive than the final results.  Do not attempt to use
76781         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76782         This removes some race conditions, fixes some bugs, and simplifies
76783         things.  Use new dirchownmod function to do owner and mode changes.
76784         * lib/mkdir-p.h: Likewise.
76785         * lib/modechange.c (octal_to_mode): New function.
76786         (struct mode_change): New member mentioned.
76787         (make_node_op_equals): New arg mentioned.  All callers changed.
76788         (mode_compile): Keep track of which mode bits the user has explicitly
76789         mentioned.
76790         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76791         New arg PMODE_BITS, to keep track of which mode bits the user
76792         mentioned; it treats S_ISUID and S_ISGID speciall.
76793         All callers changed.
76794         * lib/modechange.h: Likewise.
76795
76796 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * MODULES.html.sh: Add mkancestors.
76799         * modules/mkancesdirs: New module.
76800         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76801         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76802         The chdir-safer and afs files are now orphans; I'll remove them
76803         unless someone speaks up.
76804         Add lib/dirchownmod.c, lib/dirchownmod.h.
76805         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76806         Add lchown, mkancesdirs.
76807         (Maintainer): Add self.
76808
76809 2006-07-15  Karl Berry  <karl@gnu.org>
76810
76811         * gnulib-tool: help message wording/arrangement.
76812
76813 2006-07-14  Simon Josefsson  <jas@extundo.com>
76814
76815         * doc/gnulib.texi (Libtool and Windows): New section.
76816
76817 2006-07-12  Simon Josefsson  <jas@extundo.com>
76818
76819         * modules/gendocs (License): Fix license, approved by Karl.
76820
76821 2006-07-12  Eric Blake  <ebb9@byu.net>
76822
76823         * MODULES.html.sh: Add gendocs.
76824
76825 2006-07-11  Eric Blake  <ebb9@byu.net>
76826
76827         * modules/fdl: New module, to install doc/fdl.texi.
76828         * MODULES.html.sh: Add new section for documentation modules.
76829         * gnulib-tool: Avoid space-tab.
76830         (--doc-base): New option, to manage files from doc.
76831
76832 2006-07-11  Eric Blake  <ebb9@byu.net>
76833
76834         * m4/absolute-header.m4: Fix comments to match recent change.
76835
76836 2006-07-11  Eric Blake  <ebb9@byu.net>
76837
76838         * gnulib-tool: List --doc-base before --tests-base.
76839
76840 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76841
76842         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76843
76844 2006-07-11  Bruno Haible  <bruno@clisp.org>
76845
76846         * README: Mention where to put documentation.
76847
76848 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76849
76850         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76851
76852 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76855         to stdint.m4.
76856
76857 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76858
76859         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76860         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76861         "no/such/file/stdint.h" when there is no such file, so that
76862         the resulting C code can be parsed by dodgy compilers.
76863         Problems reported by Bob Proulx.
76864
76865 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76866
76867         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76868         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76869         macros into the GNU _D_EXACT_NAMLEN.
76870         * lib/savedir.c:  Likewise.
76871         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76872
76873 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76874         and Paul Eggert  <eggert@cs.ucla.edu>
76875
76876         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76877         * m4/savedir.m4:
76878         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76879         macros into the GNU _D_EXACT_NAMLEN.
76880
76881 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76882
76883         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76884         around the absolute name, to work around a problem with the HP-UX
76885         11.23 native C compiler, reported by Bob Proulx.
76886
76887 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * doc/maintain.texi, make-stds.texi: Sync from
76890         <http://savannah.gnu.org/projects/gnustandards>.
76891
76892 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76893
76894         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76895
76896 2006-07-09  Jim Meyering  <jim@meyering.net>
76897
76898         * m4/glob.m4: Remove a doubled word in a comment.
76899
76900 2006-07-09  Jim Meyering  <jim@meyering.net>
76901
76902         * lib/argp-pv.c: Remove a doubled word in a comment.
76903         * lib/check-version.c (check_version): Likewise.
76904         * lib/javacomp.c (compile_java_class): Likewise.
76905
76906 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76907
76908         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76909         for the benefit of people using Autoconf 2.60.  If you want to
76910         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76911         (or m4/onceonly.m4, if pre-2.57) manually.
76912
76913 2006-07-08  Jim Meyering  <jim@meyering.net>
76914
76915         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76916         comment.
76917         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76918         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76919         comment.
76920
76921 2006-07-08  Jim Meyering  <jim@meyering.net>
76922
76923         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76924
76925 2006-07-07  Simon Josefsson  <jas@extundo.com>
76926
76927         * tests/test-crc.c: Change expected crc value, the test vector
76928         were probably computed using the old broken crc.c?
76929
76930 2006-07-06  Simon Josefsson  <jas@extundo.com>
76931
76932         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76933         now the canonical place for the M4 file).
76934
76935         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76936         from the sys_socket dependency now.
76937
76938         * modules/inet_pton (Files): Ditto.
76939
76940         * modules/inet_ntop (Files): Ditto.
76941
76942 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76943
76944         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76945         not gl_PREREQ_GETUSERSHELL.
76946
76947 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76948
76949         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76950         with only one argument, for Autoconf 2.60.
76951         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76952         expand to nothing, so add a shell command to avoid syntax error.
76953         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76954
76955 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76956
76957         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76958
76959 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76960
76961         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76962         no longer needed.  Check for isblank decl.
76963         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76964         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76965         of existence.
76966
76967 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76968
76969         * lib/getloadavg.c: Use __VMS, not VMS.
76970         * lib/getopt.c: Likewise.
76971         * lib/getpagesize.h: Likewise.
76972         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76973         and probably does not work.
76974
76975 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76976
76977         * lib/.cppi-disable: Add wcwidth.
76978         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76979         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76980         (ISGRAPH): Remove.  All uses changed to isgraph.
76981         (FOLD) [!defined _LIBC]: Remove special case.
76982         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76983         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76984         HAVE_ISBLANK.
76985         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76986         case.
76987
76988 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76989
76990         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76991         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76992         brackets.  Other minor changes to suppress some compiler
76993         warnings.
76994
76995 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76996         and Paul Eggert  <eggert@cs.ucla.edu>
76997
76998         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76999         of invoking obsolescent AC_HEADER_DIRENT macro.
77000         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77001         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77002         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77003         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77004         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77005         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77006         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77007         * m4/readdir.m4: Remove; no longer needed.
77008
77009 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77010         and Paul Eggert  <eggert@cs.ucla.edu>
77011
77012         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77013         Don't worry about this obsolete case any more.
77014         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77015         directories.
77016         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77017         worry about this obsolete case any more.
77018         * lib/fts.c: Likewise.
77019         * lib/getcwd.c: Likewise.
77020         * lib/glob.h: Likewise.
77021         * lib/savedir.c: Likewise.
77022
77023 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77026         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77027         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77028         needed.
77029         All uses removed.
77030         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77031         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77032         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77033         needed.
77034         * m4/getdate.m4 (gl_GETDATE): Likewise.
77035         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77036         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77037         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77038         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77039         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77040         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77041         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77042         needed.
77043
77044 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77045
77046         * lib/memcasecmp.c: Include <limits.h>.
77047         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77048         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77049         Don't assume isdigit succeeds only on '0' through '9'.
77050
77051 2006-07-05  Eric Blake  <ebb9@byu.net>
77052
77053         * modules/getaddrinfo (Depends-on): Add snprintf.
77054
77055 2006-07-05  Eric Blake  <ebb9@byu.net>
77056
77057         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77058         to avoid 'header present but could not be compiled' on cygwin.
77059
77060 2006-07-05  Eric Blake  <ebb9@byu.net>
77061
77062         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77063         missing from netdb.h.
77064         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77065
77066 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77067
77068         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77069         no longer needed.
77070         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77071         * m4/getdate.m4 (gl_GETDATE): Likewise.
77072         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77073         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77074         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77075         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77076         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77077
77078 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77079
77080         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77081         All uses of is_space replaced by isspace.
77082         * lib/exit.h: Don't talk about STDC_HEADERS.
77083         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77084         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77085         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77086         replaced by isprint etc.
77087         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77088         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77089         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77090         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77091         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77092         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77093
77094 2006-07-05  Bruno Haible  <bruno@clisp.org>
77095
77096         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77097         the function exists, before testing against AIX.
77098         Reported by Martin Lambers <marlam@marlam.de>.
77099
77100 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77101
77102         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77103         From Mark D. Baushke.
77104
77105 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77106
77107         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77108         to the absolute name, not just one, to bypass Sun C 5.8's
77109         "warning: #include of /usr/include/... may be non-portable".
77110
77111 2006-07-04  Eric Blake  <ebb9@byu.net>
77112
77113         * modules/dirname-tests: New test module.
77114         * tests/test-dirname.c: New file, replacing dirname.c
77115         TEST_DIRNAME section that was recently deleted.
77116
77117 2006-07-04  Bruno Haible  <bruno@clisp.org>
77118
77119         Assume ANSI C header files and <ctype.h> functions.
77120         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77121         (mbsnwidth): Use isprint, iscntrl instead.
77122
77123 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77124
77125         Merge from coreutils.
77126         * MODULES.html.sh: Add xstrtold.
77127         * modules/xstrtold: New file.
77128         * modules/cycle-check (Files): Add lib/same-inode.h.
77129         * modules/dirname (Files): Add m4/double-slash-root.m4.
77130         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77131         * modules/mkdir-p (Files): Add lib/same-inode.h.
77132         * modules/same (Files): Add lib/same-inode.h.
77133
77134 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77135
77136         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77137         This is to keep the terminology clean; POSIX talks about
77138         "absolute pathnames", not "full pathnames", but the GNU
77139         Coding Standards say to use "path" for something else;
77140         so use "absolute" to keep both sides happy.
77141         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77142         Set gl_absolute_header, not gl_full_header_path.
77143         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77144         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77145         All uses changed.
77146
77147         Merge from coreutils.
77148
77149         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77150
77151         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77152         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77153         want to require the building of c-strtod.o.
77154         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77155         needs -lm directly.
77156         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77157
77158         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77159
77160         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77161         --as-needed option if available.  Problem reported by Albert Chin in
77162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77163         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77164         cc merely issues a bunch of annoying warnings for --as-needed
77165         (this problem was reported by Bob Proulx).  Also, try linking with
77166         -lm to detect a bug in binutils 2.16 (this problem was reported
77167         by Ralf Wildenhues).
77168
77169         2006-06-18  Jim Meyering  <jim@meyering.net>
77170
77171         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77172         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77173         macro.
77174         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77175         also check for glibc-2.4's abort-inducing bug.
77176
77177         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77178         Low-probability clean-up should be to use rmdir to get rid of
77179         the just-created directory, not unlink.
77180
77181         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77182         configure fail, and request a bug report to inform us about it.
77183         Add a comment that, barring reports to the contrary, in 2007 we'll
77184         assume ftruncate is universally available.
77185
77186         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77187
77188         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77189
77190         2006-03-12  Jim Meyering  <jim@meyering.net>
77191
77192         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77193         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77194         * m4/same.m4 (gl_SAME): Likewise.
77195         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77196
77197         2006-03-11  Eric Blake  <ebb9@byu.net>
77198
77199         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77200         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77201         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77202         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77203
77204 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77205
77206         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77207         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77208         reported by Mark D. Baushke, one in
77209         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77210
77211         Merge from coreutils.
77212
77213         * lib/.cppi-disable: Add stdint_.h.
77214         * lib/.cvsignore: Add stdint.h.
77215
77216         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77219         both double and long double versions.
77220         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77221         * lib/xstrtold.c: New file.
77222         * lib/xstrtod.h (xstrtold): New decl.
77223
77224         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77225
77226         * lib/filemode.c (setst): Remove.
77227         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77228         (arguably) clearer, and the generated code is a bit smaller on my
77229         Debian GNU/Linux stable x86 host.
77230
77231         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77232
77233         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77234         Assume that filemode.h includes sys/types.h and sys/stat.h.
77235         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77236         (ftypelet): Reorder to put common cases first, for efficiency.
77237         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77238         to do 'M'.
77239         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77240         of 10, for compatibility with FreeBSD.  All callers changed.
77241         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77242         types that can't be deduced solely from st_mode.  First arg is now a
77243         const pointer.
77244         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77245         (strmode): Renamed from mode_string.
77246         (filemodestring): New decl.
77247         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77248         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77249         needed.
77250         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77251
77252         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77253
77254         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77255         fsusage.h now does that.  Include fsusage.h first, to test interface.
77256         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77257         at most one method (the old code could have generated decls that
77258         didn't conform to C89, not that this was ever exercised).
77259         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77260
77261         2006-03-19  Jim Meyering  <jim@meyering.net>
77262
77263         Work even in a chroot where d_ino values for entries in "/"
77264         don't match the stat.st_ino values for the same names.
77265         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77266         number, iterate through all entries again, using lstat instead.
77267         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77268         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77269
77270         * lib/getcwd.c (__getcwd): Clarify a comment.
77271         Use memcpy in place of a call to strcpy.
77272
77273         2006-03-12  Jim Meyering  <jim@meyering.net>
77274
77275         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77276         matches that of the current directory (which we're about to chdir ".."
77277         out of), then save the dev-ino of the parent, instead.
77278
77279         * lib/same-inode.h (SAME_INODE): New file/macro.
77280         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77281         Include "same-inode.h", instead.
77282         * lib/same.c: Likewise.
77283         * lib/cycle-check.h: Include "same-inode.h".
77284         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77285         * lib/cycle-check.c (SAME_INODE): Remove definition.
77286         * lib/root-dev-ino.h: Include "same-inode.h".
77287
77288         2006-03-11  Eric Blake  <ebb9@byu.net>
77289
77290         * lib/same.c (same_name): s/base_name/last_component/
77291         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77292         * lib/filenamecat.c (file_name_concat): Likewise.
77293
77294         2006-03-11  Eric Blake  <ebb9@byu.net>,
77295                     Paul Eggert  <eggert@cs.ucla.edu>
77296
77297         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77298         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77299         drive prefix.
77300         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77301         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77302         (last_component): New method.
77303         * lib/dirname.c (dir_len): Determine when drive letters need a
77304         subsequent slash.  Preserve // when it is special.
77305         (dir_name): Don't append dot when drive letter is absolute.
77306         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77307         * lib/basename.c (base_name): New semantics - malloc the result.
77308         Preserve // when it is special.  Preserve relative files that look
77309         like drive letters.
77310         (base_len): Preserve // when it is special.
77311         (last_component): New method, similar to old base_name semantics.
77312         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77313         base_name.  Strip redundant slashes from ///.
77314
77315 2006-07-03  Jim Meyering  <jim@meyering.net>
77316
77317         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77318         macro is used before the first cycle_check call.
77319
77320 2006-07-03  Eric Blake  <ebb9@byu.net>
77321
77322         * modules/dirname (Depends-on): Add xstrndup.
77323
77324 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77325
77326         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77327         test cases, so that config.log is a bit easier to follow.
77328
77329 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77330
77331         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77332         both are 64 bits, since this seems to be the tradition, and this
77333         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77334         we ever run into a host that prefers long long to long in this
77335         case, we'll need another configure-time test.  Problem reported by
77336         Jim Meyering.
77337
77338 2006-07-02  Eric Blake  <ebb9@byu.net>
77339
77340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77341
77342 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77343
77344         * modules/inttypes (Depends-on): No longer depends on stdint.
77345         * modules/stdint (Description): Say more about assumptions.
77346         Say that the fast types might differ.  Say macros are used.
77347         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77348         (Makefile.am): Revise list of substituted symbols to match
77349         new stdint.m4.
77350         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77351         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77352         * tests/test-stdint.c (verify_same_types)
77353         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77354         the code conforms to C99/C89.
77355         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77356         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77357
77358 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77359
77360         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77361         but fix a bug, by requiring at least 64 bits.
77362         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77363         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77364         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77365         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77366
77367         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77368         changes.  Make 2.59 a prerequisite.  Check and substitute for
77369         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77370         inttypes.h.  Do not use special include files; just use the
77371         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77372         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77373         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77374         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77375         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77376         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77377         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77378         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77379         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77380         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77381         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77382         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77383         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77384         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77385         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77386         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77387         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77388         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77389         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77390         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77391         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77392         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77393         not check for things that C99 does not require, e.g., int8_t.  If
77394         a test isn't needed unless <stdint.h> isn't working, and is
77395         unlikely to be needed for any other reason, then don't do it
77396         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77397         size_t, since we assume C89 freestanding at least.  Do not check
77398         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77399         the right thing even if the types are not defined.  Instead use:
77400         (gl_STDINT_TYPE_PROPERTIES): New macro.
77401         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77402         testing whether <sys/types.h> clashes, as Autoconf does this for
77403         us now.  All uses removed.
77404         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77405         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77406         (gl_CHECK_TYPE_SAME):
77407         Remove; no longer needed.
77408         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77409         exists, since we'll return 0 anyway in that case.
77410         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77411
77412 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77413
77414         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77415         possible collision with system files.
77416         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77417         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77418         WCHAR_MIN and WCHAR_MAX in this case.
77419         (<stddef.h>): Do not include; no longer needed.
77420         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77421         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77422         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77423         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77424         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77425         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77426         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77427         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77428         !defined(__c99))]: Include in this case too, since it's harmless
77429         now.
77430         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77431         dangerous to do so.
77432         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77433         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77434         (_STDINT_MIN, _STDINT_MAX): New macros.
77435         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77436         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77437         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77438         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77439         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77440         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77441         macros, not typedefs; this simplifies things quite a bit.
77442         Use long int for all types narrower than int64_t.
77443         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77444         Define in terms of long long int or int64_t or long int,
77445         not int64_t or int32_t.  This saves some compile-time testing.
77446         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77447         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77448         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77449         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77450         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77451         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77452         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77453         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77454         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77455         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77456         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77457         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77458         undef any previous version and define our own version, for
77459         simplicity and consistency with the new macros for types.
77460         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77461         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77462         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77463         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77464         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77465         @WINT_T_SUFFIX@ to keep things simple here.
77466         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77467         Simplify by assuming typical 8/16/32/64 host, since we're
77468         already doing that elsewhere anyway.
77469         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77470         and assume long long int is 64 bits if available.  This
77471         speeds up 'configure'.
77472
77473 2006-07-01  Eric Blake  <ebb9@byu.net>
77474
77475         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77476         Reported by Andreas Buening.
77477
77478 2006-07-01  Eric Blake  <ebb9@byu.net>
77479
77480         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77481
77482 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77483
77484         * lib/getaddrinfo.c: fixed typo
77485
77486 2006-06-29  Jim Meyering  <jim@meyering.net>
77487
77488         * modules/strftime (Maintainer): Add my name, since with the
77489         FPRINTFTIME changes strftime.c has forked from glibc.
77490
77491 2006-06-29  Eric Blake  <ebb9@byu.net>
77492
77493         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77494
77495 2006-06-29  Eric Blake  <ebb9@byu.net>
77496
77497         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77498
77499 2006-06-29  Eric Blake  <ebb9@byu.net>
77500
77501         * lib/stat_.h: New file.
77502
77503 2006-06-29  Eric Blake  <ebb9@byu.net>
77504
77505         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77506         unused static function.
77507
77508 2006-06-29  Eric Blake  <ebb9@byu.net>
77509
77510         * doc/functions.texi (Function Portability): Document missing lstat
77511         on mingw.
77512
77513 2006-06-29  Eric Blake  <ebb9@byu.net>
77514
77515         * MODULES.html.sh: Add sys_stat.
77516         * modules/sys_stat: New module.
77517         * modules/mkstemp (Depends-on): Add sys_stat.
77518
77519 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77520
77521         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77522
77523 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77524
77525         * m4/c-bs-a.m4: Removed.
77526
77527 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77528
77529         * lib/strftime.c: Assume strftime() exists.
77530
77531 2006-06-29  Derek Price  <derek@ximbiot.com>
77532
77533         * modules/c-bs-a: Removed - \a is C89.
77534         * MODULES.html.sh: Remove c-bs-a.
77535
77536 2006-06-29  Bruno Haible  <bruno@clisp.org>
77537
77538         * modules/wcwidth (License): Change to LGPL.
77539
77540 2006-06-28  Simon Josefsson  <jas@extundo.com>
77541
77542         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77543         on _WIN32.
77544
77545         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77546         getnameinfo.
77547
77548 2006-06-28  Simon Josefsson  <jas@extundo.com>
77549
77550         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77551
77552 2006-06-28  Simon Josefsson  <jas@extundo.com>
77553
77554         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77555         functions there.  It will succeed on Windows XP, but on Windows
77556         2000 and (presumably) earlier, it will fail, and use the internal
77557         re-implementation.
77558         (use_win32_p): New function.
77559         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77560         Support AI_NUMERICSERV to disable getservbyname.
77561         (getnameinfo): New function, only supports
77562         NI_NUMERICHOST|NI_NUMERICSERV for now.
77563
77564         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77565         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77566         getnameinfo.
77567
77568 2006-06-28  Eric Blake  <ebb9@byu.net>
77569
77570         * modules/wcwidth: New file.
77571         * modules/mbchar (Depends-on): Add wcwidth.
77572         * modules/mbswidth (Depends-on): Add wcwidth.
77573         * MODULES.html.sh: Add wcwidth.
77574
77575 2006-06-28  Eric Blake  <ebb9@byu.net>
77576
77577         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77579
77580 2006-06-28  Eric Blake  <ebb9@byu.net>
77581
77582         * lib/xvasprintf.h: Fix comments.
77583
77584 2006-06-28  Eric Blake  <ebb9@byu.net>
77585
77586         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77587         * lib/mbswidth.c (wcwidth): Move from here...
77588         * lib/wcwidth.h: ...to this new file.
77589
77590 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77591
77592         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77593
77594         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77595         it's obsolete.
77596         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77597
77598 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77599
77600         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77601         Autoconf 2.60 says this stuff was obsolete.
77602
77603 2006-06-28  Bruno Haible  <bruno@clisp.org>
77604
77605         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77606
77607 2006-06-28  Bruno Haible  <bruno@clisp.org>
77608
77609         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77610         gt_TYPE_WCHAR_T.
77611
77612 2006-06-28  Bruno Haible  <bruno@clisp.org>
77613
77614         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77615         declaration for wcwidth.
77616         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77617
77618 2006-06-28  Bruno Haible  <bruno@clisp.org>
77619
77620         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77621         (mkdir): Define using _mkdir.
77622
77623 2006-06-28  Bruno Haible  <bruno@clisp.org>
77624
77625         * lib/getaddrinfo.h: Fix POSIX URL.
77626         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77627         _WIN32.
77628         (use_win32_p): Make static.
77629         (getaddrinfo): Reject service name if it is empty or does not consist
77630         solely of decimal digits, or if its value is > 65535.
77631         (getnameinfo): Remove useless casts.
77632
77633 2006-06-27  Simon Josefsson  <jas@extundo.com>
77634
77635         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77636         Eggert and Martin Lambers.
77637
77638 2006-06-27  Simon Josefsson  <jas@extundo.com>
77639
77640         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77641         Eggert and Martin Lambers.
77642
77643 2006-06-27  Bruno Haible  <bruno@clisp.org>
77644
77645         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77646         result to 0, not to empty.
77647         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77648
77649 2006-06-27  Bruno Haible  <bruno@clisp.org>
77650
77651         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77652
77653 2006-06-26  Simon Josefsson  <jas@extundo.com>
77654
77655         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77656         present.
77657
77658 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77659
77660         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77661         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77662         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77663
77664 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77665
77666         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77667
77668 2006-06-26  Bruno Haible  <bruno@clisp.org>
77669
77670         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77671
77672 2006-06-26  Bruno Haible  <bruno@clisp.org>
77673
77674         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77675
77676 2006-06-26  Bruno Haible  <bruno@clisp.org>
77677
77678         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77679         SGI C compiler in pre-C99 mode.
77680         Suggested by Mark D. Baushke and Larry Jones.
77681
77682 2006-06-26  Bruno Haible  <bruno@clisp.org>
77683
77684         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77685         WCHAR_MAX.
77686         Reported by Mark D. Baushke and Larry Jones.
77687
77688 2006-06-26  Bruno Haible  <bruno@clisp.org>
77689
77690         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77691         in pre-C99 mode.
77692         Suggested by Mark D. Baushke and Larry Jones.
77693
77694 2006-06-23  Simon Josefsson  <jas@extundo.com>
77695             Bruno Haible  <bruno@clisp.org>
77696
77697         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77698         Emit mostlyclean-local rule.
77699         (func_emit_tests_Makefile_am): Likewise.
77700         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77701
77702 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77703
77704         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77705
77706 2006-06-23  Bruno Haible  <bruno@clisp.org>
77707
77708         * tests/test-stdint.c: Update to match ISO C 99 Technical
77709         Corrigendum 1.
77710
77711 2006-06-23  Bruno Haible  <bruno@clisp.org>
77712
77713         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77714
77715 2006-06-23  Bruno Haible  <bruno@clisp.org>
77716
77717         * lib/stdint_.h: Treat IRIX like OpenBSD.
77718
77719 2006-06-23  Bruno Haible  <bruno@clisp.org>
77720
77721         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77722         ISO C 99 Technical Corrigendum 1.
77723
77724 2006-06-22  Simon Josefsson  <jas@extundo.com>
77725
77726         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77727         MinGW.
77728
77729 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77730
77731         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77732         needed.  Some compiler complained about some of them.  Problem reported
77733         by Larry Jones in
77734         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77735
77736 2006-06-21  Simon Josefsson  <jas@extundo.com>
77737
77738         * tests/test-getaddrinfo.c: New file.
77739
77740         * modules/getaddrinfo-tests: New file.
77741
77742         * MODULES.html.sh: Add inet_pton.
77743
77744         * modules/inet_pton: New file.
77745
77746 2006-06-21  Simon Josefsson  <jas@extundo.com>
77747
77748         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77749         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77750         of using the (limited) gnulib implementation on Windows XP.
77751
77752         * m4/inet_pton.m4: New file.
77753
77754 2006-06-21  Simon Josefsson  <jas@extundo.com>
77755
77756         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77757         variable.
77758
77759         * lib/socket_.h: Don't define WINVER.
77760
77761         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77762         slightly modified to work in gnulib.
77763
77764 2006-06-21  Simon Josefsson  <jas@extundo.com>
77765
77766         * doc/gnulib.texi (Windows sockets): Add.
77767
77768 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         * lib/read-file.c (fread_file): Start with buffer allocation of
77771         0 bytes rather than 1 byte; this simplifies the code.
77772         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77773         code to free buffer and save/restore errno.
77774         (internal_read_file): Remove unused local.
77775
77776 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77777
77778         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77779         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77780         Problem reported by Denis Excoffier in
77781         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77782
77783 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77784
77785         * modules/sys_socket, modules/socklen: Include sys/types since
77786         FreeBSD 4.x's sys/socket.h needs it.
77787
77788 2006-06-19  Simon Josefsson  <jas@extundo.com>
77789
77790         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77791
77792 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77793
77794         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77795
77796 2006-06-19  Bruno Haible  <bruno@clisp.org>
77797
77798         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77799         and FULL_PATH_INTTYPES_H in angle brackets.
77800         Reported by Mark D. Baushke <mdb@gnu.org>.
77801
77802 2006-06-17  Eric Blake  <ebb9@byu.net>
77803
77804         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77805         errno.
77806
77807 2006-06-17  Bruno Haible  <bruno@clisp.org>
77808
77809         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77810         <sys/inttypes.h>.
77811
77812 2006-06-17  Bruno Haible  <bruno@clisp.org>
77813
77814         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77815         whether errno is declared. Assume <errno.h> declares errno.
77816
77817 2006-06-17  Bruno Haible  <bruno@clisp.org>
77818
77819         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77820
77821 2006-06-17  Bruno Haible  <bruno@clisp.org>
77822
77823         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77824         problem on Solaris 2.5.1.
77825
77826 2006-06-16  Eric Blake  <ebb9@byu.net>
77827
77828         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77829         * lib/unicodeio.c [!defined errno]: Likewise.
77830         * lib/strtol.c [!defined errno]: Likewise.
77831         * lib/strtod.c [!defined errno]: Likewise.
77832
77833 2006-06-15  Eric Blake  <ebb9@byu.net>
77834
77835         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77836
77837 2006-06-15  Eric Blake  <ebb9@byu.net>
77838
77839         * config/srclist.txt (ssize_t.m4): Lose sync.
77840
77841 2006-06-15  Bruno Haible  <bruno@clisp.org>
77842
77843         * modules/stdint (Files): Include m4/full-header-path.m4,
77844         m4/size_max.m4, m4/wchar_t.m4.
77845         (Makefile.am): Many more substitutions.
77846         * modules/stdint-tests: New file.
77847         * tests/test-stdint.c: New file.
77848
77849 2006-06-15  Bruno Haible  <bruno@clisp.org>
77850
77851         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77852         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77853         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77854         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77855         gl_CHECK_TYPE_SAME): New macros.
77856
77857 2006-06-15  Bruno Haible  <bruno@clisp.org>
77858
77859         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77860
77861 2006-06-15  Bruno Haible  <bruno@clisp.org>
77862
77863         * lib/stdint_.h: Rewritten to be fully auto-configured.
77864         Fixes bug on HP-UX/IA64.
77865
77866 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77867
77868         * lib/getdate.y (__attribute__): Don't define if already defined.
77869         Problem reported by Larry Jones.
77870         * lib/utimens.c (__attribute__): Likewise.
77871
77872 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77873
77874         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77875         reported by Andreas Schwab.
77876
77877 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77878             Bruno Haible  <bruno@clisp.org>
77879
77880         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77881         check for the declaration of strnlen and a run test that exposes the
77882         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77883         rpl_strndup.
77884
77885 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77886             Bruno Haible  <bruno@clisp.org>
77887
77888         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77889
77890 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77891
77892         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77893         compile test, for Tru64 4.0D.
77894
77895 2006-05-28  Karl Berry  <karl@gnu.org>
77896
77897         * config/srclist.txt (printf-args.c): lose sync.
77898
77899 2006-05-26  Martin Lambers  <marlam@marlam.de>
77900
77901         * lib/getpass.c: Updates the test for the native W32 API, and adds
77902         missing includes, thus fixing compilation warnings.
77903
77904 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77905
77906         * lib/exclude.c (exclude_fnmatch): New function.
77907         (excluded_file_name): Call exclude_fnmatch.
77908         * lib/exclude.h (excluded_file_name): New prototype
77909
77910 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77911
77912         * lib/tempname.c (small_open, large_open): New macros.
77913         (__open, __open64) [!_LIBC]: Remove.
77914         (__gen_tempname): Use small_open and large_open instead of __open
77915         and __open64.  This fixes a portability bug on HP-UX 11.11i
77916         reported by Simon Wing-Tang in
77917         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77918
77919 2006-05-24  Bruno Haible  <bruno@clisp.org>
77920
77921         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77922         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77923         Reported by Thorsten Maerz <torte@netztorte.de> via
77924         Aaron Stone <aaron@serendipity.cx>.
77925
77926 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77927
77928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77929         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77930         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77931         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77932         not really conditional on the cache.
77933         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77934
77935 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77936
77937         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77938         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77939         (my_usleep): Don't mishandle maximum value.
77940
77941 2006-05-19  Jim Meyering  <jim@meyering.net>
77942
77943         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77944
77945 2006-05-17  Bruno Haible  <bruno@clisp.org>
77946
77947         Cygwin portability.
77948         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77949
77950 2006-05-17  Bruno Haible  <bruno@clisp.org>
77951
77952         * lib/stdint_.h: Fix recognition of Cygwin.
77953
77954 2006-05-15  Bruno Haible  <bruno@clisp.org>
77955
77956         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77957         on libtool patch by Ralf Wildenhues.
77958
77959 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77960
77961         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77962         test for C99 conformance; (bool) 0.5 is an integer constant
77963         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77964         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77965
77966 2006-05-11  Simon Josefsson  <jas@extundo.com>
77967
77968         * m4/xvasprintf.m4: Fix obvious typo.
77969
77970 2006-05-11  Jim Meyering  <jim@meyering.net>
77971
77972         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77973         James Lemley.
77974
77975 2006-05-10  Simon Josefsson  <jas@extundo.com>
77976
77977         * lib/md4.c: Typo fix, update copyright years.
77978         (K1, K2): Don't use L because it turn computations into 64-bit on
77979         64-bit platforms.
77980
77981 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77984         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77985         unwanted sign propagation, e.g., on hosts with 64-bit int.
77986         There still are some problems with reeelly weird theoretical hosts
77987         (e.g., 33-bit int) but it's not worth worrying about now.
77988         * lib/sha1.c (rol): Likewise.
77989         (K1, K2, K3, K4): Remove unnecessary L suffix.
77990
77991 2006-05-10  Bruno Haible  <bruno@clisp.org>
77992
77993         * lib/des.c: Cast to avoid warnings.
77994
77995 2006-05-09  Bruno Haible  <bruno@clisp.org>
77996
77997         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77998         (Depends-on): Depend also on xsize, stdarg.
77999         (configure.ac): Add gl_XVASPRINTF.
78000
78001 2006-05-09  Bruno Haible  <bruno@clisp.org>
78002
78003         * m4/xvasprintf.m4: New file.
78004
78005 2006-05-09  Bruno Haible  <bruno@clisp.org>
78006
78007         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78008         (EOVERFLOW): Define fallback value.
78009         (xstrcat): New function.
78010         (xvasprintf): Recognize the special case of a string concatenation.
78011
78012 2006-05-08  Eric Blake  <ebb9@byu.net>
78013
78014         * gnulib-tool (func_version): Base copyright year on CVS date.
78015         (func_emit_copyright_notice): New function.
78016         (func_emit_lib_Makefile_am): Use it.
78017         (func_emit_tests_Makefile_am): Likewise.
78018         (func_import): Likewise.
78019
78020 2006-05-08  Bruno Haible  <bruno@clisp.org>
78021
78022         * modules/stdarg: New file.
78023         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78024
78025 2006-05-08  Bruno Haible  <bruno@clisp.org>
78026
78027         * m4/stdarg.m4: New file, from GNU gettext.
78028
78029 2006-05-08  Bruno Haible  <bruno@clisp.org>
78030
78031         * config/srclist.txt (build-aux/config.rpath): different from latest
78032         release.
78033
78034 2006-05-08  Bruno Haible  <bruno@clisp.org>
78035
78036         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78037
78038 2006-05-05  Jim Meyering  <jim@meyering.net>
78039
78040         * m4/warning.m4: New file, derived from bison's file by the same name.
78041
78042 2006-05-03  Bruno Haible  <bruno@clisp.org>
78043
78044         * lib/stdint_.h: Shorter URL.
78045         * lib/inttypes.h: Likewise.
78046
78047 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78050
78051 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78052
78053         * lib/verify.h: Document the internals better.  Most of this change
78054         was written by Bruno Haible.
78055
78056 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78057
78058         * doc/verify.texi: New file, partly based on a proposal by
78059         Bruno Haible.
78060
78061 2006-05-02  Bruno Haible  <bruno@clisp.org>
78062
78063         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78064         test from here...
78065         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78066
78067 2006-04-29  Bruno Haible  <bruno@clisp.org>
78068
78069         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78070         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78071
78072 2006-04-29  Bruno Haible  <bruno@clisp.org>
78073
78074         * gnulib-tool: Make --update option actually work.
78075
78076 2006-04-29  Bruno Haible  <bruno@clisp.org>
78077
78078         * doc/gcd.texi: New file.
78079         * doc/gnulib.texi: Include it.
78080
78081 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78082
78083         * lib/getdate.y (get_date): When adding relative date, start with the
78084         initial time, not with the result of the first mktime call.
78085
78086 2006-04-25  Bruno Haible  <bruno@clisp.org>
78087
78088         * gnulib-tool (func_import): Output the include directives in three
78089         blocks, sorted separately.
78090         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78091
78092 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78093
78094         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78095         to define main with arguments, for C++.  Reported by Eric Blake.
78096         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78097         Prefer 'int main ()' to 'int main (void)', for C++.
78098         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78099         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78100         for 'main', for C99 and C++.
78101
78102 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78103
78104         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78105         Don't assume that exit status -1 is valid.
78106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78107         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78108         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78109         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78110         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78111         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78112         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78113         functions can be used without declaring them, or that you can
78114         exit with status -1.
78115         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78116
78117 2006-04-24  Karl Berry  <karl@gnu.org>
78118
78119         * config/srclist.txt (longdouble.m4): sync lost.
78120
78121 2006-04-24  Eric Blake  <ebb9@byu.net>
78122
78123         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78124
78125 2006-04-24  Bruno Haible  <bruno@clisp.org>
78126
78127         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78128         poll() implementation in AIX.
78129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78130
78131 2006-04-24  Bruno Haible  <bruno@clisp.org>
78132
78133         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78134         assigned exactly once.
78135
78136 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78137             Bruno Haible  <bruno@clisp.org>
78138
78139         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78140         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78141         for AM_CPPFLAGS.
78142
78143 2006-04-23  Bruno Haible  <bruno@clisp.org>
78144
78145         * modules/copy-file: Depend on unistd.
78146         * modules/execute: Likewise.
78147         * modules/fatal-signal: Likewise.
78148         * modules/findprog: Likewise.
78149         * modules/mkdtemp : Likewise.
78150         * modules/pipe: Likewise.
78151         * modules/wait-process: Likewise.
78152
78153 2006-04-23  Bruno Haible  <bruno@clisp.org>
78154
78155         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78156         condition was already detected.
78157         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78158
78159 2006-04-23  Bruno Haible  <bruno@clisp.org>
78160
78161         * lib/copy-file.c: Include <unistd.h> unconditionally.
78162         * lib/execute.c: Likewise.
78163         * lib/fatal-signal.c: Likewise.
78164         * lib/findprog.c: Likewise.
78165         * lib/mkdtemp.c: Likewise.
78166         * lib/pipe.h: Likewise.
78167         * lib/pipe.c: Likewise.
78168         * lib/wait-process.h: Likewise.
78169
78170 2006-04-23  Bruno Haible  <bruno@clisp.org>
78171
78172         * gnulib-tool (func_usage): Fix --import description. Document
78173         --update.
78174         (func_import): Create temporary file in a temporary directory, if
78175         --dry-run is specified. Silence errors from 'grep' when there are no
78176         m4 files in $m4dir.
78177         (func_create_testdir): Silence errors from 'grep' when there are no
78178         m4 files in $m4dir.
78179         Reported by Karl Berry <karl@freefriends.org>.
78180
78181 2006-04-20  Bruno Haible  <bruno@clisp.org>
78182
78183         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78184         one argument, so that the code will be portable to Autoconf 2.60.
78185         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78186         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78187         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78188
78189 2006-04-19  Derek Price  <derek@ximbiot.com>
78190             Eric Blake  <ebb9@byu.net>
78191
78192         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78193         rather than "/full/path.h".  Update comment to match.  Shorten &
78194         generalize m4_translit call via AS_TR_CPP.
78195
78196 2006-04-19  Derek Price  <derek@ximbiot.com>
78197             Eric Blake  <ebb9@byu.net>
78198
78199         * lib/inttypes.h: Correct grammar in comment.
78200
78201 2006-04-18  Derek Price  <derek@ximbiot.com>
78202             Paul Eggert  <eggert@cs.ucla.edu>
78203
78204         * modules/inttypes: New file.
78205         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78206
78207 2006-04-18  Derek Price  <derek@ximbiot.com>
78208             Paul Eggert  <eggert@cs.ucla.edu>
78209
78210         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78211         New files.
78212
78213 2006-04-18  Derek Price  <derek@ximbiot.com>
78214             Paul Eggert  <eggert@cs.ucla.edu>
78215
78216         * lib/inttypes.h: New file.
78217         * lib/strtoimax.c: Assume <inttypes.h>.
78218
78219 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78220
78221         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78222         isn't mounted.  Problem reported by Kir Kolyshkin.
78223
78224 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78225
78226         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78227         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78228         Derek R. Price.
78229         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78230         implementation.
78231
78232 2006-04-12  Eric Blake  <ebb9@byu.net>
78233
78234         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78235         is now done automatically by the corresponding Autoconf macro.
78236
78237 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78238
78239         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78240         time_r.h.
78241
78242 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78243
78244         Merge regex changes from libc, removing some of our
78245         POSIX-conformance changes that were rejected and redoing them in a
78246         less-intrusive way.
78247
78248         * lib/regcomp.c (re_compile_internal, init_dfa):
78249         Length arg is now size_t, not Idx.  All uses changed.
78250         (peek_token): Forward decl now says internal_function.
78251         (__re_error_msgid, __re_error_msgid_idx):
78252         Now static rather than extern with attribute_hidden.
78253         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78254         For some reason libc prefers K&R style defns for external functions.
78255         (regerror) [!defined _LIBC]: Likewise.
78256         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78257         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78258         (build_range_exp, build_collating_symbol):
78259         Use K&R-style defn.
78260         (re_compile_fastmap): Use '\0' to memset, not 0.
78261         (utf8_sb_map): Make the calculations more obvious.
78262         (init_dfa, parse_bracket_exp, build_charclass_op):
78263         Call calloc and cast result, as glibc does.
78264         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78265         (build_range_exp, build_collating_symbol):
78266         Now internal functions.
78267
78268         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78269
78270         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78271         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78272         Don't depend on VMS; depend on __VMS instead, for POSIX
78273         namespace cleanness.
78274         (regoff_t): Define to ssize_t, not long int.
78275
78276         Remove the REG_ macros named below.  Instead, make the old names
78277         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78278         __USE_GNU_REGEX.
78279         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78280         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78281         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78282         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78283         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78284         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78285         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78286         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78287         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78288         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78289         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78290         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78291         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78292         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78293         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78294         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78295         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78296         (REG_NREGS):
78297         Remove.  All uses replaced by the old RE_* names.
78298         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78299         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78300         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78301         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78302         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78303         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78304         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78305         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78306         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78307         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78308         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78309         Don't bother having these macros be independent of each others'
78310         values, since they no longer exist in the POSIX name space.
78311
78312         Rename the following member names back to their old names,
78313         unless !__USE_GNU_REGEX.  All uses changed back.
78314         (buffer): Renamed from re_buffer.
78315         (allocated): Renamed from re_allocated.
78316         (used): Renamed from re_used.
78317         (syntax): Renamed from re_syntax.
78318         (fastmap): Renamed from re_fastmap.
78319         (translate): Renamed from re_translate.
78320         (can_be_null): Renamed from re_can_be_null.
78321         (regs_allocated): Renamed from re_regs_allocated.
78322         (fastmap_accurate): Renamed from re_fastmap_accurate.
78323         (no_sub): Renamed from re_no_sub.
78324         (not_bol): Renamed from re_not_bol.
78325         (not_eol): Renamed from re_not_eol.
78326         (newline_anchor): Renamed from re_newline_anchor.
78327         (num_regs): Renamed from rm_num_regs.
78328         (start): Renamed from rm_start.
78329         (end): Renamed from rm_end.
78330
78331         (free_state): Move up a bit.
78332
78333         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78334         #define to be empty.
78335         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78336         when that is what is intended.
78337         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78338         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78339         (MAX): New macro.
78340         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78341         All uses changed back to re_malloc, etc.  It's now the caller's
78342         responsibility to check for overflow; all callers changed.
78343         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78344         (re_x2nrealloc): Remove.
78345         (free_state): Remove decl.
78346
78347         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78348         (re_set_registers, re_exec):
78349         Use K&R-style defn.
78350
78351         2006-01-31  Roland McGrath  <roland@redhat.com>
78352
78353         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78354         Reported by Mike Frysinger <vapier@gentoo.org>.
78355
78356         2006-01-15  Andreas Jaeger  <aj@suse.de>
78357
78358         [BZ #1950]
78359         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78360         build_wcs_upper_buffer change.
78361         (build_wcs_upper_buffer): Change return type.
78362
78363         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78364
78365         * lib/regex_internal.h: Include <stdint.h> if available.
78366
78367         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78368
78369         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78370
78371         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78372
78373         * lib/regcomp.c: Adjust for changed secondary hash function.
78374
78375         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78376
78377         * lib/regex.h: Pretty printing.
78378         Clean up namespace a bit.
78379
78380         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78381
78382         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78383         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78384
78385         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78386                     Ulrich Drepper  <drepper@redhat.com>
78387
78388         [BZ #1302]
78389         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78390         changed.
78391         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78392
78393         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78394
78395         [BZ #281]
78396         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78397         * lib/regcomp.c: Remove unnecessary uses of
78398         unsigned RE_TRANSLATE_TYPE.
78399         * lib/regex_internal.h: Likewise.
78400         * lib/regex_internal.c: Likewise.
78401         * lib/regexec.c: Likewise.
78402         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78403
78404         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78405
78406         * lib/regexec.c (find_recover_state): Remove unnecessary
78407         initialization.
78408         (transit_state_bkref): Make DFA a const pointer.
78409         (get_subexp): Likewise.
78410         (check_arrival): Likewise.
78411         (update_cur_sifted_state): Likewise.
78412         (re_search_internal): Likewise.
78413         (prune_impossible_nodes): Likewise.
78414         (acquire_init_state_context): Likewise.
78415         (proceed_next_node): Likewise.
78416         (set_regs): Likewise.
78417         (free_fail_stack_return): Likewise.
78418         (check_arrival_expand_ecl): Mark DFA parameter as const.
78419         (check_arrival_expand_ecl_sub): Likewise.
78420         (check_subexp_limits): Likewise.
78421         (sub_epsilon_src_nodes):  Likewise.
78422         (add_epsilon_src_nodes):  Likewise.
78423         (merge_state_array): Likewise.
78424         (update_regs): Likewise.
78425         (build_trtable): Likewise.
78426         (sift_states_backward): Mark MCTX parameter as const.
78427         (build_sifted_states): Likewise.
78428         (update_cur_sifted_state): Likewise.
78429         (sift_states_mkref): Likewise.
78430         (check_arrival_expand_ecl): Mark eclosure as const.
78431         (check_dst_limits_calc_pos_1): Likewise.
78432         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78433         pointer.
78434
78435         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78436
78437         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78438         (transit_state_sb): Likewise.
78439         (transit_state_mb): Likewise.
78440         (sift_states_iter_mb): Likewise.
78441         (check_arrival_add_next_nodes): Likewise.
78442         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78443         [_LIBC] (re_search_2_stub): Use mempcpy.
78444
78445         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78446         mbrtowc for very simple UTF-8 case.
78447
78448         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78449         a pointer-to-const.
78450         (re_acquire_state_context): Likewise.
78451         * lib/regex_internal.h: Adjust prototypes.
78452
78453         * lib/regex.c: Prevent using C++ compilers.
78454
78455         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78456         (re_acquire_state_context): Likewise.
78457
78458 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78459
78460         * modules/regex (Depends-on): Add ssize_t.
78461
78462 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78463
78464         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78465         translation table.
78466
78467 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78468
78469         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78470
78471 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78472             Bruno Haible  <bruno@clisp.org>
78473
78474         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78475         <sys/types.h> and <inttypes.h>.
78476
78477 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78478
78479         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78480         `__error_t_defined', so argp.h will not typedef the former.
78481
78482 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78483
78484         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78485         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78486         glibc names.  Even if glibc is changed to conform to POSIX, the
78487         traditional names will be available anyway, since regex depends on
78488         the extensions module.  Also, fix a longstanding typo in the
78489         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78490         reported by Emanuele Giaquinta.  Also, change sense of cached
78491         variable, so that the message makes sense.
78492
78493 2006-03-24  Simon Josefsson  <jas@extundo.com>
78494
78495         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78496         including some doc fixes.
78497         (base64_encode_alloc): Fix +1 bug on allocation failures.
78498
78499 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78500
78501         * lib/base64.c (base64_encode): Do not read past end of array with
78502         unsanitized input on systems with CHAR_BIT > 8.
78503
78504 2006-03-24  Eric Blake  <ebb9@byu.net>
78505
78506         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78507
78508 2006-03-22  Karl Berry  <karl@gnu.org>
78509
78510         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78511         * config/srclistvars.sh (COREUTILS): new var.
78512
78513 2006-03-17  Jim Meyering  <jim@meyering.net>
78514
78515         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78516         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78517
78518 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78519
78520         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78521         no longer needs it.  Instead, check that regoff_t is as least
78522         as wide as ptrdiff_t.
78523
78524         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78525         so that our regex.h stays compatible with the installed regex.
78526         This is helpful for installers who configure --without-included-regex.
78527         Problem reported by Emanuele Giaquinta.
78528
78529 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78530
78531         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78532         Typedef to long int, not to off_, as POSIX will likely change
78533         in that direction.
78534
78535 2006-03-15  Eric Blake  <ebb9@byu.net>
78536
78537         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78538
78539 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78540
78541         * lib/argp-help.c (validate_uparams): Fix typo
78542         * lib/argp-parse.c (argp_default_options): Consistently begin help
78543         messages with a lowercase letter.
78544
78545 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78546
78547         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78548         overrun buffers and shouldn't be used (much as gets shouldn't be
78549         used).
78550         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78551
78552 2006-03-08  Simon Josefsson  <jas@extundo.com>
78553
78554         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78555         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78556
78557 2006-03-08  Simon Josefsson  <jas@extundo.com>
78558
78559         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78560         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78561
78562 2006-03-08  Simon Josefsson  <jas@extundo.com>
78563
78564         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78565         signal that configure disabled the device.
78566
78567 2006-03-08  Simon Josefsson  <jas@extundo.com>
78568
78569         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78570         languages.
78571
78572 2006-03-07  Simon Josefsson  <jas@extundo.com>
78573
78574         * modules/getopt (Depends-on): Add unistd.
78575
78576         * modules/unistd: New file.
78577
78578 2006-03-07  Simon Josefsson  <jas@extundo.com>
78579
78580         * modules/gc-random: New file.
78581
78582 2006-03-07  Simon Josefsson  <jas@extundo.com>
78583
78584         * m4/unistd_h.m4: New file.
78585
78586 2006-03-07  Simon Josefsson  <jas@extundo.com>
78587
78588         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78589         test to be side-effect free by storing the result in the cache
78590         variable gl_cv_lib_readline, and moving the assignment of
78591         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78592         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78593
78594 2006-03-07  Simon Josefsson  <jas@extundo.com>
78595
78596         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78597         error on missing devices (the functions will return an error).
78598
78599         * m4/gc.m4: Move random stuff to gc-random.m4
78600
78601 2006-03-07  Simon Josefsson  <jas@extundo.com>
78602
78603         * lib/unistd_.h: New file.
78604
78605 2006-03-07  Simon Josefsson  <jas@extundo.com>
78606
78607         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78608
78609 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78610
78611         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78612         Problem reported by Juan Manuel Guerrero.
78613
78614 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78615
78616         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78617         the unistd module.
78618         * lib/getlogin_r.c: Likewise.
78619         * lib/getlogin_r.h: Likewise.
78620         * lib/glob.c: Likewise.
78621         * lib/pagealign_alloc.c: Likewise.
78622         * lib/unistd_.h: Remove; no longer needed.
78623
78624 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78625
78626         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78627         Add unistd.
78628         * modules/c-stack (Depends-on): Add unistd.
78629         * modules/getlogin_r: Likewise.
78630         * modules/glob: Likewise.
78631         * modules/pagealign_alloc: Likewise.
78632         * modules/unistd (Files): Remove lib/unistd_.h.
78633         (EXTRA_DIST): Remove.
78634         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78635         need unistd_.h.
78636         (MOSTLYCLEANFILES): Remove unistd.h-t.
78637
78638 2006-03-03  Simon Josefsson  <jas@extundo.com>
78639
78640         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78641
78642 2006-03-03  Simon Josefsson  <jas@extundo.com>
78643
78644         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78645         libidn and bison.
78646
78647 2006-03-03  Simon Josefsson  <jas@extundo.com>
78648
78649         * build-aux/maint.mk: Add indent target.
78650
78651 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78652
78653         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78654         our replacement poll.h in any case, to avoid a differing
78655         declaration from a system header.  Seen on AIX.
78656
78657 2006-03-01  Simon Josefsson  <jas@extundo.com>
78658
78659         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78660         <kasal@ucw.cz>.
78661
78662 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78663
78664         * modules/gettime (Depends-on): Add extensions module.
78665         * modules/nanosleep (Depends-on): Likewise.
78666         * modules/settime (Depends-on): Likewise.
78667
78668 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78669
78670         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78671         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78672         pedantically.
78673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78674         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78675
78676         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78677         not "==".  Reported by Ralf Wildenhues.
78678
78679 2006-03-01  Karl Berry  <karl@gnu.org>
78680
78681         * doc/Copyright/request-*: new files, synced from gnuorg.
78682
78683 2006-03-01  Karl Berry  <karl@gnu.org>
78684
78685         * config/srclist.txt (Copyright/*): new entries.
78686
78687 2006-02-28  Simon Josefsson  <jas@extundo.com>
78688
78689         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78690
78691 2006-02-27  Simon Josefsson  <jas@extundo.com>
78692
78693         * lib/base64.h: Indent #define's.  From Jim Meyering
78694         <jim@meyering.net>.
78695
78696 2006-02-27  Jim Meyering  <jim@meyering.net>
78697
78698         Revert the change of 2006-02-24, so these files can continue
78699         to be sync'd from gettext.
78700         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78701         of `config.h'.
78702
78703 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * modules/intprops: New file.
78706         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78707         Add intprops.
78708         * modules/getloadavg (Files): Remove lib/intprops.h.
78709         (Depends-on): Add intprops.
78710         * modules/human: Likewise.
78711         * modules/inttostr: Likewise.
78712         * modules/openat: Likewise.
78713         * modules/sig2str: Likewise.
78714         * modules/userspec: Likewise.
78715         * modules/utimecmp: Likewise.
78716         * modules/xnanosleep: Likewise.
78717         * modules/xstrtol: Likewise.
78718
78719 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78720
78721         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78722         * modules/lock-tests (TESTS): Use $(EXEEXT).
78723         * modules/tls-tests: Likewise.
78724         * modules/argp-tests: Likewise.
78725         (check_PROGRAMS): New var, replacing...
78726         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78727
78728 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78729
78730         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78731         `config.h'.
78732
78733 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78734
78735         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78736
78737 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78738
78739         Sync from coreutils.
78740         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78741         gl_CHDIR_SAFER.
78742
78743 2006-02-22  Jim Meyering  <jim@meyering.net>
78744
78745         Sync from coreutils.
78746         * m4/chdir-safer.m4: New file.
78747
78748 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78749
78750         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78751         AT_FDCWD exceeds INT_MAX.
78752         * lib/openat.h (AT_FDCWD): Likewise.
78753
78754 2006-02-17  Eric Blake  <address@hidden>
78755
78756         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78757
78758 2006-02-16  Simon Josefsson  <jas@extundo.com>
78759
78760         * modules/getaddrinfo (Depends-on): Add sys_socket.
78761
78762 2006-02-15  Simon Josefsson  <jas@extundo.com>
78763
78764         * build-aux/maint.mk: Add dsyntax-check rule.
78765
78766 2006-02-15  Eric Blake  <ebb9@byu.net>
78767
78768         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78769         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78770         'present but cannot compile' warnings on cygwin.
78771         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78772         use ws2tcpip.h if sys/socket.h works.
78773         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78774         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78775
78776 2006-02-14  Simon Josefsson  <jas@extundo.com>
78777
78778         * modules/maintainer-makefile (Files): Rename.
78779
78780         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78781         and (the local) Makefile.cfg to maint-cfg.mk.
78782
78783         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78784         to the latter.
78785
78786         * modules/maintainer-makefile: New module.
78787
78788         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78789         severaly stripped to make it possible to build it up from scratch
78790         with reliable tests.
78791
78792         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78793         fixes to permit overriding the default actions when configure and
78794         makefile are not available.
78795
78796 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78797
78798         Sync from coreutils.
78799         * modules/lstat (Depends-on): Don't depend on xalloc.
78800         (License): Change from GPL to LGPL, since this is now simply a
78801         replacement for a libc function.
78802
78803 2006-02-14  Jim Meyering  <jim@meyering.net>
78804
78805         Sync from coreutils.
78806
78807         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78808         failure on deficient systems, and simplify gnulib lgpl dependencies.
78809         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78810         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78811
78812         * lib/xalloc-die.c: Remove unused definition of N_.
78813
78814 2006-02-14  Jim Meyering  <jim@meyering.net>
78815
78816         Sync from coreutils.
78817         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78818         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78819         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78820         double-quote uses of that variable, to accommodate the rare case in
78821         which getmntent is available in none of the libraries checked.  This
78822         happens at least on FreeBSD 5.0.
78823
78824 2006-02-13  Simon Josefsson  <jas@extundo.com>
78825
78826         * gnulib-tool (Usage): Fix --import, from
78827         karl@freefriends.org (Karl Berry).
78828
78829 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78830
78831         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78832
78833 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78834
78835         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78836         "autoupdate" on 2005-12-12.
78837
78838 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78839
78840         * modules/closeout (Depends-on): Remove atexit.
78841
78842 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78843
78844         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78845         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78846
78847 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78848
78849         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78850         __EXTENSIONS__ if this causes compilation to fail.  Problem
78851         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78852         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78853
78854 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78855
78856         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78857         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78858         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78859         All uses changed.
78860
78861 2006-01-26  Simon Josefsson  <jas@extundo.com>
78862
78863         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78864         prototype is visible on mingw32.
78865
78866         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78867         for mingw32.
78868
78869         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78870         mingw32).
78871
78872 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78873
78874         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78875         attempt to open for write; this always fails, at least on POSIX
78876         hosts.  This reinstates the 2006-01-09 change, which was
78877         inadvertently removed.
78878
78879 2006-01-26  Bruno Haible  <bruno@clisp.org>
78880
78881         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78882         Reported by Paul Eggert.
78883
78884 2006-01-26  Bruno Haible  <bruno@clisp.org>
78885             Paul Eggert  <eggert@cs.ucla.edu>
78886
78887         * lib/stdbool_.h (_Bool)
78888         [(! (defined __cplusplus || defined __BEOS__)
78889           && !defined __GNUC__
78890           && !(defined __HP_cc || defined __xlc__
78891                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78892                || defined __sgi))]:
78893         #define to signed char in these cases too; this simplifies
78894         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78895         etc., separately) and makes it more conservative.
78896
78897 2006-01-25  Simon Josefsson  <jas@extundo.com>
78898
78899         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78900         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78901         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78902
78903 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78904
78905         * lib/argp-namefrob.h: Bugfix. Remove stray #
78906
78907 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78908
78909         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78910         so that we test the test.
78911         Check for yet another HP-UX cc bug involving *bool |= bool.
78912
78913 2006-01-25  Karl Berry  <karl@gnu.org>
78914
78915         * config/srclist.txt (vasnprintf.c): sync lost.
78916
78917 2006-01-25  Jim Meyering  <jim@meyering.net>
78918
78919         Sync from the stable (b5) branch of coreutils:
78920
78921         * lib/fts.c (fts_children): Don't let close() clobber errno from
78922         failed fchdir().
78923
78924         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78925         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78926         a dangling symlink.  That can also happen at least for ELOOP.
78927         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78928         FYI, this bug predates the inclusion of fts.c in coreutils.
78929
78930         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78931         in their own block, so pre-c99 compilers don't object.
78932
78933         Avoid the double-free (first in fts_read, second in fts_close) that
78934         would occur when an `active' directory is made inaccessible (e.g.,
78935         via chmod a-x) during a traversal.
78936         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78937         before returning.  Reproduce this failure by
78938         mkdir -p a/b; cd a; chmod a-x . b
78939         Reported by Stavros Passas.
78940
78941 2006-01-25  Jim Meyering  <jim@meyering.net>
78942
78943         * lib/fileblocks.c: Remove more useless parentheses.
78944         * lib/readutmp.h: Likewise.
78945
78946 2006-01-25  Bruno Haible  <bruno@clisp.org>
78947
78948         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78949         warnings.
78950         Reported by Paul Eggert.
78951
78952 2006-01-25  Bruno Haible  <bruno@clisp.org>
78953
78954         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78955         rid of a trap command. For Solaris sh.
78956         Reported by Mark D. Baushke <mdb@gnu.org>.
78957
78958 2006-01-24  Simon Josefsson  <jas@extundo.com>
78959
78960         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78961         Bruno.
78962
78963 2006-01-24  Karl Berry  <karl@gnu.org>
78964
78965         * config/srclist.txt (argp-namefrob.h): sync lost.
78966
78967 2006-01-24  Jim Meyering  <jim@meyering.net>
78968
78969         * modules/openat (Files): Add lib/intprops.h.
78970         From Mark D. Baushke.
78971
78972 2006-01-24  Jim Meyering  <jim@meyering.net>
78973
78974         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78975         Reported by Mark D. Baushke.
78976
78977 2006-01-24  Jim Meyering  <jim@meyering.net>
78978
78979         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78980
78981 2006-01-24  Bruno Haible  <bruno@clisp.org>
78982
78983         * modules/strnlen (Maintainer): Change from glibc to all.
78984
78985 2006-01-24  Bruno Haible  <bruno@clisp.org>
78986
78987         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78988         Patch by Paul Eggert.
78989
78990 2006-01-24  Bruno Haible  <bruno@clisp.org>
78991
78992         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78993         already has it.
78994         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78995         2005-11-26.
78996
78997         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78998         'signed char' to avoid problems with the built-in _Bool type.
78999         Reported by Paul Eggert on 2005-11-26.
79000
79001 2006-01-24  Bruno Haible  <bruno@clisp.org>
79002
79003         * gnulib-tool (func_import): Avoid constructing complicated sed
79004         expressions inside backquote.
79005         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79006
79007 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79008
79009         These changes imported from libc.
79010         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79011         test and two separate function calls.
79012         * lib/strndup.c (__strndup): Add libc_hidden_def.
79013
79014 2006-01-23  Simon Josefsson  <jas@extundo.com>
79015
79016         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79017         Remove the test_*_SOURCES variable: automake infers it by default.
79018         * modules/tls-tests: Likewise.
79019
79020 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79021
79022         Work around porting bugs reported by Dieter in
79023         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79024         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79025         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79026         Include "getopt.h" first, to check interface.
79027         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79028         !HAVE_DECL_GETENV.
79029         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79030         (__strndup): Revert to K&R-style function dfns, the glibc style.
79031         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79032         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79033         Include strnlen.h first, to get prototype properly.
79034         (strnlen): Renamed from __strnlen.
79035         Remove weak alias.
79036
79037 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79038
79039         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79040
79041 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79042
79043         * config/srclist.txt: Adjust to reflect glibc reorganization.
79044         This affects only comments.
79045
79046 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79047
79048          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79049          Reported by Bruce Korb <bkorb@gnu.org>.
79050
79051 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79052
79053         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79054         to pacify gcc -Wswitch-default.
79055
79056 2006-01-22  Bruno Haible  <bruno@clisp.org>
79057
79058         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79059         temporary buffer for sprintf, take into account the precision also
79060         for 'd', 'i', 'u', 'o', 'x', 'X'.
79061
79062 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79063
79064         * modules/argp-tests: New module
79065         * tests/test-argp.c: New file
79066         * tests/test-argp-2.sh: New file
79067
79068 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79069
79070         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79071         (__argp_base_name): Removed
79072         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79073         typo.
79074         (__argp_base_name): Provide macro definition or extern declaration
79075         depending on the configuration
79076
79077 2006-01-20  Simon Josefsson  <jas@extundo.com>
79078
79079         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79080
79081 2006-01-20  Simon Josefsson  <jas@extundo.com>
79082
79083         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79084
79085 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79086
79087         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79088         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79089         Suggested by Bruno Haible.
79090
79091 2006-01-20  Karl Berry  <karl@gnu.org>
79092
79093         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79094         until changes propagate, I guess.
79095
79096 2006-01-19  Simon Josefsson  <jas@extundo.com>
79097
79098         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79099
79100 2006-01-19  Simon Josefsson  <jas@extundo.com>
79101
79102         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79103
79104 2006-01-19  Simon Josefsson  <jas@extundo.com>
79105
79106         * gnulib-tool: Set check_PROGRAMS.
79107
79108         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79109         modules/des-tests, modules/gc-arcfour-tests,
79110         modules/gc-arctwo-tests, modules/gc-des-tests,
79111         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79112         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79113         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79114         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79115         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79116         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79117         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79118         test_*_SOURCES.
79119
79120 2006-01-18  Simon Josefsson  <jas@extundo.com>
79121
79122         * modules/socklen (Depends-on): Depend on sys_socket.
79123
79124 2006-01-18  Simon Josefsson  <jas@extundo.com>
79125
79126         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79127         modules/des-tests, modules/gc-arcfour-tests,
79128         modules/gc-arctwo-tests, modules/gc-des-tests,
79129         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79130         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79131         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79132         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79133         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79134         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79135         $(EXEEXT) to automake TESTS variable, for mingw32.
79136
79137 2006-01-17  Simon Josefsson  <jas@extundo.com>
79138
79139         * modules/socklen (Include): Need sys/socket.h.
79140
79141 2006-01-17  Bruno Haible  <bruno@clisp.org>
79142
79143         * modules/ssize_t (Include): Add <sys/types.h>.
79144
79145 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79148         it's not portable and it doesn't work with cross-compiles.
79149         Problem reported by Bruno Haible.  Fix missing-$ typo in
79150         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79151         -zignore from being used with Sun's C compiler.
79152
79153 2006-01-12  Simon Josefsson  <jas@extundo.com>
79154
79155         * lib/base64.c: Fix warning, reported by Bruno Haible
79156         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79157
79158 2006-01-12  Bruno Haible  <bruno@clisp.org>
79159
79160         * modules/ldd: New file.
79161         * build-aux/ldd.sh.in: New file.
79162         * MODULES.html.sh (Support for building libraries and executables): Add
79163         ldd.
79164
79165 2006-01-12  Bruno Haible  <bruno@clisp.org>
79166
79167         * m4/ldd.m4: New file.
79168
79169 2006-01-12  Bruno Haible  <bruno@clisp.org>
79170
79171         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79172         endless loop while replacing $auxdir with build-aux.
79173
79174 2006-01-11  Simon Josefsson  <jas@extundo.com>
79175
79176         * lib/stdint_.h (SIZE_MAX): Add missing (.
79177
79178 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79179
79180         Sync from coreutils.
79181         * lib/md5.c: Fix commentary typos.
79182         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79183         * lib/md5.h (__attribute__): Remove; unused.
79184         * lib/sha1.c: Fix commentary to match md5 better.
79185         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79186         so that we don't need to worry about alignment.  All uses changed.
79187         This merges the 2005-10-28 md5 change into sha1.
79188
79189 2006-01-11  Jim Meyering  <jim@meyering.net>
79190
79191         Sync from coreutils.
79192         * lib/md5.c (OP): Fix spacing.
79193
79194 2006-01-11  Bruno Haible  <bruno@clisp.org>
79195
79196         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79197         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79198         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79199
79200 2006-01-11  Bruno Haible  <bruno@clisp.org>
79201
79202         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79203         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79204         the "early" section as well.
79205
79206 2006-01-11  Bruno Haible  <bruno@clisp.org>
79207
79208         Avoid "ar: no archive members specified" error on MacOS X.
79209         * gnulib-tool (func_modules_add_dummy): New function.
79210         (func_import, func_create_testdir): Invoke it.
79211
79212 2006-01-11  Bruno Haible  <bruno@clisp.org>
79213
79214         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79215         with $auxdir in AC_CONFIG_FILES statements.
79216
79217 2006-01-11  Bruno Haible  <bruno@clisp.org>
79218
79219         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79220         Initialize also noinst_HEADERS to empty.
79221
79222 2006-01-11  Bruno Haible  <bruno@clisp.org>
79223
79224         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79225         variables.
79226         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79227         autoreconf.
79228
79229 2006-01-11  Bruno Haible  <bruno@clisp.org>
79230
79231         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79232         overridable by the user.
79233         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79234
79235 2006-01-10  Simon Josefsson  <jas@extundo.com>
79236
79237         * modules/sys_socket: New file.
79238
79239 2006-01-10  Simon Josefsson  <jas@extundo.com>
79240
79241         * m4/sys_socket_h.m4: New file.
79242
79243 2006-01-10  Simon Josefsson  <jas@extundo.com>
79244
79245         * lib/socket_.h: New file.
79246
79247 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79248
79249         * modules/readutmp (Maintainer): Add myself.
79250
79251 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79252
79253         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79254         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79255         People who are still concerned with buggy memcmp implementations
79256         can invoke gl_FUNC_MEMCMP themselves.
79257
79258 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         * lib/regex_internal.h (BITSET_WORD_BITS):
79261         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79262         preprocessor mishandles large unsigned values as if they were signed.
79263         Problem reported by Claudio Fontana in
79264         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79265
79266 2006-01-10  Jim Meyering  <jim@meyering.net>
79267
79268         Avoid the double-free (first in fts_read, second in fts_close) that
79269         would occur when an `active' directory is made inaccessible (e.g.,
79270         via chmod a-x) during a traversal.
79271         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79272         before returning.  Reproduce this failure by
79273         mkdir -p a/b; cd a; chmod a-x . b
79274         Reported by Stavros Passas.
79275
79276         Sync from coreutils.
79277         * lib/sha1.c: Tweak grammar in a comment.
79278
79279 2006-01-10  Jim Meyering  <jim@meyering.net>
79280
79281         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79282         Patch by Joerg Sonnenberger.
79283
79284 2006-01-10  Bruno Haible  <bruno@clisp.org>
79285
79286         * modules/readutmp: Depend on module free.
79287         * modules/strtok_r: Depend on module restrict.
79288
79289 2006-01-10  Bruno Haible  <bruno@clisp.org>
79290
79291         * modules/gettext (configure.ac): Add an invocation of
79292         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79293
79294 2006-01-10  Bruno Haible  <bruno@clisp.org>
79295
79296         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79297         Reported by Werner Lemberg <wl@gnu.org>.
79298
79299 2006-01-10  Bruno Haible  <bruno@clisp.org>
79300
79301         * lib/localcharset.c: Update from GNU gettext.
79302
79303 2006-01-10  Bruno Haible  <bruno@clisp.org>
79304
79305         * lib/argp.h (__const): Remove macro. Use const instead.
79306         * lib/argp-fmtstream.h (__const): Likewise.
79307         * lib/glob_.h (__const): Remove macro.
79308         * lib/glob-libc.h: Use const instead of __const.
79309
79310 2006-01-10  Bruno Haible  <bruno@clisp.org>
79311
79312         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79313         variable.
79314         Needed to avoid an automake error regarding the 'gettext' module.
79315
79316 2006-01-09  Simon Josefsson  <jas@extundo.com>
79317
79318         * modules/inet_ntop (Depends-on): Add restrict.
79319
79320 2006-01-09  Simon Josefsson  <jas@extundo.com>
79321
79322         * modules/gc-rijndael-tests (License): Put under LGPL.
79323
79324         * modules/gc-des-tests (License): Likewise.
79325
79326         * modules/gc-arcfour-tests (License): Likewise.
79327
79328         * modules/gc-arctwo-tests (License): Likewise.
79329
79330         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79331
79332         * modules/gc-hmac-sha1-tests (Files): Likewise.
79333
79334         * modules/gc-hmac-md5-tests (License): Likewise.
79335
79336         * modules/gc-sha1-tests (License): Likewise.
79337
79338         * modules/gc-md5-tests (License): Likewise.
79339
79340         * modules/gc-md4-tests (License): Likewise.
79341
79342         * modules/gc-md2-tests (License): Likewise.
79343
79344         * modules/gc-tests (License): Likewise.
79345
79346         * modules/des-tests (License): Likewise.
79347
79348         * modules/md4-tests (License): Likewise.
79349
79350         * modules/md2-tests (License): Likewise.
79351
79352 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79353
79354         Sync from coreutils:
79355
79356         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79357         * modules/lib-ignore: New file.
79358         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79359         chdir-safer.m4, lchmod.m4.
79360         * modules/openat: Add mkdirat.c, openat-priv.h.
79361
79362 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79363
79364         Sync from coreutils.
79365         * m4/lib-ignore.m4: New file.
79366         * m4/lchmod.m4: New file.
79367
79368 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79369
79370         Sync from coreutils.
79371         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79372         for write access: POSIX says that must fail.
79373         * lib/fts.c (diropen): Likewise.
79374         * lib/save-cwd.c (save_cwd): Likewise.
79375         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79376         well, for minor improvements on hosts that lack O_DIRECTORY.
79377         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79378         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79379         Fall back on chown if open failed with EACCES.
79380
79381         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79382         Report an error at compile-time if only a 1-second nominal clock
79383         resolution is found.
79384
79385         * lib/lchmod.h: New file.
79386         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79387         (make_dir_parents): Use lchown rather than chown, and
79388         lchmod rather than chmod.
79389
79390         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79391         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79392         "proc" reported by n0dalus.
79393
79394         * lib/mountlist.c: Include <limits.h>.
79395         (dev_from_mount_options)
79396         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79397         New function.  It no longer assumes "dev=" has the System V meaning
79398         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79399         (read_file_system_list)
79400         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79401         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79402         dev= in that case.
79403
79404         * lib/posixtm.h (PDS_PRE_2000): New macro.
79405         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79406         allow_century.  All usages changed.  Reject dates outside the range
79407         1969-1999 if PDS_PRE_2000 is used.
79408
79409 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79410
79411         Sync from coreutils.
79412         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79413         (Time of day items): Mention the possibility of leap seconds.
79414         Problem reported by Dr. David Alan Gilbert.
79415
79416 2006-01-09  Jim Meyering  <jim@meyering.net>
79417
79418         Sync from coreutils.
79419
79420         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79421
79422         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79423
79424         * lib/modechange.c (mode_compile): Reject an invalid mode string
79425         that starts with an octal digit.  From Andreas Gruenbacher.
79426
79427         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79428         and dup to open_safer and dup_safer, respectively.
79429         (openat_permissive): Fix typo in comment.
79430
79431         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79432         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79433         (_): Remove; no longer needed.
79434         (openat): Renamed from rpl_openat; no need for rpl_openat
79435         since openat.h renames openat for us.
79436         Replace most of the body with a call to openat_permissive,
79437         to avoid duplicate code.
79438         Port to (probably hypothetical) environments were mode_t is
79439         wider than int.
79440         (openat_permissive): Require mode arg, so that we can check
79441         types better.  Put it just after flags.  Change cwd failure
79442         indicator from pointer-to-bool to pointer-to-errno-value.
79443         All callers changed.
79444         Invoke openat_save_fail and/or openat_restore_fail if
79445         cwd_errno is null, so that openat can call us.
79446         (openat_permissive, fdopendir, fstatat, unlinkat):
79447         Simplify errno handling to avoid some duplicate code,
79448         as it's OK to set errno on success.
79449         * lib/openat.h: Revamp code so that function macros depend on
79450         __OPENAT_PREFIX only, not also on AT_FDCWD.
79451         (openat_ro): Remove.  Caller changed to use openat_permissive.
79452         (openat_permissive): Now a macro, if not a function.
79453         (openat_restore_fail, openat_save_fail): Now always functions,
79454         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79455
79456         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79457         and openat.c.
79458         * lib/mkdirat.c: Include openat-priv.h.
79459         Remove definitions of macros defined therein.
79460         * lib/openat.c: Likewise.
79461
79462         * lib/mkdirat.c (mkdirat): New file and function.
79463         * lib/openat.h (mkdirat): Declare.
79464
79465         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79466
79467         * lib/openat.h (openat_permissive): Declare.
79468         (openat_ro): Define.
79469
79470         * lib/openat.c (EXPECTED_ERRNO): New macro.
79471         (openat_permissive): New function -- used in remove.c rewrite.
79472         (all functions): Set errno just before returning, only if there
79473         was an actual failure.
79474         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79475
79476         Emulate openat-family functions using Linux's procfs, if possible.
79477         Idea and some code based on Ulrich Drepper's glibc changes.
79478
79479         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79480         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79481         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79482         before falling back on save_cwd and restore_cwd.
79483         (fdopendir, fstatat, unlinkat): Likewise.
79484
79485         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79486         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79487
79488         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79489         as second argument to va_arg.  Otherwise, some versions of gcc
79490         warn that `if this code is reached, the program will abort'.
79491
79492 2006-01-09  Jim Meyering  <jim@meyering.net>
79493
79494         Sync from coreutils.
79495         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79496         Require openat-priv.h.
79497
79498 2006-01-09  Bruno Haible  <bruno@clisp.org>
79499
79500         * modules/strnlen (Include): Use strnlen.h.
79501
79502 2006-01-09  Bruno Haible  <bruno@clisp.org>
79503
79504         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79505
79506 2006-01-09  Bruno Haible  <bruno@clisp.org>
79507
79508         * lib/sysexit_.h (EX_OK): New macro.
79509         Suggested by Martin Lambers <marlam@marlam.de>.
79510
79511 2006-01-09  Bruno Haible  <bruno@clisp.org>
79512
79513         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79514         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79515
79516 2006-01-09  Bruno Haible  <bruno@clisp.org>
79517
79518         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79519         numbers.
79520
79521 2006-01-09  Bruno Haible  <bruno@clisp.org>
79522
79523         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79524         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79525         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79526         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79527
79528 2006-01-09  Bruno Haible  <bruno@clisp.org>
79529
79530         * build-aux/javacomp.sh.in: New file, moved from lib/.
79531         * modules/javacomp-script (Files): Update.
79532         (configure.ac): Add AC_CONFIG_FILES invocation.
79533         (EXTRA_DIST): Remove variable.
79534
79535         * build-aux/javaexec.sh.in: New file, moved from lib/.
79536         * modules/javaexec (Files): Update.
79537         (configure.ac): Add AC_CONFIG_FILES invocation.
79538         (EXTRA_DIST): Remove javaexec.sh.in.
79539
79540         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79541         * modules/csharpcomp-script (Files): Update.
79542         (configure.ac): Add AC_CONFIG_FILES invocation.
79543         (EXTRA_DIST): Remove variable.
79544
79545         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79546         * modules/csharpexec (Files): Update.
79547         (configure.ac): Add AC_CONFIG_FILES invocation.
79548         (EXTRA_DIST): Remove csharpexec.sh.in.
79549
79550 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79551
79552         Sync from coreutils.
79553
79554         Add POSIX ACL support
79555         * lib/acl.h (copy_acl, set_acl): Add declarations.
79556         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79557         systems other than Linux.
79558         (chmod_or_fchmod): New function: use fchmod when possible,
79559         and chmod otherwise.
79560         (file_has_acl): Add a POSIX ACL implementation, with a
79561         Linux-specific subcase.
79562         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79563         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79564         acls are unsupported.
79565         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79566         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79567         are unsupported.
79568
79569 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79570
79571         Sync from coreutils.
79572         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79573
79574 2006-01-07  Bruno Haible  <bruno@clisp.org>
79575
79576         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79577         gl_EARLY.
79578
79579 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79580
79581         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79582         Problem reported for Mingw by Mark Junker.
79583
79584 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79585
79586         * README: Gnulib normally doesn't generate a tarball.
79587
79588 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79589
79590         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79591         long int, not int, for nanosecond counts, so that people who are
79592         used to POSIX struct timespec won't be surprised.  Reported by Jim
79593         Meyering.
79594
79595 2005-12-28  Bruno Haible  <bruno@clisp.org>
79596
79597         * build-aux/config.rpath: Update from GNU gettext.
79598
79599 2005-12-16  Jim Meyering  <jim@meyering.net>
79600
79601         * modules/fprintftime: New module.
79602         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79603
79604 2005-12-16  Jim Meyering  <jim@meyering.net>
79605
79606         * m4/fprintftime.m4: New file.
79607
79608 2005-12-16  Jim Meyering  <jim@meyering.net>
79609
79610         * lib/fprintftime.c, lib/fprintftime.h: New files.
79611
79612 2005-12-15  Simon Josefsson  <jas@extundo.com>
79613
79614         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79615         new m4/socklen.m4.
79616
79617 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79618
79619         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79620         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79621
79622 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79623
79624         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79625         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79626         struct uparams is valid. Fall back to the default values if it is
79627         not.
79628
79629 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79630
79631         * modules/argp (Files): Add argp-pin.c
79632         (Depends-on): dirname
79633         (lib_SOURCES): Add argp-pin.c
79634
79635 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79636
79637         * m4/argp.m4:  Check if program_invocation_name and
79638         program_invocation_short_name are declared and define appropriate
79639         macros if they are not.
79640
79641 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79642
79643         * lib/argp-help.c (__argp_base_name): New function
79644         (__argp_short_program_name): Rewrite using __argp_base_name
79645         * lib/argp-namefrob.h: Define program_invocation_name and
79646         program_invocation_short_name if requested
79647         (__argp_base_name): Add prototype
79648         * lib/argp-parse.c (argp_def): Use gettext wrappers
79649         (argp_default_parser): Use __argp_base_name
79650         * lib/argp-pin.c: New file. Defines program_invocation_name and
79651         program_invocation_short_name on systems that lack them.
79652
79653 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79654
79655         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79656         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79657         porting problem reported by Georg Schwarz in
79658         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79659
79660 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79661
79662         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79663         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79664         porting problem reported by Georg Schwarz in
79665         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79666
79667 2005-12-05  Bruno Haible  <bruno@clisp.org>
79668
79669         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79670         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79671         Reported by Mark Junker <mjscod@gmx.de>.
79672
79673 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79674
79675         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79676         Use implementation from Albert Chin, with some
79677         comments/corrections by Stepan Kasal and myself.
79678
79679 2005-12-02  Bruno Haible  <bruno@clisp.org>
79680
79681         * gnulib-tool (func_import): Accept GPLed build tool modules when
79682         --lgpl is given.
79683         * modules/csharpcomp-script: New file.
79684         * modules/csharpcomp: Depend on it.
79685         * modules/javacomp-script: New file.
79686         * modules/javacomp: Depend on it.
79687         Suggested by Simon Josefsson.
79688
79689 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79692         statement, to work around an HP-UX 10.20 compiler bug reported by
79693         Peter O'Gorman.
79694
79695 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79696
79697         * modules/savedir (Depends-on): Add openat.
79698
79699 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79700
79701         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79702         (uintmax_t) [defined uintmax_t]: Do not declare.
79703         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79704         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79705         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79706         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79707         sake of portability to weird hosts that C allows (though we don't
79708         know of any practical examples).
79709
79710         * lib/savedir.h (fdsavedir): New decl.
79711         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79712         contains most of the former guts of savedir.
79713         (savedir): Use savedirstream.
79714         Include "openat.h".
79715
79716 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79717
79718         * modules/obstack (Files): Add m4/ulonglong.m4.
79719         Problem reported by Davide Angelocola.
79720
79721 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79722
79723         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79724         coreutils no longer futzes with rounding modes.
79725
79726 2005-11-14  Jim Meyering  <jim@meyering.net>
79727
79728         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79729         replacement of mkstemp.
79730
79731 2005-11-10  Simon Josefsson  <jas@extundo.com>
79732
79733         * lib/readline.c: Remove EOL.
79734
79735 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79736
79737         * modules/gethrxtime (Depends-on): Add gettime.
79738
79739 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79740
79741         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79742         or gettimeofday; no longer needed.
79743
79744 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79745
79746         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79747         time business.
79748         (gethrxtime) [! (HAVE_NANOUPTIME
79749         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79750         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79751         our own approximation.
79752
79753 2005-11-08  Eric Blake  <ebb9@byu.net>
79754
79755         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79756
79757 2005-11-08  Eric Blake  <ebb9@byu.net>
79758
79759         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79760
79761 2005-11-04  Bruno Haible  <bruno@clisp.org>
79762
79763         * gnulib-tool: Implement --update mode.
79764
79765 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79766
79767         Fix porting problem reported by Theodoros V. Kalamatianos.
79768         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79769         Don't assume that futimes failing means we must fail.
79770
79771 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79772
79773         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79774         variables to suggest the intended function of the PATH_MAX check.
79775
79776 2005-10-30  Kean Johnston  <jkj@sco.com>
79777
79778         Trivial changes to support SCO systems.
79779         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79780         as PATH_MAX.
79781         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79782         where __ptr is null when no I/O is pending.
79783
79784 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79785
79786         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79787         leave errno alone.  Problem reported by Dmitry V. Levin.
79788
79789 2005-10-28  Simon Josefsson  <jas@extundo.com>
79790
79791         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79792         Test more.
79793
79794         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79795
79796         * modules/md2, modules/md2-tests: New files.
79797
79798 2005-10-28  Simon Josefsson  <jas@extundo.com>
79799
79800         * m4/inet_ntop.m4: More tests.
79801
79802         * m4/gc-md2.m4, md2.m4: New file.
79803
79804 2005-10-28  Simon Josefsson  <jas@extundo.com>
79805
79806         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79807         "restrict" keywords, as per POSIX.  Protect the function
79808         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79809         Don't use K&R prototypes.  Check the sprintf return values.
79810         Re-define EAFNOSUPPORT if not present.  Indent.
79811
79812         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79813         suggested by Bruno Haible <bruno@clisp.org>.
79814
79815         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79816
79817         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79818
79819         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79820         libgcrypt).
79821
79822         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79823
79824         * lib/md2.h, lib/md2.c: New files.
79825
79826 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79827
79828         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79829         errno alone.  Problem reported by Frederic Jolliton.
79830
79831 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79832
79833         * modules/verify (License): Change from GPL to LGPL.  This is a
79834         tiny module and there are apparently near-equivalents that are
79835         under the BSD license.
79836
79837 2005-10-24  Simon Josefsson  <jas@extundo.com>
79838
79839         * modules/sha1: Relicense to LGPL.
79840
79841 2005-10-24  Simon Josefsson  <jas@extundo.com>
79842
79843         * lib/md4.h: Shrink buffer size, now that we changed the type.
79844
79845 2005-10-23  Simon Josefsson  <jas@extundo.com>
79846
79847         * gnulib-tool (func_import): Fix --tests-base.
79848
79849 2005-10-22  Simon Josefsson  <jas@extundo.com>
79850
79851         * modules/arcfour (Depends-on): Need stdint.
79852
79853 2005-10-22  Simon Josefsson  <jas@extundo.com>
79854
79855         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79856         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79857
79858 2005-10-22  Simon Josefsson  <jas@extundo.com>
79859
79860         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79861         suggested by Bruno Haible <bruno@clisp.org>.
79862
79863 2005-10-22  Simon Josefsson  <jas@extundo.com>
79864
79865         * lib/crc.h: Include stddef.h, for size_t.
79866
79867 2005-10-22  Simon Josefsson  <jas@extundo.com>
79868
79869         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79870         arcfour_context struct (simplify test vector testing in GNU
79871         Shishi).
79872
79873 2005-10-21  Simon Josefsson  <jas@extundo.com>
79874
79875         * modules/des, modules/des-tests: New files.
79876
79877         * modules/gc-des, modules/gc-des-tests: New files.
79878
79879         * tests/test-des.c, tests/test-gc-des.c: New file.
79880
79881 2005-10-21  Simon Josefsson  <jas@extundo.com>
79882
79883         * modules/arctwo, modules/arctwo-tests: New files.
79884
79885         * tests/test-arctwo.c: New file.
79886
79887         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79888
79889         * tests/test-gc-arctwo.c: New file.
79890
79891 2005-10-21  Simon Josefsson  <jas@extundo.com>
79892
79893         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79894         Bruno Haible <bruno@clisp.org>.
79895
79896         * m4/gc-des.m4: New file.
79897
79898 2005-10-21  Simon Josefsson  <jas@extundo.com>
79899
79900         * m4/arctwo.m4: New file.
79901
79902         * m4/gc-arctwo.m4: New file.
79903
79904 2005-10-21  Simon Josefsson  <jas@extundo.com>
79905
79906         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79907         block.
79908
79909 2005-10-21  Simon Josefsson  <jas@extundo.com>
79910
79911         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79912         <bruno@clisp.org>.
79913
79914         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79915
79916         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79917         Bruno Haible <bruno@clisp.org>.
79918
79919         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79920         <bruno@clisp.org>.
79921
79922 2005-10-21  Simon Josefsson  <jas@extundo.com>
79923
79924         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79925
79926 2005-10-21  Simon Josefsson  <jas@extundo.com>
79927
79928         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79929
79930 2005-10-21  Simon Josefsson  <jas@extundo.com>
79931
79932         * lib/des.h, lib/des.c: New files.
79933
79934         * lib/gc-gnulib.c: Support DES.c
79935
79936 2005-10-21  Simon Josefsson  <jas@extundo.com>
79937
79938         * lib/arctwo.h, lib/arctwo.c: New files.
79939
79940         * lib/gc-gnulib.c: Support ARCTWO.
79941
79942 2005-10-21  Simon Josefsson  <jas@extundo.com>
79943
79944         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79945         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79946
79947 2005-10-21  Simon Josefsson  <jas@extundo.com>
79948
79949         * gnulib-tool (func_import, func_create_testdir): Define automake
79950         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79951         Makefile.am snippet),
79952         suggested by Bruno Haible <bruno@clisp.org>.
79953
79954         * modules/gc (Makefile.am): Use it.
79955
79956 2005-10-21  Bruno Haible  <bruno@clisp.org>
79957
79958         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79959         patch.
79960
79961 2005-10-19  Simon Josefsson  <jas@extundo.com>
79962
79963         * tests/test-gc-rijndael.c: New file.
79964
79965         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79966
79967 2005-10-19  Simon Josefsson  <jas@extundo.com>
79968
79969         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79970         interface too.
79971
79972 2005-10-19  Simon Josefsson  <jas@extundo.com>
79973
79974         * tests/test-gc-arcfour.c: New file.
79975
79976         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79977
79978 2005-10-19  Simon Josefsson  <jas@extundo.com>
79979
79980         * modules/gc-md4, modules/gc-md4-tests: New file.
79981
79982         * tests/test-gc-md4.c: New file.
79983
79984 2005-10-19  Simon Josefsson  <jas@extundo.com>
79985
79986         * m4/gc-md4.m4: New file.
79987
79988 2005-10-19  Simon Josefsson  <jas@extundo.com>
79989
79990         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79991         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79992         <kasal@ucw.cz>.
79993
79994 2005-10-19  Simon Josefsson  <jas@extundo.com>
79995
79996         * m4/gc-arcfour.m4: New file.
79997
79998         * m4/gc-rijndael.m4: New file.
79999
80000 2005-10-19  Simon Josefsson  <jas@extundo.com>
80001
80002         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80003
80004 2005-10-19  Simon Josefsson  <jas@extundo.com>
80005
80006         * lib/gc-gnulib.c: Support ARCFOUR.
80007
80008 2005-10-19  Simon Josefsson  <jas@extundo.com>
80009
80010         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80011         support.
80012
80013         * lib/gc.h: Add ECB enum type.
80014
80015         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80016
80017 2005-10-18  Simon Josefsson  <jas@extundo.com>
80018
80019         * tests/test-md5.c: New file.
80020
80021         * modules/md5-tests: New file.
80022
80023 2005-10-18  Simon Josefsson  <jas@extundo.com>
80024
80025         * tests/test-md4.c: New file.
80026
80027         * modules/md4, modules/md4-tests: New files.
80028
80029 2005-10-18  Simon Josefsson  <jas@extundo.com>
80030
80031         * m4/md4.m4: New file.
80032
80033 2005-10-18  Simon Josefsson  <jas@extundo.com>
80034
80035         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80036
80037 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80038
80039         * gnulib-tool (func_create_testdir): Omit the second check whether
80040         BUILT_SOURCES in nonempty.
80041
80042 2005-10-17  Simon Josefsson  <jas@extundo.com>
80043
80044         * tests/test-rijndael.c: New file.
80045
80046 2005-10-17  Simon Josefsson  <jas@extundo.com>
80047
80048         * modules/sha1: Depend on stdint instead of md5.
80049
80050         * modules/md5: Depend on stdint, remove uint32_t.
80051
80052 2005-10-17  Simon Josefsson  <jas@extundo.com>
80053
80054         * modules/gc-sha1-tests: New file.
80055
80056         * tests/test-gc-sha1.c: New file.
80057
80058 2005-10-17  Simon Josefsson  <jas@extundo.com>
80059
80060         * m4/md5.m4: Remove call to uint32_t.m4.
80061
80062 2005-10-17  Simon Josefsson  <jas@extundo.com>
80063
80064         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80065
80066         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80067         md5.h.
80068
80069         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80070
80071         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80072
80073 2005-10-17  Simon Josefsson  <jas@extundo.com>
80074
80075         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80076
80077 2005-10-17  Simon Josefsson  <jas@extundo.com>
80078
80079         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80080
80081 2005-10-17  Simon Josefsson  <jas@extundo.com>
80082
80083         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80084
80085         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80086
80087 2005-10-17  Bruno Haible  <bruno@clisp.org>
80088
80089         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80090         that it can also be used in a test.
80091
80092 2005-10-16  Bruno Haible  <bruno@clisp.org>
80093
80094         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80095         TESTS_ENVIRONMENT, so that individual tests can augment it.
80096
80097         * gnulib-tool (func_create_testdir): Use an intermediate target for
80098         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80099         macros, like $(ALLOCA_H), which cannot be passed through the command
80100         line.
80101
80102 2005-10-15  Simon Josefsson  <jas@extundo.com>
80103
80104         * modules/rijndael-tests: New file.
80105
80106         * modules/rijndael: New file.
80107
80108 2005-10-15  Simon Josefsson  <jas@extundo.com>
80109
80110         * m4/rijndael.m4: New file.
80111
80112 2005-10-15  Simon Josefsson  <jas@extundo.com>
80113
80114         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80115
80116         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80117
80118 2005-10-14  Simon Josefsson  <jas@extundo.com>
80119
80120         * tests/test-arcfour.c: New file.
80121
80122         * modules/arcfour, modules/arcfour-tests: New files.
80123
80124 2005-10-14  Simon Josefsson  <jas@extundo.com>
80125
80126         * m4/arcfour.m4: New file.
80127
80128 2005-10-14  Simon Josefsson  <jas@extundo.com>
80129
80130         * lib/arcfour.h, lib/arcfour.c: New files.
80131
80132 2005-10-14  Roland McGrath  <roland@redhat.com>
80133
80134         Import from libc.  [BZ #1331]
80135         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80136         macro argument.
80137         Reported by Matej Vela <vela@debian.org>.
80138
80139 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80142         include <wchar.h>; no longer needed.
80143
80144 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80145
80146         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80147
80148 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80149         and  Ulrich Drepper  <drepper@redhat.com>
80150
80151         Import from libc.
80152         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80153         instead of inline stream orientation test and two separate
80154         function calls.  Pay no attention to USE_IN_LIBIO.
80155
80156 2005-10-13  Simon Josefsson  <jas@extundo.com>
80157
80158         * modules/gc-hmac-md5-tests: New file.
80159
80160         * tests/test-gc-hmac-sha1.c: New file.
80161
80162         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80163
80164         * modules/gc-hmac-md5-tests: New file.
80165
80166         * tests/test-gc-md5.c: New file.
80167
80168         * modules/gc-md5-tests: New file.
80169
80170 2005-10-13  Simon Josefsson  <jas@extundo.com>
80171
80172         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80173         Move memory allocation outside of loop.
80174
80175 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80176
80177         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80178         intermediate directory is in a read-only file system.  Problem
80179         reported by Eric Blake.
80180
80181 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80182
80183         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80184
80185 2005-10-12  Simon Josefsson  <jas@extundo.com>
80186
80187         * tests/test-hmac-sha1.c: New file.
80188
80189         * modules/hmac-sha1-tests: New file.
80190
80191         * modules/hmac-sha1: New file.
80192
80193 2005-10-12  Simon Josefsson  <jas@extundo.com>
80194
80195         * modules/gc-sha1: New file.
80196
80197 2005-10-12  Simon Josefsson  <jas@extundo.com>
80198
80199         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80200
80201         * tests/test-gc-pbkdf2-sha1.c: New file.
80202
80203 2005-10-12  Simon Josefsson  <jas@extundo.com>
80204
80205         * modules/gc-md5, modules/gc-hmac-md5: New files.
80206
80207         * modules/gc (Files): Remove md5, memxor and hmac files.
80208
80209 2005-10-12  Simon Josefsson  <jas@extundo.com>
80210
80211         * m4/gc-pbkdf2-sha1.m4: New file.
80212
80213         * m4/gc-hmac-sha1.m4: New file.
80214
80215         * m4/gc-sha1: New file.
80216
80217         * m4/hmac-sha1.m4: New file.
80218
80219 2005-10-12  Simon Josefsson  <jas@extundo.com>
80220
80221         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80222
80223         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80224
80225 2005-10-12  Simon Josefsson  <jas@extundo.com>
80226
80227         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80228         suggested by Bruno Haible <bruno@clisp.org>.
80229
80230 2005-10-12  Simon Josefsson  <jas@extundo.com>
80231
80232         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80233
80234 2005-10-12  Simon Josefsson  <jas@extundo.com>
80235
80236         * lib/gc-pbkdf2-sha1.c: New file.
80237
80238         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80239
80240 2005-10-12  Simon Josefsson  <jas@extundo.com>
80241
80242         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80243
80244         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80245
80246 2005-10-12  Simon Josefsson  <jas@extundo.com>
80247
80248         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80249         GC_USE_HMAC_MD5, respectively.
80250
80251         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80252         (gc_md5): Fix typo.
80253
80254         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80255
80256         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80257
80258         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80259
80260 2005-10-12  Bruno Haible  <bruno@clisp.org>
80261
80262         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80263         Reported by Stepan Kasal <kasal@ucw.cz>.
80264
80265 2005-10-11  Simon Josefsson  <jas@extundo.com>
80266
80267         * tests/test-crc.c: New file.
80268
80269         * modules/crc, modules/crc-tests: New files.
80270
80271 2005-10-11  Simon Josefsson  <jas@extundo.com>
80272
80273         * m4/crc.m4: New file.
80274
80275 2005-10-11  Simon Josefsson  <jas@extundo.com>
80276
80277         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80278
80279         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80280
80281         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80282
80283 2005-10-11  Simon Josefsson  <jas@extundo.com>
80284
80285         * lib/crc.h, lib/crc.c: New files.
80286
80287         * lib/gc.h (gc_hash_buffer): Add doc.
80288
80289 2005-10-11  Bruno Haible  <bruno@clisp.org>
80290
80291         * modules/c-strcasestr: New file.
80292         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80293
80294 2005-10-11  Bruno Haible  <bruno@clisp.org>
80295
80296         * modules/c-strcase: New file.
80297         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80298
80299 2005-10-11  Bruno Haible  <bruno@clisp.org>
80300
80301         * lib/strcasecmp.c: Include limits.h.
80302         (strcasecmp): Avoid integer overflow on exotic platforms.
80303         * lib/strncasecmp.c: Include limits.h.
80304         (strncasecmp): Avoid integer overflow on exotic platforms.
80305         Reported by Paul Eggert.
80306
80307 2005-10-11  Bruno Haible  <bruno@clisp.org>
80308
80309         * lib/c-strcasestr.h: New file, from GNU gettext.
80310         * lib/c-strcasestr.c: New file, from GNU gettext.
80311
80312 2005-10-11  Bruno Haible  <bruno@clisp.org>
80313
80314         * lib/c-strcase.h: New file, from GNU gettext.
80315         * lib/c-strcasecmp.c: New file, from GNU gettext.
80316         * lib/c-strncasecmp.c: New file, from GNU gettext.
80317
80318 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80319
80320         * modules/mempcpy (License): GPL -> LGPL.
80321         * modules/strchrnul (License): Likewise.
80322         * modules/sysexits (License): Likewise.
80323
80324 2005-10-08  Simon Josefsson  <jas@extundo.com>
80325
80326         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80327
80328 2005-10-07  Simon Josefsson  <jas@extundo.com>
80329
80330         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80331
80332 2005-10-06  Simon Josefsson  <jas@extundo.com>
80333
80334         * tests/test-hmac-md5.c: New file.
80335
80336         * modules/hmac-md5-tests: New file.
80337
80338         * modules/hmac-md5: New file.
80339
80340 2005-10-06  Simon Josefsson  <jas@extundo.com>
80341
80342         * m4/hmac-md5.m4: New file.
80343
80344         * m4/memxor.m4: Require gl_C_RESTRICT.
80345
80346 2005-10-06  Simon Josefsson  <jas@extundo.com>
80347
80348         * lib/memxor.c (memxor): Avoid casts and warnings.
80349
80350 2005-10-06  Simon Josefsson  <jas@extundo.com>
80351
80352         * lib/hmac-md5.c: New file.
80353
80354         * lib/hmac.h: New file.
80355
80356 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80357
80358         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80359         promotes to int, not unsigned int, to catch the AIX 5.3
80360         compiler bug.
80361
80362 2005-10-05  Simon Josefsson  <jas@extundo.com>
80363
80364         * modules/memxor: New file.
80365
80366         * modules/iconv (Files): Move config.rpath to havelib, it is used
80367         there.
80368
80369         * modules/havelib (Files): Add config.rpath.
80370
80371 2005-10-05  Simon Josefsson  <jas@extundo.com>
80372
80373         * m4/memxor.m4: New file.
80374
80375 2005-10-05  Simon Josefsson  <jas@extundo.com>
80376
80377         * lib/memxor.c (memxor): Fix compiler error.
80378
80379         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80380         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80381
80382         * lib/memxor.h, lib/memxor.c: New files.
80383
80384         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80385         we assume all systems have it, suggested by Jim Meyering
80386         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80387         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80388         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80389         same reasons.
80390
80391 2005-10-05  Simon Josefsson  <jas@extundo.com>
80392
80393         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80394
80395 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80396
80397         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80398         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80399         needed, since the source code now assumes these .h files.
80400
80401 2005-10-05  Derek Price  <derek@ximbiot.com>
80402
80403         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80404
80405 2005-10-05  Bruno Haible  <bruno@clisp.org>
80406
80407         * modules/stdint (License): Change to LGPL.
80408
80409 2005-10-04  Simon Josefsson  <jas@extundo.com>
80410
80411         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80412         D. Baushke" <mdb@gnu.org>.
80413
80414 2005-10-04  Bruno Haible  <bruno@clisp.org>
80415
80416         * lib/verify.h (verify_true): Provide alternative definition for C++.
80417
80418 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80419
80420         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80421         (SSIZE_MAX): New macro, if not already defined.
80422         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80423         than 2 GiB.
80424
80425 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80426
80427         Sync from coreutils.
80428         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80429         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80430         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80431         ULLONG_MAX doesn't work with 2.7.2.1.
80432
80433 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80434
80435         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80436         From Ben Pfaff.
80437
80438         * modules/exclude (Depends-on): Depend on verify.
80439         * modules/strtoimax (Depends-on): Likewise.
80440         * modules/utimecmp (Depends-on): Likewise.
80441
80442 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80443
80444         * lib/exclude.c: Include verify.h.
80445         (verify): Remove.  All callers changed to use verify.h's version.
80446         * lib/strtoimax.c: Likewise.
80447         * lib/utimecmp.c: Likewis.e
80448
80449         Sync from coreutils.
80450         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80451         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80452         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80453         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80454         bother returning ENOSYS if settimeofday or stime fails; just let
80455         them return whatever errno they want to return.
80456         * lib/utimens.c: Include unistd.h, for dup2.
80457         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80458         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80459
80460 2005-10-02  Jim Meyering  <jim@meyering.net>
80461
80462         Sync from coreutils.
80463         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80464         from glibc-2.2.5 that fails for read-only files.
80465
80466 2005-10-02  Jim Meyering  <jim@meyering.net>
80467
80468         Sync from coreutils.
80469         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80470         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80471         `#if HAVE_CONFIG_H'.
80472         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80473         Remove AT_FDCWD test.
80474         Do not consume the fd unless successful.
80475         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80476         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80477         block, so that we don't even try to compile it if settimeofday is
80478         available.  This works around a compilation failure on OSF1 V5.1,
80479         due to stime requiring a `long int*' while tv_sec is `int'.
80480
80481 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80482
80483         Sync from coreutils.
80484         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80485         against `yes', rather than just testing for nonempty.
80486
80487 2005-10-01  Simon Josefsson  <jas@extundo.com>
80488
80489         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80490         and Darwin.
80491
80492         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80493         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80494         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80495         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80496         Check if struct addrinfo is declared.
80497
80498 2005-10-01  Simon Josefsson  <jas@extundo.com>
80499
80500         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80501         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80502         AI_* and EAI_* definitions.  Protect function declarations.
80503
80504 2005-10-01  Jim Meyering  <jim@meyering.net>
80505
80506         Sync from coreutils.
80507
80508         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80509         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80510         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80511         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80512         in the inet and nsl libraries.  Required on Solaris 5.7.
80513
80514 2005-10-01  Jim Meyering  <jim@meyering.net>
80515
80516         Sync from coreutils.
80517         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80518         in the inet and nsl libraries.  Required on Solaris 5.7.
80519
80520 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80521
80522         * lib/getdelim.c (getdelim): Remove unused variables.
80523
80524 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80525
80526         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80527         so that the code works even with ancient cpp.  Portability problem
80528         with GCC 2.7.2.1 reported by Thomas M.Ott.
80529
80530 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         * modules/regex (Depends-on): Add strcase.
80533
80534         * modules/gethostname (Licence): Change from GPL to LGPL, since
80535         gethostname.c is a trivial implementation of a standard library
80536         function.
80537         * modules/poll (License): Change from GPL to LGPL, since it's
80538         derived from LGPL code.
80539
80540 2005-09-27  Jim Meyering  <jim@meyering.net>
80541
80542         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80543         HAVE_CONFIG_H.
80544
80545         * lib/intprops.h (signed_type_or_expr__): Define.
80546         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80547         for unsigned types.
80548
80549 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80550
80551         * lib/verify.h (verify_expr): Remove, replacing with:
80552         (verify_true): New macro that returns true instead of void.
80553         (verify_type__): Remove.
80554         (verify): Use verify_true rather than verify_type__.
80555
80556 2005-09-26  Bruno Haible  <bruno@clisp.org>
80557
80558         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80559         is necessary.
80560         (lib_SOURCES): Remove mbchar.c.
80561         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80562         (Files): Add m4/mbrtowc.m4.
80563         * modules/mbiter: Likewise.
80564         * modules/mbuiter: Likewise.
80565
80566 2005-09-26  Bruno Haible  <bruno@clisp.org>
80567
80568         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80569         compile mbchar.c if they are not both present.
80570         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80571         * m4/mbiter.m4 (gl_MBITER): Likewise.
80572         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80573         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80574         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80575
80576 2005-09-25  Jim Meyering  <jim@meyering.net>
80577
80578         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80579         also uses socklen_t.
80580
80581 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80582
80583         * lib/utimens.c (ENOSYS): Define if not already defined.
80584         (futimens): Support having a null PATH if the file descriptor
80585         is nonnegative.
80586
80587         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80588         Remove.
80589         (__attribute): Define to empty unless GCC 3.1 or later.
80590         This works around a core dump on OpenBSD 3.4, which has GCC
80591         2.95.3, which dumps core when given __attribute__(()).  It also
80592         simplifies other tests, since we really don't want to bother with
80593         worrying about which ancient version of GCC supported what.
80594         Original problem reported by Yoann Vandoorselaere, with part of
80595         the fix suggested by Derek Price.
80596
80597 2005-09-24  Jim Meyering  <jim@meyering.net>
80598
80599         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80600         so we can once again use a positive bitfield width of 1 -- now we
80601         don't have to explain why we were using a bitfield width of 2.
80602
80603 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80604
80605         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80606         and similarly for the other external symbols.  Problem reported
80607         by James Gallager.
80608
80609         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80610         bug reported by Jim Meyering.
80611
80612         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80613         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80614         not needed, since socklen is a prerequisite module.
80615
80616 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80617
80618         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80619         Problem reported by Eric Blake.
80620         (getaddrinfo): Initialize se so that it's not garbage.
80621         Redo internal storage allocation so that it doesn't make unportable
80622         assumptions about alignment.
80623         Fix a memory leak.
80624
80625         * lib/utimens.c (futimens): Use futimesat if available.
80626         Prefer it to futimes since it doesn't have the futimes bug.
80627
80628         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80629         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80630         Instead, declare a function that returns a pointer to an array,
80631         and use verify_type__ to declare the size of the array.
80632         Problem and germ of a solution reported by Bruno Haible.
80633         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80634         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80635
80636 2005-09-23  Jim Meyering  <jim@meyering.net>
80637
80638         Sync from coreutils.
80639         Correct build failure (socklen_t not defined) on at least
80640         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80641         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80642
80643 2005-09-23  Jim Meyering  <jim@meyering.net>
80644
80645         * modules/getaddrinfo (Depends-on): Add socklen.
80646
80647 2005-09-23  Bruno Haible  <bruno@clisp.org>
80648
80649         * tests/test-verify.c: New file.
80650
80651 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80652
80653         Sync from coreutils.
80654
80655         * modules/argmatch (Depends-on): Add verify.
80656         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80657         unistd-safer.
80658         * modules/save-cwd (Depends-on): Likewise.
80659
80660         * modules/openat (Files): Add lib/openat-die.c.
80661         (Depends-on): Remove error, exitfail.
80662         Add dirname.
80663
80664         * modules/verify: New file.
80665         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80666         with "verify" module.
80667
80668 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80669
80670         Sync from coreutils.
80671
80672         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80673         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80674         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80675         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80676         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80677         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80678         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80679         Don't bother checking for string.h, stdlib.h, unistd.h.
80680         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80681         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80682         module's job.
80683         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80684         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80685
80686         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80687         (gl_GETDATE): Use it.
80688
80689         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80690
80691 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80692
80693         Sync from coreutils.
80694
80695         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80696         stat-time.h.
80697         * lib/argmatch.h: Include verify.h
80698         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80699         (ARGMATCH_ASSERT): Remove; unused.
80700         * lib/canonicalize.c: Assume STDC_HEADERS.
80701         * lib/exclude.c: Include "strcase.h".
80702         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80703         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80704         and stdio-safer.h.
80705         (getusershell): Call fopen, not fopen_safer.
80706         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80707         Do not include unistd-safer.h.
80708         (save_cwd): Don't call fd_safer; no longer needed
80709         now that we include fcntl--.h.
80710
80711         * lib/getdate.y (relative_time): New type.
80712         (RELATIVE_TIME_0): New constant.
80713         (parser_control): Use relative_time instead of doing it ourselves.
80714         (%union): Add new relative_time rel member.
80715         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80716         Now typeless.
80717         (relunit, relunit_snumber): Now of type rel.
80718         (zone, rel, relunit, get_date): Adjust to above changes.
80719
80720         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80721         Do not include unistd-safer.h.
80722         (getloadavg): Don't call fd_safer; no longer needed
80723         now that we include fcntl--.h.
80724
80725         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80726         (make_dir_parents): Treat ENOSYS like EEXIST.
80727
80728         Improve quality of diagnostics on restore_cwd failure.
80729         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80730         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80731         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80732         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80733         each time through the loop.  Do not diagnose restore_cwd failure;
80734         that is the caller's job (and perhaps the caller does not care).
80735
80736         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80737         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80738         If the file already exists but is not a directory, don't bother
80739         to try to make its parents.
80740         Close potential file descriptor leak if we can't chdir("/") (!).
80741         Don't always return true if chdir($PWD) fails; return true only
80742         if the requested action was done successfully (except for the
80743         chdir($PWD)).
80744         Don't log final directory unless we actually made it.
80745         Refactor to avoid duplicate code to fix up permissions.
80746         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80747
80748         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80749         to make it a bit faster and (I hope) clearer.
80750         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80751         Fix bug in formats like %2N.
80752
80753         * lib/verify.h: New file.
80754
80755 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80756
80757         Sync from coreutils.
80758         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80759
80760 2005-09-22  Jim Meyering  <jim@meyering.net>
80761
80762         Sync from coreutils.
80763
80764         * m4/lstat.m4 (gl_FUNC_LSTAT):
80765         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80766         Remove obsolete comment.
80767         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80768         * m4/xstrtod.m4: Likewise.
80769
80770         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80771
80772 2005-09-22  Jim Meyering  <jim@meyering.net>
80773
80774         Sync from coreutils.
80775
80776         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80777
80778         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80779         the .tm_year member, since otherwise gcc-4.0 would now warn about
80780         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80781
80782         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80783         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80784
80785         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80786         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80787         when run in a time zone for which daylight savings time is in effect
80788         for the starting date.
80789
80790         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80791         stop us from restricting permissions of just-created absolute-named
80792         directories.
80793         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80794         to restore initial working directory.
80795         * lib/mkdir-p.c (make_dir_parents): New parameter:
80796         different_working_dir, to tell caller if/when we change the working
80797         directory and are unable to return to the initial one.
80798         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80799         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80800         `return false'.  This fixes a bug introduced on 2004-07-30.
80801
80802         * lib/openat.c (fdopendir): Be sure to close the supplied
80803         file descriptor before returning.  This makes our replacement
80804         implementation a little closer to Solaris's, where fdopendir
80805         ties the file descriptor to the returned DIR* pointer.
80806         * lib/openat.c (unlinkat): New function.
80807         * lib/openat.h (unlinkat): Add prototype.
80808         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80809         (openat_restore_fail): Rename from openat_restore_die.
80810         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80811
80812         Provide an alternative to exiting immediately upon save_cwd or
80813         restore_cwd failure.  Now, an application can arrange e.g.,
80814         to perform a longjump in that case.
80815         * lib/openat.c: Include dirname.h.
80816         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80817         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80818         and openat_restore_die rather than calling error directly.
80819         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80820
80821         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80822         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80823         define.
80824
80825         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80826         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80827                             int utc, int nanoseconds);
80828         Background:
80829         date should not have to allocate a megabyte of virtual memory to
80830         handle a format argument like +%1048575T.  When implemented with
80831         strftime, it must allocate such a buffer, use strftime to fill it
80832         in, print it, then free it.
80833         With fprintftime, it simply prints everything and exits.
80834         With no need for memory allocation, that's one fewer way to fail.
80835         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80836         optional field width, not before, so we accept %9:z, not %:9z.
80837         (my_strftime): Be sure to use L_('x') for literals.
80838
80839         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80840         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80841         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80842         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80843         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80844         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80845         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80846         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80847         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80848         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80849         * lib/xgethostname.c, lib/xreadlink.c:
80850         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80851
80852         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80853         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80854         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80855         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80856         and don't include <sys/file.h>).
80857
80858 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80859
80860         Sync from coreutils.
80861
80862         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80863         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80864         [!LDAV_DONE]: Avoid unused variable warning.
80865
80866 2005-09-21  Bruno Haible  <bruno@clisp.org>
80867
80868         * lib/unicodeio.h (unicode_to_mb): New declaration.
80869
80870 2005-09-20  Derek Price  <derek@ximbiot.com>
80871
80872         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80873         getaddrinfo.h.
80874
80875 2005-09-20  Bruno Haible  <bruno@clisp.org>
80876
80877         * gnulib-tool: Remove trailing slashes from the values specified for
80878         --source-base, --m4-base, --tests-base, --aux-dir.
80879         Suggested by Simon Josefsson <jas@extundo.com>.
80880
80881 2005-09-20  Bruno Haible  <bruno@clisp.org>
80882
80883         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80884         func_modules_to_filelist, func_import, func_create_testdir): Make all
80885         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80886         change when gnulib-tool is invoked in a different locale.
80887
80888 2005-09-19  Simon Josefsson  <jas@extundo.com>
80889
80890         * m4/socklen.m4: Fix typo.
80891
80892 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80893
80894         Use a consistent style for including <config.h>.
80895         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80896         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80897         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80898         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80899         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80900         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80901         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80902         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80903         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80904         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80905         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80906         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80907         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80908         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80909         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80910         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80911         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80912         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80913         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80914         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80915         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80916         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80917         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80918         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80919         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80920         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80921         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80922         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80923         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80924         lib/xstrtoumax.c, lib/yesno.c:
80925         Standardize inclusion of config.h.
80926         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80927         lib/inttostr.h:  Removed inclusion of config.h from header files.
80928         * lib/inttostr.c:  Adjusted in-tree users.
80929         * lib/timespec.h: Remove superfluous warning to include config.h.
80930         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80931         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80932         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80933         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80934         config.h with HAVE_CONFIG_H.
80935
80936 2005-09-19  Jim Meyering  <jim@meyering.net>
80937
80938         * modules/pathmax (License): Change to LGPL.
80939
80940 2005-09-19  Derek Price  <derek@ximbiot.com>
80941
80942         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80943
80944 2005-09-19  Bruno Haible  <bruno@clisp.org>
80945
80946         * gnulib-tool (import): Provide default for --tests-base.
80947
80948 2005-09-19  Bruno Haible  <bruno@clisp.org>
80949
80950         * doc/quote.texi: New file, extracted from gnulib.texi.
80951         * doc/ctime.texi: New file, extracted from gnulib.texi.
80952         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80953         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80954         * doc/gnulib.texi: Include them.
80955
80956 2005-09-18  Bruno Haible  <bruno@clisp.org>
80957
80958         Portability fix.
80959         * gnulib-tool (func_readlink): New function.
80960         (func_ln_if_changed): Use it.
80961
80962 2005-09-18  Bruno Haible  <bruno@clisp.org>
80963
80964         * gnulib-tool: Support --with-tests also with --import.
80965         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80966         (func_import): Use variables $testsbase and $inctests. Emit a
80967         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80968         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80969         SUBDIRS += $testsdir.
80970         (func_create_testdir): Update.
80971
80972 2005-09-18  Bruno Haible  <bruno@clisp.org>
80973
80974         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80975         instead of $dry_run.
80976         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80977         (func_ln_if_changed): Don't handle dry-run here.
80978         (func_import): In dry-run mode, detect more precisely which actions
80979         would be performed, and don't use "...ing" verbs.
80980
80981 2005-09-18  Bruno Haible  <bruno@clisp.org>
80982
80983         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80984         (func_import): Use join on two temporary files instead of three nested
80985         loops, in order to determine which files are new or old.
80986
80987 2005-09-18  Bruno Haible  <bruno@clisp.org>
80988
80989         * gnulib-tool (func_import): Comment out code that spits out the
80990         new files with --dry-run.
80991
80992 2005-09-18  Bruno Haible  <bruno@clisp.org>
80993
80994         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80995
80996 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80997
80998         * lib/stat-time.h: New file.
80999         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81000         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81001         in a different way.
81002         (timespec_cmp): New function.
81003         * lib/utimecmp.c: Include stat-time.h.
81004         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81005         members exist, not on the obsolescent ST_MTIM_NSEC.
81006         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81007
81008 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81009
81010         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81011
81012 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81013
81014         * MODULES.html.sh (File system functions): Add stat-time.
81015         * modules/stat-time: New file.
81016         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81017         is now done in a different way, by the stat-time module.
81018         * modules/utimecmp (Depends-on): Add stat-time.
81019
81020 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81021
81022         * m4/st_mtim.m4: Remove.  Superseded by...
81023         * m4/stat-time.m4: New file.
81024         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81025         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81026
81027 2005-09-15  Derek Price  <derek@ximbiot.com>
81028
81029         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81030
81031 2005-09-15  Derek Price  <derek@ximbiot.com>
81032
81033         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81034         * lib/regex_internal.c: Ditto, using this...
81035         (__GNUC_PREREQ): ...new macro.
81036         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81037         using...
81038         (__GNUC_PREREQ): ...this new macro.
81039
81040         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81041
81042 2005-09-15  Derek Price  <derek@ximbiot.com>
81043             Paul Eggert  <eggert@cs.ucla.edu>
81044
81045         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81046         changes, consolidating in...
81047         * lib/regex_internal.h: ...this file.
81048
81049 2005-09-13  Jim Meyering  <jim@meyering.net>
81050
81051         * lib/canon-host.c: Filter through gnu indent and reword comments
81052         slightly.
81053         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81054
81055 2005-09-13  Derek Price  <derek@ximbiot.com>
81056
81057         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81058         failure.
81059         Reported by Jim Meyering  <jim@meyering.net>.
81060
81061 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81062
81063         * lib/base64.c: Typo.
81064         (base64_encode): Put b64str in initialized data section.
81065
81066 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81067
81068         Merge glibc and coreutils changes into gnulib, plus a few
81069         extra fixes.
81070         * lib/md5.c: Use #error rather than a string.
81071         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81072         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81073         (__attribute__): Define to empty for non recent-GCC.
81074         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81075         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81076         Renamed from their non-__ counterparts, with new macros replacing
81077         them if not _LIBC.  Add __THROW attribute.
81078         (rol): Remove.
81079         (struct md5_ctx): Align buffer if using GCC.
81080         * lib/sha1.h (struct sha1_ctx): Likewise.
81081         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81082         The old name was backwards.
81083         (NOTSWAP): Remove; not used.
81084         (rol): New macro, moved here from md5.h.
81085         (sha1_process_block): Remove a FIXME that doesn't make sense.
81086
81087 2005-09-12  Derek Price  <derek@ximbiot.com>
81088
81089         Return usable errors from canon-host.
81090         * lib/canon-host.h: New file.
81091         * lib/canon-host.c (canon_host): Wrap...
81092         (canon_host_r): ...this new function, which now relies exclusively on
81093         getaddrinfo.
81094         (ch_strerror): New function.
81095         (last_cherror): New global.
81096         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81097         interface.
81098         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81099         void *.
81100         (freeaddrinfo): Free ai->ai_canonname when set.
81101
81102 2005-09-12  Derek Price  <derek@ximbiot.com>
81103
81104         Make canon-host require getaddrinfo.
81105         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81106         AC_LIBSOURCE canon-host.h.  Call...
81107         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81108         gl_GETADDRINFO.
81109         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81110
81111 2005-09-12  Derek Price  <derek@ximbiot.com>
81112
81113         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81114         LGPL.
81115         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81116
81117 2005-09-12  Derek Price  <derek@ximbiot.com>
81118
81119         * lib/gai_strerror.c: Include config.h when available.  Include
81120         getaddrinfo.h before other headers to test interface.
81121         Reported by Larry Jones <lawrence.jones@ugs.com>.
81122
81123 2005-09-12  Derek Price  <derek@ximbiot.com>
81124             Paul Eggert  <eggert@cs.ucla.edu>
81125
81126         * modules/glob (Files): Add glob-libc.h.
81127
81128 2005-09-12  Derek Price  <derek@ximbiot.com>
81129             Paul Eggert  <eggert@cs.ucla.edu>
81130
81131         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81132         glob_.h, glob-libc.h.
81133         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81134
81135 2005-09-12  Derek Price  <derek@ximbiot.com>
81136             Paul Eggert  <eggert@cs.ucla.edu>
81137
81138         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81139         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81140         protecting things that should be done only in gnulib contexts.
81141         * lib/glob_.h: New file, containing only the glob things needed for
81142         gnulib.
81143         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81144         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81145         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81146         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81147         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81148         and to respect the namespace rules better.
81149
81150 2005-09-08  Simon Josefsson  <jas@extundo.com>
81151
81152         * modules/socklen: New file.
81153
81154 2005-09-08  Simon Josefsson  <jas@extundo.com>
81155
81156         * m4/socklen.m4: New file.
81157
81158 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81159
81160         * modules/utimens (Files): Add m4/utimbuf.m4, since
81161         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81162         Reported by Sergey Poznyakoff.
81163
81164 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81165
81166         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81167         definitions, since that's the preferred style in glibc.
81168         Fix a minor spacing issue, and update copyright notice to match
81169         glibc's.
81170
81171 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81172
81173         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81174
81175 2005-09-06  Simon Josefsson  <jas@extundo.com>
81176
81177         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81178         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81179
81180 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81181
81182         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81183         warning.
81184
81185 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81186
81187         * config/srclist.txt: Add glibc bug 1302.
81188
81189 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81190
81191         Change bitset word type from unsigned int to unsigned long int,
81192         as this has better performance on typical 64-bit hosts.
81193         Port bitset code to hosts with unusual word sizes.
81194         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81195         (build_collating_symbol):
81196         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81197         argument is a bitset.  This is merely a style issue, but it makes
81198         it clearer that an entire array is expected.
81199         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81200         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81201         Port to the case where bitset_word is not the same as unsigned int.
81202         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81203         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81204         Likewise.
81205         * lib/regexec.c (check_dst_limits_calc_pos_1,
81206         check_subexp_matching_top):
81207         (build_trtable, group_nodes_into_DFAstates):
81208         Likewise.
81209         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81210         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81211         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81212         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81213         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81214         * lib/regcomp.c (optimize_subexps, lower_subexp):
81215         Work even if bitset_word has holes in its bitwise representation.
81216         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81217         * lib/regexec.c (check_dst_limits_calc_pos_1,
81218         check_subexp_matching_top):
81219         Likewise.
81220         * lib/regex_internal.c (re_string_reconstruct):
81221         Don't assume UCHAR_MAX == 255.
81222         * lib/regex_internal.h (bitset_set_all): Likewise.
81223         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81224         All uses changed.
81225         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81226         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81227         All uses changed.
81228         (BITSET_WORD_MAX): New macro.
81229         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81230         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81231         (bitset_empty, bitset_copy):
81232         Prefer sizeof (bitset) to multiplying it out ourselves.
81233         (bitset_not_merge): Remove; unused.
81234         (bitset_contain): Return bool, not unsigned int with one bit on.
81235         All callers changed.
81236         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81237         alignment than re_node_set; do this by defining a new internal
81238         type struct dests_alloc and using it to allocate memory.
81239
81240 2005-09-05  Bruno Haible  <bruno@clisp.org>
81241
81242         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81243         links.
81244
81245 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81246
81247         * modules/size_max (Makefile.am): Add size_max.h
81248
81249 2005-09-04  Derek Price  <derek@ximbiot.com>
81250
81251         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81252
81253 2005-09-03  Simon Josefsson  <jas@extundo.com>
81254
81255         * gnulib-tool: Fix typo.
81256
81257 2005-09-03  Simon Josefsson  <jas@extundo.com>
81258
81259         * config/srclist.txt: Add glibc bug 1293.
81260
81261 2005-09-03  Derek Price  <derek@ximbiot.com>
81262
81263         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81264         From Larry Jones <lawrence.jones@ugs.com>.
81265
81266 2005-09-02  Simon Josefsson  <jas@extundo.com>
81267
81268         * modules/socklen: New file.
81269
81270 2005-09-02  Simon Josefsson  <jas@extundo.com>
81271
81272         * modules/havelib: New module.
81273
81274         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81275         Use havelib.
81276
81277 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81278
81279         Check for arithmetic overflow when calculating sizes, to prevent
81280         some buffer-overflow issues.  These patches are conservative, in the
81281         sense that when I couldn't determine whether an overflow was possible,
81282         I inserted a run-time check.
81283         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81284         macros.
81285         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81286         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81287         (re_xnrealloc, re_x2nrealloc): New inline functions.
81288         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81289         parse_bracket_exp):
81290         (build_equiv_class, build_charclass): Check for arithmetic overflow
81291         in size expression calculations.
81292         * lib/regex_internal.c (re_string_realloc_buffers):
81293         (build_wcs_upper_buffer, re_node_set_add_intersect):
81294         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81295         (re_dfa_add_node, register_state): Likewise.
81296         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81297         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81298         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81299         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81300
81301 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81302
81303         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81304         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81305
81306 2005-09-02  Bruno Haible  <bruno@clisp.org>
81307
81308         Support for lib vs. lib64 distinction on biarch platforms.
81309         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81310         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81311         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81312
81313 2005-09-02  Bruno Haible  <bruno@clisp.org>
81314
81315         * gnulib-tool (import): In the other first-use case, provide defaults
81316         as well.
81317
81318 2005-09-02  Bruno Haible  <bruno@clisp.org>
81319
81320         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81321         patches not yet found in the latest gettext release.
81322
81323 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81324
81325         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81326         to avoid a collision with bits/local_lim.h in glibc.
81327         All uses changed.  Problem reported by Dmitry V. Levin in
81328         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81329
81330         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81331         bugs in int versus size_t comparisons.
81332         (re_string_context_at): Fix bug where the code assumed that
81333         Idx is signed.
81334
81335         Use bool where appropriate.
81336         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81337         All callers changed.
81338         (calc_eclosure_iter): Likewise, for ROOT arg.
81339         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81340         (build_charclass_op): Likewise, for NON_MATCH arg.
81341         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81342         (re_string_construct_common): Likewise, for ICASE arg.
81343         * lib/regexec.c (re_search_2_stub, re_search_stub):
81344         Likewise, for RET_LEN arg.
81345         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81346         (set_regs): Likewise, for FL_BACKTRACK arg.
81347         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81348         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81349         (calc_eclosure_iter, parse_bracket_exp):
81350         Use bool for internal variables that are booleans.
81351         * lib/regexec.c (re_search_internal, check_matching,
81352         proceed_next_node):
81353         (set_regs, build_sifted_states, sift_states_bkref):
81354         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81355         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81356         (find_collation_sequence_value):
81357         Likewise.
81358         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81359         (re_node_set_compare):
81360         Return bool, not int. All callers changed.
81361         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81362         (build_trtable, check_node_accept): Likewise.
81363         * lib/regex_internal.h: Include stdbool.h.
81364
81365         Fix bugs uncovered when converting to bool.
81366         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81367         failure instead of charging ahead blindly.
81368         * lib/regex_internal.c (register_state): Likewise.
81369         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81370         for freeing internal storage.
81371         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81372         bitset pieces used as boolean, to avoid undefined behavior
81373         on hosts that do int overflow checking.
81374
81375 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81376
81377         * config/srclist.txt: Add glibc bugs 1285-1287.
81378
81379 2005-09-01  Jim Meyering  <jim@meyering.net>
81380
81381         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81382         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81383         Require gl_STAT_MACROS, too.
81384
81385 2005-09-01  Bruno Haible  <bruno@clisp.org>
81386
81387         * gnulib-tool (import): In the first-use case, provide defaults.
81388
81389 2005-09-01  Bruno Haible  <bruno@clisp.org>
81390
81391         * gnulib-tool (func_import): Remove the .tmp files.
81392
81393 2005-09-01  Bruno Haible  <bruno@clisp.org>
81394
81395         * gnulib-tool (func_import): Fix handling of symbolic links.
81396
81397 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81398
81399         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81400         old glibc regex code mishandles strings longer than 2**31 bytes.
81401         This patch fixes this when the regex code is used in gnulib
81402         (i.e., outside glibc).
81403
81404         This patch should not affect the use of the regex code inside
81405         glibc.  No doubt this problem also needs to be handled for glibc
81406         as well, but the result will be an incompatible change to the
81407         glibc ABI, and the old ABI will have to be supported too.  That
81408         can be the the subject for another patch.
81409
81410         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81411         governing whether the rest of this patch is active.  By default,
81412         the macro is disabled and the patch has no effect.
81413         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81414         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81415         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81416         (re_match_2, re_set_registers): Use the new types.
81417         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81418         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81419         New macros.
81420         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81421         (re_string_context_at, bin_tree_t, re_dfastate_t):
81422         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81423         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81424         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81425         (re_string_char_size_at, re_string_wchar_at):
81426         (re_string_elem_size_at):
81427         Use the new types and macros to port to 64-bit hosts.
81428         Use unsigned types for internal values, so that the code
81429         mostly works even for arrays larger than SSIZE_MAX.
81430         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81431         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81432         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81433         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81434         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81435         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81436         (calc_inveclosure, parse_dup_op, build_range_exp):
81437         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81438         (fetch_number, create_token_tree, mark_opt_subexp):
81439         Likewise.
81440         * lib/regex_internal.c (re_string_construct_common,
81441         create_ci_newstate):
81442         (create_cd_newstate, re_string_allocate, re_string_construct):
81443         (re_string_realloc_buffers, build_wcs_upper_buffer):
81444         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81445         (re_string_reconstruct, re_string_peek_byte_case):
81446         (re_string_fetch_byte_case, re_string_context_at):
81447         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81448         (re_node_set_init_copy, re_node_set_add_intersect):
81449         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81450         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81451         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81452         (re_acquire_state, re_acquire_state_context, register_state):
81453         Likewise.
81454         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81455         search_cur_bkref_entry):
81456         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81457         (re_search_internal, re_search_2_stub, re_search_stub)
81458         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81459         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81460         (update_cur_sifted_state, check_dst_limits):
81461         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81462         (check_subexp_limits, sift_states_bkref, merge_state_array):
81463         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81464         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81465         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81466         (expand_bkref_cache, check_node_accept_bytes):
81467         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81468         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81469         (acquire_init_state_context, check_halt_node_context):
81470         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81471         (sift_states_backward, clean_state_log_if_needed):
81472         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81473         (find_recover_state, transit_state_sb, transit_state_mb):
81474         (transit_state_bkref, build_trtable, match_ctx_clean):
81475         Likewise.
81476         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81477         to work around an assumption that REG_MISSING is negative.
81478
81479         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81480         (seek_collating_symbol_entry) [defined _LIBC]:
81481         (lookup_collation_sequence_value) [defined _LIBC]:
81482         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81483         Use prototypes rather than old-style function definitions.
81484         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81485         (transit_state_sb) [0]:
81486         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81487
81488         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81489         rm_eo.
81490
81491         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81492         (optimize_subexps, lower_subexp):
81493         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81494         since the signed shift might overflow.  Use 1u<<31 instead.
81495         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81496         Likewise.
81497         * lib/regexec.c (check_dst_limits_calc_pos_1,
81498         check_subexp_matching_top): Likewise.
81499
81500         * lib/regcomp.c (optimize_subexps, lower_subexp):
81501         Use CHAR_BIT rather than 8, for clarity.
81502         * lib/regexec.c (check_dst_limits_calc_pos_1):
81503         (check_subexp_matching_top): Likewise.
81504         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81505         have to worry about portability issues when shifting it left.
81506         Remove no-longer-needed test for table_size > 0.
81507         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81508         in a word, as the resulting behavior is undefined.
81509         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81510         in one case, a <= should have been an <, and in another case the
81511         whole test was missing.
81512         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81513         the standard name CHAR_BIT.
81514         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81515         this is not true on one's complement and signed-magnitude hosts.
81516
81517         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81518         next_last_offset.
81519         (struct re_dfa_t): Remove unused member states_alloc.
81520         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81521
81522 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81523
81524         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81525         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81526         and large-file glibc and in 32-bit large-file Solaris.
81527
81528 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81529
81530         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81531         lengths fit in regoff_t; this isn't true if regoff_t is the same
81532         width as size_t.
81533         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81534         (= START + RANGE) instead of RANGE.  This avoids overflow
81535         problems when regoff_t is the same width as size_t.
81536         All callers changed.
81537         (re_search_2_stub): Check for overflow when adding the
81538         sizes of the two strings.
81539         (re_search_stub): Check for overflow when adding START
81540         to RANGE; if it occurs, substitute the extreme value.
81541
81542 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81543
81544         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81545
81546 2005-08-31  Jim Meyering  <jim@meyering.net>
81547
81548         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81549         a pointer-to-const.
81550         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81551         (register_state): Likewise.
81552         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81553         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81554         (group_nodes_into_DFAstates): Likewise.
81555
81556 2005-08-31  Jim Meyering  <jim@meyering.net>
81557
81558         * check-module: Add a FIXME comment.
81559
81560 2005-08-31  Eric Blake  <ebb9@byu.net>
81561
81562         * modules/unistd-safer (Files): Add unistd--.h.
81563         * modules/stdio-safer (Files): Add stdio--.h.
81564
81565 2005-08-31  Derek Price  <derek@ximbiot.com>
81566
81567         * lib/getdelim.c (getdelim): Return EOF on EOF.
81568         Reported by Larry Jones <lawrence.jones@ugs.com>.
81569
81570 2005-08-31  Bruno Haible  <bruno@clisp.org>
81571
81572         Avoid unnecessary diffs in the generated lib/Makefile.am.
81573         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81574         the generated files.
81575         (func_import): Don't set cmd.
81576
81577 2005-08-31  Bruno Haible  <bruno@clisp.org>
81578
81579         * lib/strstr.c: Include <stddef.h>, for NULL.
81580         * lib/strcasestr.c: Likewise.
81581         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81582
81583 2005-08-31  Bruno Haible  <bruno@clisp.org>
81584
81585         * gnulib-tool: New option --macro-prefix.
81586         (func_import): Use macro_prefix.
81587         (import): Handle option --macro-prefix.
81588
81589 2005-08-31  Bruno Haible  <bruno@clisp.org>
81590
81591         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81592         Also use new variables cached_lgpl, cached_libtool.
81593
81594 2005-08-31  Bruno Haible  <bruno@clisp.org>
81595
81596         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81597         always instantiating them.
81598
81599 2005-08-31  Bruno Haible  <bruno@clisp.org>
81600
81601         * gnulib-tool (func_import): Read the previous cached settings
81602         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81603         earlier added by gnulib but are now dropped. Warn when a gnulib file
81604         overwrites a non-gnulib file.
81605
81606 2005-08-31  Bruno Haible  <bruno@clisp.org>
81607
81608         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81609         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81610         projects that don't keep autogenerated files in CVS. Put into
81611         actioncmd only the specified modules, not the transitive closure.
81612
81613 2005-08-31  Bruno Haible  <bruno@clisp.org>
81614
81615         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81616         Create directories that shall be filled.
81617         (import): Don't look for gl_* macros in configure.ac. Recurse across
81618         all directories containing a gnulib-cache.m4 files, if meaningful.
81619
81620 2005-08-31  Bruno Haible  <bruno@clisp.org>
81621
81622         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81623         (import): Set seen_libtool when we see gl_LIBTOOL.
81624
81625 2005-08-31  Bruno Haible  <bruno@clisp.org>
81626
81627         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81628         declaration macro definitions from generated gnulib.m4.
81629
81630 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81631
81632         * lib/iconvme.h: Add prototype for iconv_alloc.
81633
81634 2005-08-29  Simon Josefsson  <jas@extundo.com>
81635
81636         * lib/iconvme.c: Fix errno.
81637
81638 2005-08-29  Bruno Haible  <bruno@clisp.org>
81639
81640         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81641         that it works when the directory contains spaces.
81642
81643 2005-08-29  Bruno Haible  <bruno@clisp.org>
81644
81645         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81646
81647 2005-08-29  Bruno Haible  <bruno@clisp.org>
81648
81649         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81650         Emit more advice.
81651
81652 2005-08-29  Bruno Haible  <bruno@clisp.org>
81653         and Stepan Kasal  <kasal@ucw.cz>
81654
81655         * check-module: If more parameters are given, check each of them
81656         separately; add more exceptions, as noted by Jim Meyering.
81657         (check_module): New procedure.
81658         (%exempt_header): Now contains all exceptions.
81659
81660 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81661
81662         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81663
81664 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81665
81666         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81667
81668 2005-08-28  Bruno Haible  <bruno@clisp.org>
81669
81670         * m4/gnulib-tool.m4: New file.
81671
81672 2005-08-27  Jim Meyering  <jim@meyering.net>
81673
81674         * modules/unistd-safer (Files): Add pipe-safer.c.
81675         * modules/fcntl-safer (Files): Add creat-safer.c.
81676
81677 2005-08-27  Jim Meyering  <jim@meyering.net>
81678
81679         * m4/stdlib-safer.m4: New file.  From coreutils.
81680         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81681         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81682         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81683         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81684         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81685
81686 2005-08-27  Jim Meyering  <jim@meyering.net>
81687
81688         * lib/fopen-safer.c: Merge minor changes from coreutils.
81689         * lib/dup-safer.c: Likewise.
81690         * lib/fd-safer.c: Likewise.
81691
81692         Merge from coreutils.
81693         * lib/stdio--.h: New file.
81694         * lib/stdlib--.h: New file.
81695         * lib/mkstemp-safer.c: New file.
81696
81697         GNU tar needs these.
81698         * lib/pipe-safer.c: New file.
81699         * lib/creat-safer.c: New file.
81700         * lib/fcntl--.h (creat): Define to creat_safer.
81701         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81702         * lib/unistd--.h (pipe): Define to pipe_safer.
81703         * lib/unistd-safer.h: Declare pipe_safer.
81704
81705 2005-08-26  Simon Josefsson  <jas@extundo.com>
81706
81707         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81708         Haible <bruno@clisp.org>.
81709
81710 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81711
81712         * lib/regex_internal.h: Remove all references to
81713         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81714         or better.
81715         (bitset_not, bitset_merge, bitset_not_merge):
81716         (bitset_mask, re_string_allocate, re_string_construct):
81717         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81718         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81719         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81720         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81721         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81722         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81723         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81724         (re_acquire_state_context):
81725         Remove unnecessary forward decls.
81726         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81727         Put __attribute at function definition,
81728         now that the function decl has been removed.
81729         * lib/regex_internal.c (re_string_peek_byte_case):
81730         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81731         Likewise.
81732
81733 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81734
81735         * m4/regex.m4: Add AC_PREREQ(2.50).
81736         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81737
81738 2005-08-25  Simon Josefsson  <jas@extundo.com>
81739
81740         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81741         __fsetlocking.
81742
81743 2005-08-25  Simon Josefsson  <jas@extundo.com>
81744
81745         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81746         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81747         GLIBC specific code.
81748
81749 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81750
81751         Make regex safe for g++.  This fixes one real bug (an "err"
81752         that should have been "*err").  g++ problem reported by
81753         Sam Steingold.
81754         * lib/regex_internal.h (re_calloc): New macro, consistent with
81755         re_malloc etc.  All callers of calloc changed to use re_calloc.
81756         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81757         not int.  All callers changed.
81758         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81759         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81760         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81761         (find_recover_state): Change "err" to "*err"; this fixes what
81762         appears to be a real bug.
81763         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81764         versus int.
81765
81766 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81767
81768         * modules/regex (Depends-on): Add malloc, since the code
81769         assumes that !malloc(0) means failure.
81770
81771 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81772
81773         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81774
81775         alloca modernization/simplification for regex.
81776         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81777         needs to be at the start of the file, and can be moved into
81778         regex_internal.h and simplified.
81779         * lib/regex_internal.h: Include <alloca.h>.
81780         (__libc_use_alloca) [!defined _LIBC]: New macro.
81781         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81782         now works outside glibc.
81783
81784 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81785
81786         * config/srclist.txt: Add glibc bugs 1241, 1245.
81787
81788 2005-08-25  Jim Meyering  <jim@meyering.net>
81789
81790         * lib/open-safer.c: Include <config.h>.
81791         Otherwise, we'd lose LARGEFILE support in any file using
81792         e.g. "fcntl--.h"
81793
81794 2005-08-25  Bruno Haible  <bruno@clisp.org>
81795
81796         * m4/minmax.m4: Require autoconf 2.52.
81797         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81798         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81799         alternatives of translit over the alphabet.
81800         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81801
81802 2005-08-24  Simon Josefsson  <jas@extundo.com>
81803
81804         * tests/test-getpass.c: New file.
81805
81806 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81807
81808         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81809         for GNU regex features.
81810
81811 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81812
81813         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81814         * lib/regex.h (regerror): Likewise.
81815
81816         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81817         requires this.  (The code never needed it.)
81818
81819         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81820         All uses of recently-renamed identifiers changed to use the new,
81821         POSIX-compliant names.  The code will build and run just fine
81822         without these changes, but it's better to eat our own dog food
81823         and use the standard-conforming names.
81824
81825         * lib/regex.h: Fix a multitude of POSIX name space violations.
81826         These changes have an effect only for programs that define
81827         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81828         do not change anything for programs compiled in the normal way.
81829         Also, there is no effect on the ABI.
81830
81831         (_REGEX_SOURCE): New macro.
81832         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81833         defined and _GNU_SOURCE is not; this fixes a name space violation.
81834
81835         Rename the following macros to obey POSIX requirements.
81836         The old names are still visible as macros if _REGEX_SOURCE is defined.
81837         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81838         RE_BACKSLASH_ESCAPE_IN_LISTS.
81839         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81840         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81841         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81842         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81843         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81844         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81845         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81846         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81847         (REG_INTERVALS): renamed from RE_INTERVALS.
81848         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81849         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81850         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81851         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81852         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81853         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81854         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81855         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81856         RE_UNMATCHED_RIGHT_PAREN_ORD.
81857         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81858         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81859         (REG_DEBUG): renamed from RE_DEBUG.
81860         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81861         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81862         unusual, since we can't clash with the POSIX REG_ICASE.
81863         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81864         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81865         (REG_NO_SUB): renamed from RE_NO_SUB.
81866         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81867         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81868         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81869         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81870         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81871         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81872         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81873         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81874         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81875         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81876         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81877         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81878         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81879         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81880         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81881         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81882         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81883         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81884         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81885         (REG_FIXED): Renamed from REGS_FIXED.
81886         (REG_NREGS): Renamed from RE_NREGS.
81887
81888         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81889         of other REG_* macros, since POSIX says the user is allowed to
81890         #undef these macros selectively.
81891
81892         (reg_errcode_t): Update comment stating what other tables need
81893         to be consistent.
81894
81895         Rename the following enum values to obey POSIX requirements.
81896         The old names are still visible as macros.
81897         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81898         is not defined, since GNU is supposed to be a superset of POSIX as
81899         much as possible, and since we want reg_errcode_t to be a signed
81900         type for implementation consistency.
81901         (_REG_NOERROR): Renamed from REG_NOERROR.
81902         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81903         (_REG_BADPAT): Renamed from REG_BADPAT.
81904         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81905         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81906         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81907         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81908         (_REG_EBRACK): Renamed from REG_EBRACK.
81909         (_REG_EPAREN): Renamed from REG_EPAREN.
81910         (_REG_EBRACE): Renamed from REG_EBRACE.
81911         (_REG_BADBR): Renamed from REG_BADBR.
81912         (_REG_ERANGE): Renamed from REG_ERANGE.
81913         (_REG_ESPACE): Renamed from REG_ESPACE.
81914         (_REG_BADRPT): Renamed from REG_BADRPT.
81915         (_REG_EEND): Renamed from REG_EEND.
81916         (_REG_ESIZE): Renamed from REG_ESIZE.
81917         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81918         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81919         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81920         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81921         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81922
81923         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81924         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81925         changed.  But support the old name if the new one is not defined
81926         and if _REGEX_SOURCE.
81927
81928         Change the following member names in struct re_pattern_buffer.
81929         The old names are still supported if !_REGEX_SOURCE.
81930         The new names are always supported, regardless of _REGEX_SOURCE.
81931         (re_buffer): Renamed from buffer.
81932         (re_allocated): Renamed from allocated.
81933         (re_used): Renamed from used.
81934         (re_syntax): Renamed from syntax.
81935         (re_fastmap): Renamed from fastmap.
81936         (re_translate): Renamed from translate.
81937         (re_can_be_null): Renamed from can_be_null.
81938         (re_regs_allocated): Renamed from regs_allocated.
81939         (re_fastmap_accurate): Renamed from fastmap_accurate.
81940         (re_no_sub): Renamed from no_sub.
81941         (re_not_bol): Renamed from not_bol.
81942         (re_not_eol): Renamed from not_eol.
81943         (re_newline_anchor): Renamed from newline_anchor.
81944
81945         Change the following member names in struct re_registers.
81946         The old names are still supported if !_REGEX_SOURCE.
81947         The new names are always supported, regardless of _REGEX_SOURCE.
81948         (rm_num_regs): Renamed from num_regs.
81949         (rm_start): Renamed from start.
81950         (rm_end): Renamed from end.
81951
81952         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81953         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81954         Prepend __ to parameter names.
81955
81956         Undo yesterday's changes.
81957
81958 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81959
81960         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81961         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81962         lib/regex.c.
81963
81964 2005-08-24  Jim Meyering  <jim@meyering.net>
81965
81966         Sync from coreutils.
81967         * m4/fcntl-safer.m4: New file.
81968
81969         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81970         and object files for this module.
81971
81972 2005-08-24  Jim Meyering  <jim@meyering.net>
81973
81974         Sync from coreutils.
81975         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81976
81977 2005-08-24  Jim Meyering  <jim@meyering.net>
81978
81979         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81980         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81981
81982 2005-08-24  Jim Meyering  <jim@meyering.net>
81983
81984         * modules/fcntl-safer: New module.
81985         * modules/fts (Depends-on): Add fcntl-safer.
81986         * MODULES.html.sh (File descriptor based Input/Output):
81987         Add fcntl-safer.
81988
81989 2005-08-24  Bruno Haible  <bruno@clisp.org>
81990
81991         Support for unit test modules.
81992         * modules/README: Mention tests modules.
81993         * modules/TEMPLATE-TESTS: New file.
81994         * gnulib-tool: New options --extract-tests-module, --with-tests and
81995         --tests-base (unused for the moment).
81996         (testsbase, inctests): New variables.
81997         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81998         (func_verify_module): Exclude TEMPLATE-TESTS.
81999         (func_verify_nontests_module, func_verify_tests_module): New functions.
82000         (func_get_dependencies): Add implicit dependency for tests modules.
82001         (func_get_tests_module): New function.
82002         (func_modules_transitive_closure): When --with-tests was specified,
82003         include the unit tests as well, unless explicitly avoided.
82004         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82005         (func_emit_tests_Makefile_am): New function.
82006         (func_create_testdir): When --with-tests was specified, emit a
82007         tests/ directory.
82008         * MODULES.html.sh (Future developments): Update.
82009
82010 2005-08-24  Bruno Haible  <bruno@clisp.org>
82011
82012         * modules/tls-tests: New file.
82013         * tests/test-tls.c: New file, from GNU gettext.
82014
82015 2005-08-24  Bruno Haible  <bruno@clisp.org>
82016
82017         * modules/lock-tests: New file.
82018         * tests/test-lock.c: New file, from GNU gettext.
82019
82020 2005-08-24  Bruno Haible  <bruno@clisp.org>
82021
82022         * lib/lock.h: Add multiple inclusion guard.
82023         * lib/tls.h: Add multiple inclusion guard.
82024
82025 2005-08-24  Bruno Haible  <bruno@clisp.org>
82026
82027         * gnulib-tool: Add support for the --aux-dir option to
82028         --create-testdir, --create-megatestdir, --test, --megatest.
82029         (func_create_testdir, func_create_megatestdir): Optionally emit a
82030         AC_CONFIG_AUX_DIR directive.
82031         (create-testdir, create-megatestdir, test, megatest): Provide a
82032         default value for $auxdir.
82033
82034 2005-08-24  Bruno Haible  <bruno@clisp.org>
82035
82036         * gnulib-tool (import): Use compound statement instead of subshell
82037         where possible.
82038
82039 2005-08-24  Bruno Haible  <bruno@clisp.org>
82040
82041         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82042
82043 2005-08-24  Bruno Haible  <bruno@clisp.org>
82044
82045         * gnulib-tool (func_version): Update.
82046
82047 2005-08-24  Bruno Haible  <bruno@clisp.org>
82048
82049         * gnulib-tool (func_import, func_create_testdir,
82050         func_create_megatestdir): Quote all autoconf macro arguments.
82051
82052 2005-08-24  Bruno Haible  <bruno@clisp.org>
82053
82054         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82055         option --force, because --force causes the aclocal.m4 of each
82056         subdirectory to be newer than the corresponding config.h.in.
82057
82058 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82059
82060         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82061         All contents moved to gl_REGEX.
82062         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82063         assume that it does.
82064
82065 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82066
82067         * lib/regex.h (REG_NOSYS)
82068         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82069         Define, since POSIX requires it as of 2001.
82070         (_REG_ENOSYS)
82071         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82072         New private symbol, used to keep the enum signed in all cases.
82073         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82074         Youngman in
82075         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82076
82077         * lib/regex_internal.c (re_string_skip_chars, register_state):
82078         (calc_state_hash):
82079         Remove forward decls; no longer needed now that we use prototypes.
82080         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82081         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82082         (clean_state_log_if_needed): Likewise.
82083
82084 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82085
82086         * config/srclist.txt: Add glibc bugs 1231-1233.
82087
82088 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82089
82090         Fix problems reported by Sam Steingold in
82091         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82092         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82093         assumed that reg_errcode_t is a signed type, which is not
82094         necessarily true if _XOPEN_SOURCE is not defined.
82095         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82096         since some compilers warn about it otherwise.
82097
82098 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82099
82100         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82101         (init_word_char, create_initial_state, duplicate_node_closure):
82102         (fetch_token, peek_token_bracket, build_range_exp):
82103         (build_collating_symbol): Remove forward decls; no longer needed
82104         now that we use prototypes.
82105
82106         * lib/regcomp.c:
82107         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82108         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82109         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82110         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82111         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82112         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82113         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82114         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82115         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82116         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82117         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82118         (build_charclass, build_charclass_op, fetch_number, create_tree):
82119         (create_token_tree, mark_opt_subexp, duplicate_tree):
82120         Use prototypes rather than old-style definitions.
82121
82122         * lib/regex_internal.c:
82123         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82124         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82125         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82126         (re_string_reconstruct, re_string_peek_byte_case):
82127         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82128         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82129         (re_node_set_init_copy, re_node_set_add_intersect):
82130         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82131         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82132         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82133         (re_acquire_state, re_acquire_state_context, register_state):
82134         (create_ci_newstate, create_cd_newstate, free_state):
82135         Likewise.
82136         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82137         re_search_2):
82138         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82139         (re_search_internal, prune_impossible_nodes):
82140         (acquire_init_state_context, check_matching, static):
82141         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82142         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82143         (update_regs, sift_states_backward, build_sifted_states):
82144         (clean_state_log_if_needed, merge_state_array):
82145         (update_cur_sifted_state, add_epsilon_src_nodes):
82146         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82147         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82148         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82149         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82150         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82151         (check_arrival, check_arrival_add_next_nodes):
82152         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82153         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82154         (check_node_accept_bytes, check_node_accept, extend_buffers):
82155         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82156         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82157         (sift_ctx_init):
82158         Likewise.
82159
82160         * lib/regex_internal.h:
82161         (re_string_allocate, re_string_construct, re_string_reconstruct):
82162         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82163         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82164         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82165         (re_string_context_at, re_string_peek_byte_case):
82166         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82167         is defined, since we now use prototypes always.
82168
82169         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82170         C89 or better.  All uses removed.
82171
82172 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82173
82174         * config/srclist.txt: Add glibc bugs 1220-1227.
82175
82176 2005-08-20  Jim Meyering  <jim@meyering.net>
82177
82178         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82179         of unused local, dfa.
82180
82181 2005-08-20  Bruno Haible  <bruno@clisp.org>
82182
82183         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82184
82185 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82186
82187         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82188         (re_node_set_insert_last, re_dfa_add_node):
82189         Rename local variables to avoid GCC shadowing warnings.
82190
82191 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82192
82193         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82194         [defined lint]: Suppress bogus uninitialized-variable warnings.
82195
82196         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82197         and let the caller return REG_ESPACE if out of space.  This
82198         removes an uninitialied-variable warning with GCC 4.0.1, and also
82199         avoids taking the address of a local variable.  All callers
82200         changed.
82201
82202 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82203
82204         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82205         $LIBCSRC/posix/regexec.c.
82206         Add glibc bug 1217 for regcomp.c.
82207
82208 2005-08-19  Jim Meyering  <jim@meyering.net>
82209
82210         * lib/regexec.c (proceed_next_node): Redo local variables to
82211         avoid GCC shadowing warnings.
82212
82213 2005-08-18  Bruno Haible  <bruno@clisp.org>
82214
82215         * lib/strstr.c (strstr): Fix return value in multibyte case.
82216         * lib/strcasestr.c (strcasestr): Likewise.
82217
82218 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82219
82220         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82221
82222 2005-08-17  Jim Meyering  <jim@meyering.net>
82223
82224         Make the %s format (seconds since the epoch) work for a negative
82225         number and when used with a zero-padded field width, e.g. %015s.
82226
82227         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82228         label so that it precedes the code to set `digits'.  Otherwise,
82229         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82230         print `00-22'.  Now, it prints `-0022', as it should.
82231
82232 2005-08-17  Bruno Haible  <bruno@clisp.org>
82233
82234         * modules/strstr (Files): Add m4/mbrtowc.m4.
82235         (Depends-on): Add mbuiter.
82236
82237 2005-08-17  Bruno Haible  <bruno@clisp.org>
82238
82239         * modules/strcasestr: New file.
82240         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82241         strcasestr.
82242
82243 2005-08-17  Bruno Haible  <bruno@clisp.org>
82244
82245         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82246
82247 2005-08-17  Bruno Haible  <bruno@clisp.org>
82248
82249         * modules/mbuiter: New file.
82250         * MODULES.html.sh (Extended multibyte and wide character utilities):
82251         Add mbuiter.
82252
82253 2005-08-17  Bruno Haible  <bruno@clisp.org>
82254
82255         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82256         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82257
82258 2005-08-17  Bruno Haible  <bruno@clisp.org>
82259
82260         * m4/strcasestr.m4: New file.
82261
82262 2005-08-17  Bruno Haible  <bruno@clisp.org>
82263
82264         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82265         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82266
82267 2005-08-17  Bruno Haible  <bruno@clisp.org>
82268
82269         * lib/strcasestr.h: New file.
82270         * lib/strcasestr.c: New file.
82271
82272 2005-08-17  Bruno Haible  <bruno@clisp.org>
82273
82274         * lib/strcasecmp.c: Use mbuiter.h.
82275
82276 2005-08-17  Bruno Haible  <bruno@clisp.org>
82277
82278         * lib/mbuiter.h: New file.
82279
82280 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82281
82282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82283         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82284         and gl_GETOPT are both invoked via different paths (as happens
82285         with GNU tar CVS because it uses both argp and getopt), the former
82286         wins.
82287
82288 2005-08-16  Bruno Haible  <bruno@clisp.org>
82289
82290         * modules/tls: New file.
82291         * MODULES.html.sh (Multithreading): Add tls.
82292
82293 2005-08-16  Bruno Haible  <bruno@clisp.org>
82294
82295         * modules/strnlen1: New file.
82296         * MODULES.html.sh (String handling): Add strnlen1.
82297
82298 2005-08-16  Bruno Haible  <bruno@clisp.org>
82299
82300         * modules/strcase (Files): Add m4/mbrtowc.m4.
82301         (Depends-on): Add strnlen1, mbchar.
82302
82303 2005-08-16  Bruno Haible  <bruno@clisp.org>
82304
82305         * modules/mbiter: New file.
82306         * MODULES.html.sh (Extended multibyte and wide character utilities):
82307         Add mbiter.
82308
82309 2005-08-16  Bruno Haible  <bruno@clisp.org>
82310
82311         * modules/mbfile: New file.
82312         * MODULES.html.sh (Extended multibyte and wide character utilities):
82313         Add mbfile.
82314
82315 2005-08-16  Bruno Haible  <bruno@clisp.org>
82316
82317         * modules/mbchar: New file.
82318         * MODULES.html.sh (Extended multibyte and wide character utilities):
82319         New section.
82320
82321 2005-08-16  Bruno Haible  <bruno@clisp.org>
82322
82323         * m4/tls.m4: New file, from GNU gettext.
82324
82325 2005-08-16  Bruno Haible  <bruno@clisp.org>
82326
82327         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82328         always.
82329         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82330
82331 2005-08-16  Bruno Haible  <bruno@clisp.org>
82332
82333         * m4/mbiter.m4: New file.
82334
82335 2005-08-16  Bruno Haible  <bruno@clisp.org>
82336
82337         * m4/mbfile.m4: New file.
82338
82339 2005-08-16  Bruno Haible  <bruno@clisp.org>
82340
82341         * m4/mbchar.m4: New file.
82342
82343 2005-08-16  Bruno Haible  <bruno@clisp.org>
82344
82345         * lib/tls.h: New file, from GNU gettext.
82346         * lib/tls.c: New file, from GNU gettext.
82347
82348 2005-08-16  Bruno Haible  <bruno@clisp.org>
82349
82350         * lib/strnlen1.h: New file.
82351         * lib/strnlen1.c: New file.
82352
82353 2005-08-16  Bruno Haible  <bruno@clisp.org>
82354
82355         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82356         (mbi_init): Update.
82357         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82358         NUL byte, not after it.
82359
82360 2005-08-16  Bruno Haible  <bruno@clisp.org>
82361
82362         * lib/strcase.h (strcasecmp): Add note in comments.
82363         * lib/strncasecmp.c: Use code from strcasecmp.c.
82364         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82365         (strcasecmp): Work correctly in multibyte locales.
82366
82367 2005-08-16  Bruno Haible  <bruno@clisp.org>
82368
82369         * lib/mbiter.h: New file.
82370
82371 2005-08-16  Bruno Haible  <bruno@clisp.org>
82372
82373         * lib/mbfile.h: New file.
82374
82375 2005-08-16  Bruno Haible  <bruno@clisp.org>
82376
82377         * lib/mbchar.h: New file.
82378         * lib/mbchar.c: New file.
82379
82380 2005-08-16  Bruno Haible  <bruno@clisp.org>
82381
82382         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82383         the valid ones. Makes the comparison operations transitive:
82384         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82385         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82386
82387 2005-08-15  Simon Josefsson  <jas@extundo.com>
82388
82389         * modules/ssize_t (License): Change to 'unlimited'.
82390
82391         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82392
82393 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82394
82395         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82396         Add comments for each pending glibc patch.
82397
82398 2005-08-15  Bruno Haible  <bruno@clisp.org>
82399
82400         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82401         __cplusplus is defined.
82402
82403 2005-08-14  Jim Meyering  <jim@meyering.net>
82404
82405         Sync from coreutils.
82406
82407         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82408         Use the hash-table-based cycle-detection code not just when
82409         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82410         Reported by James Youngman in
82411         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82412         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82413         FTS_TIGHT_CYCLE_CHECK.
82414         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82415         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82416         once again.
82417         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82418         * lib/fts.c (fd_safer): Remove decl.
82419         Include fcntl--.h rather than unistd-safer.h
82420         (fts_safe_changedir): Don't call fd_safer; no longer needed
82421         now that we include fcntl--.h.
82422
82423 2005-08-12  Simon Josefsson  <jas@extundo.com>
82424
82425         * modules/getndelim2: Use ssize_t module.
82426         * modules/getnline: Likewise.
82427         * modules/safe-read: Likewise.
82428         * modules/xreadlink: Likewise.
82429
82430         * modules/ssize_t: New file.
82431
82432 2005-08-12  Simon Josefsson  <jas@extundo.com>
82433
82434         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82435
82436 2005-08-12  Simon Josefsson  <jas@extundo.com>
82437
82438         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82439         ssize_t.
82440
82441 2005-08-12  Simon Josefsson  <jas@extundo.com>
82442
82443         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82444         readline, getdelim and check_version.
82445         (Support for systems lacking ISO C 99: Sizes of integer types):
82446         Add size_max.
82447
82448 2005-08-12  Bruno Haible  <bruno@clisp.org>
82449
82450         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82451
82452 2005-08-11  Simon Josefsson  <jas@extundo.com>
82453
82454         * modules/readline: New file.
82455
82456         * modules/strnlen (Files): Add strnlen.h.
82457
82458 2005-08-11  Simon Josefsson  <jas@extundo.com>
82459
82460         * m4/readline.m4: New file.
82461
82462 2005-08-11  Simon Josefsson  <jas@extundo.com>
82463
82464         * lib/readline.h, readline.c: New file.
82465
82466 2005-08-11  Simon Josefsson  <jas@extundo.com>
82467
82468         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82469         gl_AVOID.
82470
82471 2005-08-11  Bruno Haible  <bruno@clisp.org>
82472
82473         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82474
82475 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82476
82477         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82478
82479 2005-08-10  Simon Josefsson  <jas@extundo.com>
82480
82481         * tests/test-iconvme.c: New file.
82482
82483 2005-08-10  Simon Josefsson  <jas@extundo.com>
82484
82485         * m4/strnlen.m4: New file.
82486
82487         * m4/strndup.m4: Don't check for strnlen declaration, done in
82488         strnlen.m4.
82489
82490 2005-08-10  Simon Josefsson  <jas@extundo.com>
82491
82492         * lib/strndup.c: Use strnlen.h.
82493
82494         * lib/strnlen.h: New file.
82495
82496 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82497
82498         * README: Typos.
82499
82500 2005-08-02  Simon Josefsson  <jas@extundo.com>
82501
82502         * modules/readline: New file.
82503
82504 2005-08-02  Simon Josefsson  <jas@extundo.com>
82505
82506         * modules/getdelim: New file.
82507
82508         * modules/getline: Rewrite, don't use getndelim2.
82509
82510 2005-08-02  Simon Josefsson  <jas@extundo.com>
82511
82512         * m4/getline.m4: Separate out getdelim stuff into separate module.
82513
82514         * m4/getdelim.m4: New file.
82515
82516 2005-08-02  Simon Josefsson  <jas@extundo.com>
82517
82518         * lib/getline.h, getline.c: Rewrite.
82519
82520         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82521
82522 2005-07-31  Bruno Haible  <bruno@clisp.org>
82523
82524         * lib/lock.h (gl_lock_initializer): New macro.
82525         (gl_lock_define_initialized): Use it.
82526         (gl_rwlock_initializer): New macro.
82527         (gl_rwlock_define_initialized): Use it.
82528         (gl_recursive_lock_initializer): New macro.
82529         (gl_recursive_lock_define_initialized): Use it.
82530
82531 2005-07-30  Karl Berry  <karl@gnu.org>
82532
82533         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82534         Report from Ben Pfaff, regarding getopt.
82535
82536 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82537
82538         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82539         normal way.
82540         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82541         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82542         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82543         (gl_GETOPT): Use the new macros.  Most of the implementation
82544         is moved to the new macros.  This is for programs like Emacs
82545         that don't want all the functionality of gl_GETOPT.
82546
82547 2005-07-26  Bruno Haible  <bruno@clisp.org>
82548
82549         * m4/lock.m4: Update from GNU gettext.
82550
82551 2005-07-26  Bruno Haible  <bruno@clisp.org>
82552
82553         * lib/lock.h: Update from GNU gettext.
82554         * lib/lock.c: Update from GNU gettext.
82555
82556 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82557
82558         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82559         obsolescent AC_TRY_RUN.  Include the default includes files, for
82560         'exit'.
82561
82562 2005-07-24  Bruno Haible  <bruno@clisp.org>
82563
82564         * modules/visibility: New file.
82565         * MODULES.html.sh (Misc): Add visibility.
82566
82567 2005-07-24  Bruno Haible  <bruno@clisp.org>
82568
82569         * m4/visibility.m4: New file.
82570
82571 2005-07-24  Bruno Haible  <bruno@clisp.org>
82572
82573         * doc/visibility.texi: New file.
82574
82575 2005-07-22  Bruno Haible  <bruno@clisp.org>
82576
82577         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82578         $(ALLOCA_H), redundant through BUILT_SOURCES.
82579         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82580         redundant through BUILT_SOURCES.
82581         * modules/byteswap (Makefile.am): Remove explicit dependency on
82582         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82583         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82584         $(FNMATCH_H), redundant through BUILT_SOURCES.
82585         * modules/getopt (Makefile.am): Remove explicit dependency on
82586         $(GETOPT_H), redundant through BUILT_SOURCES.
82587         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82588         redundant through BUILT_SOURCES.
82589         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82590         redundant through BUILT_SOURCES.
82591         * modules/stdbool (Makefile.am): Remove explicit dependency on
82592         $(STDBOOL_H), redundant through BUILT_SOURCES.
82593         * modules/stdint (Makefile.am): Remove explicit dependency on
82594         $(STDINT_H), redundant through BUILT_SOURCES.
82595         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82596         Remove explicit dependency on $(SYSEXITS_H).
82597         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82598
82599 2005-07-18  Simon Josefsson  <jas@extundo.com>
82600
82601         * lib/check-version.c (check_version): Accept identical versions too.
82602
82603 2005-07-18  Bruno Haible  <bruno@clisp.org>
82604
82605         * modules/lock: New file.
82606         * MODULES.html.sh (Multithreading): New section.
82607
82608 2005-07-18  Bruno Haible  <bruno@clisp.org>
82609
82610         * m4/lock.m4: New file, from GNU gettext.
82611
82612 2005-07-18  Bruno Haible  <bruno@clisp.org>
82613
82614         * lib/lock.h: New file, from GNU gettext.
82615         * lib/lock.c: New file, from GNU gettext.
82616
82617 2005-07-18  Bruno Haible  <bruno@clisp.org>
82618
82619         * lib/lock.h (gl_once_t): New type.
82620         (gl_once_define, gl_once): New macros.
82621         * lib/lock.c (fresh_once): New variable.
82622         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82623         functions.
82624
82625 2005-07-16  Simon Josefsson  <jas@extundo.com>
82626
82627         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82628         workaround, suggested by Bruno.
82629
82630 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82631
82632         * modules/xalloc (Depends-on): Add xalloc-die.
82633         * modules/xvasprintf (Depends-on): Add xalloc-die.
82634
82635 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82636
82637         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82638         with a minor change.
82639
82640 2005-07-15  Bruno Haible  <bruno@clisp.org>
82641
82642         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82643         When using lib/poll.c, define poll as rpl_poll.
82644
82645 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82646
82647         * modules/argp (Depends-on): Remove unlocked-io.
82648
82649 2005-07-14  Derek Price  <derek@ximbiot.com>
82650
82651         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82652         for glob symlink bug.
82653
82654 2005-07-14  Bruno Haible  <bruno@clisp.org>
82655
82656         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82657         Instead, test for *_unlocked function declarations directly.
82658
82659 2005-07-11  Simon Josefsson  <jas@extundo.com>
82660
82661         * modules/size_max: New file.
82662
82663         * modules/xsize: Depend on size_max module for size_max.m4.
82664
82665 2005-07-11  Simon Josefsson  <jas@extundo.com>
82666
82667         * lib/size_max.h: New file.
82668
82669 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82670
82671         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82672         copyright symbol and the year.
82673         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82674         (version_etc_va): Use parameterized copyright notice.
82675         Reword to conform to the current GNU coding standards.
82676
82677 2005-07-11  Karl Berry  <karl@gnu.org>
82678
82679         * doc/gnulib.texi (Quoting): new node.
82680         (Initial import): more info, from Patrice.
82681
82682 2005-07-11  Bruno Haible  <bruno@clisp.org>
82683
82684         * gnulib-tool (func_usage): Document option --avoid.
82685         (Command line options): Handle --avoid.
82686         (func_acceptable): New function.
82687         (func_modules_transitive_closure): Use it.
82688
82689 2005-07-11  Bruno Haible  <bruno@clisp.org>
82690
82691         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82692         Reported by Jim Meyering.
82693
82694 2005-07-10  Bruno Haible  <bruno@clisp.org>
82695
82696         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82697         Needed when size_t is smaller than 'unsigned int'.
82698         Reported by Paul Eggert.
82699
82700 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82701
82702         * modules/argp (Depends-on): Add unlocked-io
82703
82704 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82705
82706         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82707         block of defines.
82708
82709 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82710
82711         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82712         fix now.
82713
82714 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82715         and Paul Eggert  <eggert@cs.ucla.edu>
82716
82717         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82718         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82719
82720 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82721
82722         * modules/regex (Files): Add lib/regex_internal.c,
82723         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82724         (Depends-on): Add extensions.
82725         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82726
82727 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82728
82729         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82730         pathconf.
82731         * m4/same.m4 (gl_SAME): Likewise.
82732         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82733
82734         * m4/regex.m4: Adjust to new libc regex implementation.
82735         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82736         all the .c and .h parts of (the new) regex.
82737         Quote the m4 stuff better.
82738         Check for RE_ICASE bug of old gnulib.
82739         Check for REG_STARTEND of recent libc.
82740         Rename local variables from jm_* to gl_*.
82741         Quote operand of "test -f".
82742         Say "recent enough" version of libc, not "version 2".
82743         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82744         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82745         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82746         Remove check for btowc, isascii.
82747         Require AM_LANGINFO_CODESET.
82748
82749 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82750
82751         * lib/regex.c, regex.h: Sync from libc.
82752         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82753         * lib/regexec.c:
82754         New files, synced from libc, except that regex_internal.h
82755         currently has a small porting fix.
82756
82757 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82758
82759         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82760         regex_internal.c, regexec.c.
82761         Add regex_internal.h too, but as a comment, since the libc version
82762         is currently broken in gnulib mode.
82763
82764 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82765
82766         Support programs like Emacs that use gnulib but not gettext.
82767         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82768         * modules/gettext-h: New file.
82769         * modules/gettext (Files): Remove lib/gettext.h.
82770         (Depends-on): Add gettext-h.
82771         (Makefile.am): Remove lib_SOURCES.
82772         * modules/argmatch, modules/c-stack, modules/closeout:
82773         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82774         * modules/execute, modules/file-type, modules/getaddrinfo:
82775         * modules/getopt, modules/human, modules/javacomp:
82776         * modules/javaexec, modules/mkdir-p, modules/obstack:
82777         * modules/openat, modules/pagealign_alloc, modules/pipe:
82778         * modules/quotearg, modules/regex, modules/rpmatch:
82779         * modules/unicodeio, modules/userspec, modules/version-etc:
82780         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82781         * modules/xsetenv:
82782         Depend on gettext-h, not gettext.
82783
82784 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82785
82786         * gnulib-tool (func_import): Add support for 'public domain' license.
82787         * modules/alloca, modules/atexit, modules/memmove:
82788         Now public domain, not GPL.
82789         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82790         * modules/realloc, modules/strerror, modules/strtod:
82791         Now LGPL, not GPL.
82792
82793 2005-07-05  Bruno Haible  <bruno@clisp.org>
82794
82795         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82796         autoconf CVS. Needed for mingw.
82797
82798 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82799
82800         Remove the dependency of the strftime module on the tzset module.
82801         * modules/strftime (Depends-on): Remove dependency on tzset.
82802
82803 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82804
82805         Remove the dependency of the strftime module on the tzset module.
82806         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82807         gl_FUNC_TZSET_CLOBBER.
82808
82809 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82810
82811         Remove the dependency of the strftime module on the tzset module.
82812         * lib/strftime.c (my_strftime)
82813         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82814         Copy the input structure, to work around some of the bug with
82815         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82816         Solaris releases, you should also use the tzset module, but we won't
82817         require it as a dependency any more since we don't want LGPLed code
82818         to depend on GPLed code.
82819
82820 2005-07-02  Jim Meyering  <jim@meyering.net>
82821
82822         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82823         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82824         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82825         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82826
82827 2005-07-02  Jim Meyering  <jim@meyering.net>
82828
82829         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82830
82831 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82832
82833         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82834         declares only 'struct timespec;' (!).
82835
82836 2005-07-01  Jim Meyering  <jim@meyering.net>
82837
82838         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82839         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82840         * lib/save-cwd.c, tempname.c:
82841         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82842         and don't include <sys/file.h>).
82843
82844 2005-06-29  Jim Meyering  <jim@meyering.net>
82845
82846         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82847         type name.  Use the variable name instead.
82848         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82849         Likewise.
82850
82851 2005-06-28  Simon Josefsson  <jas@extundo.com>
82852
82853         * modules/check-version (Files): Add check-version.m4.
82854
82855 2005-06-28  Simon Josefsson  <jas@extundo.com>
82856
82857         * m4/check-version.m4: New file, suggested by Jim Meyering
82858         <jim@meyering.net>.
82859
82860 2005-06-28  Simon Josefsson  <jas@extundo.com>
82861
82862         * lib/check-version.h, lib/check-version.c: New files.
82863
82864 2005-06-28  Simon Josefsson  <jas@extundo.com>
82865
82866         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82867         collision with global variable.  Better indentation.  Don't
82868         increment buffer pointer beyond buffer end.  Based on comments
82869         from Paul Eggert <eggert@cs.ucla.edu>.
82870
82871         * lib/base64.h: Indent.
82872
82873 2005-06-28  Simon Josefsson  <jas@extundo.com>
82874
82875         * doc/gnulib.texi (Library version handling): New section.
82876
82877 2005-06-28  Jim Meyering  <jim@meyering.net>
82878
82879         * check-module (find_included_lib_files): Hard-code another
82880         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82881         but modules/fts-lgpl (correctly) does not list those files.
82882
82883         * modules/canonicalize (Files): Add lib/pathmax.h.
82884
82885 2005-06-25  Simon Josefsson  <jas@extundo.com>
82886
82887         * modules/check-version: New file.
82888
82889 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82890
82891         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82892         initializer of struct addrinfo, as an indication that we don't
82893         care how many members the structure has.
82894
82895 2005-06-24  Derek Price  <derek@ximbiot.com>
82896         and Bruno Haible  <bruno@clisp.org>
82897
82898         Remove stat module & update lstat.
82899         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82900         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82901         * m4/stat.m4: Remove this file.
82902
82903 2005-06-24  Derek Price  <derek@ximbiot.com>
82904         and Bruno Haible  <bruno@clisp.org>
82905
82906         Remove stat module & update lstat.
82907         * lib/stat.c: Remove this file...
82908         (slash_aware_lstat): ...moving this content and its support...
82909         * lib/lstat.c (rpl_lstat): ...into here.
82910         * lib/lstat.h: New file.
82911
82912 2005-06-24  Derek Price  <derek@ximbiot.com>
82913         and Bruno Haible  <bruno@clisp.org>
82914
82915         Remove stat module & update lstat.
82916         * config/srclist.txt (libc sources): Remove stat.
82917
82918 2005-06-24  Derek Price  <derek@ximbiot.com>
82919         and Bruno Haible  <bruno@clisp.org>
82920
82921         Remove stat module & update lstat.
82922         * MODULES.html.sh (stat): Remove.
82923         * MODULES.html: Regenerated.
82924         * modules/lstat (Description): Correct function name.
82925         (Files): Add "lstat.h".
82926         (Depends-on): Remove stat, add xalloc, stat-macros.
82927         * modules/stat: Remove this file.
82928         (Include): Add "lstat.h", remove <sys/stat.h>.
82929
82930 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82931
82932         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82933         (ranged_convert): Don't save conversion in a temporary struct.
82934         This causes a warning with GCC 4.0.0, and anyway in the typical
82935         case it's not worth the extra 100 bytes or so of code.
82936         (ranged_convert, __mktime_internal): When calling a function via a
82937         pointer P, use P () rather than (*P) (), as we now assume C89 or
82938         better.
82939
82940 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82941
82942         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82943         "who -r" failed to give output.  Problem reported by Tim Waugh.
82944
82945         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82946         (xcalloc): Use it to avoid needless tests.
82947         Problem reported by Jim Meyering.
82948
82949 2005-06-20  Derek Price  <derek@ximbiot.com>
82950
82951         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82952         unnecessary for Autoconfs > 2.59c.
82953
82954 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82955
82956         * lib/argp.h (__option_is_short): Check upper limit of
82957         __key. Isprint() requires its argument to have the value
82958         of an unsigned char or EOF.
82959
82960 2005-06-16  Jim Meyering  <jim@meyering.net>
82961
82962         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82963         when either N or S is zero.
82964
82965 2005-06-16  Derek Price  <derek@ximbiot.com>
82966
82967         * m4/bison.m4: Declare YACC & YFLAGS precious.
82968
82969 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82970
82971         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82972         multibyte string or pattern, fall back on unibyte matching.
82973         Problem reported by James Youngman.
82974
82975 2005-06-08  Bruno Haible  <bruno@clisp.org>
82976
82977         * modules/csharpcomp: New file.
82978         * MODULES.html.sh (C#): Add csharpcomp.
82979
82980 2005-06-08  Bruno Haible  <bruno@clisp.org>
82981
82982         * m4/csharpcomp.m4: New file, from GNU gettext.
82983
82984 2005-06-08  Bruno Haible  <bruno@clisp.org>
82985
82986         * lib/csharpcomp.h: New file, from GNU gettext.
82987         * lib/csharpcomp.c: New file, from GNU gettext.
82988         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82989
82990 2005-06-08  Bruno Haible  <bruno@clisp.org>
82991
82992         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82993         warning on mingw.
82994
82995 2005-06-07  Derek Price  <derek@ximbiot.com>
82996
82997         Sync from CVS.
82998         * lib/glob_.h: Indent nested #ifdef.
82999
83000 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83001
83002         Sync from coreutils.
83003         Use "file name" when talking about file names, instead of "filename"
83004         or "path", as per the GNU coding standards.
83005         * lib/mkdir-p.c: Renamed from makepath.c.
83006         (make_dir_parents): Renamed from make_path.  All callers changed.
83007         * lib/mkdir-p.h: Likewise.  All includers changed.
83008         * lib/filenamecat.c: Renamed from path-concat.c.
83009         (file_name_concat): Renamed from path_concat.  All callers changed.
83010         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83011         * lib/filenamecat.h: Likewise.  All includers changed.
83012         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83013         in comments or local variable names.
83014         * lib/basename.c: Likewise.
83015         * lib/canonicalize.c, canonicalize.h: Likewise.
83016         * lib/dirname.c, dirname.h: Likewise.
83017         * lib/euidaccess.c: Likewise.
83018         * lib/exclude.c: Likewise
83019         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83020         * lib/fsusage.c, fsuage.h: Likewise.
83021         * lib/fts.c, fts_.h: Likewise.
83022         * lib/getcwd.c: Likewise.
83023         * lib/getloadavg.c: Likewise.
83024         * lib/mkstemp.c: Likewise.
83025         * lib/mountlist.c, mountlist.h: Likewise.
83026         * lib/openat.c, openat.h: Likewise.
83027         * lib/readlink-stub.c: Likewise.
83028         * lib/readutmp.c, readutmp.h: Likewise.
83029         * lib/rename.c: Likewise.
83030         * lib/rmdir.c: Likewise.
83031         * lib/same.c: Likewise.
83032         * lib/savedir.c: Likewise.
83033         * lib/stripslash.c: Likewise.
83034         * lib/tempname.c: Likewise.
83035         * lib/xreadlink.c: Likewise.
83036         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83037         All uses changed.
83038         * lib/exclude.h: Likewise.
83039
83040         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83041         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83042         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83043         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83044         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83045         files have been getting away with it for years (MORE/BSD 4.3
83046         is extinct now).
83047         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83048         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83049
83050         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83051         Define to 256, not 255, as per modern POSIX.
83052
83053 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83054
83055         Sync from coreutils.
83056         Use "file name" when talking about file names, instead of "filename"
83057         or "path", as per the GNU coding standards.
83058         * MODULES.html.sh: mkdir-p renamed from makepath.
83059         filenamecat renamed from path-concat.
83060         * modules/filenamecat: Renamed from modules/path-concat.
83061         (Files): filenamecat.h and filenamecat.c renamed from
83062         path-concat.h and path-concat.c.
83063         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83064         (Include): filenamecat.h, not path-concat.h.
83065         * modules/mkdir-p: Renamed from modules/makepath.
83066         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83067         makepath.c.
83068         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83069         (Include): mkdir-p.h, not makepath.h.
83070
83071 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83072
83073         Sync from coreutils.
83074         * m4/mkdir-p.m4: Renamed from makepath.m4.
83075         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83076         Rename files from makepath.c to mkdir-p.c, and from
83077         makepath.h to mkdir-p.h.
83078         * m4/filenamecat.m4: Renamed from path-concat.m4.
83079         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83080         Rename files from path-concat.c to filenamecat.c,
83081         and from path-concat.h to filenamecat.h.
83082         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83083         "file name" in local variables or comments.
83084         * m4/rename.m4: Likewise.
83085
83086 2005-06-01  Bruno Haible  <bruno@clisp.org>
83087
83088         * modules/csharpexec: New file.
83089         * MODULES.html.sh (C#): New section.
83090
83091 2005-06-01  Bruno Haible  <bruno@clisp.org>
83092
83093         * m4/csharp.m4: New file, from GNU gettext.
83094         * m4/csharpexec.m4: New file, from GNU gettext.
83095
83096 2005-06-01  Bruno Haible  <bruno@clisp.org>
83097
83098         * lib/csharpexec.h: New file, from GNU gettext.
83099         * lib/csharpexec.c: New file, from GNU gettext.
83100         * lib/csharpexec.sh.in: New file, from GNU gettext.
83101
83102 2005-05-31  Derek Price  <derek@ximbiot.com>
83103             Paul Eggert  <eggert@cs.ucla.edu>
83104
83105         Sync from cvs.
83106         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83107
83108 2005-05-31  Derek Price  <derek@ximbiot.com>
83109             Paul Eggert  <eggert@cs.ucla.edu>
83110
83111         Sync from cvs.
83112         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83113
83114 2005-05-29  Derek Price  <derek@ximbiot.com>
83115
83116         * config/srclist.txt (glob_.h, glob.c): Add these files.
83117
83118 2005-05-29  Derek Price  <derek@ximbiot.com>
83119
83120         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83121         * modules/glob: New file.
83122         * modules/getlogin_r: Add link to POSIX spec in description.
83123
83124 2005-05-29  Derek Price  <derek@ximbiot.com>
83125             Paul Eggert  <eggert@cs.ucla.edu>
83126
83127         * m4/glob.m4: New file.
83128
83129 2005-05-29  Derek Price  <derek@ximbiot.com>
83130             Paul Eggert  <eggert@cs.ucla.edu>
83131
83132         * lib/glob_.h, lib/glob.c: New files.
83133
83134 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83135
83136         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83137         * modules/fts-lgpl (Depends-on): Remove gettext.
83138
83139 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83140
83141         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83142         and don't require gt_INTTYPES_PRI.
83143
83144 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83145
83146         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83147
83148         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83149         the configuration hassle isn't worth it.
83150         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83151         (LONGEST_MODIFIER, PRIuMAX): Remove.
83152
83153 2005-05-27  Bruno Haible  <bruno@clisp.org>
83154
83155         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83156
83157 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83158
83159         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83160         _POSIX_PTHREAD_SEMANTICS for Solaris.
83161
83162 2005-05-25  Derek Price  <derek@ximbiot.com>
83163
83164         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83165
83166 2005-05-25  Derek Price  <derek@ximbiot.com>
83167             Paul Eggert  <eggert@cs.ucla.edu>
83168
83169         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83170         * lib/getlogin_r.c, getlogin_r.h: New files.
83171
83172 2005-05-25  Bruno Haible  <bruno@clisp.org>
83173             Derek Price  <derek@ximbiot.com>
83174
83175         * lib/getlogin_r.h: Simplify API documentation.
83176
83177 2005-05-23  Derek Price  <derek@ximbiot.com>
83178
83179         * modules/minmax (Files): Add m4/minmax.m4.
83180         (configure.ac): Add gl_MINMAX.
83181
83182 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83183
83184         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83185         so that unistd-safer.h (GPL'ed code) need not be included.
83186
83187 2005-05-22  Bruno Haible  <bruno@clisp.org>
83188
83189         * m4/minmax.m4: New file.
83190         Based on a patch by Derek Price <derek@ximbiot.com>.
83191
83192 2005-05-22  Bruno Haible  <bruno@clisp.org>
83193
83194         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83195         (INT64_MIN): Fix definition.
83196         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83197
83198         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83199         NEED_SIGNED_INT_TYPES.
83200
83201         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83202         HAVE_SYSTEM_INTTYPES.
83203
83204 2005-05-22  Bruno Haible  <bruno@clisp.org>
83205
83206         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83207         Also include <sys/param.h> if it defines MIN, MAX.
83208         Based on a patch by Derek Price <derek@ximbiot.com>.
83209
83210 2005-05-21  Jim Meyering  <jim@meyering.net>
83211
83212         * modules/fts (Files): Add m4/inttypes-pri.m4.
83213         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83214
83215 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83216
83217         New fts module.
83218         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83219         (setup_dir, free_dir): New functions.
83220         (enter_dir, leave_dir): Define trivial
83221         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83222         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83223         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83224         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83225         Move to fts-cycle.c.
83226         (fts_open): Use setup_dir.
83227         (fts_close): Use free_dir.
83228         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83229         This adds a label and some gotos, but the alternatives were messier.
83230         Check for memory allocation failure when entering a dir.
83231         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83232         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83233         (FTS): New member fts_cycle, that is a union that contains the
83234         old active_dir_ht and cycle_state.  All uses changed to mention
83235         fts_cycle.ht and fts_cycle.state.
83236         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83237         fts.c, with the following changes:
83238         (setup_dir, free_dir): New functions.
83239         (enter_dir): Now returns bool.  Return true if successful, false
83240         if memory exhausted.  All callers changed.
83241         Do not bother partly cleaning up on
83242         memory allocation failure; that is free_dir's job.
83243         However, free ad if hash_insert fails, to avoid memory leak.
83244         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83245         fts->fts_options to see which union member to use.
83246
83247 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83248
83249         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83250         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83251
83252 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83253
83254         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83255
83256 2005-05-20  Jim Meyering  <jim@meyering.net>
83257
83258         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83259         Now a macro, to pacify GCC.
83260
83261 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83262
83263         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83264         of -1.
83265
83266 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83267
83268         * lib/chown.c (rpl_chown): Return -1 on failure.
83269
83270 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83271
83272         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83273         Don't check for stddef.h.
83274         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83275         don't use its results.
83276         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83277         since we include them unconditionally.  Don't require
83278         AM_STDBOOL_H, since stdbool is a prerequisite.
83279         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83280         since we assume C89 or better.
83281         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83282         as we don't use their results.
83283         Don't check for fchdir, memmove, memset, strrchr, as we use
83284         them unconditionally.
83285         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83286         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83287
83288 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83289
83290         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83291         Include <stddef.h> unconditionally, since we assume C89 now.
83292         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83293         * lib/fts.c: Include fts_.h first, to check interface.
83294         Do not include intprops.h; no longer needed.
83295         Include cycle-check.h and hash.h, since fts_.h no longer does.
83296         Remove unnecessary casts of closedir to void.
83297         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83298         decide whether to decrement nlinks.
83299         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83300         (FTS): Use struct hash_table * instead of Hash_table, so that
83301         we no longer need to include hash.h here.
83302
83303 2005-05-18  Jim Meyering  <jim@meyering.net>
83304
83305         * modules/dirfd (License): Change to LGPL.  Most of the code
83306         is already in the public domain.
83307
83308 2005-05-18  Jim Meyering  <jim@meyering.net>
83309
83310         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83311         Reported by Yoann Vandoorselaere.
83312
83313 2005-05-17  Jim Meyering  <jim@meyering.net>
83314
83315         * m4/fts.m4: New file, from coreutils.
83316
83317 2005-05-17  Jim Meyering  <jim@meyering.net>
83318
83319         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83320
83321 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83322
83323         Sync from coreutils.
83324         * m4/unlinkdir.m4: New file.
83325
83326 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83327
83328         Sync from coreutils.
83329         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83330         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83331         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83332         White space changes only.
83333         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83334         special.
83335         * lib/yesno.c: Include getline.h, not ctype.h.
83336         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83337         Use getline to remove arbitrary restriction on response length.
83338
83339 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83340
83341         * config/srclist-update: Spell out "Street" in FSF postal
83342         mail address; this is the style the FSF seems to prefer.
83343
83344         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83345         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83346         this updates FSF postal mail address.
83347
83348         Sync from coreutils.
83349         * modules/unlinkdir: New file.
83350         * modules/yesno (Depends-on): Add getline.
83351         * MODULES.html.sh (File system functions): Add unlinkdir.
83352
83353 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83354
83355         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83356         lib/strsep.h:
83357         Change the initial comment to refer to GPL, not LGPL.
83358         gnulib-tool will change it to LGPL as needed.
83359
83360         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83361         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83362         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83363         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83364         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83365         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83366         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83367         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83368         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83369         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83370         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83371         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83372         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83373         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83374         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83375         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83376         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83377         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83378         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83379         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83380         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83381         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83382         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83383         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83384         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83385         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83386         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83387         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83388         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83389         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83390         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83391         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83392         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83393         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83394         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83395         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83396         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83397         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83398         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83399         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83400         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83401         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83402         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83403         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83404         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83405         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83406         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83407         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83408         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83409         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83410         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83411         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83412         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83413         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83414         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83415         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83416         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83417         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83418         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83419         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83420         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83421         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83422         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83423         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83424         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83425         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83426         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83427         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83428         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83429         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83430         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83431         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83432         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83433         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83434         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83435         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83436         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83437         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83438         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83439         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83440         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83441         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83442         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83443         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83444         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83445         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83446         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83447         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83448         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83449         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83450         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83451         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83452         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83453         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83454         lib/yesno.c, lib/yesno.h:
83455         Update FSF postal mail address.
83456
83457 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83458
83459         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83460         tests/test-memmem.c, tests/test-stpncpy.c:
83461         Update FSF postal mail address.
83462
83463 2005-05-13  Bruno Haible  <bruno@clisp.org>
83464
83465         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83466         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83467         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83468         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83469         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83470         Add support for 64-bit integers in the MSVC compiler.
83471
83472 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83473
83474         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83475
83476 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83477
83478         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83479
83480 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83481
83482         * doc/getdate.texi (General date syntax): Don't say that date
83483         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83484         Problem reported by Nic Ferrier.
83485
83486 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83487
83488         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83489         specified in ai_socktype. Fix invalid ai_protocol
83490         check. ai_protocol is usually set to 0 or depending on
83491         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83492         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83493         ai_socktype / ai_protocol in the returned addrinfo structure.
83494
83495 2005-05-10  Simon Josefsson  <jas@extundo.com>
83496
83497         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83498         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83499
83500 2005-05-10  Karl Berry  <karl@gnu.org>
83501
83502         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83503         (from http://www.gnu.org/licenses).
83504         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83505         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83506         fdl.texi suffices.
83507
83508 2005-05-10  Karl Berry  <karl@gnu.org>
83509
83510         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83511         (COPYING.DOC): remove.
83512
83513         * config/srclist-update: new FSF address.
83514
83515 2005-05-10  Derek Price  <derek@ximbiot.com>
83516
83517         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83518         possible.
83519
83520 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83521             Bruno Haible  <bruno@clisp.org>
83522
83523         * modules/inet_ntop: New file.
83524         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83525         inet_ntop.
83526
83527 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83528             Bruno Haible  <bruno@clisp.org>
83529
83530         * m4/inet_ntop.m4: New file.
83531
83532 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83533             Bruno Haible  <bruno@clisp.org>
83534
83535         * lib/inet_ntop.h: New file.
83536         * lib/inet_ntop.c: New file, from glibc with modifications.
83537
83538 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83539
83540         * modules/time_r (License): Change to LGPL.
83541         * modules/extensions (License): Change to LGPL.  Actually,
83542         the license is more permissive than that, but currently gnulib-tool
83543         doesn't know how to handle more-permissive licenses.
83544
83545         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83546         Problem reported by Dave Love.
83547
83548 2005-05-08  Jim Meyering  <jim@meyering.net>
83549
83550         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83551         blank.
83552
83553 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83554
83555         * modules/argmatch (Depends-on): Add stdbool.
83556         * modules/backupfile (Depends-on): Likewise.
83557         * modules/chdir-long (Depends-on): Likewise.
83558         * modules/closeout (Depends-on): Likewise.
83559         * modules/cycle-check (Depends-on): Likewise.
83560         * modules/dirname (Depends-on): Likewise.
83561         * modules/fnmatch (Depends-on): Likewise.
83562         * modules/fsusage (Depends-on): Likewise.
83563         * modules/fwriteerror (Depends-on): Likewise.
83564         * modules/getcwd (Depends-on): Likewise.
83565         * modules/getloadavg (Depends-on): Likewise.
83566         * modules/hard-locale (Depends-on): Likewise.
83567         * modules/makepath (Depends-on): Likewise.
83568         * modules/mountlist (Depends-on): Likewise.
83569         * modules/nanosleep (Depends-on): Likewise.
83570         * modules/posixtm (Depends-on): Likewise.
83571         * modules/quotearg (Depends-on): Likewise.
83572         * modules/readtokens (Depends-on): Likewise.
83573         * modules/readtokens0 (Depends-on): Likewise.
83574         * modules/readutmp (Depends-on): Likewise.
83575         * modules/save-cwd (Depends-on): Likewise.
83576         * modules/strftime (Depends-on): Likewise.
83577         * modules/userspec (Depends-on): Likewise.
83578         * modules/utimecmp (Depends-on): Likewise.
83579         * modules/xgetcwd (Depends-on): Likewise.
83580         * modules/xnanosleep (Depends-on): Likewise.
83581         * modules/xstrtod (Depends-on): Likewise.
83582         * modules/yesno (Depends-on): Likewise.
83583
83584 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83585
83586         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83587         needless checks.
83588
83589 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83590
83591         Merge from coreutils.  Among other things,
83592         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83593         * lib/fd-safer.c: New file.
83594         * lib/fcntl-safer.h, open-safer.c: Remove.
83595         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83596         * lib/dup-safer.c: Include unistd-safer.h first.
83597         Don't include errno.h.
83598         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83599         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83600         * lib/file-type.c: Rely on file-type.h change.
83601         * lib/getloadavg.c: Include unistd-safer.h.
83602         (getloadavg): Use safer open.
83603         * lib/getusershell.c: Include "stdio-safer.h".
83604         (getusershell): Use safer fopen.
83605         * lib/long-options.c (long_options): Use NULL rather than 0.
83606         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83607         'free'.
83608         * lib/modechange.c: Likewise.
83609         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83610         (MODE_DONE): New constant.
83611         (struct mode_change): Remove 'next' member.
83612         (make_node_op_equals): New function; like the old one of the
83613         same name, except it allocates an array.
83614         (mode_compile, mode_create_from_ref): Use it.
83615         (mode_compile): Allocate result as an array, not a linked list.
83616         Parse octal string ourself, so that we catch mistakes like "+0".
83617         (mode_adjust): Arg is an array, not a linked list.
83618         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83619         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83620         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83621         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83622         Remove.  This is now stat-macros.h's job.
83623         (talloc): Remove.  All callers replaced by xalloc, so that
83624         our invokers don't have to worry about reporting memory failures.
83625         (make_node_op_equals): Remove.
83626         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83627         New constants.
83628         (struct mode_change): Moved here from modechange.h.
83629         (mode_append_entry): Remove.
83630         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83631         apps to have incorrect behavior.  Use simpler algorithm for head
83632         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83633         Detect more invalid usages rather than having somewhat-random behavior.
83634         Don't insert an "a=" action, as that leads to incorrect behavior.
83635         (mode_compile, mode_create_from_ref): Return NULL on error instead
83636         of an enum, since now there's only one way to have an error.  All
83637         callers changed.
83638         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83639         at the correct time.  Simplify calculation of "+u" and its ilk.
83640         Don't mishandle "+X".
83641         (mode_free): Remove "register" and localize decls.
83642         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83643         (struct mode_change): Move to modechange.c; callers don't
83644         need to see this stuff.
83645         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83646         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83647         (mode_change, mode_adjust): Reflect the new signatures noted above.
83648         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83649         that might redefine system include files.
83650         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83651         (my_usleep): Use NULL rather than (void *) 0.
83652         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83653         Use siginterrupt to specify that system calls should be interrupted.
83654         (rpl_nanosleep): Move initialization of suspended closer to call of
83655         my_usleep.
83656         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83657         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83658         (desirable_utmp_entry): New function.
83659         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83660         using x2nrealloc, to simplify logic.
83661         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83662         size calculation.  Do not assume utmp file is a regular file.
83663         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83664         (READ_UTMP_CHECK_PIDS): New constant.
83665         * lib/save-cwd.c: Include unistd-safer.h.
83666         (save_cwd): Use fd_safer.
83667         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83668         [!_LIBC] Include "stat-macros.h" instead.
83669         * lib/unistd-safer.h (fd_safer): New decl.
83670
83671 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83672
83673         * modules/getloadavg (Depends-on): Add unistd-safer.
83674         * modules/getusershell (Depends-on): Add stdio-safer.
83675         * modules/lstat (Depends-on): Remove xalloc.
83676         * modules/mkstemp (Depends-on): Add stat-macros.
83677         * modules/modechange (Depends-on): Remove xstrtol.
83678         Add stat-macros, xalloc.
83679         * modules/save-cwd (Depends-on): Add unistd-safer.
83680         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83681         * modules/unistd-safer (Files): Add lib/fd-safer.c
83682         (Makefile.am): Remove lib_SOURCES.
83683
83684         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83685         Remove fcntl-safer; unistd-safer supersedes it.
83686
83687 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83688
83689         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83690         AC_HEADER_STAT.
83691         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83692         (gl_PREREQ_CHOWN): Remove.
83693         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83694         it.  Don't require AC_HEADER_STAT.
83695         (gl_PREREQ_LSTAT): Remove.
83696         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83697         Don't require AC_HEADER_STAT.
83698         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83699         (gl_PREREQ_RMDIR): Remove.
83700         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83701         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83702         the stat-macros module a prerequisite.
83703         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83704         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83705         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83706         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83707         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83708         variable names.
83709         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83710         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83711         variable prefixes.
83712         * m4/fcntl-safer.m4: Remove.
83713         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83714         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83715         Invoke gl_PREREQ_FD_SAFER.
83716         (gl_PREREQ_FD_SAFER): New macro.
83717         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83718         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83719         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83720         Remove duplicate call to AC_LIBOBJ(readutmp).
83721         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83722
83723         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83724         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83725
83726 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83727
83728         * MODULES.html.sh (Misc): Add byteswap.
83729
83730 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83731
83732         * modules/getcwd (Depends-on): Add extensions.
83733         * modules/openat (Depends-on): Likewise.
83734
83735 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83736
83737         * modules/byteswap: New file.
83738
83739 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83740
83741         * m4/byteswap.m4: New file.
83742
83743 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83744
83745         * lib/byteswap_.h: New file.
83746
83747 2005-04-25  Karl Berry  <karl@gnu.org>
83748
83749         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83750
83751 2005-04-25  Albert Chin  <china@thewrittenword.com>
83752
83753         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83754         Toolkit C bug.
83755
83756 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83757
83758         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83759         (func_ln_if_changed): Remove forcibly for no error message
83760         in case file does not exist.
83761
83762 2005-04-19  Simon Josefsson  <jas@extundo.com>
83763
83764         * gnulib-tool (Options): Make --symlink mean --symbolic.
83765
83766 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83767
83768         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83769
83770 2005-04-16  Simon Josefsson  <jas@extundo.com>
83771
83772         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83773
83774 2005-04-15  Simon Josefsson  <jas@extundo.com>
83775
83776         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83777
83778 2005-04-15  Simon Josefsson  <jas@extundo.com>
83779
83780         * gnulib-tool: Rename --symlink to --symbolic.
83781
83782 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83783
83784         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83785         symbolic links to files instead of copying/moving.  Add --aux-dir,
83786         specifying directory relative --dir where auxiliary build tools
83787         are placed.
83788
83789 2005-04-14  Bruno Haible  <bruno@clisp.org>
83790
83791         * modules/allocsa (License): Change to LGPL.
83792         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83793
83794 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83795
83796         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83797         that "UTC +1 second" continues to work.  Problem reported
83798         by Dmitry V. Levin.
83799         (relunit_snumber): New rule.
83800         (relunit): Use it.
83801
83802 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83803
83804         * lib/getdate.y (universal_time_zone_table): New constant.
83805         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83806         universal_time_zone_table.
83807         (lookup_zone): Prefer universal_time_zone_table to
83808         local_time_zone_table, so that "GMT" time stamps are allowed in
83809         London during the summer.  Problem reported by Ian Abbott.
83810
83811 2005-04-12  Jim Meyering  <jim@meyering.net>
83812
83813         * lib/human.c (humblock): Set *options even when returning due to
83814         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83815         warning from gcc-4.
83816
83817 2005-04-09  Jim Meyering  <jim@meyering.net>
83818
83819         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83820         -Wuninitialized: initialize tm0.tm_year.
83821
83822 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83823
83824         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83825         count, since there's no maximum.  All uses changed.
83826         Add member dsts_seen.
83827         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83828         not being INT_MAX.
83829         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83830         Use pc_rels_seen to decide whether a date is absolute.
83831
83832         * lib/getdate.y (number): Don't overwrite year.
83833         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83834         check.
83835
83836 2005-04-02  Simon Josefsson  <jas@extundo.com>
83837
83838         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83839         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83840
83841 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83842
83843         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83844         where no absolute path name can be longer than PATH_MAX.
83845
83846 2005-03-27  Jim Meyering  <jim@meyering.net>
83847
83848         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83849
83850 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83851
83852         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83853         "one's complement" -> "ones' complement" in comment, as per Knuth.
83854         "value of type" -> "type or expression" in comment.
83855         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83856
83857 2005-03-26  Jim Meyering  <jim@meyering.net>
83858
83859         Comment nits.
83860         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83861         Correct typos: s/or/of/.
83862
83863 2005-03-26  Jim Meyering  <jim@meyering.net>
83864
83865         * modules/check-include-files: Move to ../ and rename to...
83866         * check-module: ...this.
83867
83868 2005-03-25  Jim Meyering  <jim@meyering.net>
83869
83870         * modules/xvasprintf (Files): Add xalloc.h.
83871
83872 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83873
83874         * modules/gettext (Files): config/config.rpath ->
83875         build-aux/config.rpath
83876         * modules/iconv (Files): Likewise.
83877         Problem reported by Oskar Liljeblad.
83878
83879 2005-03-23  Jim Meyering  <jim@meyering.net>
83880
83881         * modules/check-include-files: New script to check for
83882         missing dependencies, multiple includes, etc.
83883
83884         * modules/c-strtold (Depends-on): Add xalloc.
83885         * modules/c-strtod (Depends-on): Add xalloc.
83886         * modules/hash (Depends-on): Add xalloc.
83887         (Files): Remove lib/xalloc.h.
83888
83889         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83890         * modules/userspec (Files): Add lib/inttostr.h.
83891
83892 2005-03-23  Jim Meyering  <jim@meyering.net>
83893
83894         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83895
83896 2005-03-22  Jim Meyering  <jim@meyering.net>
83897
83898         * modules/stat-macros: New module.
83899         * modules/canonicalize, modules/euidaccess, modules/file-type,
83900         * modules/filemode, modules/lchown, modules/makepath,
83901         * modules/rmdir, modules/stat: Depend on new stat-macros module
83902         rather than listing lib/stat-macros.h manually.
83903         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83904
83905 2005-03-22  Jim Meyering  <jim@meyering.net>
83906
83907         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83908
83909 2005-03-22  Bruno Haible  <bruno@clisp.org>
83910
83911         * config/srclist.txt: Replace target directory 'config' with
83912         'build-aux'.
83913         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83914         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83915         ../build-aux/.
83916
83917 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83918
83919         * modules/chdir-long (Depends-on): Add mempcpy.
83920
83921         * modules/acl, modules/backupfile, modules/c-strtod,
83922         modules/c-strtold, modules/canon-host, modules/canonicalize,
83923         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83924         modules/exclude, modules/exitfail, modules/file-type,
83925         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83926         modules/getdate, modules/getline, modules/getpagesize,
83927         modules/getpass, modules/getugroups, modules/group-member,
83928         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83929         modules/inttostr, modules/long-options, modules/makepath,
83930         modules/md5, modules/memcasecmp, modules/memcoll,
83931         modules/modechange, modules/mountlist, modules/path-concat,
83932         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83933         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83934         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83935         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83936         modules/strftime, modules/strndup, modules/strverscmp,
83937         modules/timespec, modules/unlocked-io, modules/userspec,
83938         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83939         modules/yesno:
83940         Remove lib_SOURCES line from Makefile.am section, as this is now
83941         done automatically by the corresponding Autoconf macro.
83942
83943 2005-03-21  Jim Meyering  <jim@meyering.net>
83944
83945         Changes imported from coreutils.
83946
83947         * lib/cycle-check.c: Don't include xalloc.h.
83948
83949         * lib/path-concat.c: Don't include assert.h.
83950         (path_concat): Remove assertion that would have triggered
83951         for ABASE starting with more than one slash.
83952         Reported by Andreas Schwab.
83953
83954         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83955         properly when ABASE is an absolute file name.
83956         Correct the description of this function.
83957         Include <assert.h>.
83958         Add an assertion and a test driver.
83959         This fixes a bug introduced on 2004-07-02.
83960         Andreas Schwab reported the resulting failure of cp --parents:
83961         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83962
83963 2005-03-21  Jim Meyering  <jim@meyering.net>
83964
83965         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83966         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83967
83968 2005-03-21  Jim Meyering  <jim@meyering.net>
83969         and  Paul Eggert  <eggert@cs.ucla.edu>
83970
83971         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83972         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83973         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83974         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83975         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83976         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83977         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83978         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83979         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83980         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83981         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83982         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83983         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83984         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83985         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83986         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83987         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83988         for these modules.
83989
83990 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83991
83992         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83993         (which shouldn't happen), generate nothing instead of returning 0
83994         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83995
83996 2005-03-16  Bruno Haible  <bruno@clisp.org>
83997
83998         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83999         HAVE_LONGLONG_64BIT.
84000
84001 2005-03-16  Bruno Haible  <bruno@clisp.org>
84002
84003         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84004         HAVE_LONGLONG_64BIT.
84005
84006 2005-03-16  Bruno Haible  <bruno@clisp.org>
84007
84008         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84009         HAVE_LONGLONG_64BIT.
84010
84011 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84012
84013         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84014         reliably distinguish strftime failure from empty output on POSIX
84015         hosts.
84016
84017 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84018
84019         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84020         (iconv_string): Don't guess a size-zero buffer, as that might cause
84021         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84022         result would be 'too large', where 'too large' is (heuristically)
84023         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84024         overflow concerns.  This will prevent some unwanted malloc failures
84025         when the inputs are very large.
84026
84027 2005-03-15  Karl Berry  <karl@gnu.org>
84028
84029         * config/srclist.txt (config.rpath): from gettext.
84030         * config/config.rpath: update.
84031
84032 2005-03-15  Bruno Haible  <bruno@clisp.org>
84033
84034         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84035         to 'negate'.
84036
84037         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84038         variable.
84039
84040         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84041         results.
84042
84043 2005-03-14  Simon Josefsson  <jas@extundo.com>
84044
84045         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84046         <fx@gnu.org>.
84047
84048 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84049
84050         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84051         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84052         intprops.h.
84053         * lib/strtol.c: Likewise.
84054
84055 2005-03-14  Jim Meyering  <jim@meyering.net>
84056
84057         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84058         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84059         to be nonzero so that we (and caller) can detect the difference
84060         between a valid zero-length expansion and an error return, even
84061         when the underlying strftime fails before writing anything into
84062         that location.
84063
84064 2005-03-14  Bruno Haible  <bruno@clisp.org>
84065
84066         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84067         Update from GNU gettext 0.14.3.
84068
84069 2005-03-10  Jim Meyering  <jim@meyering.net>
84070
84071         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84072
84073 2005-03-10  Jim Meyering  <jim@meyering.net>
84074
84075         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84076         so that this module works on systems without fchdir.
84077
84078 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84079
84080         Factor int-properties macros into a single file, except for
84081         glibc-related files.
84082         * lib/intprops.h: New file.
84083         * lib/getloadavg.c: Include it instead of limits.h.
84084         (INT_STRLEN_BOUND): Remove.
84085         * lib/human.c: Include intprops.h.
84086         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84087         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84088         302/1000.
84089         * lib/inttostr.h: Include intprops.h instead of limits.h.
84090         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84091         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84092         for consistency with intprops.h.
84093         (time_t_is_integer, twos_complement_arithmetic): Use them.
84094         * lib/sig2str.h: Include <signal.h>, intprops.h.
84095         (INT_STRLEN_BOUND): Remove.
84096         * lib/strftime.c (TYPE_SIGNED): Remove.
84097         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84098         * lib/strtol.c: Adjust comments to match intprops.h.
84099         * lib/userspec.c: Include intprops.h.
84100         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84101         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84102         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84103         instead of rolling our own expressions.
84104         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84105
84106         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84107         instead of int.
84108         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84109         the right thing even if adding 1900 would overflow.  Similarly
84110         for tm_mon + 1 and tm_yday + 1.
84111         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84112         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84113         (DO_SIGNED_NUMBER): New macro.
84114         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84115
84116 2005-03-07  Bruno Haible  <bruno@clisp.org>
84117
84118         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84119
84120 2005-03-07  Bruno Haible  <bruno@clisp.org>
84121
84122         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84123
84124 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84125
84126         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84127         (func_import): Only replace files via --import when they have actually
84128         changed.
84129
84130 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84131
84132         * m4/mmap-anon.m4: New file.
84133         * m4/pagealign_alloc.m4: New file.
84134
84135 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84136             Bruno Haible  <bruno@clisp.org>
84137
84138         * modules/pagealign_alloc: New file.
84139         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84140
84141 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84142             Bruno Haible  <bruno@clisp.org>
84143
84144         * lib/pagealign_alloc.h: New file.
84145         * lib/pagealign_alloc.c: New file.
84146
84147 2005-03-03  Bruno Haible  <bruno@clisp.org>
84148
84149         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84150         Use an all-permissive copyright notice, recommended by RMS.
84151
84152 2005-03-02  Bruno Haible  <bruno@clisp.org>
84153
84154         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84155         of AIX, the replacement has to be done only after <string.h> is
84156         included, therefore not in config.h. stpncpy.h does the replacement,
84157         and stpncpy.c uses it.
84158
84159 2005-03-02  Bruno Haible  <bruno@clisp.org>
84160
84161         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84162         stpncpy.c uses it.
84163
84164 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84165
84166         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84167         The workaround isn't strictly needed for POSIX conformance, and
84168         it's too much of a pain to configure and maintain.  We'll ask
84169         people to fix their kernels instead.
84170         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84171         (NANOSLEEP_BUG_WORKAROUND): Remove.
84172         (xnanosleep): Remove the workaround.
84173
84174 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84175
84176         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84177         Reported by Derek Price.
84178         (Include): Add "timespec.h".
84179
84180         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84181
84182 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84183
84184         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84185         to detect nanosleep bug.
84186
84187 2005-03-01  Bruno Haible  <bruno@clisp.org>
84188
84189         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84190
84191 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84192
84193         * modules/gethrxtime: New file.
84194         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84195         (Depends-on): Add gethrxtime.
84196         (configure.ac): Add gl_XNANOSLEEP.
84197         (Makefile.am): Remove lib_SOURCES line.
84198
84199 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84200
84201         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84202         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84203
84204 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84205
84206         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84207         * lib/timespec.h (gettime): Return void, since it always
84208         succeeds now.  All uses changed.
84209         * lib/gettime.c (gettime): Likewise.
84210         [HAVE_NANOTIME]: Prefer nanotime.
84211         Assume gettimeofday succeeds, as POSIX requires.
84212         Assime time () succeeds, since other code already does.
84213         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84214         (timespec_subtract): Remove.
84215         (NANOSLEEP_BUG_WORKAROUND): New constant.
84216         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84217         things considerably.  Use it only on GNU/Linux hosts, since the
84218         workaround shouldn't be needed elsewhere.
84219
84220 2005-02-24  Bruno Haible  <bruno@clisp.org>
84221
84222         * modules/gettext (Files): Add m4/glibc2.m4.
84223
84224 2005-02-24  Bruno Haible  <bruno@clisp.org>
84225
84226         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84227         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84228         * m4/progtest.m4:
84229         Update from GNU gettext 0.14.2.
84230         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84231
84232 2005-02-24  Bruno Haible  <bruno@clisp.org>
84233
84234         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84235         * lib/config.charset: Update from GNU gettext 0.14.2.
84236
84237 2005-02-24  Bruno Haible  <bruno@clisp.org>
84238
84239         * lib/gettext.h: Update from GNU gettext 0.14.2.
84240
84241 2005-02-23  Simon Josefsson  <jas@extundo.com>
84242
84243         * m4/iconvme.m4: New file.
84244
84245 2005-02-23  Jim Meyering  <jim@meyering.net>
84246
84247         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84248         change.
84249         Thanks to Bruno Haible for catching it.
84250
84251 2005-02-22  Simon Josefsson  <jas@extundo.com>
84252
84253         * modules/iconvme: New file.
84254
84255         * MODULES.html.sh: Add iconvme.
84256
84257 2005-02-22  Simon Josefsson  <jas@extundo.com>
84258
84259         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84260
84261 2005-02-22  Simon Josefsson  <jas@extundo.com>
84262
84263         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84264
84265 2005-02-22  Jim Meyering  <jim@meyering.net>
84266
84267         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84268         s/ifndef/ifdef/.
84269
84270 2005-02-20  Neil Conway  <neilc@samurai.com>
84271
84272         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84273         returned by OSX/Darwin if the specified buffer is not large
84274         enough for the hostname.
84275
84276 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84277
84278         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84279         pass it to _help, otherwise the latter coredumps trying to
84280         dereference state.root_argp.
84281
84282 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84283
84284         * modules/chdir-long (Depends-on): Add memrchr.
84285         * modules/memrchr (Files): Add lib/memrchr.h.
84286         (Include): "memrchr.h".
84287
84288 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84289
84290         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84291
84292 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84293
84294         * lib/memrchr.h: New file.
84295         * lib/chdir-long.c: Include it.
84296         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84297         Don't bother including stddef.h.
84298
84299 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84300
84301         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84302         inclusion.
84303         Include <sys/types.h>, for dev_t.
84304         (ME_DUMMY, ME_REMOTE): Move from here....
84305         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84306         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84307         Dmitry V. Levin.
84308         Include mountlist.h first, to test the interface.
84309
84310 2005-01-29  Bruno Haible  <bruno@clisp.org>
84311
84312         * lib/progname.c (program_name): Initialize.
84313         Needed when linking statically on MacOS X.
84314
84315 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84316
84317         Sync from coreutils.
84318         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84319         (Depends-on): Add c-strtod.
84320         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84321
84322 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84323
84324         Sync from coreutils.
84325         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84326
84327         Remove files that are specific to coreutils.
84328         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84329
84330 2005-01-28  Bruno Haible  <bruno@clisp.org>
84331
84332         * modules/javacomp: New file.
84333         * MODULES.html.sh (Java): Add javacomp.
84334
84335 2005-01-28  Bruno Haible  <bruno@clisp.org>
84336
84337         * m4/javacomp.m4: New file, from GNU gettext.
84338
84339 2005-01-28  Bruno Haible  <bruno@clisp.org>
84340
84341         * lib/javacomp.sh.in: New file, from GNU gettext.
84342         * lib/javacomp.h: New file, from GNU gettext.
84343         * lib/javacomp.c: New file, from GNU gettext.
84344
84345 2005-01-26  Simon Josefsson  <jas@extundo.com>
84346
84347         * lib/gai_strerror.c: Use GPL in header.
84348
84349 2005-01-26  Bruno Haible  <bruno@clisp.org>
84350
84351         * modules/javaexec: New file.
84352         * MODULES.html.sh (Java): Add javaexec.
84353
84354 2005-01-26  Bruno Haible  <bruno@clisp.org>
84355
84356         * m4/javaexec.m4: New file, from GNU gettext.
84357
84358 2005-01-26  Bruno Haible  <bruno@clisp.org>
84359
84360         * lib/javaexec.sh.in: New file, from GNU gettext.
84361         * lib/javaexec.h: New file, from GNU gettext.
84362         * lib/javaexec.c: New file, from GNU gettext.
84363
84364 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84365
84366         * modules/lchown (Depends-on): Remove lchown.h
84367
84368 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84369
84370         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84371         must be defined if the header file was not found, in order
84372         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84373
84374 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84375
84376         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84377         initializers for struct pentry_state.
84378         (__argp_error): Check return value of __asprintf
84379         (__argp_failure): Translate error message
84380
84381         * lib/argp-parse.c: Removed braces around the expansion of N_()
84382
84383 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84384
84385         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84386         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84387         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84388         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84389         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84390         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84391         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84392         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84393         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84394         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84395         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84396         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84397         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84398         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84399         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84400         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84401         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84402         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84403         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84404         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84405         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84406         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84407         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84408         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84409         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84410         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84411         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84412         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84413         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84414         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84415         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84416         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84417         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84418         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84419         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84420         Use an all-permissive copyright notice, recommended by RMS.
84421
84422 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84423
84424         * modules/chdir-long (Depends-on): Remove mempcpy.
84425
84426 2005-01-21  Jim Meyering  <jim@meyering.net>
84427
84428         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84429         same value as for Solaris 9.
84430
84431         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84432         component length.  This included changing the parameter to be
84433         of type `char *' rather than `char const *'.
84434         * lib/chdir-long.h (chdir_long): Update prototype.
84435
84436         * lib/openat.c (fdopendir, fstatat): New functions.
84437         * lib/openat.h: Include headers required for use of DIR and struct
84438         stat.
84439         [AT_SYMLINK_NOFOLLOW]: Define.
84440         (fdopendir, fstatat): Add prototypes.
84441
84442 2005-01-21  Bruno Haible  <bruno@clisp.org>
84443
84444         * modules/classpath: New file.
84445         * MODULES.html.sh (Java): Add classpath.
84446
84447 2005-01-21  Bruno Haible  <bruno@clisp.org>
84448
84449         * lib/classpath.h: New file, from GNU gettext.
84450         * lib/classpath.c: New file, from GNU gettext.
84451
84452 2005-01-20  Simon Josefsson  <jas@extundo.com>
84453
84454         * modules/version-etc-fsf: New file.
84455
84456 2005-01-20  Simon Josefsson  <jas@extundo.com>
84457
84458         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84459         * lib/version-etc.c: Remove version_etc_copyright.
84460         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84461         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84462
84463 2005-01-20  Simon Josefsson  <jas@extundo.com>
84464
84465         * lib/base64.h (isbase64): Add.
84466
84467         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84468         using a unsigned prototype, don't inline.
84469         (base64_decode): Use it.
84470
84471 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84472
84473         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84474         it.
84475
84476 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84477
84478         * lib/save-cwd.c (save_cwd): Remove code to support the case
84479         where fchdir is missing or flaky.
84480
84481 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84482
84483         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84484
84485 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84486
84487         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84488         AC_LIBSOURCES now does this.
84489         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84490         with new ullong_max module.
84491
84492 2005-01-19  Bruno Haible  <bruno@clisp.org>
84493
84494         * modules/sh-quote: New file.
84495         * MODULES.html.sh (Executing programs): Add sh-quote.
84496
84497 2005-01-19  Bruno Haible  <bruno@clisp.org>
84498
84499         * lib/sh-quote.h: New file, from GNU gettext.
84500         * lib/sh-quote.c: New file, from GNU gettext.
84501
84502 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84503
84504         Merge from coreutils.
84505         * m4/ullong_max.m4: New file.
84506         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84507         (gl_MACROS): Assume localeconv exists.
84508
84509 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84510
84511         Merge changes from coreutils, as described below in several
84512         changelogs dated today.
84513
84514         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84515         (O_DIRECTORY): Remove; not needed here, since "." must be
84516         a directory.  All uses removed.
84517         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84518         universal on Suns, and we also need to test for IRIX.
84519         Revamp code to use 'if' rather than '#if'.
84520         Avoid unnecessary comparison of cwd->desc to 0.
84521
84522         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84523         for known valid error numbers rather than observed invalid ones.
84524
84525 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84526
84527         * modules/ullong_max: New file.
84528
84529         * modules/chdir-long, modules/openat: New files.
84530         * modules/save-cwd (Depends-on): Depend on chdir-long.
84531         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84532
84533 2005-01-18  Jim Meyering  <jim@meyering.net>
84534
84535         Merge from coreutils.
84536         * m4/chdir-long.m4, m4/openat.m4: New files.
84537         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84538         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84539         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84540         is sane and DOES follow symlinks.  Besides, testing 20 different
84541         systems found no broken chown implementations.
84542         Prompted by a change in rsync's copy of this macro.
84543         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84544
84545         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84546
84547         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84548         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84549         NULL-means-set-to-current-time semantics.
84550         Remove temporary file immediately, rather than waiting
84551         for configure's at-exit trap code to do it.
84552
84553 2005-01-18  Jim Meyering  <jim@meyering.net>
84554
84555         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84556
84557         * lib/utimens.c (futimens): Account for the fact that futimes
84558         can also fail with errno == ENOSYS or errno == ENOENT.
84559         Patch from Dmitry V. Levin.
84560
84561         Change the name of the robust chdir function from chdir to chdir_long.
84562         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84563         (restore_cwd): Use chdir_long, not chdir.
84564         * lib/chdir-long.c: Renamed from chdir.c.
84565         * lib/chdir-long.h: Renamed from chdir.h.
84566         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84567         Hurd.
84568
84569 2005-01-18  Bruno Haible  <bruno@clisp.org>
84570
84571         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84572         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84573         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84574         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84575         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84576         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84577         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84578         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84579         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84580         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84581         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84582         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84583         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84584         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84585         Use an all-permissive copyright notice, recommended by RMS.
84586
84587 2005-01-18  Bob Proulx  <bob@proulx.com>
84588
84589         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84590         simplify offsetof() macro construct to avoid compile failure with
84591         native HP-UX 11.0 ANSI C compiler.
84592
84593 2005-01-17  Bruno Haible  <bruno@clisp.org>
84594
84595         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84596         redundant because stpncpy.m4 takes care of it.
84597
84598 2005-01-17  Bruno Haible  <bruno@clisp.org>
84599
84600         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84601
84602 2005-01-17  Bruno Haible  <bruno@clisp.org>
84603
84604         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84605         used.
84606
84607 2005-01-17  Bruno Haible  <bruno@clisp.org>
84608
84609         * lib/fwriteerror.h (fwriteerror): Change specification to include
84610         fclose.
84611         * lib/fwriteerror.c: Include <stdbool.h>.
84612         (fwriteerror): At the end, close the file stream. Record whether
84613         stdout was already closed.
84614
84615 2005-01-17  Bruno Haible  <bruno@clisp.org>
84616
84617         * lib/execute.c (environ): Declare if needed.
84618         * lib/pipe.c (environ): Likewise.
84619         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84620
84621 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84622
84623         * modules/argp: Depend on vsnprintf
84624
84625 2005-01-10  Jim Meyering  <jim@meyering.net>
84626
84627         * modules/closeout (Depends-on): Add atexit.
84628
84629 2005-01-06  Bruno Haible  <bruno@clisp.org>
84630
84631         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84632
84633 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84634
84635         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84636         definitions to be after all include files, to avoid collisions.
84637         Problem reported by Bob Proulx.
84638
84639 2005-01-04  Jim Meyering  <jim@meyering.net>
84640
84641         Changes imported from coreutils.
84642         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84643         as the mkstemp template, use a temporary directory and an
84644         8.3-friendly template to avoid trouble on systems like DJGPP.
84645         Reported by Juan M. Guerrero via Stepan Kasal.
84646         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84647         close. Remove the temporary directory right away, rather than waiting
84648         for configure's at-exit trap code to do it.
84649         Suggestion from Stepan Kasal.
84650
84651 2005-01-01  Simon Josefsson  <jas@extundo.com>
84652
84653         * gnulib-tool: Print #include directives when --import'ing.
84654
84655 2004-12-28  Simon Josefsson  <jas@extundo.com>
84656
84657         * tests/test-base64.c: Include required header files.  Remove
84658         unused variables.
84659
84660 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84661
84662         * modules/error (Depends-on): Remove gettext.
84663
84664 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84665
84666         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84667         not needed.  This removes a dependency on the gettext module.
84668         [defined _LIBC]: Do not include <libintl.h>; not needed.
84669
84670 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84671
84672         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84673         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84674
84675 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84676
84677         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84678         HAVE_DECL_STRTOLD.
84679
84680 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84681
84682         * modules/getdate (Depends-on): Remove alloca-opt.
84683
84684 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84685
84686         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84687
84688 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84689
84690         * lib/argp-parse.c: Include <stddef.h>.
84691         (alignof, alignto): New macros.
84692         (parser_init): Don't assume that void * is aligned sufficiently
84693         for struct option.
84694
84695         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84696         need to extend the stack.
84697         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84698         large.
84699
84700 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84701
84702         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84703
84704 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84705
84706         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84707         (2004-10-24) change.  Apparently this was a false alarm.
84708
84709         * modules/getdate: Depend on alloca-opt, not alloca.
84710
84711 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84712
84713         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84714         Remove now-obsolete comment about AIX.
84715         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84716         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84717         (YYMAXDEPTH): New macro.
84718
84719 2004-12-18  Simon Josefsson  <jas@extundo.com>
84720
84721         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84722
84723 2004-12-18  Bruno Haible  <bruno@clisp.org>
84724
84725         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84726
84727 2004-12-18  Bruno Haible  <bruno@clisp.org>
84728
84729         * lib/fatal-signal.c (fatal_signals): Make non-const.
84730         (init_fatal_signals): New function.
84731         (uninstall_handlers, install_handlers): Ignore signals that were set to
84732         SIG_IGN.
84733         (at_fatal_signal): Call init_fatal_signals.
84734         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84735         SIG_IGN.
84736         Reported by Paul Eggert.
84737
84738 2004-12-18  Bruno Haible  <bruno@clisp.org>
84739
84740         * doc/alloca.texi: New file.
84741         * doc/alloca-opt.texi: New file.
84742
84743 2004-12-17  Jim Meyering  <jim@meyering.net>
84744
84745         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84746         Otherwise, install-sh could exit with improper exit status when
84747         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84748
84749 2004-12-16  Simon Josefsson  <jas@extundo.com>
84750
84751         * tests/test-base64.c: Add license.
84752
84753 2004-12-15  Stepan Kasal  <address@hidden>
84754
84755         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84756
84757 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84758
84759         * modules/getcwd (Files): Add m4/d-ino.m4.
84760         Suggested by Mark D. Baushke.
84761
84762 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84763
84764         * lib/getdate.y (textint): New member "negative".
84765         (time_zone_hhmm): New function.
84766         Expect 14 shift-reduce conflicts, not 13.
84767         (o_colon_minutes): New rule.
84768         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84769         (yylex): Set the "negative" member of signed numbers.
84770
84771 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84772
84773         * doc/getdate.texi (Time of day items, Time zone items):
84774         Describe new formats +00:00, UTC+00:00.
84775
84776 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84777
84778         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84779         spurious "-l"s.  Problem reported by Stepan Kasal.
84780
84781 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84782
84783         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84784         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84785
84786 2004-12-04  Simon Josefsson  <jas@extundo.com>
84787
84788         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84789         Vandoorselaere <yoann@prelude-ids.org>.
84790
84791 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84792
84793         Changes imported from coreutils.
84794         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84795         exist.
84796         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84797
84798 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84799
84800         Changes imported from coreutils.
84801         * lib/hard-locale.c: Assume <locale.h> exists.
84802         Include "strdup.h".
84803         (GLIBC_VERSION): New macro.
84804         (hard_locale): Assume setlocale exists.
84805         Rewrite to avoid #ifdef.
84806         Use strdup rather than malloc + strcpy.
84807         * lib/human.c: Assume <locale.h> exists.
84808         (human_readable): Assume localeconv exists.
84809
84810 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84811
84812         * modules/hard-locale (Depends-on): Add strdup.
84813
84814 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84815
84816         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84817         convert T2, not T.  (Imported from libc.)
84818
84819 2004-11-30  Simon Josefsson  <jas@extundo.com>
84820
84821         * modules/restrict (License): Change to LGPL.
84822
84823 2004-11-30  Simon Josefsson  <jas@extundo.com>
84824
84825         * m4/restrict.m4: Add copyright and copying conditions.
84826
84827 2004-11-30  Simon Josefsson  <jas@extundo.com>
84828
84829         * m4/base64.m4: New file.
84830
84831 2004-11-30  Simon Josefsson  <jas@extundo.com>
84832
84833         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84834         base64.
84835
84836         * tests/test-base64.c: New file.
84837
84838         * modules/base64: New file.
84839
84840 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84841
84842         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84843         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84844
84845         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84846
84847 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84848
84849         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84850         (__getcwd.c): Don't restore errno; glibc doesn't.
84851         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84852         first, falling back to our code only if its results look suspicious.
84853         Ensure that the resulting buffer is only as large as necessary.
84854
84855         * lib/readutmp.c: Include readutmp.h first.
84856         Include <errno.h>, since readutmp.h no longer does that.
84857         * lib/readutmp.h: Don't include <errno.h>,
84858         <sys/param.h>, <time.h>; not needed to establish interface.
84859         (errno): Remove decl.
84860         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84861         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84862         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84863
84864 2004-11-28  Simon Josefsson  <jas@extundo.com>
84865
84866         * lib/base64.h, base64.c: New file.
84867
84868 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84869
84870         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84871
84872 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84873
84874         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84875         (Depends-on): Remove pathmax, same.  Add mempcpy.
84876         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84877         (Makefile.am): Append getcwd.h to lib_SOURCES.
84878         (Include): Add getcwd.h.
84879         (Maintainer): Change from Jim Meyering to "all, glibc",
84880         since getdate now uses intended-for-glibc code.
84881         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84882         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84883
84884 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84885
84886         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84887         HP's ANSI C compiler.
84888         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84889         Declaring int functions causes warnings on some modern systems and
84890         shouldn't be needed to compile on ancient ones.
84891         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84892         defined.
84893
84894         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84895         with the following changes.
84896         (__set_errno): Parenthesize properly.
84897         Include <stdbool.h>.
84898         (MIN, MAX, MATCHING_INO): New macros.
84899         (__getcwd): Define with prototype, not K&R form.
84900         Use heuristics to allocate default buffer on stack if possible.
84901         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84902         behavior, and to avoid the PATH_MAX limit when computing
84903         ../../../../...
84904         Use MATCHING_INO to compare inode number to file.
84905         Check for arithmetic overflow in size calculations.
84906         Fix bug in reallocation of dot array that caused getcwd to fail
84907         on directories nested deeper than 75.
84908         Be more careful about saving errno on error.
84909         Do not use realloc; use only free+malloc, as this is a bit
84910         more flexible and avoids a needless copy operation.
84911         Do not inspect st_dev and st_ino for symbolic links; POSIX
84912         doesn't specify the latter.
84913         Check for closedir errors.
84914         Avoid needless casts.
84915         Use "#ifdef weak_alias" around weak_alias, to be like other
84916         glibc code.
84917         The following changes to getcwd.c have effect only when used in
84918         gnulib; they have no effect inside glibc proper.
84919         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84920         as alloca isn't used.
84921         (alloca, __alloca): Likewise.
84922         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84923         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84924         unconditionally, as gnulib assumes C89 or better.
84925         Do not include <sys/param.h>.
84926         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84927         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84928         better.
84929         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84930         Include <dirent.h> in a way that is compatible with modern Autoconf.
84931         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84932         New macros, if not already defined.
84933         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84934         Use "_LIBC", not "defined _LIBC", for consistency.
84935         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84936         a mempcpy module.
84937         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84938         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84939         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84940         credit only to Jim Meyering and adjust the copyright dates.
84941         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84942         <stdlib.h>, <unistd.h>, "pathmax.h".
84943         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84944         (INITIAL_BUFFER_SIZE): Remove.
84945         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84946
84947 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84948
84949         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84950         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84951         Use the _ONCE methods, for efficiency.
84952         Check for fcntl.h.  In test program, include <errno.h>
84953         and <fcntl.h> if available.  Remove old K&R cruft from
84954         test program.  Check for common errors in GNU/Linux,
84955         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84956         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84957         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84958         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84959         name accordingly.
84960         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84961         accommodate new getcwd.c.
84962         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84963         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84964         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84965         that's all we need now.
84966
84967 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84968
84969         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84970         argp-parse.c depends on getopt internals, that means we should
84971         always use our getopt, to be on the safe side.
84972         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84973         order not to spoil the result of an eventual previous invocation
84974         of gl_GETOPT_SUBSTITUTE.
84975
84976 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84977
84978         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84979         redefinition warnings. To avoid them, include the defines
84980         in `#if !defined __need_getopt ... #endif'. The only place
84981         where __getopt_argv_const is used is in definitions
84982         of getopt_long and getopt_long_only below, which are as well
84983         protected by `#ifndef __need_getopt'.
84984         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84985         __need_getopt after including <stdio.h> and <unistd.h> These
84986         headers might have defined it.
84987
84988 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84989
84990         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84991
84992 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84993
84994         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84995         (futimens): New function, which uses futimes if available.
84996         (futimens, utimens): Support timespec==NULL, with same semantics
84997         as utime and utimens.
84998         * lib/utimens.h (futimens): New decl.
84999
85000 2004-11-23  Jim Meyering  <jim@meyering.net>
85001
85002         * lib/getopt_.h: Remove trailing blanks.
85003
85004 2004-11-23  Jim Meyering  <jim@meyering.net>
85005
85006         * lib/__fpending.c: Add comment.
85007
85008 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85009
85010         * modules/canonicalize (Depends-on): Add xreadlink.
85011         Problem reported by James Youngman.
85012
85013 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85014
85015         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85016         New macros.
85017         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85018         optopt): Use them instead of invoking ## directly; otherwise, the
85019         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85020
85021 2004-11-19  Bruno Haible  <bruno@clisp.org>
85022
85023         * lib/strtok_r.c: Move comments from here...
85024         * lib/strtok_r.h: ... to here.
85025
85026 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85027
85028         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85029         implementations that mishandle size_t overflow.
85030
85031 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85032
85033         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85034         might fail.  Problem reported by Yoann Vandoorselaere.
85035         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85036         implementations that mishandle size_t overflow.
85037
85038 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85039
85040         * modules/canon-host (Depends-on): Add strdup.
85041
85042 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85043
85044         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85045
85046 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85047
85048         * lib/canon-host.c: Include "strdup.h".
85049         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85050         Use strdup instead of malloc/strcpy to duplicate strings.
85051
85052         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85053         (human_space_before_unit): New constant.
85054         * lib/human.c (human_readable): Support it.
85055
85056         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85057         (xgetcwd): Set errno correctly when failing.
85058         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85059         the failure is actually due to a PATH_MAX problem.
85060
85061         Further getopt changes to make it more likely that glibc will
85062         buy the changes back.
85063         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85064         (getopt): Use it, so to preserve glibc semantic
85065         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85066         when compiling for libc.
85067         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85068         (getopt_long, getopt_long_only): Use it.
85069
85070         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85071         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85072         (getopt): Argv is now char * const *, as per standard.
85073         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85074         not char *__getopt_argv_const *.
85075         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85076         _getopt_long_only_r): Likewise.
85077         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85078         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85079         _getopt_long_r, _getopt_long_only_r): Likewise.
85080         * lib/getopt_.h (__getopt_argv_const): Remove.
85081         (getopt): Argv is now char * const *, as per standard.
85082
85083         * lib/getdate.y (tORDINAL): New token.
85084         (day, relunit): Allow it for relative times.
85085         (relative_time_table): Use tORDINAL for ordinals.
85086
85087 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85088
85089         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85090         Document that "second" isn't allowed as an ordinal number.
85091
85092 2004-11-16  Jim Meyering  <jim@meyering.net>
85093
85094         * modules/closeout (Depends-on): Add fpending.
85095
85096 2004-11-15  Jim Meyering  <jim@meyering.net>
85097
85098         * lib/closeout.c: Include "__fpending.h" once again.
85099         Include <stdbool.h>.
85100         (close_stdout): Don't fail just because stdout was closed initially,
85101         since some programs don't write to stdout in the normal course of
85102         operation (other than --version and --help), and we don't want this
85103         function to make e.g. `touch file >&-' fail.
85104         But do fail if it was closed and someone has tried to write to it.
85105         E.g., `printf foo >&-' must fail.
85106
85107 2004-11-13  Jim Meyering  <jim@meyering.net>
85108
85109         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85110
85111 2004-11-12  Simon Josefsson  <jas@extundo.com>
85112
85113         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85114         small doc fix is still pending.
85115
85116 2004-11-11  Simon Josefsson  <jas@extundo.com>
85117
85118         * modules/strtok_r: New file.
85119
85120         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85121         strtok_r.
85122
85123 2004-11-11  Simon Josefsson  <jas@extundo.com>
85124
85125         * m4/strtok_r.m4: New file.
85126
85127         * m4/getopt.m4: Replace opterr.
85128
85129 2004-11-11  Simon Josefsson  <jas@extundo.com>
85130
85131         * lib/strtok_r.h, strtok_r.c: New file.
85132
85133 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85134
85135         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85136         of replacing opterr, getopt, etc.  This should handle the
85137         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85138
85139 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85140
85141         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85142         we can stop lying to compilers about the constness of argv when we
85143         are compiled outside glibc.
85144         (getopt, getopt_long, getopt_long_only): Use it.
85145         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85146         _getopt_internal, getopt): Likewise.
85147         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85148         _getopt_long_only_r): Likewise.
85149         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85150         _getopt_long_r, _getopt_long_only_r): Likewise.
85151
85152         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85153         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85154         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85155         the other external symbols.
85156         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85157         declaration, since the above renaming now works around collisions.
85158
85159 2004-11-11  Jim Meyering  <jim@meyering.net>
85160
85161         * lib/linebreak.c: Remove trailing blanks.
85162         * lib/alloca_.h: Likewise.
85163         * lib/acosl.c: Likewise.
85164         * lib/euidaccess.c: Likewise.
85165         * lib/allocsa.h: Likewise.
85166
85167 2004-11-10  Simon Josefsson  <jas@extundo.com>
85168
85169         * m4/getaddrinfo.m4: New file.
85170
85171 2004-11-10  Simon Josefsson  <jas@extundo.com>
85172
85173         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85174
85175 2004-11-10  Simon Josefsson  <jas@extundo.com>
85176
85177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85178         getaddrinfo.
85179
85180         * modules/getaddrinfo: New file.
85181
85182 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85183
85184         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85185
85186 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85187
85188         * lib/mktime.c (SHR): New macro, which is a portable
85189         substitute for >> that should work even on Crays.
85190         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85191         Problem reported by Mark D. Baushke in
85192         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85193         * lib/getdate.y (SHR): Likewise.
85194         (tm_diff): Use it.
85195         * lib/strftime.c (SHR): Likewise.
85196         (tm_diff): Use it.
85197         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85198         quote_these_too, so that right shifts are well defined.  All uses
85199         changed.
85200
85201 2004-11-10  Jim Meyering  <jim@meyering.net>
85202
85203         Ensure that no close failure goes unreported.
85204         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85205         return early when it seems there's nothing to flush.
85206         Don't include __fpending.h.
85207
85208 2004-11-10  Jim Meyering  <jim@meyering.net>
85209
85210         * modules/closeout (Depends-on): Remove fpending.
85211
85212 2004-11-10  Jim Meyering  <jim@meyering.net>
85213
85214         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85215
85216 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85217
85218         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85219         gl_FUNC_STRFTIME.
85220         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85221         and AC_REQUIRE when possible, to avoid duplicate checks.
85222         Check for <wchar.h>.
85223
85224 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85225
85226         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85227
85228 2004-11-09  Bruno Haible  <bruno@clisp.org>
85229
85230         * m4/sockpfaf.m4: New file.
85231
85232 2004-11-05  Bruno Haible  <bruno@clisp.org>
85233
85234         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85235         Reported by Mark D. Baushke <mdb@cvshome.org>.
85236
85237 2004-11-04  Bruno Haible  <bruno@clisp.org>
85238
85239         2004-09-11  Bruno Haible  <bruno@clisp.org>
85240                 * allocsa.valgrind: New file.
85241         2004-02-06  Bruno Haible  <bruno@clisp.org>
85242                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85243                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85244                 Reported by Christopher Seip <chris.seip@hp.com>.
85245
85246 2004-11-04  Bruno Haible  <bruno@clisp.org>
85247
85248         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85249         (Makefile.am): Distribute it.
85250
85251 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85252
85253         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85254         with errno == ERANGE if the buffer is too small.
85255         Problem reported by Mark D. Baushke.
85256
85257 2004-11-03  Albert Chin  <china@thewrittenword.com>
85258             Paul Eggert  <eggert@cs.ucla.edu>
85259
85260         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85261         equivalent, substitute $ac_type for equivalent type rather than
85262         blindly using uint32_t *always* which won't work if uint32_t is not
85263         available.  Define _UINT32_T to work around typedef of uint32_t if
85264         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85265         2.5.1.
85266
85267 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85268
85269         * m4/jm-macros.m4: Sync from coreutils.
85270         (gl_MACROS): Check for mbrlen, for pathchk.
85271         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85272
85273 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85274
85275         * lib/xreadlink.c (MAXSIZE): New macro.
85276         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85277         size does not exceed MAXSIZE.  Avoid cast.
85278         As suggested by Mark D. Baushke in
85279         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85280         if readlink fails with buffer size just under MAXSIZE, try again
85281         with MAXSIZE.
85282
85283 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85284
85285         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85286
85287 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85288         and  Paul Eggert  <eggert@cs.ucla.edu>
85289
85290         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85291         (get_date): Overparenthesize to avoid GCC warning.
85292
85293 2004-11-02  Bruno Haible  <bruno@clisp.org>
85294
85295         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85296         returns void.
85297
85298 2004-11-02  Bruno Haible  <bruno@clisp.org>
85299
85300         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85301         function returns void.
85302
85303 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85304
85305         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85306         fflush_unlocked, flockfile, funlockfile, funlockfile,
85307         fputs_unlocked, putc_unlocked.
85308
85309 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85310
85311         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85312         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85313         already declared.
85314
85315 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85316
85317         * modules/getdate (Files): Add doc/getdate.texi.
85318         (Depends-on): Add setenv, xalloc.
85319
85320 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85321
85322         * lib/getdate.y: Add support for TZ="foo" within a date string.
85323         Fix some bugs near time_t boundaries.  Reject dates with
85324         out-of-range components, e.g., "Sept 31".
85325         Include <stdlib.h>, "setenv.h", "xalloc.h".
85326         (ISDIGIT_LOCALE): Remove; unused.
85327         Note that the TZ and time functions used here are not reentrant.
85328         (mktime_ok, get_tz): New functions.
85329         (TZBUFSIZE): New constant.
85330         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85331         This requires that we sometimes generate our own TZ="XXX..." setting.
85332
85333 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85334
85335         * doc/getdate.texi: New file, from coreutils with modifications for
85336         the new TZ parsing.
85337
85338 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85339
85340         * lib/mktime.c (not_equal_tm): Remove redundant check.
85341
85342 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85343
85344         * modules/regex (lib_SOURCES): Add regex.c.
85345         Reported by James Youngman in
85346         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85347
85348 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85349
85350         * lib/getdate.y: Use Bison 1.875 features, and some minor
85351         code cleanups.  This change does not affect semantics.
85352         Don't include <stdlib.h>; no longer needed.
85353         Don't include unlocked-io.h; only the "#if TEST" code uses
85354         stdio, and performance isn't crucial there.
85355         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85356         Bison 1.875 features as described below.
85357         All uses of "PC." replaced by "pc->".
85358         (YYSTYPE): Add a forward declaration.
85359         (yylex, yyerror): Use full prototypes in forward decls.
85360         Use "%pure-parser" rather than obsolescent "%pure_parser".
85361         Use %parse-param and %lex-param instead of obsolescent
85362         YYPARSE_PARAM and YYLEX_PARAM.
85363         (meridian_table, month_and_day_table, time_units_table,
85364         relative_time_table, time_zone_table, military_table,
85365         lookup_zone, lookup_word, get_date):
85366         Use NULL instead of 0 where appropriate.
85367         (to_hour): Avoid abort (), to avoid a dependency on
85368         stdlib.h.
85369         (yyerror, yylex): Now accepts parser_control * arg.
85370         (main) [TEST]: Use '\0' rather than 0 for char.
85371
85372 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85373
85374         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85375
85376 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85377
85378         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85379         It's now the caller's responsibility to handle the case where
85380         !HAVE_GETPAGESIZE && !defined getpagesize.
85381
85382         * lib/mktime.c (leapyear): Arg is long int, not int.
85383
85384 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85385
85386         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85387
85388 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85389
85390         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85391         missing.  Problem reported by James Youngman.
85392
85393 2004-10-16  Simon Josefsson  <jas@extundo.com>
85394
85395         * gnulib-tool: Fix comments.  Fix parse problem.
85396         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85397
85398 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85399
85400         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85401         implementation of getopt_long.  Problem reported by Alexander Taler in:
85402         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85403
85404 2004-10-15  Bruno Haible  <bruno@clisp.org>
85405
85406         * gnulib-tool: Untabify. Initialize supplied_libname.
85407         (func_usage): More homogenous output.
85408         (func_modules_transitive_closure, func_modules_to_filelist,
85409         func_emit_lib_Makefile_am): New functions.
85410         (func_import): New function, extracted from big case statement. Use
85411         func_get_license, func_modules_transitive_closure,
85412         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85413         opt_lgpl. Don't use test -a, as it's not portable.
85414         (func_create_testdir): Use func_modules_transitive_closure,
85415         func_modules_to_filelist, func_emit_lib_Makefile_am.
85416
85417 2004-10-15  Bruno Haible  <bruno@clisp.org>
85418
85419         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85420
85421 2004-10-15  Bruno Haible  <bruno@clisp.org>
85422
85423         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85424         the portions belonging to each module.
85425         Suggested by Derek Robert Price <derek@ximbiot.com>.
85426
85427 2004-10-12  Simon Josefsson  <jas@extundo.com>
85428
85429         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85430         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85431         to real functions.
85432
85433 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85434
85435         * modules/vsnprintf: New file.
85436
85437 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85438
85439         * m4/vsnprintf.m4: New file.
85440
85441 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85442
85443         * lib/vsnprintf.h: New file.
85444         * lib/vsnprintf.c: New file.
85445
85446 2004-10-11  Bruno Haible  <bruno@clisp.org>
85447
85448         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85449         vsnprintf.
85450
85451 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85452
85453         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85454
85455 2004-10-07  Bruno Haible  <bruno@clisp.org>
85456
85457         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85458         fits into the provided buffer.
85459
85460 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85461
85462         * lib/diacrit.c, diacrit.h: Add GPL notice.
85463
85464         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85465         notice.
85466         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85467         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85468         This avoids a potential constant-folding bug.
85469
85470 2004-10-05  Bruno Haible  <bruno@clisp.org>
85471
85472         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85473         for the declaration of strsep.
85474
85475 2004-10-05  Bruno Haible  <bruno@clisp.org>
85476
85477         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85478
85479 2004-10-04  Simon Josefsson  <jas@extundo.com>
85480
85481         * modules/memmem: New file.
85482         * tests/test-memmem.c: New file.
85483         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85484
85485 2004-10-04  Simon Josefsson  <jas@extundo.com>
85486
85487         * m4/memmem.m4: New file.
85488
85489 2004-10-04  Simon Josefsson  <jas@extundo.com>
85490
85491         * lib/memmem.h: New file.
85492         * lib/memmem.c: New file, taken from glibc.
85493
85494 2004-10-04  Simon Josefsson  <jas@extundo.com>
85495
85496         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85497         '#ifdef USE_UNLOCKED_IO'.
85498
85499 2004-10-04  Simon Josefsson  <jas@extundo.com>
85500
85501         * config/srclist.txt: Add memmem from glibc.
85502
85503 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85504
85505         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85506
85507         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85508         modules/exclude, modules/getdate, modules/getline,
85509         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85510         modules/getusershell, modules/linebuffer, modules/md5,
85511         modules/mountlist, modules/posixtm, modules/readtokens,
85512         modules/readutmp, modules/regex, modules/sha1,
85513         modules/version-etc, modules/yesno:
85514         Remove dependency on unlocked-io.
85515
85516 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85517
85518         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85519
85520         * m4/unlocked-io.m4: Add copyright notice.
85521         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85522
85523 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85524
85525         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85526         * lib/xmalloc.c (xmemdup): Likewise.
85527         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85528         XFREE): Remove these long-obsolescent macros.
85529         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85530         * lib/xstrdup.c: Remove.
85531
85532         * lib/regex.c (re_comp): Cast gettext return value to char *,
85533         Problem reported by Martin Neitzel via Mark D. Baushke.
85534
85535 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85536
85537         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85538         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85539         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85540         regex.c, sha1.c, version-etc.c, yesno.c:
85541         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85542         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85543         the includer's responsibility.
85544
85545         Sync from coreutils.
85546
85547         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85548         points to the start of a string, as the C Standard says the
85549         resulting behavior is undefined.
85550
85551         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85552         simple -> simple_backups, numbered_existing ->
85553         numbered_existing_backups, numbered -> numbered_backups
85554         to avoid shadowing problems.  All uses changed.
85555         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85556         * lib/backupfile.c (check_extension, numbered_backup):
85557         Rename locals to avoid shadowing 'basename'.
85558         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85559         once.
85560
85561         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85562         * lib/.cvsignore: Add getopt.h.
85563
85564 2004-10-04  Bruno Haible  <bruno@clisp.org>
85565
85566         * modules/README: New file.
85567         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85568         not a module.
85569
85570 2004-10-02  Jim Meyering  <jim@meyering.net>
85571
85572         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85573
85574 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85575
85576         * modules/strsep: New file.
85577
85578 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85579
85580         * m4/strsep.m4: New file.
85581
85582 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85583
85584         * lib/strsep.h: New file.
85585         * lib/strsep.c: New file.
85586
85587 2004-10-01  Simon Josefsson  <jas@extundo.com>
85588
85589         * lib/snprintf.c (snprintf): Handle size==0.
85590
85591 2004-10-01  Simon Josefsson  <jas@extundo.com>
85592             Bruno Haible  <bruno@clisp.org>
85593
85594         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85595         (snprintf): Declare 'args'.
85596
85597 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85598
85599         * lib/snprintf.c: Remove comments as to why each header is needed.
85600
85601 2004-10-01  Bruno Haible  <bruno@clisp.org>
85602
85603         * MODULES.html.sh: Add strsep.
85604
85605 2004-09-30  Simon Josefsson  <jas@extundo.com>
85606
85607         * modules/snprintf: New file.
85608
85609 2004-09-30  Simon Josefsson  <jas@extundo.com>
85610
85611         * m4/snprintf.m4: New file.
85612
85613 2004-09-30  Simon Josefsson  <jas@extundo.com>
85614
85615         * lib/snprintf.h, lib/snprintf.c: New files.
85616
85617 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85618
85619         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85620         (hol_entry_help): Never translate an empty string.
85621         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85622         * lib/argp.h (OPTION_NO_TRANS): New option.
85623
85624 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85625
85626         * modules/argp (Maintainer): Replace Simon Josefsson
85627         by Sergey Poznyakoff.
85628
85629 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85630
85631         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85632         changes merged back into glibc.
85633
85634 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85635
85636         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85637
85638 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85639
85640         * lib/xvasprintf.c: Include xalloc.h.
85641         (xvasprintf): Use xalloc_die, not xmalloc_die.
85642
85643 2004-09-29  Bruno Haible  <bruno@clisp.org>
85644
85645         * modules/alloca-opt: New file, derived from modules/alloca.
85646         * modules/allocsa: Depend on alloca-opt instead of alloca.
85647         * modules/setenv: Likewise.
85648         * modules/vasnprintf: Likewise.
85649         * MODULES.html.sh: Add alloca-opt.
85650
85651 2004-09-28  Simon Josefsson  <jas@extundo.com>
85652
85653         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85654         LGPL, and to replace license template from GPL to LGPL.
85655
85656 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85657
85658         * modules/dummy: Change license to LGPL.
85659
85660 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85661
85662         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85663
85664 2004-09-24  Simon Josefsson  <jas@extundo.com>
85665
85666         * modules/minmax (License): Change from GPL to LGPL.
85667
85668 2004-09-23  Simon Josefsson  <jas@extundo.com>
85669
85670         * gnulib-tool (--import): Typo.
85671
85672 2004-09-23  Simon Josefsson  <jas@extundo.com>
85673
85674         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85675
85676 2004-09-22  Bruno Haible  <bruno@clisp.org>
85677
85678         * modules/*: Add 'License' field.
85679         * gnulib-tool: Accept --extract-license option.
85680         (func_get_license): New function.
85681
85682 2004-09-21  Bruno Haible  <bruno@clisp.org>
85683
85684         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85685         Reported by Simon Josefsson.
85686
85687 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85688
85689         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85690         gl_AC_TYPE_LONG_LONG.
85691
85692 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85693
85694         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85695
85696 2004-09-18  Simon Josefsson  <jas@extundo.com>
85697         and  Paul Eggert  <eggert@cs.ucla.edu>
85698
85699         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85700         calls with autoreconf.  Define GL_LIB.
85701
85702 2004-09-14  Karl Berry  <karl@gnu.org>
85703
85704         * config/srclist.txt: unsync setenv.c, sigh.
85705
85706 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85707
85708         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85709         Problem reported by Bruno Haible in:
85710         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85711
85712 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85713
85714         * config/srclist.txt: Comment out argp-pvh.c.
85715
85716 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85717
85718         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85719         in case some system header has #define'd it.  Problem reported by
85720         Soeren D. Schulze in
85721         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85722
85723 2004-09-09  Karl Berry  <karl@gnu.org>
85724
85725         * regex.[ch]: delete from the root.  These were supposed to be
85726                 synced with emacs cvs, but this has not happened for about
85727                 a year, and anyway nothing else uses emacs regex.[ch].
85728                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85729                 lib/regex[.ch] is untouched.
85730
85731 2004-09-09  Bruno Haible  <bruno@clisp.org>
85732
85733         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85734
85735 2004-09-09  Bruno Haible  <bruno@clisp.org>
85736
85737         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85738         modifications.
85739         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85740
85741 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85742
85743         * modules/xvasprintf: New file.
85744         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85745
85746 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85747
85748         * lib/xvasprintf.h: New file.
85749         * lib/xvasprintf.c: New file.
85750         * lib/xasprintf.c: New file.
85751
85752 2004-09-08  Bruno Haible  <bruno@clisp.org>
85753
85754         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85755
85756 2004-09-08  Bruno Haible  <bruno@clisp.org>
85757
85758         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85759         length is > INT_MAX.
85760         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85761         more.
85762
85763 2004-09-08  Bruno Haible  <bruno@clisp.org>
85764
85765         * lib/stdint_.h: New file, taken from GNU clisp.
85766
85767 2004-09-08  Bruno Haible  <bruno@clisp.org>
85768             Oskar Liljeblad  <oskar@osk.mine.nu>
85769
85770         * modules/stdint: New file.
85771         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85772
85773 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85774
85775         Import from coreutils.
85776         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85777         strings on unbounded length.  alloca's performance benefits aren't
85778         that important here.
85779         (V_STRDUP): Remove.
85780         (parse_with_separator): New function, with most of the internals
85781         of the old parse_user_spec.  Allow user to omit both user and group,
85782         for compatibility with FreeBSD.
85783         Clone only the user name, not the entire spec.
85784         Do not set *uid, *gid unless entirely successful.
85785         Avoid memory leak in some failing cases.
85786         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85787         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85788         (parse_user_spec): Rewrite to use parse_with_separator.
85789
85790 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85791
85792         * modules/userspec: Don't depend on alloca.
85793
85794 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85795
85796         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85797
85798 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85799
85800         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85801         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85802         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85803
85804 2004-08-16  Simon Josefsson  <jas@extundo.com>
85805
85806         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85807         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85808         Add --dry-run for --import.
85809         Let user provided command line parameters override configure.ac
85810         settings.
85811
85812 2004-08-12  Simon Josefsson  <jas@extundo.com>
85813
85814         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85815         as discussed with Paul Eggert in threads rooted at
85816         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85817         and
85818         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85819         Before, the test was empty, and relied on ELIDE_CODE in source
85820         code.)
85821         (gl_PREREQ_GETOPT): New macro.
85822         (gl_GETOPT): Use them.
85823
85824 2004-08-12  Simon Josefsson  <jas@extundo.com>
85825
85826         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85827         * lib/getopt_.h: Renamed from getopt.h.
85828
85829 2004-08-12  Simon Josefsson  <jas@extundo.com>
85830
85831         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85832         Change default library name from libfoo to libgnu.
85833         Now, if you have a configure.ac that says:
85834                 gl_SOURCE_BASE(gl)
85835                 gl_M4_BASE(gl/m4)
85836                 gl_MODULES(error getopt etcetera)
85837                 gl_INIT
85838         you can import all you need by running:
85839                 ../gnulib/gnulib-tool --import
85840
85841         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85842         (Makefile.am): Rewrite, use logic from argz.
85843         (Include): Use <getopt.h> instead of "getopt.h".
85844
85845 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85846
85847         * modules/argp (Files): Add m4/unlocked-io.m4.
85848         (Depends-on): Add extensions.
85849
85850 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85851
85852         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85853         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85854         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85855         Check for program_invocation_name, program_invocation_short_name,
85856         flockfile, funlockfile, features.h, _getopt_long_only_r.
85857
85858 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85859
85860         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85861         its complicated substitute.
85862         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85863         and program_invocation_name.
85864         (__argp_basename) [!_LIBC]: Remove; the only use was
85865         replaced by its body.
85866         (__argp_short_program_name): Change condition from
85867         !defined __argp_short_program_name to
85868         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85869         to match argp-namefrob.h.
85870         (__argp_failure): Don't assume strerror_r returns char *.
85871         * lib/argp-parse.c (N_): Define unconditionally.
85872         (argp_default_options): Fill out initializers with 0 to avoid
85873         gcc warnings.
85874
85875 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85876
85877         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85878         getopt1.c.
85879
85880 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85881
85882         Merge from coreutils.
85883
85884         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85885
85886         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85887         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85888
85889 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85890
85891         Merge from coreutils.
85892
85893         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85894         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85895         for Reliant Unix 5.43.
85896
85897         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85898         (union fooround): Use uintmax_t, not long int.
85899         The rest is a merge from libc:
85900         [defined _LIBC]: Include <shlib-compat.h>.
85901         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85902
85903         * lib/settime.c (settime): Recode to avoid warning with
85904         Sun Forte C 6U2.
85905
85906         * lib/strverscmp.c: Convert to UTF-8.
85907
85908 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85909
85910         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85911         m4/uintmax_t.m4.
85912
85913 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85914
85915         * modules/xalloc-die: New file.
85916         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85917
85918         * modules/md5 (Files): Add m4/uint32_t.m4.
85919         * modules/sha1: Renamed from modules/sha.
85920         (Files):
85921         Rename lib/sha.h to lib/sha1.h.
85922         Rename lib/sha.c to lib/sha1.c.
85923         Rename m4/sha.m4 to m4/sha1.m4.
85924         (lib_SOURCES): Likewise.
85925         (configure.ac): Rename gl_SHA to gl_SHA1.
85926         (Include): sha.h -> sha1.h.
85927
85928 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85929
85930         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85931         * m4/sha1.m4: Renamed from sha.m4.
85932         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85933
85934 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85935
85936         * lib/obstack.h (obstack_empty_p):
85937         Don't assume that chunk->contents is suitably aligned.
85938         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85939         Likewise. Problem reported by Benno in
85940         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85941
85942         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85943         readable.  This could be improved further but it'd take some work.
85944
85945 2004-08-08  Simon Josefsson  <jas@extundo.com>
85946
85947         * modules/xgethostname (Depends-on): Remove exit and error (not
85948         used).
85949
85950         * modules/getpass-gnu: Add getpass.h.
85951         (Depends-on): Add stdbool.
85952         * modules/getpass: Add getpass.h.
85953
85954 2004-08-08  Simon Josefsson  <jas@extundo.com>
85955
85956         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85957         Check getpass declaration.
85958
85959 2004-08-08  Simon Josefsson  <jas@extundo.com>
85960
85961         * lib/xgethostname.c: Don't include error.h (not used).
85962
85963         * lib/getpass.h: Add.
85964         * lib/getpass.c: Include getpass.h first.
85965
85966 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85967
85968         * lib/xalloc-die.c: New file.
85969         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85970         All uses removed.
85971         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85972         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85973         xalloc-die.c.
85974         (_, N_, xalloc_die): Move to xalloc-die.c.
85975         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85976         so that we needn't mess with xalloc_msg_memory_exhausted.
85977
85978         * lib/sha1.h: Renamed from sha.h.
85979         (SHA1_H): Renamed from _SHA_H.
85980         (sha1_ctx): Renamed from sha_ctx.
85981         (sha1_init_ctx): Renamed from sha_init_ctx.
85982         (sha1_process_block): Renamed from sha_process_block.
85983         (sha1_process_bytes): Renamed from sha_process_bytes.
85984         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85985         (sha1_read_ctx): Renamed from sha_read_ctx.
85986         (sha1_stream): Renamed from sha_stream.
85987         (sha1_buffer): Renamed from sha_buffer.
85988         * lib/sha1.c: Likewise; renamed from sha.c.
85989         Do not include <sys/types.h>.
85990         Include <stddef.h> rather than <stdlib.h>.
85991
85992 2004-08-08  Bruno Haible  <bruno@clisp.org>
85993
85994         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85995         FILESYSTEM_PREFIX_LEN.
85996         * lib/progreloc.c: Likewise.
85997         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85998
85999 2004-08-06  Simon Josefsson  <jas@extundo.com>
86000
86001         * modules/progname (Depends-on): Don't depend on stdbool.
86002
86003 2004-08-06  Simon Josefsson  <jas@extundo.com>
86004
86005         * modules/getsubopt: New file.
86006         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86007         getsubopt.
86008
86009 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86010
86011         More merge from coreutils.
86012
86013         * m4/utimens.m4, m4/utimecmp.m4: New files.
86014         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86015         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86016         prereq.m4, sha.m4: Import changes from coreutils.
86017
86018 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86019
86020         More merge from coreutils.
86021         * modules/raise, modules/readtokens0, modules/utimens:
86022         * modules/utimecmp, module/xnanosleep: New files.
86023         * modules/strftime: Add lib/strftime.h.
86024         Change include from <time.h> to "strftime.h".
86025         * modules/yesno: Add lib/yesno.h.
86026         * modules/backupfile: Remove lib/addext.c.
86027         * modules/euidaccess: Add stat-macros.h.
86028         * modules/canonicalize, modules/euidaccess,
86029         modules/filemode, modules/lchown, modules/makepath,
86030         modules/rmdir, modules/stat: Likewise.
86031
86032 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86033
86034         Merge from tar.
86035         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86036         SIZE_MAX is a valid preprocessor constant.
86037         (__argp_basename): Change from "#ifndef _LIBC"
86038         to "#ifndef __argp_short_program_name", so that
86039         we don't compile these functions for tar.
86040
86041         More merges from coreutils.
86042         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86043         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86044         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86045         * lib/addext.c: Remove; no longer needed.
86046         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86047         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86048         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86049         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86050         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86051         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86052         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86053         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86054         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86055         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86056         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86057         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86058         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86059         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86060         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86061         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86062         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86063         Import changes from coreutils.
86064
86065 2004-08-05  Simon Josefsson  <jas@extundo.com>
86066
86067         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86068
86069 2004-08-05  Simon Josefsson  <jas@extundo.com>
86070
86071         * m4/getsubopt.m4: New file.
86072
86073 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86074
86075         Merge from coreutils.
86076
86077         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86078         * m4/getcwd-path-max.m4: New files.
86079
86080         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86081         FILESYSTEM_PREFIX_LEN ->
86082         FILE_SYSTEM_PREFIX_LEN.
86083         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86084         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86085         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86086         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86087
86088         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86089         prerequisite modules now handle the DOS stuff.
86090         Don't check for unistd.h.
86091
86092 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86093
86094         Merge from coreutils.
86095
86096         * lib/.gdb-history: Remove; this doesn't belong here.
86097
86098         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86099         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86100         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86101         * lib/getcwd.c: New files.
86102
86103         * lib/dirname.h: Include <stdbool.h>.
86104         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86105         for consistency with POSIX terminology.  All uses changed.
86106         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86107         (strip_trailing_slashes): Use bool for booleans.
86108         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86109
86110         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86111         sometimes returns a positive errno value even when it succeeds.
86112         (print_errno_message) [!LIBC]: Fall back on strerror if
86113         __strerror_r fails.
86114
86115         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86116         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86117         (longest_relative_suffix): New function.
86118         (path_concat): Use it.  Assume first argument is not NULL.
86119         Port to DOS.  Omit redundant separators.
86120         Report an error instead of returning NULL.
86121         Use mempcpy instead of memcpy.
86122         (xpath_concat): Remove: not declared or used.
86123
86124         * lib/same.h: Include <stdbool.h>
86125         (same_name): Return bool, not int.
86126         * lib/same.c (same_name): Likewise.
86127         (errno): Don't declare; we assume C89 or better now.
86128
86129         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86130         if not already defined.
86131
86132         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86133         * lib/dup-safer.c (errno): Likewise.
86134
86135 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86136
86137         Merge from coreutils.
86138         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86139         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86140         * modules/path-concat: Don't depend on strdup.
86141
86142 2004-08-03  Simon Josefsson  <jas@extundo.com>
86143
86144         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86145         * lib/progname.h: Don't include stdbool.h.
86146
86147 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86148
86149         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86150         * MODULES.html.sh (func_all_modules): Remove fatal.
86151
86152 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86153
86154         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86155
86156 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86157
86158         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86159         working.
86160
86161 2004-08-02  Simon Josefsson  <jas@extundo.com>
86162
86163         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86164         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86165         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86166
86167 2004-08-01  Simon Josefsson  <jas@extundo.com>
86168
86169         * lib/xgetdomainname.c: Include stdlib.h, for free().
86170
86171 2004-07-19  Bruno Haible  <bruno@clisp.org>
86172
86173         * MODULES.html.sh (func_all_modules): Add dummy.
86174
86175 2004-07-16  Simon Josefsson  <jas@extundo.com>
86176
86177         * modules/dummy: New file.
86178
86179 2004-07-16  Simon Josefsson  <jas@extundo.com>
86180
86181         * lib/dummy.c: New file.
86182
86183 2004-07-16  Bruno Haible  <bruno@clisp.org>
86184
86185         * lib/backupfile.h: Add extern "C" for C++.
86186         * lib/closeout.h: Likewise.
86187         * lib/copy-file.h: Likewise.
86188         * lib/findprog.h: Likewise.
86189         * lib/full-write.h: Likewise.
86190         * lib/pathname.h: Likewise.
86191         * lib/progname.h: Likewise.
86192         * lib/stpcpy.h: Likewise.
86193         * lib/stpncpy.h: Likewise.
86194         * lib/strcase.h: Likewise.
86195         * lib/strstr.h: Likewise.
86196         * lib/xalloc.h: Likewise.
86197
86198         * lib/mbswidth.h: Add extern "C" for C++.
86199         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86200
86201 2004-07-13  Robert Millan  <robertmh@gnu.org>
86202
86203         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86204
86205 2004-07-09  Simon Josefsson  <jas@extundo.com>
86206
86207         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86208         failed without this.)
86209
86210 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86211
86212         * modules/chown (Files): Add lib/fchown-stub.c, since
86213         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86214
86215 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86216
86217         * lib/fchown-stub.c: New file.
86218
86219 2004-06-24  Jim Meyering  <jim@meyering.net>
86220
86221         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86222
86223 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86224
86225         * modules/argz: Omit "#include".
86226
86227         * MODULES.html.sh (func_all_modules): Add calloc, to match
86228         2004-06-01 addition of calloc module.
86229
86230 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86231
86232         * m4/argz.m4: New file, which is autoupdated from libtool.
86233
86234 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86235
86236         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86237         libtool.
86238
86239 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86240
86241         * config/srclist-update: Don't insist on "USA." before the
86242         close-comment, as libtool omits the period and puts the */ on a
86243         separate line.
86244         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86245         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86246
86247 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86248
86249         * modules/argz: New file.
86250         * MODULES.html.sh (func_all_modules): Add argz.
86251
86252 2004-06-12  Jim Meyering  <jim@meyering.net>
86253         and  Paul Eggert  <eggert@cs.ucla.edu>
86254
86255         * modules/hash (Files): Add lib/xalloc.h.
86256         * modules/pipe (Depends-on): Add wait-process.
86257         * modules/stat (Depends-on): Add xalloc.
86258         * modules/userspec (Files): Add lib/userspec.h.
86259         * modules/xstrto
86260
86261         Upgrade from gettext-0.13.
86262         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86263         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86264         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86265
86266 2004-06-10  Jim Meyering  <jim@meyering.net>
86267
86268         * lib/calloc.c: New file.
86269
86270 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86271
86272         * lib/getdate.y (yylex): Allow space between sign and number.
86273         Problem reported by Dan Jacobson.
86274
86275 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86276
86277         Merge from coreutils CVS.
86278
86279         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86280         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86281         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86282         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86283         xstrtol.m4: Fix copyright date and/or serial number.
86284
86285         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86286         See if we need an fchown replacement.
86287         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86288         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86289         and use the replacement function if we detect either defect.
86290
86291         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86292         gl_UTIMECMP.
86293
86294 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86295         and  Jim Meyering  <jim@meyering.net>
86296
86297         Merge from coreutils CVS.
86298
86299         * lib/stat-macros.h: New file, with contents from file-type.h
86300         and coreutils' system.h.
86301         * lib/file-type.c: Include "stat-macros.h".
86302         * lib/file-type.h (file_type): Move all macro definitions to new file,
86303         stat-macros.h.
86304
86305         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86306         Wrap old code with this conditional.
86307         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86308         function that does not dereference symlinks.
86309         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86310
86311         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86312         dependency problems.
86313         (xreadlink): Accept new arg SIZE, for efficiency.
86314         All decls and uses changed.
86315         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86316
86317         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86318         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86319
86320         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86321         sysexits.h.
86322
86323 2004-06-01  Jim Meyering  <jim@meyering.net>
86324
86325         * m4/calloc.m4: New file.
86326
86327 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86328
86329         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86330         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86331         Also, fix a typo in a diagnostic.
86332
86333 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86334
86335         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86336         or AC_FUNC_REALLOC.
86337
86338 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86339
86340         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86341         macros to be defined.
86342         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86343         the allocator returns NULL because the requested size is zero.
86344
86345 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86346
86347         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86348         var.  Add comment explaining why libc still defines it.  This
86349         merges the following patch from glibc:
86350         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86351
86352 2004-05-20  Andreas Schwab  <schwab@suse.de>
86353
86354         * m4/free.m4: Replace free if it not known to work, not the other
86355         way round.
86356
86357 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86358
86359         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86360         present in glibc since revision 1.1 of this file.
86361         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86362         obstack_alignment_mask, obstack_alloc, obstack_base,
86363         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86364         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86365         obstack_grow0, obstack_init, obstack_int_grow,
86366         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86367         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86368         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86369         nonexistent functions.
86370
86371 2004-05-18  Karl Berry  <karl@gnu.org>
86372
86373         * config/srclist.txt: break link for vasnprintf.c.
86374
86375 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86376
86377         Port obstack to the AS/400, where pointers are 16 bytes wide and
86378         you cannot cast an integer to a valid pointer.  This patch is
86379         currently waiting to be integrated into glibc; see
86380         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86381
86382         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86383         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86384         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86385         (struct obstack): temp member is now a union of a pointer and
86386         an integer, instead of an integer.  All integer uses changed.
86387         This does not affect the physical layout of struct obstack,
86388         except on hosts (like the AS/400) where the size or alignment of
86389         void * is greater than that of ptrdiff_t.
86390         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86391         __STDC__)]: Store temporary in pointer member of union, not
86392         integer member.
86393         * lib/obstack.c: Include <stddef.h>, for offsetof.
86394         (struct fooalign): Remove; it doesn't need a name.
86395         (union fooround): Change double to long double, and add void *.
86396         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86397         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86398         not a macro.  Hence the values are always int; so remove all
86399         casts-to-int in uses.
86400
86401 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86402
86403         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86404         we can get this patch merged into glibc.
86405
86406 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86407             Paul Eggert  <eggert@cs.ucla.edu>
86408
86409         * m4/argp: Depend on alloca.
86410
86411 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86412             Paul Eggert  <eggert@cs.ucla.edu>
86413
86414         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86415         freecoding.
86416
86417 2004-05-17  Bruno Haible  <bruno@clisp.org>
86418
86419         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86420         precision that consists of a '.' followed by an empty digit string.
86421         Patch by Tor Lillqvist <tml@iki.fi>.
86422
86423 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86424
86425         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86426         for backward compatibility with older code.  We need our own
86427         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86428         it under some other name, and our alloca.h will define it.
86429
86430 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86431             Derek Price  <derek@ximbiot.com>
86432
86433         * lib/alloca.c: Include <alloca.h>, to get our interface.
86434         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86435         include <alloca.h> first.  Use C89 prototype for alloca; this
86436         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86437         Use #elif for simplicity, since we can assume C89 now.
86438         Don't try to source the system alloca.h since it will not be found
86439         and to prevent recursively including its replacement.
86440         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86441         * lib/regex.c: Likewise.
86442
86443 2004-05-16  Derek Price  <derek@ximbiot.com>
86444             Paul Eggert  <eggert@cs.ucla.edu>
86445
86446         getline cleanup.  This changes the getndelim2 API: both order of
86447         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86448         no delimiter).
86449
86450         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86451         interface does that.
86452         (getline): Always use getdelim, so that we don't have two
86453         copies of this code.
86454         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86455         if available.
86456         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86457         (GETNDELIM2_MAXIMUM): New macro.
86458         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86459         instead of the old practice of delim2==0.  All callers changed.
86460         Return -1 on overflow, instead of returning junk.
86461         Do not set *linesize unless allocation succeeds.
86462         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86463         that we include sys/types.h.
86464         * lib/getnline.h: Likewise.
86465         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86466         (getndelim2): Reorder arguments.
86467         * lib/getnline.c (getnline, getndelim):
86468         Don't discard the NMAX argument.
86469         (getnline): Invoke getndelim, to avoid code duplication.
86470         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86471         of (size_t) -1 by callers of the getnline family.
86472
86473 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86474
86475         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86476         Check for gettimeofday.
86477         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86478         Check for settimeofday, stime.
86479
86480 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86481
86482         * lib/nanosleep.c (suspended): Change its type from int to
86483         sig_atomic_t volatile.
86484         (first_call): Make it private to rpl_nanosleep, and have it
86485         be zero initially as that's a bit faster.
86486         (my_usleep): Round up fractional times instead of truncating them,
86487         as this is the usual meaning for 'sleep'.
86488
86489         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86490         doesn't work.
86491         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86492         (ENOSYS): Define if not defined.
86493         (settime): Fall back on stime if it exists and settimeofday fails.
86494         But don't bother with fallbacks if a method fails with errno == EPERM.
86495
86496 2004-05-11  Jim Meyering  <jim@meyering.net>
86497
86498         Prior to this change, the save_cwd caller required read access to the
86499         current directory on most systems (ones with the fchdir function).
86500
86501         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86502         fails, try write-only, and finally, resort to using xgetcwd.
86503
86504 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86505
86506         * lib/obstack.c, obstack.h: Import changes from libc.
86507
86508 2004-04-28  Bruno Haible  <bruno@clisp.org>
86509
86510         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86511         also implicitly appends .exe to executables.
86512         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86513         accepts Windows pathnames.
86514         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86515         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86516         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86517         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86518         Reported by Derek Robert Price <derek@ximbiot.com>.
86519
86520 2004-04-21  Karl Berry  <karl@gnu.org>
86521
86522         * config/srclist.txt (localcharset.c): break sync.
86523
86524 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86525
86526         * m4/host-os.m4: Add a copyright notice.
86527
86528 2004-04-20  Jim Meyering  <jim@meyering.net>
86529
86530         Change UTILS_ to gl_ in AC_DEFINE'd names.
86531         Change utils_- and jm_-prefixed variables, too.
86532         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86533         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86534         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86535
86536         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86537         Don't emit trailing blanks.
86538         Also rename jm_-prefixed variables to have gl_ prefix.
86539
86540         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86541         Also rename jm_-prefixed variables to have gl_ prefix.
86542
86543         * m4/jm-macros.m4: Reflect the renamings.
86544         * m4/prereq.m4: Likewise.
86545
86546 2004-04-20  Jim Meyering  <jim@meyering.net>
86547
86548         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86549         memory.
86550
86551 2004-04-20  Jim Meyering  <jim@meyering.net>
86552             Bruno Haible  <bruno@clisp.org>
86553
86554         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86555         memory when realloc fails.
86556
86557 2004-04-19  Jim Meyering  <jim@meyering.net>
86558
86559         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86560         now that readutmp.c may call `free (0)'.
86561
86562 2004-04-19  Bruno Haible  <bruno@clisp.org>
86563
86564         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86565         * m4/inttypes_h.m4: Likewise.
86566         * m4/stdint_h.m4: Likewise.
86567         * m4/intmax_t.m4: Likewise.
86568         * m4/uintmax_t.m4: Likewise.
86569
86570 2004-04-18  Jim Meyering  <jim@meyering.net>
86571
86572         * m4/prereq.m4: Don't forbid jm_ prefix.
86573
86574         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86575         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86576         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86577         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86578         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86579         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86580         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86581         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86582         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86583         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86584         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86585         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86586         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86587         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86588         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86589         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86590         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86591         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86592         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86593
86594 2004-04-18  Jim Meyering  <jim@meyering.net>
86595
86596         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86597         failure, don't leak memory and do call END_UTMP_ENT.
86598
86599 2004-04-16  Jim Meyering  <jim@meyering.net>
86600
86601         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86602         coreutils' stat program.
86603         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86604
86605 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86606
86607         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86608         C89.
86609         (CHAR_BIT): Remove, since we assume C89.
86610         Include <stdint.h> if available, as per current Autoconf CVS advice.
86611
86612 2004-03-31  Jim Meyering  <jim@meyering.net>
86613
86614         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86615         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86616         * m4/xalloc.m4: Likewise.
86617
86618 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86619
86620         Merge from coreutils.
86621
86622         * m4/inttostr.m4: New file.
86623         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86624         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86625         Require gl_CLOCK_TIME.
86626         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86627
86628 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86629
86630         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86631         not bool, to be more consistent with Unix conventions.
86632         Suggested by Bruno Haible.
86633
86634         Merge from coreutils.
86635
86636         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86637         * lib/umaxtostr.c: New files.
86638
86639         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86640         the usual <time.h> dance.
86641         (get_date): Change signature to support fractional time stamps.
86642         All callers changed.
86643         * lib/getdate.y: Include "getdate.h" first, as we can now
86644         assume C89 and don't need to worry about 'const'.
86645         Similarly, include "unlocked-io.h" near start, not in middle.
86646         Include <limits.h>.
86647         (textint.value): Use long int rather than int.
86648         (textint.digits): Use size_t rather than int.
86649         (BILLION, LOG10_BILLION): New constants.
86650         (parser_control): New member rel_ns.  Members day_ordinal,
86651         time_zone, month, day, hour, minutes, rel_year, rel_month,
86652         rel_day, rel_hour, rel_minutes, rel_seconds
86653         are now long int, not int.  Member seconds is now struct timespec,
86654         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86655         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86656         not int.
86657         (%union.intval): Now long int, not int.
86658         New member timespec.
86659         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86660         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86661         (spec): Now is a timespec or an item list.
86662         (timespec, items): New nonterminals.
86663         (time, rel, relunit, number, get_date):
86664         Add support for fractional seconds.
86665         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86666         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86667         (to_hour): First arg is now long int, not int.
86668         (to_year): Returns long int, not int.
86669         Don't treat year -70 like 70.
86670         (tm_diff): Returns long int, not int.
86671         (lookup_word): Use bool instead of int when appropriate.
86672         (yylex): Use size_t for count, not int.
86673         Detect overflow when parsing large integer constants.
86674         Add support for fractions.
86675         (get_date): Make pointers 'const' if possible.
86676         Use more-portable code to detect integer overflow.
86677         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86678         Don't use ctime; it's not reliable if the year has >4 digits.
86679
86680         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86681         This is for compatibility with BSD.
86682
86683         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86684         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86685         From coreutils' system.h.
86686
86687         * lib/userspec.c: Don't include "posixver.h".
86688         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86689         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86690         compatible extension.  Simplify code by removing a boolean int
86691         that was always nonzero if a string was nonnull.
86692
86693 2004-03-30  Jim Meyering  <jim@meyering.net>
86694
86695         Merge from coreutils.
86696
86697         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86698         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86699         on some systems one must include <grp.h> before it.
86700         Reported by Christian Krackowizer.
86701
86702 2004-03-30  Jim Meyering  <jim@meyering.net>
86703
86704         Merge from coreutils.
86705
86706         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86707
86708         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86709         an empty input stream.
86710
86711         * lib/readtokens.c: Include <stdbool.h>.
86712         (readtoken): Use `size_t' rather than int/long.
86713         All callers adjusted.
86714         Use `bool' rather than `int' where appropriate.
86715         Use memset rather than an explicit loop.
86716         Use x2nrealloc rather than xrealloc.
86717         Allow the use of `\0' as a delimiter.
86718         (readtokens): Likewise.
86719         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86720
86721 2004-03-30  Jim Meyering  <jim@meyering.net>
86722
86723         * m4/realloc.m4: Remove file, since now it does no more than
86724         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86725         the `configure.ac' section of module/realloc.
86726         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86727
86728 2004-03-30  Bruno Haible  <bruno@clisp.org>
86729
86730         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86731         nonnull.
86732
86733 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86734
86735         Merge changes to getloadavg.c from coreutils and Emacs.
86736
86737         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86738         Define to an expression, not to the empty string.
86739         Include cloexec.h and xalloc.h.
86740         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86741         Use set_cloexec_flag rather than rolling our own.
86742         * lib/cloexec.c, lib/cloexec.h: New files.
86743
86744 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86745
86746         * m4/cloexec.m4: New file.
86747
86748 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86749
86750         * lib/getopt.h: Sync with libc CVS.
86751
86752 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86753             Bruno Haible  <bruno@clisp.org>
86754
86755         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86756         mbswidth.
86757
86758 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86759             Bruno Haible  <bruno@clisp.org>
86760
86761         * lib/mbswidth.h: Include <wchar.h> only if
86762         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86763         <wchar.h>.
86764         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86765
86766 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86767
86768         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86769         Sync with libc CVS.
86770         * lib/getopt_int.h: New file, also synced from libc.
86771
86772 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86773
86774         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86775         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86776         Bring back getopt.c, getopt.h, getopt1.c.
86777
86778 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86779
86780         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86781         All uses changed.  Check for sa_sigaction member; this fixes
86782         a bug first reported by Jason Andrade in
86783         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86784
86785 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86786
86787         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86788         '#if' expressions.  Unlike the code it replaces, it does not
86789         depend on (defined _SC_PAGESIZE).  However, it does depend on
86790         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86791         first reported by Jason Andrade in
86792         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86793
86794 2004-02-25  Simon Josefsson  <jas@extundo.com>
86795
86796         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86797
86798 2004-02-25  Simon Josefsson  <jas@extundo.com>
86799
86800         * lib/strdup.h: New file.
86801         * lib/strdup.c: Include it.
86802         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86803         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86804
86805 2004-02-23  Karl Berry  <karl@gnu.org>
86806
86807         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86808         (from fencepost.gnu.org:/gd/gnuorg).
86809
86810 2004-02-23  Karl Berry  <karl@gnu.org>
86811
86812         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86813         * config/srclist.txt: add maintain/standards documents.
86814
86815 2004-02-18  Bruno Haible  <bruno@clisp.org>
86816
86817         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86818         Reported by Derek Robert Price <derek@ximbiot.com>.
86819
86820 2004-02-16  Karl Berry  <karl@gnu.org>
86821
86822         * config/mkinstalldirs, install-sh: update from automake.
86823
86824 2004-02-06  Karl Berry  <karl@gnu.org>
86825
86826         * m4/po.m4: update from gettext 0.14.1.
86827
86828 2004-02-06  Karl Berry  <karl@gnu.org>
86829
86830         * lib/config.charset: update from gettext 0.14.1.
86831
86832 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86833
86834         Add comments and code, prompted by suggestions from Bruno Haible
86835         for sh-quote.
86836         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86837         describing the enum quoting_style values.
86838         * lib/quotearg.c (quotearg_alloc): New function.
86839         (quotearg_buffer_restyled): Treat lone { and } as special.
86840         Treat = as special.  Work around bug with older shells
86841         that "see" a '\' that is really the 2nd byte of a multibyte char.
86842         Quote empty string with shell_quoting_style.
86843
86844 2004-02-03  Bruno Haible  <bruno@clisp.org>
86845
86846         * m4/pipe.m4: New file, from GNU gettext.
86847
86848 2004-02-03  Bruno Haible  <bruno@clisp.org>
86849
86850         * lib/pipe.h: New file, from GNU gettext.
86851         * lib/pipe.c: New file, from GNU gettext.
86852
86853 2004-01-27  Bruno Haible  <bruno@clisp.org>
86854
86855         * m4/execute.m4: New file, from GNU gettext.
86856
86857 2004-01-27  Bruno Haible  <bruno@clisp.org>
86858
86859         * lib/execute.h: New file, from GNU gettext.
86860         * lib/execute.c: New file, from GNU gettext.
86861         * lib/w32spawn.h: New file, from GNU gettext.
86862
86863 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86864
86865         Merge from diffutils.
86866
86867         * lib/file-type.c (file_type): Add typed memory objects.
86868         * lib/file-type.h (S_TYPEISTMO): New macro.
86869
86870         * lib/c-stack.h (c_stack_action): Remove argv argument.
86871         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86872         (die): Don't calculate message unless segv_action returns.
86873         (get_stack_location, min_address_from_argv, max_address_from_argv,
86874         volatile stack_base, volatile_stack_size): Remove.
86875         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86876         that every segmentation violation is a stack overflow.  (Ouch!)
86877         See Debian bug 136249 (still outstanding) for more info about why
86878         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86879
86880 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86881
86882         Exit-status fix from coreutils.
86883
86884         Use exit_failure consistently in place of EXIT_FAILURE,
86885         so that program exit statuses are consistent on failure.
86886
86887         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86888         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86889         * lib/argmatch.h: Comment fix to match the above.
86890         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86891         Now a macro referring to exit_failure, instead of a separate
86892         variable.  Include "exitfail.h" to get it.
86893         * lib/xstrtol.h: Include "exitfail.h".
86894         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86895
86896         * lib/long-options.c (parse_long_options): Use prototype
86897         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86898         for clarity.
86899
86900 2004-01-21  Jim Meyering  <jim@meyering.net>
86901
86902         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86903         so as not to conflict with a different-sized __mktime_internal
86904         function in GNU libc.
86905         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86906         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86907
86908 2004-01-20  Karl Berry  <karl@gnu.org>
86909
86910         * config/config.guess: update from config.
86911
86912         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86913
86914 2004-01-20  Bruno Haible  <bruno@clisp.org>
86915
86916         Safer stack allocation.
86917         * lib/setenv.c: Include allocsa.h.
86918         (alloca): Remove fallback definition.
86919         (freea): Remove macro.
86920         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86921         instead of freea.
86922
86923 2004-01-20  Bruno Haible  <bruno@clisp.org>
86924
86925         * m4/eealloc.m4: New file, from GNU gettext.
86926
86927 2004-01-20  Bruno Haible  <bruno@clisp.org>
86928
86929         * m4/allocsa.m4: New file, from GNU gettext.
86930
86931 2004-01-20  Bruno Haible  <bruno@clisp.org>
86932
86933         * lib/xallocsa.h: New file, from GNU gettext.
86934         * lib/xallocsa.c: New file, from GNU gettext.
86935
86936 2004-01-20  Bruno Haible  <bruno@clisp.org>
86937
86938         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86939
86940 2004-01-20  Bruno Haible  <bruno@clisp.org>
86941
86942         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86943         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86944         specially.
86945
86946 2004-01-20  Bruno Haible  <bruno@clisp.org>
86947
86948         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86949         patch.
86950
86951 2004-01-20  Bruno Haible  <bruno@clisp.org>
86952
86953         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86954
86955 2004-01-20  Bruno Haible  <bruno@clisp.org>
86956
86957         * lib/eealloc.h: New file.
86958
86959 2004-01-20  Bruno Haible  <bruno@clisp.org>
86960
86961         * lib/binary-io.h: Avoid warnings on Cygwin.
86962
86963 2004-01-20  Bruno Haible  <bruno@clisp.org>
86964
86965         * lib/allocsa.h: New file, from GNU gettext.
86966         * lib/allocsa.c: New file, from GNU gettext.
86967
86968 2004-01-18  Karl Berry  <karl@gnu.org>
86969
86970         * doc/gpl.texi, doc/lgpl.texi: new files.
86971
86972 2004-01-18  Karl Berry  <karl@gnu.org>
86973
86974         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86975         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86976
86977 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86978
86979         Merge from coreutils.
86980
86981         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86982         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86983         (gl_DEFAULT_POSIX2_VERSION): Move
86984         the documentation from 'configure' into 'config.hin',
86985         so that 'configure --help' isn't burdened by it and
86986         we don't have to worry about its formatting there.
86987         Reword the documentation so that it's more succinct
86988         and can be run together into a single paragraph.
86989         * m4/same.m4 (gl_SAME): Check for pathconf.
86990
86991 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86992
86993         Merge from coreutils.
86994
86995         * lib/posixver.c: Include posixver.h.
86996
86997         * lib/same.c: Include <stdbool.h>, <limits.h>.
86998         (_POSIX_NAME_MAX): Define if not defined.
86999         (MIN): New macro.
87000         (same_name): If file names are silently truncated, report
87001         that the file names are the same if they are the same after
87002         the silent truncation.
87003
87004         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87005         conversion function.
87006         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87007         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87008         longer needed.
87009
87010 2004-01-15  Jim Meyering  <jim@meyering.net>
87011
87012         Merge from coreutils.
87013
87014         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87015         if no library is required.
87016         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87017         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87018         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87019         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87020         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87021         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87022         value, $ac_cv_search_crypt, if it's "none required".
87023         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87024         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87025         not gl_FUNC_GETLOADAVG.
87026         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87027         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87028
87029 2004-01-15  Jim Meyering  <jim@meyering.net>
87030
87031         Merge from coreutils.
87032
87033         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87034         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87035         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87036
87037         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87038         optional configure-time default.
87039
87040         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87041
87042         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87043
87044 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87045
87046         Merge from coreutils.
87047
87048         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87049         value, $ac_cv_search_nanosleep, if it's "none required".
87050
87051 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87052
87053         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87054         with like-named macro in fnmatch.c.
87055         (EXT): Use an internal constant instead.
87056
87057         Merge fnmatch patches from glibc.
87058         * lib/fnmatch.c (mbsinit): Remove define.
87059         Add libc_hidden_ver (__fnmatch, fnmatch).
87060         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87061         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87062
87063 2004-01-14  Karl Berry  <karl@gnu.org>
87064
87065         * config/install-sh: update from automake.
87066
87067 2004-01-13  Karl Berry  <karl@gnu.org>
87068
87069         * config/install-sh: update from automake.
87070
87071 2004-01-09  Karl Berry  <karl@gnu.org>
87072
87073         * config/install-sh: update from automake.
87074
87075 2004-01-05  Karl Berry  <karl@gnu.org>
87076
87077         * config/config.{sub,guess}: update from config.
87078
87079 2003-12-31  Karl Berry  <karl@gnu.org>
87080
87081         * config/depcomp: update from automake.
87082
87083 2003-12-14  Karl Berry  <karl@gnu.org>
87084
87085         * lib/config.charset: update from gettext-runtime.
87086
87087 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87088
87089         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87090         Bug reported by Alfred M. Szmidt.
87091
87092 2003-12-03  Bruno Haible  <bruno@clisp.org>
87093
87094         * m4/gettext.m4: Upgrade from gettext-0.13.
87095         * m4/po.m4: Upgrade from gettext-0.13.
87096         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87097         * m4/intmax.m4: New file, from gettext-0.13.
87098         * m4/printf-posix.m4: New file, from gettext-0.13.
87099
87100 2003-11-29  Karl Berry  <karl@gnu.org>
87101
87102         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87103
87104 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87105             Bruno Haible  <bruno@clisp.org>
87106
87107         * lib/printf-parse.h: Don't include sys/types.h.
87108         (ARG_NONE): New macro.
87109         (char_directive): Change type of *arg_index fields to size_t.
87110         * lib/printf-parse.c: Don't include sys/types.h.
87111         (SSIZE_MAX): Remove macro.
87112         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87113         Remove unnecessary overflow check.
87114         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87115         fields.
87116
87117 2003-11-25  Bruno Haible  <bruno@clisp.org>
87118
87119         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87120
87121 2003-11-25  Bruno Haible  <bruno@clisp.org>
87122
87123         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87124         gt_TYPE_SSIZE_T.
87125
87126 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87127
87128         * modules/alloca: Remove dependency on xalloc.
87129
87130 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87131
87132         * lib/alloca.c: Remove dependency on xalloc module.
87133         (xalloc_die): Remove.
87134         (memory_full) [!defined emacs]: New macro.
87135         [!defined emacs]: Don't include xalloc.h.
87136         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87137         address arithmetic overflows.  Change datatypes a bit to avoid
87138         unnecessary casts.
87139
87140 2003-11-22  Jim Meyering  <jim@meyering.net>
87141
87142         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87143         s/size/size_t/.
87144
87145 2003-11-21  Karl Berry  <karl@gnu.org>
87146
87147         * config/config.{sub,guess}: update from config.
87148
87149 2003-11-18  Karl Berry  <karl@gnu.org>
87150
87151         * config/config.{sub,guess}: update from config.
87152
87153         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87154
87155 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87156
87157         * README: Mention that S+T cannot overflow if S is the size of
87158         an existing object and T is sufficiently small.
87159
87160 2003-11-17  Jim Meyering  <jim@meyering.net>
87161
87162         On systems without utime and without a utimes function capable of
87163         dealing with a NULL struct utimbuf* argument, this utime replacement
87164         could -- in unusual circumstances -- leak a file descriptor.
87165         * lib/utime.c: Include <unistd.h> and <errno.h>.
87166         (utime_null): Be sure to close `fd' and to preserve errno.
87167         Reported by Geoff Collyer via Arnold Robbins.
87168
87169 2003-11-17  Bruno Haible  <bruno@clisp.org>
87170
87171         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87172         (Depends-on): Add xsize.
87173
87174 2003-11-17  Bruno Haible  <bruno@clisp.org>
87175
87176         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87177
87178 2003-11-17  Bruno Haible  <bruno@clisp.org>
87179
87180         * lib/vasnprintf.c (alloca): Remove fallback definition.
87181         (freea): Remove definition.
87182         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87183         Reported by Paul Eggert.
87184
87185 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87186             Bruno Haible  <bruno@clisp.org>
87187
87188         Protect against address arithmetic overflow.
87189         * lib/printf-args.h: Include stddef.h.
87190         (arguments): Change type of field 'count' to size_t.
87191         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87192         'unsigned int' where appropriate.
87193         * lib/printf-parse.h: Include sys/types.h.
87194         (char_directive): Change type of *arg_index fields to ssize_t.
87195         (char_directives): Change type of fields 'count', max_*_length to
87196         size_t.
87197         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87198         (SSIZE_MAX): Define fallback value.
87199         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87200         instead of 'int' where appropriate. Check a_allocated, d_allocated
87201         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87202         * lib/vasnprintf.c: Include xsize.h.
87203         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87204         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87205         overflow. Avoid wraparound when converting a width or precision from
87206         decimal to binary.
87207
87208 2003-11-16  Bruno Haible  <bruno@clisp.org>
87209
87210         Update from GNU gettext.
87211         * lib/printf-parse.c: Generalize to it can be compiled for wide
87212         strings.
87213         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87214         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87215         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87216         SNPRINTF): New macros.
87217         Don't include <alloca.h> if the file is used inside libintl.
87218         (local_wcslen): New function, for Solaris 2.5.1.
87219         (VASNPRINTF): Use it instead of wcslen.
87220
87221 2003-11-16  Bruno Haible  <bruno@clisp.org>
87222
87223         * lib/xsize.h (xmax): New function.
87224         (xsum, xsum3, xsum4): Declare as "pure" functions.
87225
87226 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87227
87228         * modules/xalloc (Files): Undo latest change, since xalloc.h
87229         no longer needs SIZE_MAX or PTRDIFF_MAX.
87230
87231 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87232
87233         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87234         gl_PTRDIFF_MAX.
87235
87236 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87237
87238         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87239         "return", to pacify some unknown compiler.  Problem reported
87240         by Joerg Schilling.
87241
87242 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87243
87244         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87245         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87246         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87247         heuristic is just as accurate as far as we know, and it removes a
87248         dependency on size_max.m4 and ptrdiff_max.m4.
87249
87250 2003-11-11  Bruno Haible  <bruno@clisp.org>
87251
87252         * modules/xsize (Files): Add m4/size_max.m4.
87253         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87254
87255 2003-11-11  Bruno Haible  <bruno@clisp.org>
87256
87257         * m4/size_max.m4: New file.
87258         * m4/ptrdiff_max.m4: New file.
87259         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87260         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87261         (gl_XALLOC): Invoke it.
87262
87263 2003-11-11  Bruno Haible  <bruno@clisp.org>
87264
87265         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87266         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87267         defined.
87268
87269 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87270
87271         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87272         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87273         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87274         From Bruno Haible.
87275         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87276         not (size_t) -1, since it's defined here.
87277
87278 2003-11-09  Karl Berry  <karl@gnu.org>
87279
87280         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87281
87282 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87283
87284         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87285         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87286         Reject sizes of exactly SIZE_MAX bytes.
87287         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87288         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87289
87290 2003-11-05  Bruno Haible  <bruno@clisp.org>
87291
87292         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87293         SIZE_MAX defined in <limits.h> on Solaris.
87294
87295 2003-11-04  Jim Meyering  <jim@meyering.net>
87296
87297         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87298         variable names, rather than @VAR@.
87299         * modules/poll: Likewise.
87300
87301 2003-11-04  Bruno Haible  <bruno@clisp.org>
87302
87303         * modules/xsize: New file.
87304         * modules/linebreak: Depend on xsize.
87305         * MODULES.html.sh (func_all_modules): Add xsize.
87306
87307 2003-11-04  Bruno Haible  <bruno@clisp.org>
87308
87309         * m4/xsize.m4: New file.
87310
87311 2003-11-04  Bruno Haible  <bruno@clisp.org>
87312
87313         * lib/xsize.h: New file.
87314         * lib/linebreak.c: Include xsize.h.
87315         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87316         argument for overflow.
87317         Suggested by Paul Eggert.
87318
87319 2003-11-03  Karl Berry  <karl@gnu.org>
87320
87321         * config/config.{guess,sub}: update from config.
87322
87323 2003-11-03  Jim Meyering  <jim@meyering.net>
87324
87325         * modules/userspec (lib_SOURCES): Add userspec.h.
87326         (Include): Add "userspec.h".
87327         Improve description.
87328
87329 2003-11-03  Jim Meyering  <jim@meyering.net>
87330
87331         * lib/userspec.c: Include "userspec.h".
87332         * lib/userspec.h: New file.
87333
87334 2003-11-03  Bruno Haible  <bruno@clisp.org>
87335
87336         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87337
87338 2003-11-03  Bruno Haible  <bruno@clisp.org>
87339
87340         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87341         available, to avoid (extremely rare) race condition.
87342         Suggested by Paul Eggert.
87343
87344 2003-11-02  Karl Berry  <karl@gnu.org>
87345
87346         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87347
87348 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87349
87350         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87351         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87352         (read_filesystem_list): Set and use me_type_malloced.
87353         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87354         whatever the type happens to be), for brevity and consistency.
87355         Check for size calculation overflow on Alphas running OSF/1.
87356
87357 2003-10-31  Jim Meyering  <jim@meyering.net>
87358
87359         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87360
87361         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87362
87363 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87364             Bruno Haible  <bruno@clisp.org>
87365
87366         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87367         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87368
87369 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87370
87371         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87372         netbsd*-gnu*.  Suggested by Robert Millan.
87373
87374 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87375
87376         * modules/group-member: Depend on stdbool.
87377
87378 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87379
87380         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87381
87382 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87383
87384         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87385         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87386         after the 'gnu' in these cases.  This fixes some bugs in the
87387         previous change, and is based on suggestions by Robert Millan.
87388
87389 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87390
87391         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87392         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87393         no longer needed.
87394         * lib/quotearg.c (quotearg_n_options): Use it.
87395         * lib/group-member.c: Include <stdbool.h>.
87396         (free_group_info): Arg is now const *; don't free arg.
87397         (get_group_info): Now returns bool and accepts struct group_info *,
87398         rather than returning a malloc'ed struct group_info *.
87399         All uses changed.  Check for overflow in internal size calculation.
87400
87401         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87402         rather than xmalloc/xrealloc.
87403         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87404         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87405         conformance bug: the old code used a pointer after freeing the
87406         storage that it addressed.
87407         * lib/hash.c (hash_initialize): Simplify the code by using
87408         xalloc_oversized rather than doing it by hand.
87409         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87410         the buffer preserved.  Use free and xmalloc instead.
87411         * lib/quotearg.c (quotearg_n_options): Likewise.
87412         Use a simpler test for size overflow.  Don't use xalloc_oversized
87413         because unsigned int might be wider than size_t (!); this suggests
87414         that we should switch from unsigned int to size_t for slot numbers.
87415
87416 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87417
87418         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87419         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87420         NetBSD kernels.  Requested by Richard Stallman.
87421
87422 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87423
87424         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87425         to allocate the returned structure.  Do not allocate a subarray,
87426         as x2nrealloc will do that.
87427         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87428         instead of xnrealloc.
87429         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87430
87431 2003-10-27  Bruno Haible  <bruno@clisp.org>
87432
87433         * lib/stdbool_.h: Better support for BeOS.
87434
87435 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87436
87437         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87438         now uses inline.
87439
87440 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87441
87442         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87443         callers that want to do their own size-overflow checking.  Include
87444         <stdbool.h>, since xalloc_oversized returns bool.
87445         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87446         to use xalloc_oversized.
87447
87448         Add two functions x2realloc, x2nrealloc, for programs that grow
87449         arrays dynamically by doubling their sizes.
87450         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87451         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87452         New functions.
87453
87454         Port to C99 semantics for 'inline' of external functions.
87455         Bug reported by Bruno Haible.
87456         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87457         with the old contents of xnmalloc.
87458         (xnmalloc, xmalloc): Use it.
87459         (xnrealloc_inline): New static inline function,
87460         with the old contents of xnrealloc.
87461         (xnrealloc, xrealloc): Use it.
87462
87463         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87464         that.
87465
87466 2003-10-26  Karl Berry  <karl@gnu.org>
87467
87468         * config/srclist.txt (COPYING.DOC): no longer available from
87469         /gd/gnuorg; don't know where the ultimate source is.
87470
87471 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87472
87473         Fix several address-calculation bugs in the hash modules,
87474         plus some minor code cleanup.
87475
87476         * lib/hash.h: Include <stdbool.h>, for bool.
87477         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87478         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87479         hash_get_n_entries, hash_get_max_bucket_length,
87480         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87481         hash_rehash): Use size_t rather than unsigned.
87482         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87483         hash_get_n_buckets_used, hash_get_n_entries,
87484         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87485         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87486         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87487         Likewise.
87488         (SIZE_MAX): Define if not defined.
87489         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87490         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87491         hash_print):
87492         Use const * when possible.
87493         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87494         (check_tuning): Fix bug: if tuning parameters were very close to
87495         0 or 1, rounding errors could have caused subscript violations.
87496         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87497         (hash_initialize): Add 'fail:' label
87498         to free table and return NULL, and use it to simplify code.
87499         Use calloc rather than clearing the storage ourself.
87500         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87501         buffer size calculations.
87502         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87503         Include <stddef.h>, for size_t.
87504         * lib/hash-pjw.c (hash_pjw): Likewise.
87505         Switch to method described by Bruno Haible.
87506         Include <limits.h>, for CHAR_BIT.
87507         (SIZE_BITS): New macro.
87508
87509 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87510
87511         * m4/getline.m4 (AM_FUNC_GETLINE):
87512         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87513         hosts.  Problem reported by Derek Robert Price in
87514         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87515         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87516         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87517
87518 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87519
87520         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87521         ceiling the allocation at NMAX bytes rather than silently
87522         discarding input bytes before NMAX is reached.  This makes
87523         a difference only if NMAX exceeds SIZE_MAX / 2.
87524
87525         * lib/obstack.c: Merge from glibc.
87526         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87527         Add libc_hidden_def (_obstack_newchunk).
87528         (_obstack_free) [! defined _LIBC]: Remove.
87529         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87530         a clone of the function body.
87531         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87532         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87533
87534         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87535         glibc.
87536         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87537         arg to memcpy.
87538
87539         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87540         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87541         Don't use lvalue casts, as GCC plans to remove support for them
87542         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87543         was also present in the non-GCC version, indicating that this
87544         code had always been buggy and had never been widely used.
87545         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87546         Use the fast variant of each macro, rather than copying the
87547         definiens of the fast variant; that way, we'll be more likely to
87548         catch future bugs in the fast variants.
87549
87550 2003-10-20  Bruno Haible  <bruno@clisp.org>
87551
87552         * modules/wait-process: New file.
87553         * MODULES.html.sh (func_all_modules): Add wait-process.
87554
87555 2003-10-20  Bruno Haible  <bruno@clisp.org>
87556
87557         * m4/wait-process.m4: New file.
87558
87559 2003-10-20  Bruno Haible  <bruno@clisp.org>
87560
87561         * lib/wait-process.h: New file, from GNU gettext.
87562         * lib/wait-process.c: New file, from GNU gettext.
87563
87564 2003-10-19  Jim Meyering  <jim@meyering.net>
87565
87566         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87567         HPUX 10.20.
87568
87569 2003-10-18  Karl Berry  <karl@gnu.org>
87570
87571         * config/config.guess: update from config.
87572
87573 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87574
87575         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87576         (getgroups): First arg is int, not size_t.
87577         Don't let 'free' mangle errno.
87578
87579 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87580
87581         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87582
87583 2003-10-16  Karl Berry  <karl@gnu.org>
87584
87585         * config/config.{guess,sub}: update from config.
87586
87587 2003-10-16  Jim Meyering  <jim@meyering.net>
87588
87589         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87590         memcpy.
87591
87592 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87593
87594         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87595         (SIZE_MAX): Remove.
87596         (new_exclude, add_exclude_file): Initial size no longer needs to
87597         be a power of 2.
87598         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87599         our own address arithmetic overflow checking.
87600
87601         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87602         (fnmatch): Do not alloca more than 2000 wide characters;
87603         instead, use malloc for large buffers.
87604         Check for address arithmetic overflow, and return -1
87605         with errno set to ENOMEM in that case.
87606         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87607         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87608         instead, return -1.  Check for address arithmetic overflow.
87609
87610 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87611
87612         Handle invalid suffixes and overflow independently, so that
87613         callers can treat them independently as needed.  Fix some bugs in
87614         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87615         suffix for a human-readable blocksize.  The major caller-visible
87616         change is the addition of a new
87617         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87618         that both overflow and suffix chars were found.
87619
87620         * lib/human.c (humblock): Don't check separately for invalid suffix
87621         char; that is xstrtoumax's job (now that its bug is fixed).
87622         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87623         INTMAX_MAX]: New macros.
87624         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87625         TYPE_MAXIMUM): New macros.
87626         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87627         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87628         if overflow occurs, as it's what __strtol does and it's more useful
87629         in practice.
87630         (__xstrtol): If __strtol reports some error other than ERANGE,
87631         reflect it to the caller as LONGINT_INVALID.  If it reports
87632         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87633         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87634         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87635         value.
87636         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87637         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87638         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87639         [defined UINTMAX_MAX]: New macros.
87640
87641 2003-10-14  Bruno Haible  <bruno@clisp.org>
87642
87643         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87644
87645 2003-10-14  Bruno Haible  <bruno@clisp.org>
87646
87647         * m4/sig_atomic_t: New file, from GNU gettext.
87648         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87649
87650 2003-10-14  Bruno Haible  <bruno@clisp.org>
87651
87652         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87653         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87654         Also use volatile where needed.
87655
87656 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87657
87658         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87659         Change maintainer from Bruno Haible to 'all'.
87660
87661 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87662
87663         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87664
87665 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87666
87667         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87668         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87669         and define in terms of the other primitives.
87670         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87671         (SIZE_MAX): Define if not already defined.
87672         (array_size_overflow): New function.
87673         (xalloc_die): Abort instead of exiting if 'error' returns.
87674         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87675         (xmalloc, xrealloc): Use them.
87676         (xcalloc): Check for address arithmetic overflow.
87677         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87678         a bit faster than strcpy.
87679
87680 2003-10-10  Simon Josefsson  <jas@extundo.com>
87681
87682         * modules/argp (Depends-on): Add restrict and strcase.
87683
87684 2003-10-10  Simon Josefsson  <jas@extundo.com>
87685
87686         * m4/argp.m4: Add AC_C_INLINE.
87687
87688 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87689
87690         Merge getpass from libc, plus a few fixes.
87691
87692         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87693         Include <stdbool.h>.
87694         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87695         __fsetlocking to empty.
87696         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87697         do include <bits/libc-lock.h>.
87698         Do not include <fcntl.h>; not needed.
87699         [_LIBC]: Include <wchar.h>.
87700         (NOTCANCEL_MODE): New macro.
87701         (flockfile, funlockfile) [_LIBC]: New macros.
87702         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87703         [!_LIBC]: New macros.
87704         (call_fclose): New function.
87705         (getpass): Use it.  Save tty stream separately; this simplifies the
87706         code and makes it more reliable if stdin happens to equal stdout.
87707         Invoke __fsetlocking on tty.
87708         Handle thread cancellation if needed.
87709         Namespace cleanup (use __tcgetattr, __getline).
87710         Use bool for Booleans.
87711         [USE_IN_LIBIO]: Handle wide streams.
87712         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87713         stream might go where.
87714
87715         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87716         doesn't have to include <stdio.h> before us.
87717         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87718         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87719         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87720         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87721         if not declared, so that we can use getpass.c code from libc without
87722         rewriting it.
87723         (flockfile, ftrylockfile, funlockfile): New macros.
87724
87725 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87726
87727         * modules/getpass: Depend on stdbool.
87728
87729 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87730
87731         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87732
87733 2003-10-07  Karl Berry  <karl@gnu.org>
87734
87735         * config/config.{guess,sub}: update from config.
87736
87737 2003-10-06  Jim Meyering  <jim@meyering.net>
87738             Bruno Haible  <bruno@clisp.org>
87739
87740         This lets translators provide better translations for the
87741         "Written by ..." part of --version output.
87742         * lib/version-etc.h: Include stdarg.h.
87743         (version_etc_copyright): Declare as readonly.
87744         (version_etc): Make this function variadic with a NULL-terminated list
87745         of author name strings.
87746         (version_etc_va): New declaration.
87747         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87748         (version_etc_copyright): Declare as readonly.
87749         (version_etc_va): New function. Provide a different translatable string
87750         for each possible number of authors < 10. Abbreviate when there are 10
87751         authors or more.
87752         (version_etc): Make this function variadic. Call version_etc_va.
87753         Suggestion from Gary V. Vaughan.
87754
87755         * lib/long-options.h (parse_long_options): Change prototype: the
87756         authors string is moved to the end and becomes variadic.
87757         * lib/long-options.c: Include stdarg.h.
87758         (parse_long_options): Make this function variadic, too.
87759         Call version_etc_va, not version_etc.
87760
87761 2003-10-06  Bruno Haible  <bruno@clisp.org>
87762
87763         * modules/version-etc-2: Remove file.
87764         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87765
87766 2003-10-06  Bruno Haible  <bruno@clisp.org>
87767
87768         * modules/fatal-signal: New file.
87769         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87770
87771 2003-10-06  Bruno Haible  <bruno@clisp.org>
87772
87773         * m4/fatal-signal.m4: New file.
87774         * m4/signalblocking.m4: New file, from GNU gettext.
87775
87776 2003-10-06  Bruno Haible  <bruno@clisp.org>
87777
87778         * lib/version-etc-2.h: Remove file.
87779         * lib/version-etc-2.c: Remove file.
87780
87781 2003-10-06  Bruno Haible  <bruno@clisp.org>
87782
87783         * lib/fatal-signal.h: New file, from GNU gettext.
87784         * lib/fatal-signal.c: New file, from GNU gettext.
87785
87786 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87787
87788         * README: Rework advice for preventing empty .o files.
87789         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87790         not <sys/types.h>.
87791
87792 2003-10-04  Karl Berry  <karl@gnu.org>
87793
87794         * lib/argp*: update from libc.
87795
87796 2003-10-04  Karl Berry  <karl@gnu.org>
87797
87798         * config/config.{guess,sub}: update from config.
87799
87800 2003-10-02  Bruno Haible  <bruno@clisp.org>
87801
87802         * modules/lchown (Include): Add lchown.h.
87803         * modules/time_r (Include): Use "..." syntax.
87804         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87805
87806 2003-10-01  Simon Josefsson  <jas@extundo.com>
87807
87808         * MODULES.html.sh (func_all_modules): Move gethostname from section
87809         'based on' to section 'lacking' POSIX:2001.
87810
87811 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87812
87813         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87814         to output mode on the same stream.
87815
87816 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87817
87818         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87819         Fix arg typo in previous patch.
87820
87821 2003-09-28  Jim Meyering  <jim@meyering.net>
87822
87823         * lib/error.c: Correct cpp indentation.
87824
87825 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87826
87827         * modules/free: New file.
87828
87829 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87830
87831         * m4/free.m4: New file.
87832
87833 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87834
87835         * lib/minmax.h (MIN, MAX)
87836         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87837         Omit the special code that used __typeof__, since we worry that
87838         it could be more trouble than it's worth.  See:
87839         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87840         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87841
87842         * lib/free.c: New file.
87843
87844 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87845
87846         Trivial fixes to Makefile.am parts of module listings.
87847         * modules/strstr: Append strstr.h to lib_SOURCES.
87848         * modules/strcase: Likewise, for strcase.h.
87849
87850 2003-09-27  Karl Berry  <karl@gnu.org>
87851
87852         * config/mkinstalldirs: update from automake.
87853
87854 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87855
87856         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87857         (error_tail): Do not loop, reallocating temporary buffer, since
87858         the output cannot contain more wide characters than the input
87859         contains bytes, the size must be big enough already.  This avoids
87860         one potential size overflow calculation.  Check for size overflow
87861         when calculating temporary buffer size.  Free temporary buffer
87862         when done, if it was allocated with malloc; this plugs a memory
87863         leak.  Remove casts from void * to pointers, that are no longer
87864         needed now that we're assuming C89 or better.
87865
87866         Merge error changes from glibc.
87867
87868         * lib/error.c, error.h: Update copyright notice header to match glibc.
87869         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87870         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87871         Disable cancellation while printing error.
87872         * lib/error.h: Prepend __ to parameter names.
87873
87874 2003-09-26  Jim Meyering  <jim@meyering.net>
87875
87876         * lib/error.c (error_tail): Move some declarations
87877         into inner scope where the local variables are used.
87878
87879 2003-09-26  Bruno Haible  <bruno@clisp.org>
87880
87881         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87882         stpncpy().
87883         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87884
87885 2003-09-26  Bruno Haible  <bruno@clisp.org>
87886
87887         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87888         (stpncpy): Define as alias for gnu_stpncpy.
87889         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87890
87891 2003-09-25  Simon Josefsson  <jas@extundo.com>
87892
87893         * lib/xgetdomainname.h: New file.
87894         * lib/xgetdomainname.c: New file.
87895
87896 2003-09-25  Simon Josefsson  <jas@extundo.com>
87897             Bruno Haible  <bruno@clisp.org>
87898
87899         * modules/getdomainname: New file.
87900         * modules/xgetdomainname: New file.
87901         * MODULES.html.sh (func_all_modules): Add getdomainname,
87902         xgetdomainname.
87903
87904 2003-09-25  Simon Josefsson  <jas@extundo.com>
87905             Bruno Haible  <bruno@clisp.org>
87906
87907         * m4/getdomainname.m4: New file.
87908
87909 2003-09-25  Simon Josefsson  <jas@extundo.com>
87910             Bruno Haible  <bruno@clisp.org>
87911
87912         * lib/getdomainname.h: New file.
87913         * lib/getdomainname.c: New file.
87914
87915 2003-09-25  Karl Berry  <karl@gnu.org>
87916
87917         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87918
87919 2003-09-25  Karl Berry  <karl@gnu.org>
87920
87921         * config/install-sh: update from automake.
87922
87923 2003-09-25  Bruno Haible  <bruno@clisp.org>
87924
87925         * modules/version-etc-2: New file, from modules/version-etc with
87926         modifications.
87927         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87928
87929 2003-09-25  Bruno Haible  <bruno@clisp.org>
87930
87931         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87932         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87933
87934 2003-09-24  Simon Josefsson  <jas@extundo.com>
87935
87936         * modules/xgethostname: Add xgethostname.h.
87937
87938 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87939
87940         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87941         the buffer associated with the argument.  Bug reported by
87942         Simon Josefsson.
87943
87944 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87945
87946         * README: Document assumptions that 'int' is at least 32 bits
87947         wide, that integer arithmetic is 2's complement without overflow,
87948         that there are no holes in integer values, that adding sizes of
87949         two nonoverlapping objects can't overflow, and that all-bits-zero
87950         yields scalar zero.  Fix spelling and capitalization typos.
87951
87952 2003-09-19  Karl Berry  <karl@gnu.org>
87953
87954         * lib/argp.h: update from libc.
87955
87956 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87957
87958         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87959         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87960         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87961
87962 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87963
87964         * gnulib-tool: Use "test -h", not "test -L", for portability
87965         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87966         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87967         (sed_extract_prog): Issue s commands one-by-one, rather than
87968         using \| in one s command.
87969
87970 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87971
87972         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87973         input error, instead of returning NULL the next time we are called
87974         (and therefore losing track of errno).
87975
87976 2003-09-16  Bruno Haible  <bruno@clisp.org>
87977
87978         * gnulib-tool (func_create_testdir): Warn about duplicated
87979         dependencies.
87980
87981 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87982
87983         * modules/argmatch, modules/fatal, modules/obstack,
87984         modules/xalloc, modules/xgethostname: Sort dependencies by
87985         importance, not alphabetically.
87986
87987 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87988
87989         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87990         fails, so that the caller gets the proper errno.
87991
87992         * lib/readutmp.c (read_utmp): Likewise.
87993         Check for fstat error.  Close stream and free storage
87994         when failing.
87995
87996 2003-09-14  Karl Berry  <karl@gnu.org>
87997
87998         * config/srclist.txt (strdup.c): disable for c89 changes.
87999
88000 2003-09-14  Jim Meyering  <jim@meyering.net>
88001
88002         * lib/getloadavg.c: Correct cpp indentation.
88003         * lib/strdup.c: Likewise.
88004         * lib/vasnprintf.c: Likewise.
88005
88006 2003-09-14  Bruno Haible  <bruno@clisp.org>
88007
88008         * modules/fwriteerror: New file.
88009         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88010
88011 2003-09-14  Bruno Haible  <bruno@clisp.org>
88012
88013         * lib/fwriteerror.h: New file.
88014         * lib/fwriteerror.c: New file.
88015
88016 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88017
88018         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88019         modules/xgethostname, modules/xalloc: Depend on exit.
88020
88021 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88022
88023         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88024
88025         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88026         and AC_MINIX, too, so that their extensions are available.
88027
88028         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88029         This macro has been superseded by gl_BACKUPFILE.
88030
88031         More patches to assume C89 or better.
88032
88033         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88034
88035         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88036         unconditionally.
88037         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88038         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88039         Include <string.h>, <stdlib.h> unconditionally.
88040         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88041         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88042         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88043         headers or for string.h.
88044         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88045         or strtoul.
88046
88047         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88048         headers.
88049         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88050         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88051         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88052         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88053         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88054         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88055         memcpy, memset.
88056         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88057         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88058         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88059         strtol.
88060         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88061         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88062         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88063         strtoul.
88064
88065 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88066
88067         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88068         * lib/obstack.c [!defined _LIBC]: Likewise.
88069         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88070         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88071         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88072
88073         More changes to assume C89 or better.
88074
88075         * lib/error.c (error_tail): Assume vprintf.
88076
88077         * lib/argmatch.c (getenv): Remove decl.
88078         * lib/progreloc.c (get_full_program_name): Define via prototype.
88079         * lib/setenv.c (clearenv): Likewise.
88080         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88081         needed.
88082         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88083         (malloc, memcpy): Remove decls.
88084         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88085         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88086         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88087         (memcpy): Remove macro.
88088         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88089         (__P): Remove.  All uses removed.
88090         (PTR): Remove.  All uses changed to void *.
88091         (CHAR_BIT, NULL): Remove.
88092         (spaces, zeros, memset_space, memset_zero)
88093         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88094         Remove.
88095         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88096         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88097         Define with prototype.
88098         Remove now-unnecessary prototype decl.
88099         (extra_args_spec): Assume ANSI C.  All uses changed.
88100         (extra_args_spec_iso): Remove.
88101         (my_strftime, emacs_strftimeu): Define via prototype.
88102         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88103         unconditionally.
88104         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88105         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88106         (strtoul, strtol): Remove decls.
88107         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88108         LONG_MAX): Remove.
88109         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88110         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88111         (LOCALE_PARAM_PROTO): New macro.
88112         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88113         (INTERNAL (strtol), strtol): Define with a prototype.
88114         (PARAMS): Remove.  All uses removed.
88115         * lib/tempname.c: Include <string.h> unconditionally.
88116         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88117         * lib/xgethostname.c (main): Define with a prototype.
88118         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88119         Include <stdlib.h> unconditionally.
88120         (calloc, malloc, realloc, free): Remove decls.
88121         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88122         Include <stdlib.h> unconditionally.  Sort include file names.
88123         (strtod): Remove.
88124         (xstrtod): Define with a prototype.
88125         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88126         (strtol, strtoul): Remove decls.
88127
88128 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88129
88130         More patches to assume C89 or better.
88131         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88132         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88133         string.h, memchr, STDC_HEADERS.
88134
88135 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88136
88137         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88138         Include <stdlib.h>, <string.h> unconditionally.
88139         Remove now-unnecessary cast to char *.
88140         * lib/strnlen.c: Include <string.h> unconditionally.
88141         * lib/yesno.c (yesno): Define with a prototype.
88142
88143 2003-09-11  Bruno Haible  <bruno@clisp.org>
88144
88145         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88146
88147 2003-09-10  Jim Meyering  <jim@meyering.net>
88148
88149         * lib/error.c: Correct indentation of cpp directives.
88150
88151 2003-09-10  Bruno Haible  <bruno@clisp.org>
88152
88153         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88154         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88155         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88156         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88157         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88158         <stdlib.h> and <string.h> checks.
88159         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88160         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88161
88162 2003-09-10  Bruno Haible  <bruno@clisp.org>
88163
88164         * lib/strcspn.c: Include <string.h> unconditionally.
88165         * lib/strpbrk.c: Include <string.h> unconditionally.
88166         * lib/strstr.c: Include <string.h> unconditionally.
88167         * lib/unicodeio.c: Include <string.h> unconditionally.
88168         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88169         * lib/unsetenv.c: Likewise.
88170         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88171         * lib/yesno.c: Include <stdlib.h> unconditionally.
88172         (rpmatch): Add prototype.
88173
88174 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88175
88176         More patches to assume C89 or better.
88177         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88178         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88179         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88180         or for string.h.
88181         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88182         stdlib.h.
88183         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88184         C headers.
88185         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88186         string.h.
88187         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88188         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88189         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88190         or for string.h.
88191         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88192         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88193         C headers.
88194         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88195         memcpy.
88196         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88197         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88198         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88199         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88200         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88201         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88202         string.h, free.
88203         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88204         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88205         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88206         C headers, or for string.h.
88207         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88208         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88209         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88210         headers, memory.h, stdlib.h, string.h, strings.h.
88211         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88212         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88213         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88214         strchr.
88215         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88216         headers, memory.h, string.h.
88217         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88218         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88219         free.
88220         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88221         headers.
88222         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88223         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88224         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88225         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88226         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88227
88228 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88229
88230         More K&R removal.
88231
88232         * lib/acosl.c (main): Use a prototype.
88233         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88234         tanl.c: Likewise.
88235
88236         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88237
88238         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88239         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88240         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88241         with a prototype.
88242         * lib/getopt.c (const): Remove macro.
88243         Include <string.h> unconditionally.
88244         (my_index): Remove; all uses changed to strchr.
88245         (strlen): Remove decl.
88246         (exchange): Remove forward decl; no longer needed.
88247         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88248         Define with prototype.
88249         * lib/getopt1.c (const): Remove macro.
88250         (getopt_long, getopt_long_only, main): Define with prototype.
88251
88252         * lib/getugroups.c: Include <string.h> unconditionally.
88253
88254         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88255         (getusershell, setusershell, endusershell, readname, main):
88256         Define with prototypes.
88257
88258         * lib/group-member.c: Include group-member.h first.
88259         Include <stdlib.h> unconditionally.
88260
88261         * lib/hard-locale.c: Include hard-locale.h first.
88262         Include <stdlib.h>, <string.h> unconditionally.
88263
88264         * lib/hash.c (free, malloc): Remove decls.
88265         Include <stdlib.h> unconditionally.
88266
88267         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88268         (getenv): Do not declare.
88269
88270         * lib/idcache.c: Include <string.h> unconditionally.
88271
88272         * lib/long-options.c: Include long-options.h first, to test interface.
88273         Include <stdlib.h> unconditionally.
88274
88275         * lib/makepath.c: Include makepath.h first, to test interface.
88276         Include <stdlib.h> and <string.h> unconditionally.
88277
88278         * lib/linebuffer.c: Include <stdlib.h>.
88279         (free): Remove decl.
88280
88281         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88282         stddef.h. rpl_malloc returns void *, not char *.
88283         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88284         prototype.
88285
88286         * lib/md5.h: Include <limits.h> unconditionally.
88287         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88288         (__P): Remove; all uses removed.
88289         * lib/md5.c: Include "md5.h" first.
88290         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88291         md5_buffer, md5_process_bytes, md5_process_block):
88292         Define with prototypes.
88293         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88294         * lib/sha.c: Include "sha.h" first.
88295         Include <stdlib.h>, <string.h> unconditionally.
88296
88297         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88298         * lib/memcmp.c (__ptr_t): Likewise.
88299         * lib/memrchr.c (__ptr_t): Likewise.
88300         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88301         Include <string.h> unconditionally.
88302         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88303         * lib/memchr.c: Include <stdlib.h> unconditionally.
88304         * lib/memchr.c (LONG_MAX): Remove.
88305         * lib/memrchr.c (LONG_MAX): Likewise.
88306         * lib/memchr.c (__memchr): Define via a prototype.
88307         * lib/memrchr.c (__memrchr): Likewise.
88308         * lib/memcmp.c (__P): Remove, and remove all uses.
88309         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88310         Remove forward decls; no longer needed.
88311         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88312         Use types required by C89 in prototype.
88313
88314         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88315         * lib/savedir.c: Likewise.
88316         * lib/mkdir.c (free): Remove decl.
88317         * lib/rmdir.c (rmdir): Define with a prototype.
88318         * lib/savedir.c: Include savedir.h first, to test interface.
88319
88320         * lib/mktime.c (STDC_HEADERS): Remove.
88321         Include <stdlib.h>, <string.h> unconditionally.
88322
88323         * lib/modechange.c: Include <stdlib.h> unconditionally.
88324         (malloc): Remove decl.
88325
88326         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88327         (free): Remove decl.
88328
88329         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88330         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88331         (This type really should be intptr_t, but that's a C99ism.)
88332         (_obstack_memcpy): Remove: all uses changed to memcpy.
88333         Include <string.h> unconditionally.
88334         (struct obstack): Assume __STDC__ for types of members
88335         chunkfun, freefun, extra_arg.
88336         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88337         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88338         obstack_begin, obstack_specify_allocation,
88339         obstack_specify_allocation_with_arg, obstack_chunkfun,
88340         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88341         Remove unprototyped decls and the macros that use them.
88342         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88343         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88344         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88345         (defined __STDC__ && __STDC__)]:
88346         Remove nonprototyped code.
88347         Include <stdlib.h> unconditionally.
88348         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88349         _obstack_allocated_p, _obstack_free, obstack_free,
88350         _obstack_memory_used, print_and_abort):
88351         Define using prototypes.
88352         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88353         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88354         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88355         obstack_next_free, obstack_object_size, obstack_room) [0]:
88356         Remove unused, unprototyped code.
88357
88358         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88359
88360         * lib/physmem.c (physmem_total, physmem_available, main): Define
88361         with prototypes.
88362
88363         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88364         (main): Define with a prototype.
88365
88366         * lib/posixver.c (getenv): Remove decl.
88367
88368         * lib/putenv.c (malloc): Returns void *, not char *.
88369         Include <string.h> unconditionally.
88370         (strchr, memcpy, NULL): Do not define.
88371
88372         * lib/readtokens.c: Include readtokens.h first, to test interface.
88373         Include <stdlib.h>, <string.h> unconditionally.
88374         (init_tokenbuffer): Define with a prototype.
88375
88376         * lib/regex.c (PARAMS): Remove.  All uses removed.
88377         All uses of _RE_ARGS removed, too.
88378         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88379         unconditionally.
88380         (bzero): Assume memset exists.
88381         (memcmp, memcpy, NULL): Remove.
88382         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88383         char, or assignments to local vars of type signed char.
88384         (init_syntax_once, PREFIX(extract_number_and_incr),
88385         PREFIX(print_partial_compiled_pattern),
88386         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88387         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88388         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88389         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88390         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88391         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88392         wcs_compile_range, byte_compile_range, truncate_wchar,
88393         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88394         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88395         count_mbs_length, wcs_re_match_2_internal,
88396         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88397         PREFIX(alt_match_null_string_p),
88398         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88399         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88400         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88401         now-unnecessary declaration, if any.
88402         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88403         regcomp, regexec):
88404         Remove now-unnecessary casts among pointer types.
88405         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88406
88407         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88408         (free): Remove decl.
88409
88410         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88411
88412         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88413         (free): Remove decl.
88414
88415         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88416         * lib/xgetcwd.c: Likewise.
88417
88418         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88419         (free): Remove decl.
88420
88421         * lib/strchrnul.c (strchrnul): Define with a prototype.
88422         Fix bug: c_in was not converted to char before searching.
88423
88424         The following changes are not K&R related:
88425
88426         * lib/group-member.h: Include <sys/types.h>, so that this file is
88427         self-contained.
88428         * lib/makepath.h: Likewise.
88429
88430         * lib/getusershell.c (readname, default_index, line_size, readname):
88431         Use size_t, not int, for sizes.
88432         (readname): If the size overflows, report an error instead of
88433         looping forever.
88434
88435 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88436
88437         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88438         libc.
88439
88440 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88441
88442         * README: New section: portability guidelines.
88443
88444 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88445
88446         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88447         C89 spec.
88448
88449 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88450
88451         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88452
88453 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88454
88455         Assume C89 or better; remove K&R cruft.
88456         A few of these changes were first proposed by Derek Robert Price
88457         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88458
88459         * lib/addext.c: Include <string.h> unconditionally.
88460         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88461         Don't declare getenv or malloc.
88462
88463         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88464         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88465         (NULL): Remove.
88466         (find_stack_direction, alloca): Use prototypes.
88467
88468         * lib/atexit.c (atexit): Define using a prototype.
88469
88470         * lib/basename.c, dirname.c, stripslash.c:
88471         Include <string.h> unconditionally.
88472
88473         * lib/bcopy.c: Include <stddef.h>.
88474         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88475
88476         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88477
88478         * lib/error.h (error, error_at_line, error_print_progname)
88479         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88480         * lib/error.c: Include error.h first, to check interface.
88481         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88482         (VA_START): Remove; all uses changeed to va_start.
88483         (exit, strerror): Remove decls.
88484         (error_print_progname): Prototype uncondionally.
88485         Don't include <errno.h>; no longer needed.
88486         (private_strerror): Remove.
88487         (error_tail): Always define.
88488         (error, error_at_line): Assume C89 or better; always use prototypes.
88489         * lib/fatal.c: Include "fatal.h" first, to test interface.
88490         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88491         (VA_START): Remove; all uses changed to va_start.
88492         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88493         this case.
88494         (exit): Remove decl.
88495         (fatal): Prototype unconditionally.  Assume va_start works.
88496         Abort at end, to pacify gcc.
88497
88498         * lib/euidaccess.c (main): Define with a prototype.
88499
88500         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88501
88502         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88503
88504         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88505         prototypes.
88506         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88507         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88508         (getenv): Remove decl.
88509         (fnmatch): Define using a prototype.
88510         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88511         (FCT): Define using a prototype.
88512
88513         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88514
88515         * lib/gethostname.c: Include <stddef.h>.
88516         (gethostname): Define with prototype.  Length is size_t, not int.
88517
88518 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88519
88520         Assume C89 or better; remove K&R cruft.
88521         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88522         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88523         string.h, getenv, malloc.
88524         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88525         headers.
88526         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88527         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88528         do not check for strerror.
88529         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88530         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88531         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88532         do not check for doprnt or vprintf.
88533         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88534         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88535
88536 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88537
88538         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88539         getversion.c should have been removed then, but was accidentally
88540         preserved.
88541
88542         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88543         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88544
88545 2003-09-08  Karl Berry  <karl@gnu.org>
88546
88547         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88548                 config, forget about prep.
88549
88550         * config/depcomp, missing: update from automake.
88551
88552 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88553
88554         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88555         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88556
88557 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88558
88559         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88560         copy_tm_result.  Bug reported by Simon Josefsson in
88561         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88562
88563 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88564
88565         * m4/time_r.m4: New file.
88566         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88567         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88568         is. Check for timegm declaration.
88569         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88570         Do not check for gmtime_r.
88571         Replace mktime if __mktime_internal does not exist and if mktime
88572         hasn't been replaced already.
88573
88574 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88575
88576         * lib/time_r.c, lib/time_r.h: New files.
88577
88578         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88579         __localtime_r.
88580         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88581         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88582
88583         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88584         __gmtime_r.
88585         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88586         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88587         Include <time_r.h>.
88588
88589         * lib/timegm.c: Switch to glibc implementation, with the following
88590         changes:
88591         [defined HAVE_CONFIG_H]: Include <config.h>.
88592         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88593         (__mktime_internal) [!defined _LIBC]: New decl.
88594         (__gmtime_r) [!defined _LIBC]: New macro and function.
88595         (timegm): Use a prototype, since gnulib assumes C89.
88596         Do not bother declaring tmp to be const, as it's not really usefu.
88597         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88598         (timegm): Declare only if HAVE_DECL_TIMEGM.
88599
88600 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88601
88602         * MODULES.html.sh (func_all_modules): Add time_r.
88603         * modules/time_r: New file.
88604         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88605         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88606
88607 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88608
88609         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88610         Bug reported by Lute Kamstra in
88611         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88612
88613         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88614         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88615         course with correspondingly smaller numbers for tomorrow and
88616         yesterday.  From Tadayoshi Funaba.  Originally installed into
88617         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88618         coreutils merge?).
88619
88620 2003-08-31  Simon Josefsson  <jas@extundo.com>
88621
88622         * modules/timegm: New file.
88623         * MODULES.html.sh (func_all_modules): Add timegm.
88624
88625 2003-08-31  Simon Josefsson  <jas@extundo.com>
88626
88627         * m4/timegm.m4: New file.
88628
88629 2003-08-31  Simon Josefsson  <jas@extundo.com>
88630
88631         * lib/timegm.h: New file.
88632         * lib/timegm.c: New file.  Based on
88633         wget-1.8.2/src/http.c:mktime_from_utc.
88634
88635 2003-08-31  Karl Berry  <karl@gnu.org>
88636
88637         * lib/argp.h: update from libc.
88638
88639 2003-08-28  Bruno Haible  <bruno@clisp.org>
88640
88641         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88642         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88643         followed by '#define fnmatch fnmatch_posix' gives an error.
88644
88645 2003-08-28  Bruno Haible  <bruno@clisp.org>
88646
88647         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88648         warning on QNX, which defines O_BINARY to 000000.
88649
88650 2003-08-27  Jim Meyering  <jim@meyering.net>
88651
88652         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88653         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88654         would fail after 32.  Reported by Danny Levinson.  Details here:
88655         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88656
88657 2003-08-24  Bruno Haible  <bruno@clisp.org>
88658
88659         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88660         MSVC7 <stdio.h> is included later.
88661
88662 2003-08-22  Simon Josefsson  <jas@extundo.com>
88663
88664         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88665
88666 2003-08-20  Karl Berry  <karl@gnu.org>
88667
88668         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88669
88670 2003-08-20  Bruno Haible  <bruno@clisp.org>
88671
88672         * modules/progname: New file.
88673         * MODULES.html.sh (func_all_modules): Add progname.
88674
88675 2003-08-20  Bruno Haible  <bruno@clisp.org>
88676
88677         * lib/progname.h: New file, from GNU gettext.
88678         * lib/progname.c: New file, from GNU gettext.
88679         * lib/progreloc.c: New file, from GNU gettext.
88680
88681 2003-08-19  Jim Meyering  <jim@meyering.net>
88682
88683         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88684         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88685
88686 2003-08-19  Bruno Haible  <bruno@clisp.org>
88687
88688         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88689         more.
88690
88691 2003-08-19  Bruno Haible  <bruno@clisp.org>
88692
88693         * lib/xstrdup.c: Assume <string.h> exists.
88694
88695 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88696
88697         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88698         in makefile rules.
88699
88700 2003-08-18  Jim Meyering  <jim@meyering.net>
88701
88702         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88703         * m4/lib-ld.m4: Likewise.
88704
88705 2003-08-18  Jim Meyering  <jim@meyering.net>
88706
88707         * lib/setenv.h: Indent nested cpp directive.
88708         * lib/vasnprintf.c: Remove trailing blanks.
88709
88710 2003-08-17  Simon Josefsson  <jas@extundo.com>
88711
88712         * modules/xstrndup: New file.
88713         * MODULES.html.sh (func_all_modules): Add xstrndup.
88714
88715 2003-08-17  Simon Josefsson  <jas@extundo.com>
88716
88717         * modules/argp: Fix autoconf macro name. Add more dependencies.
88718
88719 2003-08-17  Simon Josefsson  <jas@extundo.com>
88720
88721         * m4/xstrndup.m4: New file.
88722
88723 2003-08-17  Simon Josefsson  <jas@extundo.com>
88724
88725         * m4/argp.m4: New file.
88726
88727 2003-08-17  Simon Josefsson  <jas@extundo.com>
88728             Bruno Haible  <bruno@clisp.org>
88729
88730         * lib/xstrndup.h: New file.
88731         * lib/xstrndup.c: New file.
88732
88733 2003-08-17  Bruno Haible  <bruno@clisp.org>
88734
88735         * modules/strndup (Files, Include): Add lib/strndup.h.
88736
88737 2003-08-17  Bruno Haible  <bruno@clisp.org>
88738
88739         * modules/euidaccess (Files): Add lib/euidaccess.h.
88740
88741 2003-08-17  Bruno Haible  <bruno@clisp.org>
88742
88743         * lib/strndup.h: New file.
88744
88745 2003-08-17  Bruno Haible  <bruno@clisp.org>
88746
88747         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88748         like AC_GNU_SOURCE.
88749         * modules/extensions (configure.ac): Comment out the invocation of
88750         gl_USE_SYSTEM_EXTENSIONS.
88751
88752 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88753
88754         Merges from coreutils, etc.
88755         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88756         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88757         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88758         fixing a typo.
88759         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88760         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88761
88762 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88763
88764         Document merge from coreutils.
88765         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88766         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88767         * modules/utime: Add m4/utimes-null.m4.
88768
88769 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88770
88771         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88772         space, undoing this 2003-08-12 change:
88773         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88774
88775 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88776
88777         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88778         strtoul.c from libc, undoing this 2003-08-12 change:
88779         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88780
88781 2003-08-16  Jim Meyering  <jim@meyering.net>
88782
88783         Merges from coreutils.
88784         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88785         prefix.  Adjust cache variables similarly.  Create 500 rather than
88786         just 300 files, to exercise bug on Darwin6.5, too.
88787         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88788         $missing_dir.
88789         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88790         AM_SYS_POSIX_TERMIOS.
88791         Reported by mkc@mathdogs.com.
88792         Also change use of $am_cv_sys_posix_termios
88793         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88794         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88795         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88796         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88797         in /proc/mounts until it finds one with matching device number.  This
88798         is unnecessary when the FILE argument *is* a mount point.  No stat call
88799         is necessary in that case.  So, disable the statvfs-testing code on
88800         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88801         as RedHat bug# 84846.
88802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88803         to 1MB, so as not to render systems with no stack size limit (e.g.,
88804         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88805         Include <unistd.h>.  On some systems,
88806         it is required for the definition of _SC_PAGESIZE.
88807
88808 2003-08-16  Jim Meyering  <jim@meyering.net>
88809
88810         Merge from coreutils.
88811         * lib/xstrtoimax.c: #else #if -> #elif.
88812         * lib/xstrtoumax.c: Likewise.
88813
88814 2003-08-16  Jim Meyering  <jim@meyering.net>
88815
88816         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88817         * m4/utimes.m4: Removed.
88818         * m4/utimes-null.m4: Renamed from utimes.m4.
88819
88820         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88821         to 1MB, so as not to render systems with no stack size limit (e.g.,
88822         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88823         Include <unistd.h>.  On some systems,
88824         it is required for the definition of _SC_PAGESIZE.
88825
88826 2003-08-16  Jim Meyering  <jim@meyering.net>
88827         and Paul Eggert  <eggert@cs.ucla.edu>
88828
88829         Merges from coreutils, etc.
88830
88831         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88832         using the latest version from cvs.  This avoids problems with #line
88833         directives using a vendor (Sun) compiler.
88834         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88835         Don't set GETGROUPS_LIB here; now it's
88836         done via getgroups.m4's wrapper function.
88837         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88838         rather than just in sh-util/configure.in, so that the
88839         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88840         same.
88841         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88842         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88843         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88844         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88845         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88846         Remove code that is now done by the newly-required macros.
88847         Append $(EXEEXT) to DF_PROG.
88848         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88849         Do not invoke or require the following here,
88850         since prereq.m4 or some gnulib .m4 now does this for us:
88851         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88852         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88853         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88854         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88855         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88856         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88857         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88858         AC_FUNC_OBSTACK.
88859         Do not replace the following functions, as this is now the job
88860         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88861         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88862         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88863         atexit getpass, strdup, getpagesize.
88864         Replace 'raise'.
88865         Do not check for the following functions, as this is now the job
88866         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88867         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88868         setregid.
88869         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88870         Check for sys/sysctl.h.
88871         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88872         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88873         of checking for ssize_t ourselves.
88874
88875         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88876         Require every macro that gnulib/modules/* suggests for us.
88877         (jm_PREREQ_ADDEXT): New macro.
88878         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88879         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88880
88881         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88882         (gl_PHYSMEM): Use it.
88883         Also check for `table' function.
88884         Check for new headers and functions.
88885         Add check for sys/sysmp.h.
88886         With suggestions from Kaveh Ghazi.
88887         Ignore headers that are present but cannot be compiled.  This
88888         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88889         C 5.4.
88890
88891 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88892
88893         Document merge from coreutils.
88894         * modules/userspec: Depend on posixver.
88895         * modules/strftime: Depend on tzset.
88896
88897 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88898
88899         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88900         rather than tab, after '#' in shell-script copyright notices.
88901         Suggested by Bruno Haible.
88902
88903 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88904
88905         * config/srclist-update: Use three spaces, rather than tab, after '#'
88906         in shell-script copyright notices.  Suggested by Bruno Haible.
88907         Remove unnecessary parenthesization in regular expression.
88908
88909 2003-08-15  Jim Meyering  <jim@meyering.net>
88910
88911         Merge from coreutils.
88912         * lib/xgethostname.c: Include <stdlib.h>.
88913         (xghostname): Don't exit for anything other than memory-related
88914         failure; just return NULL.
88915         * lib/userspec.c: Include "posixver.h".
88916         (parse_user_spec): Accept `.' as a separator only
88917         in pre-POSIX-200112 mode.
88918         * lib/strtoimax.c: Use #elif rather than #else #if.
88919         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88920         Remove function, now that we can rely on a working tzset function.
88921         [!_LIBC]: Ensure that the required autoconf test has been run.
88922         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88923         Use underlying_strftime for %r.
88924         * lib/sha.c: Merge in some clean-up and optimization changes from
88925         glibc.
88926         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88927         Ensure that it is a multiple of 64.
88928         Rearrange loop exit tests so as to avoid performing an
88929         additional fread after encountering an error or EOF.
88930         * lib/realloc.c: Update copyright date.
88931
88932 2003-08-15  Jim Meyering  <jim@meyering.net>
88933         and Paul Eggert  <eggert@twinsun.com>
88934
88935         Merge from coreutils.
88936         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88937         member but strut utmpx does not.  Needed for AIX 4.3.3.
88938         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88939
88940 2003-08-15  Jim Meyering  <jim@meyering.net>
88941         and Paul Eggert  <eggert@cs.ucla.edu>
88942
88943         Merges from coreutils, etc.
88944         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88945         Require gl_FUNC_TZSET_CLOBBER.
88946         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88947         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88948         members.
88949
88950 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88951
88952         Help the merge from coreutils.
88953         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88954         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88955         * m4/tzset.m4: Use it too.
88956
88957 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88958
88959         * modules/tzset: New file.
88960
88961 2003-08-14  Jim Meyering  <jim@meyering.net>
88962
88963         Merges from coreutils.
88964         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88965         variable names, rather than @FNMATCH_H@.
88966         * modules/alloca: Likewise for $(ALLOCA_H).
88967
88968         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88969         the three copies of the literal target, `fnmatch.h'.
88970         * modules/alloca (alloca.h): Likewise.
88971
88972 2003-08-14  Jim Meyering  <jim@meyering.net>
88973
88974         Merge from coreutils.
88975         * m4/tzset.m4: New file.
88976         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88977         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88978         otherwise, AIX 5.1 systems would end up using the latter.
88979         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88980         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88981         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88982         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88983
88984 2003-08-14  Jim Meyering  <jim@meyering.net>
88985
88986         Merge from coreutils.
88987         * lib/obstack.h: Whitespace changes.
88988         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88989         and xcalloc return values.
88990         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88991         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88992         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88993         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88994         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88995         error from mntctl.
88996         Use mntctl's return value to drive the entry-processing loop, since
88997         we can't rely on the value of the vmt_length member in the last
88998         entry.  On some systems doing so could result in exhausting
88999         virtual memory.  Based in part on a patch from Mike Jetzer.
89000
89001 2003-08-14  Jim Meyering  <jim@meyering.net>
89002         and Paul Eggert  <eggert@twinsun.com>
89003
89004         Merges from coreutils, plus other fixes.
89005         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89006         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89007         for credits and details.  Thanks to Kaveh Ghazi for helping
89008         to keep these files in sync.
89009         (ARRAY_SIZE): Define it.
89010         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89011         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89012         (memcasecmp): Don't assume size_t fits in unsigned int.
89013         Remove casts and duplicate code.
89014         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89015         (memcpy): Remove definition.
89016         Merge in some clean-up and optimization changes from glibc.
89017         [BLOCKSIZE]: Move definition to top of file.
89018         Ensure that it is a multiple of 64.
89019         Rearrange loop exit tests so as to avoid performing an
89020         additional fread after encountering an error or EOF.
89021         * lib/md5.h (md5_uintptr): Define.
89022         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89023         return to the initial working directory.  Preserve errno
89024         for caller.
89025         * lib/idcache.c: Include "xalloc.h".
89026         (xmalloc, xrealloc): Remove decls.
89027         (getuser): Remove casts no longer required in C89.
89028         * lib/human.c: Include stdio.h, for sprintf.
89029         * lib/group-member.c: Include "xalloc.h".
89030         (xmalloc, xrealloc): Remove decls.
89031         (get_group_info): Remove casts no longer required in C89.
89032         * lib/getusershell.c (readname): Remove casts no longer required in
89033         C89.
89034         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89035         * lib/getline.c: Whitespace fix, from coreutils.
89036
89037 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89038
89039         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89040         Check for isascii.
89041
89042         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89043         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89044         Undo previous (whitespace-only) change.
89045
89046 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89047
89048         * lib/exclude.c: Include <ctype.h>
89049         (IN_CTYPE_DOMAIN): New macro.
89050         (is_space): New fn.
89051         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89052         and empty lines.
89053
89054         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89055         Undo previous (whitespace-only) change.
89056
89057 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89058
89059         * config/srclist-update: Change update back to the old behavior,
89060         leaving whitespace alone.  Use one 'sed' command rather than a
89061         pipeline.
89062         (fixlicense): Now a variable, not a function.
89063         (remove_trailing_blanks): Remove.
89064         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89065         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89066         Undo previous (whitespace-only) change.
89067
89068 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89069
89070         Merge from coreutils.
89071         * modules/euidaccess: Add lib_SOURCES, include for new
89072         file euidaccess.h
89073
89074 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89075
89076         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89077         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89078         Normalize leading white space and remove trailing white space.
89079
89080         Merge from coreutils
89081         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89082
89083         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89084         0.12.1.  These files are now being upgraded automatically by
89085         ../config/srclist-update.
89086
89087 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89088
89089         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89090         Normalize leading white space and remove trailing white space.
89091         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89092         notice, as per ../config/srclist-update.
89093
89094         Merge from coreutils.
89095         * lib/euidaccess.h: New file.
89096         * lib/euidaccess.c: Include it.
89097         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89098         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89099         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89100
89101 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89102
89103         * config/srclist-update: Add copyright notice.
89104         (remove_id_lines, remove_trailing_blanks): New constants.
89105         (fixfile): Use them to normalize spacing a bit in copied files.
89106         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89107         Normalize leading white space and remove trailing white space.
89108
89109         * config/texinfo.tex: Sync with texinfo.
89110
89111         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89112         strtoul.c from libc, to merge coreutils whitespace changes.
89113
89114         * config/srclist.txt: Get the following m4 files from gettext:
89115         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89116         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89117         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89118         wint_t.m4.
89119
89120 2003-08-12  Karl Berry  <karl@gnu.org>
89121
89122         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89123         been made.
89124
89125 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89126
89127         * modules/gnu-source, m4/gnu-source.m4:
89128         Remove; we're assuming Autoconf 2.54 or later now.
89129         Suggested by Bruno Haible.
89130         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89131
89132 2003-08-11  Bruno Haible  <bruno@clisp.org>
89133
89134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89135
89136 2003-08-11  Bruno Haible  <bruno@clisp.org>
89137
89138         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89139         (vasnprintf): Use it instead of wcslen.
89140
89141 2003-08-11  Bruno Haible  <bruno@clisp.org>
89142
89143         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89144         value to ensure that _Bool promotes to int. Use #define for _Bool when
89145         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89146
89147 2003-08-10  Karl Berry  <karl@gnu.org>
89148
89149         * lib/regex.h: update from libc (whitespace fix).
89150
89151 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89152
89153         Merge some files from coreutils.  These changes were
89154         originally made by Jim Meyering.
89155         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89156         many older Unixes require this.
89157         * lib/alloca.c (alloca): Remove cast to argument of free;
89158         no longer needed in C89.
89159         * lib/alloca_.h, regex.h: Fix white space to match
89160         what GNU indent does.
89161
89162 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89163
89164         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89165         apparently Emacs's Unicode mode got confused before my 2003-08-05
89166         checkin.
89167
89168 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89169
89170         * m4/extensions.m4: New file.
89171         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89172         Require gl_USE_SYSTEM_EXTENSIONS.
89173         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89174         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89175
89176 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89177
89178         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89179         * modules/extensions, modules/gnu-source: New files.
89180         * modules/timespec, modules/unlocked-io: Depend on extensions.
89181
89182 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89183
89184         * modules/restrict: New file.
89185         * MODULES.html.sh (func_all_modules): Add restrict.
89186         * modules/regex: Depend on restrict.
89187
89188 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89189
89190         * m4/restrict.m4: New file.
89191         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89192
89193 2003-08-07  Bruno Haible  <bruno@clisp.org>
89194
89195         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89196         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89197
89198 2003-08-07  Bruno Haible  <bruno@clisp.org>
89199
89200         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89201         makes the module 'getndelim2' compatible with the module 'getline'.
89202
89203 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89204
89205         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89206         byte with "\201" to avoid glitches when editing that source file
89207         with multi-gnome-terminal.
89208
89209 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89210
89211         * lib/bumpalloc.h: Remove.
89212
89213 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89214
89215         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89216         * modules/bumpalloc: Remove.
89217
89218 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89219
89220         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89221         GNU coding style.
89222
89223         Merge from coreutils.
89224         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89225         1. From glibc.
89226         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89227         from Karl Berry, implemented by Jim Meyering.
89228         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89229         from Dmitry V. Levin.
89230         Remove anachronistic cast of xrealloc.
89231         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89232         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89233         type. Otherwise, it wouldn't compile with at least /bin/cc on
89234         ymp-cray-unicos9.0.2.X.
89235         Combine two mostly-identical uses of alloca into one.
89236         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89237
89238 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89239
89240         [From Emacs.]
89241
89242         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89243         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89244         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89245         obsolete NLIST_NAME_UNION.
89246         [__GNU__]: Undef BSD and FSCALE.
89247         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89248
89249 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89250
89251         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89252         an enum type, so that it's guaranteed to promote to int.  See:
89253         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89254
89255 2003-08-03  Karl Berry  <karl@gnu.org>
89256
89257         * config/depcomp: update from automake.
89258
89259 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89260
89261         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89262         (strerror): Don't assume that a printable int fits in 14 bytes.
89263
89264 2003-07-31  Bruno Haible  <bruno@clisp.org>
89265
89266         * modules/getpass-gnu: New file.
89267         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89268
89269 2003-07-31  Bruno Haible  <bruno@clisp.org>
89270
89271         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89272
89273 2003-07-24  Karl Berry  <karl@gnu.org>
89274
89275         * config/missing: update from automake.
89276
89277 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89278             Bruno Haible  <bruno@clisp.org>
89279
89280         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89281         * lib/getline.c (getline, getdelim): Likewise.
89282         Remove _GNU_SOURCE define; now it's defined in config.h through
89283         m4/getline.m4.
89284
89285 2003-07-23  Karl Berry  <karl@gnu.org>
89286
89287         * config/config.sub: update from prep.
89288
89289 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89290
89291         * modules/xalloc (Depends-on): Add exitfail.
89292         * modules/xmemcoll: Likewise.
89293
89294 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89295
89296         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89297         over-parenthesization in macros.
89298
89299         Sync with coreutils.
89300
89301         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89302         required by C99.
89303
89304         Use `exit_failure' for xalloc and xmemcoll instead of their own
89305         private exit-failure variables.
89306         * lib/xalloc.h (xalloc_exit_failure): Remove.
89307         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89308         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89309         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89310         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89311         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89312
89313 2003-07-20  Jim Meyering  <jim@meyering.net>
89314
89315         * modules/closeout (Depends-on): Add exitfail.
89316         Suggestion from Bruno Haible.
89317
89318 2003-07-19  Karl Berry  <karl@gnu.org>
89319
89320         * config/config.sub: update from prep.
89321
89322 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89323
89324         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89325         Remove.
89326         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89327         to test that it can stand by itself.  Include "exitfail.h".
89328         Clients should set exit_failure instead.
89329         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89330
89331 2003-07-18  Bruno Haible  <bruno@clisp.org>
89332
89333         * modules/getndelim2: New file.
89334         * modules/getline: Share files with module getndelim2.
89335         * modules/getnline: Depend on getndelim2 instead of sharing files with
89336         it. Add getnline.c to lib_SOURCES.
89337         * MODULES.html.sh (func_all_modules): Add getndelim2.
89338
89339 2003-07-18  Bruno Haible  <bruno@clisp.org>
89340
89341         * m4/getndelim2.m4: New file.
89342         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89343         invoke gl_PREREQ_GETNDELIM2.
89344         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89345         gl_PREREQ_GETNDELIM2.
89346         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89347         gl_GETNDELIM2.
89348
89349 2003-07-18  Bruno Haible  <bruno@clisp.org>
89350
89351         * lib/getndelim2.h: New file.
89352         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89353         getndelim2.h.
89354         (getndelim2): Make non-static. Change return type to ssize_t.
89355         * lib/getline.h: Change argument names.
89356         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89357         * lib/getnline.c: Include getndelim2.h.
89358
89359 2003-07-18  Andreas Schwab  <schwab@suse.de>
89360
89361         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89362
89363 2003-07-17  Karl Berry  <karl@gnu.org>
89364
89365         * config/config.sub: update from prep.
89366
89367 2003-07-17  Bruno Haible  <bruno@clisp.org>
89368
89369         * modules/getnline: New file.
89370         * modules/getline: Add lib/getndelim2.c to source file list.
89371         * MODULES.html.sh (func_all_modules): Add getnline.
89372
89373 2003-07-17  Bruno Haible  <bruno@clisp.org>
89374
89375         * m4/getnline.m4: New file.
89376
89377 2003-07-17  Bruno Haible  <bruno@clisp.org>
89378
89379         * m4/Makefile.am.in: Remove file.
89380         * m4/Makefile.am: Remove file.
89381         * m4/Makefile.in: Remove file.
89382
89383 2003-07-17  Bruno Haible  <bruno@clisp.org>
89384
89385         * lib/getnline.h: New file.
89386         * lib/getnline.c: New file.
89387         * lib/getndelim2.c: New file, extracted from getline.c.
89388         (getndelim2): Renamed from getdelim2, with added nmax argument.
89389         * lib/getline.c: Include getndelim2.c.
89390         (getdelim2): Moved out to getndelim2.c.
89391         (getline, getdelim): Update.
89392
89393 2003-07-17  Bruno Haible  <bruno@clisp.org>
89394
89395         * lib/Makefile.am: Remove file.
89396         * lib/Makefile.in: Remove file.
89397
89398 2003-07-17  Bruno Haible  <bruno@clisp.org>
89399
89400         * configure.in: Remove file.
89401         * Makefile.in: Remove file.
89402
89403 2003-07-17  Bruno Haible  <bruno@clisp.org>
89404
89405         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89406
89407 2003-07-16  Karl Berry  <karl@gnu.org>
89408
89409         * config/srclist-update: was running fixlicense twice, which caused
89410                 texinfo.tex to be nullified for some reason.  Simplify,
89411                 $gplsrc is no longer needed as far as I can see?
89412
89413 2003-07-16  Jim Meyering  <jim@meyering.net>
89414
89415         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89416
89417 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89418
89419         * config/srclist.txt: Get the following files from gettext-runtime/intl
89420         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89421         ref-del.sin.  From Bruno Haible.
89422         * config/srclist-update (fixfile): Change grep pattern again, since the
89423         previous fix didn't work (there was another trailing $).  Use
89424         '[$]' to escape the $s.
89425
89426 2003-07-15  Karl Berry  <karl@gnu.org>
89427
89428         * lib/vasnprintf.c: update from gettext.
89429
89430 2003-07-15  Karl Berry  <karl@gnu.org>
89431
89432         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89433         gets expanded when surrounded by '$'.
89434
89435 2003-07-15  Jim Meyering  <jim@meyering.net>
89436
89437         * modules/save-cwd: Don't depend on error.  From Derek Price.
89438
89439 2003-07-15  Jim Meyering  <jim@meyering.net>
89440
89441         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89442
89443 2003-07-14  Simon Josefsson  <jas@extundo.com>
89444
89445         * modules/mempcpy: New file.
89446         * MODULES.html.sh (func_all_modules): Add mempcpy.
89447
89448 2003-07-14  Simon Josefsson  <jas@extundo.com>
89449
89450         * m4/mempcpy.m4: New file.
89451
89452 2003-07-14  Simon Josefsson  <jas@extundo.com>
89453
89454         * lib/mempcpy.h: New file.
89455         * lib/mempcpy.c: New file.
89456
89457 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89458
89459         * modules/getdate, modules/posixtm: Depend on mktime.
89460
89461 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89462
89463         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89464         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89465         unicodeio.c, unicodeio.h, unlocked-io.h:
89466         Switch from LGPL to GPL.
89467
89468 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89469
89470         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89471         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89472         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89473         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89474         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89475         updated automatically by ../config/srclist-update.  This changes
89476         their license from LPGL to GPL.
89477
89478 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89479
89480         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89481         assumed to refer to the root of the most recent stable gettext version.
89482         * config/srclistvars.sh: Add defaults for eggert.
89483         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89484         Match "This program" as well as "The program".  This is needed
89485         for gettext.
89486
89487 2003-07-14  Jim Meyering  <jim@meyering.net>
89488
89489         Don't emit diagnostics.  Let callers do that.
89490         * lib/save-cwd.c: Don't include "error.h".
89491         (save_cwd): Don't call error.  Ensure that errno is valid
89492         when returning nonzero.
89493
89494         * lib/save-cwd.h (restore_cwd): Update prototype.
89495         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89496         Simplify.  Don't call error upon failure.  Let callers do that.
89497         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89498         when auditing is enabled.  But don't bother updating the #if.
89499
89500 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89501
89502         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89503         it breaks C++ compilation.
89504         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89505
89506 2003-07-10  Simon Josefsson  <jas@extundo.com>
89507
89508         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89509
89510 2003-07-10  Jim Meyering  <jim@meyering.net>
89511
89512         * m4/clock_time.m4: Remove trailing blank.
89513         * m4/intmax_t.m4: Likewise.
89514
89515 2003-07-10  Jim Meyering  <jim@meyering.net>
89516
89517         * lib/vasnprintf.c: Remove trailing blanks.
89518         Make cpp indentation consistent.
89519
89520 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89521
89522         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89523         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89524         Switch from LGPL to GPL.
89525
89526 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89527
89528         * config/srclist.txt: Sort sublists.  Add
89529         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89530         that differ from gnulib for one reason or another; we'd like this list
89531         to be smaller but for now let's document what we have.
89532
89533 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89534
89535         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89536         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89537         and sweeter "eval x=$x".
89538         * config/srclist.txt: Get lib/argp* from glibc.
89539
89540 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89541
89542         * lib/mktime.c: Fix some boundary cases and remove need for floating
89543         point.
89544
89545         Issue a compile-time diagnostic if time_t is floating point, or if
89546         two's complement arithmetic is not in effect, or if arithmetic
89547         right shift does not propagate the sign.  These assumptions were
89548         all in the original code but they weren't checked.
89549
89550         (TIME_T_MIDPOINT, verify): New macros.
89551         (__isleap): Remove; it has integer overflow problems.
89552         (leapyear): New function, without those problems.
89553         (ydhms_tm_diff): Remove; splitting into two parts.
89554         (ydhms_diff): New function, containing the arithmetic part of
89555         the old ydhms_tm_diff function.  Issue a compile-time
89556         diagnostic if we are not using C99 integer division.
89557         Avoid casts when possible.
89558         (guess_time_tm): New function, containing the checking part of
89559         the old ydhms_tm_diff function.  Return the new value, rather than
89560         the difference between it and the old.  Accept a new argument T
89561         so that *T specifies the old value.  Check for overflow in the result.
89562
89563         (__mktime_internal): Use a time_t offset, not a long int offset.
89564         This undoes the 2003-06-04 change, which is no longer needed now
89565         that we have better overflow checking.
89566         (localtime_offset): Likewise.
89567
89568         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89569         and long are 64-bit but int is only 32-bit.
89570         (ydhms_diff): Use long int to store year1 and yday1.
89571         Issue a compile-time diagnostic if long int is not wide enough.
89572
89573         (__mktime_internal): Use long int to store adjusted year and yday.
89574         Use plain C rather than preprocessor commands, if that doesn't
89575         affect efficiency.
89576         Check for overflow (and try to repair) after each probe
89577         rather than checking only at the very end.  This avoids some bugs
89578         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89579         does not equal GMT offset at maximum time).
89580         Use integer to check for overflow rather than floating point; this
89581         is more portable to non-IEEE hosts, and is a tad faster.
89582         When we detect that we are oscillating between two values,
89583         don't check whether tm_isdst has the requested value, since
89584         we already know the answer.  When tm_isdst has the wrong value,
89585         use a different heuristic to find the right one, based on the
89586         extreme values actually observed in practice in tz2003a,
89587         rather than the (overly optimistic) "previous 3 calendar quarters".
89588
89589         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89590         "T const" to accommodate glibc style.
89591         (check_result): Use less-confusing report format.  "long" -> "long int.
89592         (main): Likewise.
89593         Don't loop if the iteration overflows time_t.
89594         Allow a negative step in the iteration.
89595
89596 2003-07-06  Karl Berry  <karl@gnu.org>
89597
89598         * config/depcomp: update from automake.
89599         * config/config.sub: update from prep.
89600
89601 2003-07-03  Karl Berry  <karl@gnu.org>
89602
89603         * config/config.guess: update from prep.
89604
89605 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89606
89607         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89608         xreadlink.c now includes it unconditionally.
89609
89610 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89611
89612         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89613         having it depend on HAVE_SYS_TYPES_H.
89614
89615 2003-07-01  Bruno Haible  <bruno@clisp.org>
89616
89617         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89618         <sys/types.h> should be sufficient.
89619         Reported by Paul Eggert.
89620
89621 2003-06-26  Karl Berry  <karl@gnu.org>
89622
89623         * config/depcomp: update from automake.
89624
89625 2003-06-26  Bruno Haible  <bruno@clisp.org>
89626
89627         * modules/human: Depend on module stdbool.
89628
89629 2003-06-25  Bruno Haible  <bruno@clisp.org>
89630
89631         * modules/readlink: New file.
89632         * modules/xreadlink: Depend on it.
89633         * MODULES.html.sh (func_all_modules): Add readlink.
89634
89635 2003-06-25  Bruno Haible  <bruno@clisp.org>
89636
89637         * m4/readlink.m4: New file.
89638
89639 2003-06-25  Bruno Haible  <bruno@clisp.org>
89640
89641         * lib/readlink.c: New file.
89642
89643 2003-06-22  Karl Berry  <karl@gnu.org>
89644
89645         * config/srclist.txt: update mkinstalldirs from automake.
89646         * config/mkinstalldirs: update.
89647
89648 2003-06-22  Bruno Haible  <bruno@clisp.org>
89649
89650         Portability to mingw32.
89651         * m4/ssize_t.m4: New file, from GNU gettext.
89652         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89653         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89654
89655 2003-06-22  Bruno Haible  <bruno@clisp.org>
89656
89657         * modules/safe-read: Add m4/ssize_t.m4.
89658         * modules/xreadlink: Add m4/ssize_t.m4.
89659
89660 2003-06-20  Bruno Haible  <bruno@clisp.org>
89661
89662         Assume C89, so PARAMS isn't needed.
89663         * lib/unicodeio.h (PARAMS): Remove.
89664         * lib/unicodeio.c: Don't use PARAMS.
89665
89666 2003-06-18  Karl Berry  <karl@gnu.org>
89667
89668         * config/config.{guess,sub}: update from prep.
89669
89670 2003-06-18  Jim Meyering  <jim@meyering.net>
89671
89672         Merge changes from coreutils.
89673         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89674         Remove explicit declarations of xmalloc and realloc.
89675         Include xalloc.h.
89676         (read_utmp): Remove anachronistic cast of xmalloc.
89677
89678 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89679
89680         Assume C89, so PARAMS isn't needed.
89681         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89682         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89683         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89684         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89685         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89686         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89687         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89688         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89689         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89690         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89691         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89692         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89693         no longer needed. Anyway, config.h should always be included before any
89694         other file.
89695
89696 2003-06-11  Simon Josefsson  <jas@extundo.com>
89697
89698         * modules/sysexits: New file.
89699         * MODULES.html.sh (func_all_modules): Add sysexits.
89700
89701 2003-06-11  Simon Josefsson  <jas@extundo.com>
89702
89703         * lib/sysexit_.h: New file.
89704
89705 2003-06-11  Derek Price  <derek@ximbiot.com>
89706
89707         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89708         necessary.
89709
89710 2003-06-11  Bruno Haible  <bruno@clisp.org>
89711
89712         * m4/sysexits.m4: New file.
89713
89714 2003-06-10  Simon Josefsson  <jas@extundo.com>
89715
89716         * lib/argp.h: New file, from glibc.
89717         * lib/argp-ba.c: New file, from glibc.
89718         * lib/argp-eexst.c: New file, from glibc.
89719         * lib/argp-fmtstream.c: New file, from glibc.
89720         * lib/argp-fmtstream.h: New file, from glibc.
89721         * lib/argp-fs-xinl.c: New file, from glibc.
89722         * lib/argp-help.c: New file, from glibc.
89723         * lib/argp-namefrob.h: New file, from glibc.
89724         * lib/argp-parse.c: New file, from glibc.
89725         * lib/argp-pv.c: New file, from glibc.
89726         * lib/argp-pvh.c: New file, from glibc.
89727         * lib/argp-xinl.c: New file, from glibc.
89728
89729 2003-06-10  Simon Josefsson  <jas@extundo.com>
89730
89731         * modules/strchrnul: New file.
89732
89733 2003-06-10  Simon Josefsson  <jas@extundo.com>
89734
89735         * modules/argp: New file.
89736
89737 2003-06-10  Simon Josefsson  <jas@extundo.com>
89738
89739         * m4/strchrnul.m4: New file.
89740
89741 2003-06-10  Simon Josefsson  <jas@extundo.com>
89742
89743         * lib/strchrnul.h: New file.
89744         * lib/strchrnul.c: New file.
89745
89746 2003-06-10  Bruno Haible  <bruno@clisp.org>
89747
89748         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89749
89750 2003-06-07  Karl Berry  <karl@gnu.org>
89751
89752         * config/config.{guess,sub}: update from prep.
89753
89754 2003-06-07  Jim Meyering  <jim@meyering.net>
89755
89756         * modules/strtod: Use $(...) notation, not @...@ for
89757         AC_REPLACE'd variables.
89758         * modules/localcharset: Likewise.
89759
89760 2003-06-07  Jim Meyering  <jim@meyering.net>
89761
89762         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89763         in place of my name in the copyright comment.
89764         Remove definition and uses of __P.
89765
89766         From coreutils.
89767         * lib/stat.c: Don't declare xmalloc explicitly.
89768         Instead, include "xalloc.h".
89769         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89770         xrealloc, and xcalloc return values.
89771         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89772         Improve comment.
89773         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89774
89775 2003-06-07  Bruno Haible  <bruno@clisp.org>
89776
89777         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89778         avoid AC_CONFIG_LINKS.
89779         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89780         fnmatch.h, to avoid AC_CONFIG_LINKS.
89781         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89782
89783 2003-06-07  Bruno Haible  <bruno@clisp.org>
89784
89785         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89786         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89787         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89788         directory.
89789         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89790         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89791         directory.
89792
89793 2003-06-06  Jim Meyering  <jim@meyering.net>
89794
89795         Merge from coreutils.
89796         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89797         Consolidate declarations and initializations of *_base* locals.
89798
89799         Merge from coreutils.
89800         This avoids a core dump on systems without GNU putenv,
89801         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89802         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89803         (unsetenv): New static function, from GNU libc.
89804         (rpl_putenv): Use it.
89805
89806         * lib/modechange.c: Remove trailing blanks.
89807
89808         Merge from coreutils.
89809         * lib/fsusage.c: Remove declaration of statfs.
89810         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89811
89812         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89813
89814 2003-06-06  Jim Meyering  <jim@meyering.net>
89815
89816         * lib/stdbool_.h: Renamed from stdbool.h.in.
89817
89818 2003-06-06  Jim Meyering  <jim@meyering.net>
89819             Bruno Haible  <bruno@clisp.org>
89820
89821         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89822         Adjust Makefile.am snippet not to redirect directly to target.
89823         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89824
89825 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89826
89827         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89828         mismatch, look in future quarters as well as past.  This fixes a
89829         bug when processing fall-backwards gaps immediately after a long
89830         period of daylight-saving time.
89831
89832         * lib/mktime.c: Assume freestanding C89 or better.
89833         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89834         (__P): Remove; not used.
89835         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89836         (mktime, not_equal_tm, print_tm, check_result,
89837         main): Use prototypes.  Use const * where appropriate.
89838         (main): Fix typo in testing code that uncovered by above changes.
89839         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89840
89841 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89842
89843         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89844         locale.h, localeconv.  This merges changes from coreutils.
89845
89846         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89847         It can be removed after the next Autoconf is released.
89848         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89849         needed.
89850
89851 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89852
89853         * lib/mktime.c: Fix Debian bug 177940
89854         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89855         (localtime_offset): Now long int, not time_t, because we want it
89856         to be guaranteed to be signed.  All uses changed.
89857         (__mktime_internal): If overflow would occur when adding offset,
89858         don't add it.
89859
89860         Merge 'human' changes from coreutils.  Rewrite to support
89861         locale-specific notations like thousands separators.
89862         * lib/human.c: Simplify authorship notice.
89863         Include human.h immediately after config.h.
89864         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89865         <limits.h>: Do not include, since human.h does.
89866         (SIZE_MAX, UINTMAX_MAX): New macros.
89867         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89868         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89869         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89870         (power_letter): Renamed from suffixes.
89871         (generate_suffix_backwards): Remove.
89872         (adjust_value): Now takes int style (because of human.h changes)
89873         and long double value (for greater precision on some platforms).
89874         (group_number): New function.
89875         (human_readable): Use it.  Use integer options, not enum.
89876         Put the options before the sizes in the arg list.
89877         Support all the new options.
89878         The old human_readable function has been removed;
89879         use inttostr.h instead.
89880         (human_readable, default_block_size, humblock):
89881         Use uintmax_t, not int, for block sizes.
89882         (human_readable_inexact, block_size_types): Remove.
89883         (block_size_opts): New constant.
89884         (human_options): Renamed from human_block_size, with new signature
89885         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89886         * lib/human.h: Add copyright and authorship notice.
89887         Include <limits.h> and <stdbool.h> unconditionally.
89888         (PARAMS): Remove.  All uses removed.
89889         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89890         (enum human_inexact_style): Remove tag; now a nameless enum.
89891         (human_floor, human_ceiling, human_round_to_even): Now have
89892         values 2, 0, 1 rather than -1, 1, 0.
89893         (human_group_digits, human_suppress_point_zero, human_autoscale,
89894         human_base_1024, human_SI, human_B): New constants.
89895         (human_readable_inexact, human_block_size): Remove.
89896         (human_readable): Size args are now uintmax_t, not int.
89897         (human_options): New decl.
89898
89899         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89900         unnecessary now that we assume C89 or better.  This change
89901         imported from coreutils.
89902
89903         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89904         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89905         in the 2003-05-30 sync from glibc.
89906
89907         .h files should stand alone, but we shouldn't include <sys/types.h>
89908         if we can get away with just <stddef.h>.
89909
89910         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89911         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89912         rather than <sys/types.h>, as we merely need size_t.
89913         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89914         to get size_t.
89915         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89916         Include <stdio.h>, to get FILE.
89917         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89918         memcasecmp.h has included <stddef.h> and all we need is size_t.
89919         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89920         our interface, instead of including <sys/types.h>
89921
89922 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89923
89924         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89925         now, as glibc mktime is buggy on non-glibc systems.
89926
89927 2003-06-03  Karl Berry  <karl@gnu.org>
89928
89929         * config/config.sub: update from prep.
89930
89931 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89932
89933         [from coreutils]
89934         Fix some minor time-related bugs with POSIX time arguments.
89935         Some valid time stamps were being rejected (notably -1, and
89936         time stamps before 1900 on 64-bit hosts).  And some invalid
89937         time stamps were being accepted, e.g. September 31.
89938
89939         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89940         that we can return (time_t) -1 successfully.
89941         * lib/posixtm.c: Likewise.
89942         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89943         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89944         (t): Remove static var.
89945         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89946         of static var.  All uses changed.
89947         (year): Do not reject years before 1900; they can occur with
89948         64-bit time_t.
89949         (posix_time_parse): Do not check for out-of-range components;
89950         that is now the caller's responsibility, since our checks were
89951         only approximations.
89952         (posixtime): Use mktime to check for out-of-range components,
89953         since it knows them exactly.
89954         If mktime returns (time_t) -1, check whether an error actually occurred
89955         by invoking localtime on -1.
89956         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89957         posixtime failures better.
89958         Improve the test data (in comments only).
89959
89960 2003-06-02  Karl Berry  <karl@gnu.org>
89961
89962         * config/mkinstalldirs (version): new variable.
89963         (--version): new option.
89964         (usage): improve message.
89965
89966 2003-05-30  Karl Berry  <karl@gnu.org>
89967
89968         * lib/mktime.c: update from libc.
89969
89970 2003-05-30  Bruno Haible  <bruno@clisp.org>
89971
89972         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89973         * config/config.rpath: Upgrade to gettext-0.12.1.
89974
89975 2003-05-30  Bruno Haible  <bruno@clisp.org>
89976
89977         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89978         * m4/nls.m4: New file, from gettext-0.12.1.
89979         * m4/po.m4: New file, from gettext-0.12.1.
89980         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89981
89982 2003-05-30  Bruno Haible  <bruno@clisp.org>
89983
89984         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89985         * lib/localcharset.h: Likewise.
89986         * lib/localcharset.c: Likewise.
89987
89988 2003-05-29  Karl Berry  <karl@gnu.org>
89989
89990         * config/config.rpath: update from gettext.
89991
89992 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89993
89994         Assume the headers required for C89 freestanding compilers.
89995         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89996         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89997         * m4/human.m4 (gl_HUMAN): Likewise.
89998         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89999         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90000         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90001         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90002         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90003         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90004
90005 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90006
90007         Assume the headers required for C89 freestanding compilers.
90008         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90009         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90010         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90011         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90012         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90013         define, since <limits.h> is guaranteed to do that.
90014         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90015         * lib/exclude.c: Include <stdbool.h> unconditionally.
90016         * lib/tempname.c: Include <stddef.h> unconditionally.
90017         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90018         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90019         <stddef.h> does that.
90020         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90021         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90022         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90023         needed.
90024         * lib/xstrtol.c: Likewise.
90025         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90026         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90027
90028         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90029         warnings on some platforms.
90030
90031         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90032         arbitrarily.
90033
90034 2003-05-26  Jim Meyering  <jim@meyering.net>
90035
90036         Merge in a change from coreutils:
90037         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90038         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90039         that condition, rather than `-1' which is slightly misleading.
90040         Change the name of the cache variable to have the gl_ prefix.
90041         Prompted by a patch from Richard Dawe for DJGPP.
90042
90043 2003-05-24  Karl Berry  <karl@gnu.org>
90044
90045         * config/config.guess: update from prep.
90046
90047 2003-05-22  Karl Berry  <karl@gnu.org>
90048
90049         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90050
90051 2003-05-20  Karl Berry  <karl@gnu.org>
90052
90053         * config/config.guess: update from prep.
90054
90055 2003-05-18  Karl Berry  <karl@gnu.org>
90056
90057         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90058         might actually be set by the user.
90059
90060         * config/depcomp, install-sh, mdate-sh: update from automake.
90061
90062 2003-05-17  Bruno Haible  <bruno@clisp.org>
90063
90064         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90065         invalid expansion for AC_EGREP_CPP.
90066         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90067         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90068         Suggested by Akim Demaille <akim@epita.fr> in
90069         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90070
90071 2003-05-12  Jim Meyering  <jim@meyering.net>
90072
90073         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90074         the space-padded-by-default conversion specifiers, %e, %k, %l.
90075
90076 2003-05-12  Bruno Haible  <bruno@clisp.org>
90077
90078         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90079         the string is longer than 4 KB.
90080
90081 2003-05-11  Karl Berry  <karl@gnu.org>
90082
90083         * config/config.{guess,sub}: update from prep.
90084
90085 2003-05-09  Bruno Haible  <bruno@clisp.org>
90086
90087         * modules/error: Add m4/strerror_r.m4 to file list.
90088
90089 2003-05-03  Bruno Haible  <bruno@clisp.org>
90090
90091         Upgrade to Unicode-4.0.
90092         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90093         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90094         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90095         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90096         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90097         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90098         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90099         Change width of U+E0100..U+E01EF from 1 to 0.
90100
90101 2003-04-25  Jim Meyering  <jim@meyering.net>
90102
90103         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90104         of type size_t, not int.
90105
90106 2003-04-25  Bruno Haible  <bruno@clisp.org>
90107
90108         * lib/copy-file.c: Include <stddef.h>, for size_t.
90109
90110 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90111
90112         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90113         code which expansion is under static control.  Patch imported from
90114         Akim Demaille's patch to Bison; see
90115         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90116
90117 2003-04-14  Bruno Haible  <bruno@clisp.org>
90118
90119         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90120
90121 2003-04-11  Jim Meyering  <jim@meyering.net>
90122
90123         Merge changes from Coreutils.
90124
90125         2003-03-22  Jim Meyering  <jim@meyering.net>
90126
90127         * lib/strftime.c (widen): Cast alloca return value to proper type.
90128
90129         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90130
90131         From GNU libc.
90132         * lib/strftime.c (my_strftime): Handle very large width
90133         specifications for numeric values correctly.  Improve checks for
90134         overflow.
90135
90136         2003-01-19  Jim Meyering  <jim@meyering.net>
90137
90138         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90139         definitions.
90140         (nl_get_alt_digit) [! defined my_strftime]: Define.
90141         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90142         _nl_get_alt_digit and _nl_get_walt_digit.
90143
90144         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90145         libc. These changes have no effect outside of _LIBC.
90146
90147 2003-04-10  Bruno Haible  <bruno@clisp.org>
90148
90149         * modules/findprog: New file.
90150         * MODULES.html.sh (func_all_modules): Add it.
90151
90152 2003-04-10  Bruno Haible  <bruno@clisp.org>
90153
90154         * m4/findprog.m4: New file.
90155         * m4/eaccess.m4: New file.
90156
90157 2003-04-10  Bruno Haible  <bruno@clisp.org>
90158
90159         * lib/findprog.h: New file, from GNU gettext.
90160         * lib/findprog.c: New file, from GNU gettext.
90161
90162 2003-04-05  Jim Meyering  <jim@meyering.net>
90163
90164         Merge changes from Coreutils.
90165
90166         * lib/exclude.h (PARAMS): Remove definition and uses.
90167         * lib/exclude.c: Remove uses of `PARAMS'.
90168
90169         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90170         Add test-cases for DOS filenames. Declare program_name.
90171         (main): Set up program_name.  Patch by Rich Dawe.
90172
90173         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90174         error from mntctl.
90175         Use mntctl's return value to drive the entry-processing loop, since
90176         we can't rely on the value of the vmt_length member in the last
90177         entry.  On some systems doing so could result in exhausting
90178         virtual memory.  Based in part on a patch from Mike Jetzer.
90179
90180 2003-04-04  Bruno Haible  <bruno@clisp.org>
90181
90182         * modules/linebreak: New file.
90183         * MODULES.html.sh (func_all_modules): Add it.
90184
90185 2003-04-04  Bruno Haible  <bruno@clisp.org>
90186
90187         * m4/linebreak.m4: New file.
90188
90189 2003-04-04  Bruno Haible  <bruno@clisp.org>
90190
90191         * lib/linebreak.h: New file, from GNU gettext.
90192         * lib/linebreak.c: New file, from GNU gettext with slight
90193         modifications.
90194         * lib/lbrkprop.h: New file, from GNU gettext.
90195
90196 2003-04-03  Bruno Haible  <bruno@clisp.org>
90197
90198         * modules/utf8-ucs4: New file.
90199         * modules/utf16-ucs4: New file.
90200         * modules/ucs4-utf8: New file.
90201         * modules/ucs4-utf16: New file.
90202         * MODULES.html.sh (func_all_modules): Add them.
90203
90204 2003-04-03  Bruno Haible  <bruno@clisp.org>
90205
90206         * m4/utf-ucs4.m4: New file.
90207         * m4/ucs4-utf.m4: New file.
90208
90209 2003-04-03  Bruno Haible  <bruno@clisp.org>
90210
90211         * lib/utf8-ucs4.h: New file, from GNU gettext.
90212         * lib/utf16-ucs4.h: New file, from GNU gettext.
90213         * lib/ucs4-utf8.h: New file, from GNU gettext.
90214         * lib/ucs4-utf16.h: New file, from GNU gettext.
90215
90216 2003-04-02  Bruno Haible  <bruno@clisp.org>
90217
90218         * modules/binary-io: New file.
90219         * MODULES.html.sh (func_all_modules): Add it.
90220
90221 2003-04-02  Bruno Haible  <bruno@clisp.org>
90222
90223         * lib/binary-io.h: New file, from GNU gettext.
90224
90225 2003-04-01  Bruno Haible  <bruno@clisp.org>
90226
90227         * modules/pathname: New file.
90228         * MODULES.html.sh (func_all_modules): Add it.
90229
90230 2003-04-01  Bruno Haible  <bruno@clisp.org>
90231
90232         * lib/pathname.h: New file, from GNU gettext.
90233         * lib/concatpath.c: New file, from GNU gettext.
90234
90235 2003-03-30  Bruno Haible  <bruno@clisp.org>
90236
90237         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90238
90239 2003-03-30  Bruno Haible  <bruno@clisp.org>
90240
90241         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90242         function chown() doesn't exist.
90243
90244 2003-03-28  Bruno Haible  <bruno@clisp.org>
90245
90246         * modules/copy-file: New file.
90247         * MODULES.html.sh (func_all_modules): Add it.
90248
90249 2003-03-28  Bruno Haible  <bruno@clisp.org>
90250
90251         * m4/copy-file.m4: New file.
90252
90253 2003-03-28  Bruno Haible  <bruno@clisp.org>
90254
90255         * lib/copy-file.h: New file, from GNU gettext.
90256         * lib/copy-file.c: New file, from GNU gettext.
90257
90258 2003-03-18  Jim Meyering  <jim@meyering.net>
90259
90260         * lib/quote.c (quote_n): Fix typo in comment.
90261
90262 2003-03-18  Bruno Haible  <bruno@clisp.org>
90263
90264         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90265         checking.
90266         * m4/onceonly_2_57.m4: Likewise.
90267
90268 2003-03-17  Bruno Haible  <bruno@clisp.org>
90269
90270         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90271         (m4_quote): Remove macro.
90272         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90273
90274 2003-03-14  Jim Meyering  <jim@meyering.net>
90275
90276         Merge changes from Coreutils.
90277         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90278         to be const, in order to avoid warnings.
90279         (obstack_room): Likewise.
90280         (obstack_empty_p): Likewise.
90281
90282 2003-03-14  Bruno Haible  <bruno@clisp.org>
90283
90284         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90285         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90286
90287 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90288
90289         Merge changes from Bison.
90290         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90291         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90292         when compiling Bison 1.875's `bitset bset = obstack_alloc
90293         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90294         * lib/hash.c: Include <stdbool.h> unconditionally.
90295
90296 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90297
90298         * m4/onceonly.m4 (m4_quote): New macro.
90299         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90300         Quote AC_FOREACH variable-expansions properly.
90301
90302 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90303
90304         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90305
90306 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90307
90308         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90309         Reported by Bruce Becker; see:
90310         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90311
90312 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90313             Bruno Haible  <bruno@clisp.org>
90314
90315         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90316         Reported by John Hughes, see
90317         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90318
90319 2003-02-20  Bruno Haible  <bruno@clisp.org>
90320
90321         * MODULES.html.sh (func_all_modules): Add poll.
90322
90323 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90324
90325         * modules/poll: New file.
90326
90327 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90328
90329         * lib/poll_.h: New file.
90330         * lib/poll.c: New file.
90331
90332 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90333
90334         * m4/poll.m4: New file.
90335
90336 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90337
90338         * modules/mathl: New file.
90339
90340 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90341
90342         * lib/mathl.h: New file.
90343         * lib/acosl.c: New file.
90344         * lib/asinl.c: New file.
90345         * lib/atanl.c: New file.
90346         * lib/ceill.c: New file.
90347         * lib/cosl.c: New file.
90348         * lib/expl.c: New file.
90349         * lib/floorl.c: New file.
90350         * lib/frexpl.c: New file.
90351         * lib/ldexpl.c: New file.
90352         * lib/logl.c: New file.
90353         * lib/sincosl.c: New file.
90354         * lib/sinl.c: New file.
90355         * lib/sqrtl.c: New file.
90356         * lib/tanl.c: New file.
90357         * lib/trigl.c: New file.
90358         * lib/trigl.h: New file.
90359
90360 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90361
90362         * m4/mathl.m4: New file.
90363
90364 2003-02-18  Bruno Haible  <bruno@clisp.org>
90365
90366         * MODULES.html.sh (func_all_modules): Add mathl.
90367
90368 2003-02-17  Bruno Haible  <bruno@clisp.org>
90369
90370         * modules/mkdtemp: New module.
90371         * MODULES.html.sh (func_all_modules): Add it.
90372
90373 2003-02-17  Bruno Haible  <bruno@clisp.org>
90374
90375         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90376
90377 2003-02-17  Bruno Haible  <bruno@clisp.org>
90378
90379         * lib/mkdtemp.h: New file, from GNU gettext.
90380         * lib/mkdtemp.c: New file, from GNU gettext.
90381
90382 2003-02-02  Jim Meyering  <jim@meyering.net>
90383
90384         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90385         e.g. glibc-2.2.93.
90386
90387 2003-01-31  Bruno Haible  <bruno@clisp.org>
90388
90389         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90390         'rpl_rename'.
90391         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90392         'rpl_strnlen'.
90393         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90394         'rpl_strtod'.
90395         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90396         'rpl_utime'.
90397
90398 2003-01-31  Bruno Haible  <bruno@clisp.org>
90399
90400         * lib/rename.c: #undef rename before defining rpl_rename.
90401         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90402
90403 2003-01-30  Bruno Haible  <bruno@clisp.org>
90404
90405         * modules/vasnprintf, modules/vasprintf: New modules.
90406         * MODULES.html.sh (func_all_modules): Add them.
90407
90408 2003-01-30  Bruno Haible  <bruno@clisp.org>
90409
90410         * m4/signed.m4: New file, from GNU gettext.
90411         * m4/longdouble.m4: New file, from GNU gettext.
90412         * m4/wchar_t.m4: New file, from GNU gettext.
90413         * m4/wint_t.m4: New file, from GNU gettext.
90414         * m4/vasnprintf.m4: New file.
90415         * m4/vasprintf.m4: New file.
90416
90417 2003-01-30  Bruno Haible  <bruno@clisp.org>
90418
90419         * lib/printf-args.h: New file, from GNU gettext.
90420         * lib/printf-args.c: New file, from GNU gettext.
90421         * lib/printf-parse.h: New file, from GNU gettext.
90422         * lib/printf-parse.c: New file, from GNU gettext.
90423         * lib/vasnprintf.h: New file, from GNU gettext.
90424         * lib/vasnprintf.c: New file, from GNU gettext.
90425         * lib/asnprintf.c: New file, from GNU gettext.
90426         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90427         * lib/vasprintf.c: New file, from GNU gettext.
90428         * lib/asprintf.c: New file, from GNU gettext.
90429
90430 2003-01-29  Bruno Haible  <bruno@clisp.org>
90431
90432         * modules/stpncpy: New module.
90433         * MODULES.html.sh (func_all_modules): Add it.
90434
90435 2003-01-29  Bruno Haible  <bruno@clisp.org>
90436
90437         * m4/stpncpy.m4: New file.
90438
90439 2003-01-29  Bruno Haible  <bruno@clisp.org>
90440
90441         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90442         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90443
90444 2003-01-28  Bruno Haible  <bruno@clisp.org>
90445
90446         * modules/c-ctype: New module.
90447         * MODULES.html.sh (func_all_modules): Add it.
90448
90449 2003-01-28  Bruno Haible  <bruno@clisp.org>
90450
90451         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90452         Paul Eggert.
90453         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90454         Paul Eggert.
90455
90456 2003-01-27  Bruno Haible  <bruno@clisp.org>
90457
90458         * modules/xsetenv: New module.
90459         * MODULES.html.sh (func_all_modules): Add it.
90460
90461 2003-01-27  Bruno Haible  <bruno@clisp.org>
90462
90463         * lib/xsetenv.h: New file, from GNU gettext.
90464         * lib/xsetenv.c: New file, from GNU gettext.
90465
90466 2003-01-23  Jim Meyering  <jim@meyering.net>
90467
90468         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90469         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90470
90471 2003-01-23  Bruno Haible  <bruno@clisp.org>
90472
90473         * modules/minmax: New module.
90474         * MODULES.html.sh (func_all_modules): Add it.
90475
90476 2003-01-23  Bruno Haible  <bruno@clisp.org>
90477
90478         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90479         Eggert.
90480
90481 2003-01-22  Bruno Haible  <bruno@clisp.org>
90482
90483         * modules/exit: New module.
90484         * MODULES.html.sh (func_all_modules): Add it.
90485
90486 2003-01-22  Bruno Haible  <bruno@clisp.org>
90487
90488         * lib/exit.h: New file, from GNU gettext.
90489
90490 2003-01-19  Bruno Haible  <bruno@clisp.org>
90491
90492         * gnulib-tool: Recognize option --extract-maintainer.
90493         (func_get_maintainer): New function.
90494         * modules/*: Add Maintainer entry.
90495
90496 2003-01-16  Jim Meyering  <jim@meyering.net>
90497
90498         * m4/regex.m4: The `regex' struct is both input and output.
90499         Initialize it before each use.  Patch by Tim Waugh.
90500
90501 2003-01-16  Bruno Haible  <bruno@clisp.org>
90502
90503         * MODULES.html.sh: Add a table of contents. Add the module name as
90504         leftmost column. Add hyperlinks.
90505
90506 2003-01-15  Bruno Haible  <bruno@clisp.org>
90507
90508         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90509
90510 2003-01-15  Bruno Haible  <bruno@clisp.org>
90511
90512         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90513         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90514         suffix.
90515
90516 2003-01-15  Bruno Haible  <bruno@clisp.org>
90517
90518         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90519
90520 2003-01-15  Bruno Haible  <bruno@clisp.org>
90521
90522         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90523         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90524
90525 2003-01-14  Jim Meyering  <jim@meyering.net>
90526
90527         * lib/same.c (same_name): Tweak a comment.
90528
90529 2003-01-14  Bruno Haible  <bruno@clisp.org>
90530
90531         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90532         when a string comparison is sufficient.
90533
90534 2003-01-14  Bruno Haible  <bruno@clisp.org>
90535
90536         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90537         'unsigned int'.
90538
90539 2003-01-14  Bruno Haible  <bruno@clisp.org>
90540
90541         * lib/hash-pjw.c: Add comment about low quality of this function.
90542
90543 2003-01-13  Bruno Haible  <bruno@clisp.org>
90544
90545         * modules/stpcpy: Distribute lib/stpcpy.h.
90546         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90547
90548 2003-01-13  Bruno Haible  <bruno@clisp.org>
90549
90550         * modules/*: Add a description.
90551         * modules/strpbrk: Fix Makefile.am snippet.
90552         * modules/strtoimax: Fix dependencies.
90553         * modules/strtoumax: Likewise.
90554
90555 2003-01-13  Bruno Haible  <bruno@clisp.org>
90556
90557         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90558         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90559         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90560
90561 2003-01-13  Bruno Haible  <bruno@clisp.org>
90562
90563         * gnulib-tool (func_create_testdir): Store config/* files in the main
90564         directory.
90565         * config.rpath: Move to ...
90566         * config/config.rpath: ... here.
90567         * modules/gettext: Contains config/config.rpath, not config.rpath.
90568         * modules/iconv: Likewise.
90569
90570 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90571
90572         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90573         to avoid collisions with libcurses and libreadline.
90574
90575         * m4/getstr.m4: Remove.
90576         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90577
90578 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90579
90580         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90581         to avoid collisions with libcurses and libreadline.
90582
90583         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90584         * lib/getstr.h, getstr.c: Remove.
90585         * lib/getline.c: Include "getline.h", to check interface.
90586         Move body of old getstr.c here: this defines MIN_CHUNK and
90587         declares getdelim2, which is renamed from getstr.
90588         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90589
90590         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90591         All uses changed.
90592         * lib/linebuffer.h: Likewise.
90593         (readline): Remove backward-compatibility macro.
90594
90595 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90596
90597         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90598         to avoid collisions with libcurses and libreadline.
90599         * getstr: Remove.
90600         * MODULES.html.sh: Remove getstr.
90601         * modules/getline: Depend on unlocked-io, not getstr.
90602
90603 2003-01-12  Jim Meyering  <jim@meyering.net>
90604
90605         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90606
90607 2003-01-10  Bruno Haible  <bruno@clisp.org>
90608
90609         * modules/alloca: Change Makefile.am requirements. Simplify Include
90610         requirements. Add lib/alloca_.h to file list.
90611
90612 2003-01-10  Bruno Haible  <bruno@clisp.org>
90613
90614         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90615
90616 2003-01-10  Bruno Haible  <bruno@clisp.org>
90617
90618         * lib/alloca_.h: New file.
90619         * lib/getdate.y: Unconditionally include alloca.h.
90620         * lib/makepath.c: Likewise.
90621         * lib/setenv.c: Likewise.
90622         * lib/userspec.c: Likewise.
90623
90624 2003-01-09  Karl Berry  <karl@gnu.org>
90625
90626         * MODULES.html.sh: include `dirname $0` in PATH, to find
90627         gnulib-tool.
90628
90629 2003-01-09  Bruno Haible  <bruno@clisp.org>
90630
90631         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90632         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90633
90634 2003-01-09  Bruno Haible  <bruno@clisp.org>
90635
90636         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90637
90638 2003-01-09  Bruno Haible  <bruno@clisp.org>
90639
90640         * lib/stdbool.h.in: New file.
90641
90642 2003-01-09  Bruno Haible  <bruno@clisp.org>
90643
90644         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90645         * MODULES.html.sh: Likewise.
90646
90647 2003-01-08  Jim Meyering  <jim@meyering.net>
90648
90649         * lib/full-write.c: Undefine and define-away `const' after inclusion
90650         of errno.h, not before.  Suggestion from Bruno Haible.
90651
90652 2003-01-08  Bruno Haible  <bruno@clisp.org>
90653
90654         * modules/full-read: Depend on full-write.
90655
90656 2003-01-08  Bruno Haible  <bruno@clisp.org>
90657
90658         * lib/safe-read.c: Include specification header first, to ensure its
90659         selfcontainedness.
90660         * lib/full-write.c: Likewise.
90661
90662 2003-01-07  Jim Meyering  <jim@meyering.net>
90663
90664         * lib/full-write.c: Rework so that it may serve to define full_read,
90665         too.
90666         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90667
90668 2003-01-07  Bruno Haible  <bruno@clisp.org>
90669
90670         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90671         <inttypes.h>.
90672         * lib/xstrtol.h: Likewise.
90673         * lib/xstrtoimax.c: Likewise.
90674         * lib/xstrtoumax.c: Likewise.
90675         * lib/human.h: Likewise.
90676
90677         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90678         on systems that have <inttypes.h> but not <stdint.h>.
90679
90680 2003-01-07  Bruno Haible  <bruno@clisp.org>
90681
90682         * MODULES.html.sh: Add copyright notice.
90683         (missed_files): Omit CVS directory entries.
90684         (func_module): Make it work with sed-3.02.
90685         * MODULES.txt: Remove file.
90686
90687 2003-01-06  Jim Meyering  <jim@meyering.net>
90688
90689         * lib/version-etc.c: Update year in translatable copyright string.
90690
90691 2003-01-03  Karl Berry  <karl@gnu.org>
90692
90693         * config/config.{guess,sub}: update from prep.
90694
90695 2003-01-02  Karl Berry  <karl@gnu.org>
90696
90697         * doc/COPYING.DOC: belatedly updated to 1.2.
90698
90699 2003-01-01  Karl Berry  <karl@gnu.org>
90700
90701         * gnulib-tool (func_verify_module): report module name $module in
90702         error message, not $1.
90703         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90704         be created, only if it doesn't exist.
90705         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90706
90707 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90708
90709         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90710
90711 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90712
90713         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90714         memcmp if strcoll doesn't work.
90715
90716 2002-12-31  Bruno Haible  <bruno@clisp.org>
90717
90718         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90719         nonempty.
90720
90721 2002-12-31  Bruno Haible  <bruno@clisp.org>
90722
90723         * lib/memcoll.c (STRCOLL): New macro.
90724         (memcoll): Use it.
90725
90726 2002-12-31  Bruno Haible  <bruno@clisp.org>
90727
90728         * lib/localcharset.h: New file.
90729         * lib/localcharset.c: Include it.
90730         * lib/unicodeio.c: Likewise.
90731
90732 2002-12-31  Bruno Haible  <bruno@clisp.org>
90733
90734         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90735         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90736
90737 2002-12-31  Bruno Haible  <bruno@clisp.org>
90738
90739         * lib/getline.h: Include <stddef.h>, for size_t.
90740
90741         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90742         * lib/unicodeio.c: Don't include <stddef.h>.
90743
90744 2002-12-31  Bruno Haible  <bruno@clisp.org>
90745
90746         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90747         HAVE_TM_ZONE.
90748
90749 2002-12-24  Karl Berry  <karl@gnu.org>
90750
90751         * config/config.guess: update from prep.
90752
90753 2002-12-24  Bruno Haible  <bruno@clisp.org>
90754
90755         General infrasructure.
90756         * m4/README: Rewritten.
90757         * m4/onceonly.m4: New file.
90758         * m4/onceonly_2_57.m4: New file.
90759
90760         Module atexit.
90761         * m4/atexit.m4: New file.
90762
90763         Module strtod.
90764         * m4/strtod.m4: New file.
90765
90766         Module strtol.
90767         * m4/strtol.m4: New file.
90768
90769         Module strtoul.
90770         * m4/strtoul.m4: New file.
90771
90772         Module memchr.
90773         * m4/memchr.m4: New file.
90774
90775         Module memcmp.
90776         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90777         (jm_FUNC_MEMCMP): Invoke it.
90778
90779         Module memcpy.
90780         * m4/memcpy.m4: New file.
90781
90782         Module memmove.
90783         * m4/memmove.m4: New file.
90784
90785         Module memset.
90786         * m4/memset.m4: New file.
90787
90788         Module strcspn.
90789         * m4/strcspn.m4: New file.
90790
90791         Module strpbrk.
90792         * m4/strpbrk.m4: New file.
90793
90794         Module strstr.
90795         * m4/strstr.m4: New file.
90796
90797         Module strerror.
90798         * m4/strerror.m4: New file.
90799
90800         Module mktime.
90801         * m4/mktime.m4: Renamed from jm-mktime.m4.
90802         (gl_PREREQ_MKTIME): New macro.
90803         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90804
90805         Module malloc.
90806         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90807         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90808         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90809
90810         Module realloc.
90811         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90812         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90813         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90814
90815         Module strftime.
90816         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90817         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90818         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90819         gl_TM_GMTOFF.
90820         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90821
90822         Module xalloc.
90823         * m4/xalloc.m4: New file.
90824
90825         Module alloca.
90826         * m4/alloca.m4: New file.
90827
90828         Module putenv.
90829         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90830         (jm_FUNC_PUTENV): Invoke it.
90831
90832         Module setenv.
90833         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90834         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90835         when invoked twice.
90836         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90837         gt_FUNC_SETENV.
90838
90839         Module memrchr.
90840         * m4/memrchr.m4: New file.
90841
90842         Module stpcpy.
90843         * m4/stpcpy.m4: New file.
90844
90845         Module strcase.
90846         * m4/strcase.m4: New file.
90847
90848         Module strdup.
90849         * m4/strdup.m4: New file.
90850
90851         Module strnlen.
90852         * m4/strnlen.m4: New file.
90853
90854         Module strndup.
90855         * m4/strndup.m4: New file.
90856
90857         Module xstrtod.
90858         * m4/xstrtod.m4: New file.
90859
90860         Module xstrtol.
90861         * m4/xstrtol.m4: New file.
90862
90863         Module getdate.
90864         * m4/getdate.m4: New file.
90865
90866         Module unlocked-io.
90867         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90868         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90869         * m4/jm-glibc-io.m4n: Remove file.
90870
90871         Module long-options.
90872         * m4/long-options.m4: New file.
90873
90874         Module md5.
90875         * m4/md5.m4: New file.
90876
90877         Module sha.
90878         * m4/sha.m4: New file.
90879
90880         Module getstr.
90881         * m4/getstr.m4: New file.
90882
90883         Module getline.
90884         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90885         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90886         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90887         simply getline. Infoke gl_PREREQ_GETLINE.
90888
90889         Module obstack.
90890         * m4/obstack.m4: New file.
90891
90892         Module hash.
90893         * m4/hash.m4: New file.
90894
90895         Module readtokens.
90896         * m4/readtokens.m4: New file.
90897
90898         Module strverscmp.
90899         * m4/strverscmp.m4: New file.
90900
90901         Module stdbool.
90902         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90903         OSF/1.
90904
90905         Module strtoll.
90906         * m4/strtoll.m4: New file.
90907
90908         Module strtoull.
90909         * m4/strtoull.m4: New file.
90910
90911         Module strtoimax.
90912         * m4/strtoimax.m4: New file.
90913
90914         Module strtoumax.
90915         * m4/strtoumax.m4: New file.
90916
90917         Module xstrtoimax.
90918         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90919         jm_AC_PREREQ_XSTRTOIMAX.
90920         Moved the strtol prerequisites to strtol.m4.
90921         Moved the strtoll prerequisites to strtoll.m4.
90922         Moved the strtoimax prerequisites to strtoimax.m4.
90923
90924         Module xstrtoumax.
90925         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90926         jm_AC_PREREQ_XSTRTOUMAX.
90927         Moved the strtoul prerequisites to strtoul.m4.
90928         Moved the strtoull prerequisites to strtoull.m4.
90929         Moved the strtoumax prerequisites to strtoumax.m4.
90930
90931         Module chown.
90932         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90933         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90934
90935         Module dup2.
90936         * m4/dup2.m4: New file.
90937
90938         Module ftruncate.
90939         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90940         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90941
90942         Module getgroups.
90943         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90944         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90945
90946         Module gettimeofday.
90947         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90948         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90949         gl_PREREQ_GETTIMEOFDAY.
90950
90951         Module mkdir.
90952         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90953         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90954
90955         Module mkstemp.
90956         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90957         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90958         jm_AC_TYPE_UINTMAX_T.
90959         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90960
90961         Module stat.
90962         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90963         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90964
90965         Module lstat.
90966         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90967         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90968
90969         Module timespec.
90970         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90971         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90972         * m4/st_mtim.m4: Indentation.
90973
90974         Module nanosleep.
90975         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90976         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90977         gl_PREREQ_NANOSLEEP.
90978
90979         Module regex.
90980         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90981         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90982         (gl_REGEX): New macro.
90983
90984         Module rename.
90985         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90986         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90987
90988         Module rmdir.
90989         * m4/rmdir.m4: New file.
90990
90991         Module utime.
90992         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90993         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90994         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90995
90996         Module dirname.
90997         * m4/dirname.m4: New file.
90998
90999         Module getopt.
91000         * m4/getopt.m4: New file.
91001
91002         Module unistd-safer.
91003         * m4/unistd-safer.m4: New file.
91004
91005         Module fnmatch.
91006         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91007         declaration.
91008         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91009         (gl_FUNC_FNMATCH_POSIX): New macro.
91010         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91011         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91012         simply fnmatch.
91013
91014         Module exclude.
91015         * m4/exclude.m4: New file.
91016
91017         Module human.
91018         * m4/human.m4: New file.
91019
91020         Module acl.
91021         * m4/acl.m4: Nop.
91022
91023         Module backupfile.
91024         * m4/backupfile.m4: New file.
91025         * m4/d-ino.m4: Indentation.
91026
91027         Module fsusage.
91028         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91029         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91030         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91031
91032         Module dirfd.
91033         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91034         requirements.
91035
91036         Module euidaccess.
91037         * m4/euidaccess.m4: New file.
91038
91039         Module file-type.
91040         * m4/file-type.m4: New file.
91041
91042         Module fileblocks.
91043         * m4/fileblocks.m4: New file.
91044
91045         Module filemode.
91046         * m4/filemode.m4: New file.
91047
91048         Module isdir.
91049         * m4/isdir.m4: New file.
91050
91051         Module lchown.
91052         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91053         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91054
91055         Module makepath.
91056         * m4/makepath.m4: New file.
91057
91058         Module modechange.
91059         * m4/modechange.m4: New file.
91060
91061         Module mountlist.
91062         * m4/mountlist.m4: New file.
91063         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91064         Indentation.
91065
91066         Module path-concat.
91067         * m4/path-concat.m4: New file.
91068
91069         Module pathmax.
91070         * m4/pathmax.m4: New file.
91071
91072         Module same.
91073         * m4/same.m4: New file.
91074
91075         Module save-cwd.
91076         * m4/save-cwd.m4: New file.
91077
91078         Module savedir.
91079         * m4/savedir.m4: New file.
91080
91081         Module xgetcwd.
91082         * m4/xgetcwd.m4: New file.
91083         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91084
91085         Module xreadlink.
91086         * m4/xreadlink.m4: New file.
91087
91088         Module safe-read.
91089         * m4/safe-read.m4: New file.
91090
91091         Module safe-write.
91092         * m4/safe-write.m4: New file.
91093
91094         Module closeout.
91095         * m4/closeout.m4: New file.
91096
91097         Module stdio-safer.
91098         * m4/stdio-safer.m4: New file.
91099
91100         Module getpass.
91101         * m4/getpass.m4: New file.
91102
91103         Module getugroups.
91104         * m4/getugroups.m4: New file.
91105
91106         Module group-member.
91107         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91108         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91109
91110         Module idcache.
91111         * m4/idcache.m4: New file.
91112
91113         Module userspec.
91114         * m4/userspec.m4: New file.
91115
91116         Module gettime.
91117         * m4/clock_time.m4: New file.
91118         * m4/gettime.m4: New file.
91119
91120         Module settime.
91121         * m4/settime.m4: New file.
91122
91123         Module posixtm.
91124         * m4/posixtm.m4: New file.
91125
91126         Module gethostname.
91127         * m4/gethostname.m4: New file.
91128
91129         Module canon-host.
91130         * m4/canon-host.m4: New file.
91131
91132         Module gettext.
91133         * m4/codeset.m4: New file, from gettext-0.11.5.
91134         * m4/gettext.m4: New file, from gettext-0.11.5.
91135         * m4/glibc21.m4: New file, from gettext-0.11.5.
91136         * m4/iconv.m4: New file, from gettext-0.11.5.
91137         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91138         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91139         * m4/inttypes.m4: New file, from gettext-0.11.5.
91140         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91141         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91142         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91143         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91144         * m4/lib-link.m4: New file, from gettext-0.11.5.
91145         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91146         * m4/progtest.m4: New file, from gettext-0.11.5.
91147         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91148         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91149         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91150
91151         Module localcharset.
91152         * m4/localcharset.m4: New file.
91153
91154         Module hard-locale.
91155         * m4/hard-locale.m4: New file.
91156
91157         Module mbswidth.
91158         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91159         onceonly macros.
91160         * m4/mbrtowc.m4: Add comment.
91161
91162         Module memcasecmp.
91163         * m4/memcasecmp.m4: New file.
91164
91165         Module memcoll.
91166         * m4/memcoll.m4: New file.
91167
91168         Module unicodeio.
91169         * m4/unicodeio.m4: New file.
91170
91171         Module rpmatch.
91172         * m4/rpmatch.m4: New file.
91173
91174         Module yesno.
91175         * m4/yesno.m4: New file.
91176
91177         Module exitfail.
91178         * m4/exitfail.m4: New file.
91179
91180         Module c-stack.
91181         * m4/c-stack.m4 (gl_C_STACK): New macro.
91182         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91183
91184         Module error.
91185         * m4/error.m4 (gl_ERROR): New macro.
91186         (jm_PREREQ_ERROR): Use onceonly macros.
91187
91188         Module fatal.
91189         * m4/fatal.m4: New file.
91190
91191         Module getloadavg.
91192         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91193         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91194
91195         Module getpagesize.
91196         * m4/getpagesize.m4: New file.
91197
91198         Module getusershell.
91199         * m4/getusershell.m4: New file.
91200
91201         Module physmem.
91202         * m4/physmem.m4: New file.
91203
91204         Module posixver.
91205         * m4/posixver.m4: New file.
91206
91207         Module quotearg.
91208         * m4/quotearg.m4: New file.
91209
91210         Module quote.
91211         * m4/quote.m4: New file.
91212
91213         Module readutmp.
91214         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91215
91216         Module sig2str.
91217         * m4/sig2str.m4: New file.
91218
91219         Other.
91220         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91221         ulonglong.m4.
91222         * m4/intmax_t.m4: New file.
91223         * m4/d-type.m4: Indentation.
91224         * m4/jm-macros.m4: Update.
91225         * m4/prereq.m4 (jm_PREREQ): Update.
91226         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91227         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91228         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91229         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91230         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91231         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91232         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91233         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91234         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91235         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91236         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91237         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91238         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91239         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91240         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91241         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91242         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91243         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91244         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91245
91246 2002-12-24  Bruno Haible  <bruno@clisp.org>
91247
91248         * MODULES.txt: Update according to m4/ changes.
91249
91250         Module gettext.
91251         * config.rpath: New file, from gettext-0.11.5.
91252
91253         * modules/*: New module descriptions.
91254         * gnulib-tool: New file.
91255         * MODULES.html.sh: New file.
91256
91257 2002-12-21  Karl Berry  <karl@gnu.org>
91258
91259         * doc/fdl.texi: update to version 1.2.
91260
91261 2002-12-19  Karl Berry  <karl@gnu.org>
91262
91263         * config/config.guess: update from prep.
91264
91265 2002-12-18  Bruno Haible  <bruno@clisp.org>
91266
91267         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91268         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91269
91270 2002-12-17  Bruno Haible  <bruno@clisp.org>
91271
91272         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91273         stdlib.h, string.h.
91274
91275 2002-12-17  Bruno Haible  <bruno@clisp.org>
91276
91277         * lib/canon-host.c (strdup): Remove unused declaration.
91278
91279         * lib/fsusage.c: Include full_read.h.
91280         (get_fs_usage): Use full_read instead of safe_read.
91281
91282         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91283
91284 2002-12-12  Karl Berry  <karl@gnu.org>
91285
91286         * config/config.guess: update from prep.
91287
91288 2002-12-11  Bruno Haible  <bruno@clisp.org>
91289
91290         * m4/setenv.m4: New file, from gettext-0.11.5.
91291
91292 2002-12-11  Bruno Haible  <bruno@clisp.org>
91293
91294         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91295         not unsetenv().
91296         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91297         modifications:
91298
91299         2002-12-11  Bruno Haible  <bruno@clisp.org>
91300
91301                 * setenv.c (alloca): Fall back to malloc.
91302                 (freea): New macro.
91303                 (setenv): Use freea() to free memory allocated with alloca().
91304
91305         2002-11-13  Bruno Haible  <bruno@clisp.org>
91306
91307                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91308                 function declarations.
91309                 * unsetenv.c (unsetenv): Likewise.
91310
91311         2002-03-04  Bruno Haible  <bruno@clisp.org>
91312
91313                 Portability to AIX 4.3.3.
91314                 * unsetenv.c: New file, extracted from setenv.c.
91315                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91316
91317         2001-12-20  Bruno Haible  <bruno@clisp.org>
91318
91319                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91320                 use malloc instead. For SunOS 4.
91321
91322         2001-12-11  Bruno Haible  <bruno@clisp.org>
91323
91324                 * setenv.c: Declare alloca.
91325                 (compar_fn_t): New typedef.
91326                 (KNOWN_VALUE, STORE_VALUE): Use it.
91327
91328         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91329         setenv.h.
91330
91331 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91332
91333         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91334         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91335         Choose values that are less likely to collide with system fnmatch
91336         options.
91337         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91338         defined (e.g., a pure POSIX system).
91339         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91340         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91341
91342 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91343
91344         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91345         a pain in practice to deal with generated m4 files.  This change
91346         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91347
91348         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91349         and jm-glibc-io.m4, as they are no longer a special case.
91350         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91351         kludge and the auto-generation stuff.  Check only whether the
91352         functions are declared, not whether they exist, since older hosts
91353         that don't declare the functions can't use the optimization anyway.
91354
91355 2002-12-06  Jim Meyering  <jim@meyering.net>
91356
91357         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91358
91359         Merge in changes from libc's misc/error.c, in preparation
91360         for the merge of gnulib's changes back into libc.
91361
91362         * lib/error.c (_): Define only if not already defined.
91363         Move definition to follow all #include directives.
91364         Include unlocked-io.h only if !_LIBC.
91365         [_LIBC]: Include <libio/libioP.h>.
91366         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91367         (fflush): Tweak definition to use INTUSE.
91368         (putc): Define.
91369
91370 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91371
91372         * lib/alloca.c [defined emacs]: Include "lisp.h".
91373         (xalloc_die) [defined emacs]: New macro.
91374         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91375         [! defined emacs]: Include <xalloc.h>.
91376         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91377         (pointer): Typedef to POINTER_TYPE *.
91378         (malloc): Remove decl; we now always use xmalloc.
91379         (alloca): Use old-style definition, since Emacs needs this.
91380         Check for arithmetic overflow when computing combined size.
91381
91382 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91383
91384         Do not generate unlocked-io.h automatically, since it's easier to
91385         maintain it by hand.
91386
91387         * lib/unlocked-io.h: New file, from GNU diffutils,
91388         but with proper copyright notice and attribution.
91389         * lib/gen-uio: Remove.
91390         * lib/Makefile.am: Add copyright notice.
91391         (libfetish_a_SOURCES): Add unlocked-io.h.
91392         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91393         (DISTCLEANFILES, io_functions): Remove macros.
91394         (EXTRA_DIST): Remove gen_uio.
91395         (unlocked-io.h): Remove rule.
91396
91397 2002-12-04  Jim Meyering  <jim@meyering.net>
91398
91399         Reflect the fact that stat.c and lstat.c are no longer generated.
91400         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91401         (DISTCLEANFILES): Likewise.
91402         (EXTRA_DIST): Likewise.
91403         (all_local): Don't depend on stat.c or lstat.c.
91404         (stat.c, lstat.c): Remove rules.
91405         (EXTRA_DIST): Remove xstat.in.
91406
91407         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91408         * lib/stat.c: New file.  Contents mostly from xstat.in.
91409         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91410         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91411
91412         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91413         too.
91414         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91415
91416 2002-12-03  Jim Meyering  <jim@meyering.net>
91417
91418         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91419         but not semantics, to minimize the differences between these two files.
91420         (safe_read): Change comment to mention SAFE_READ_ERROR.
91421
91422         * lib/safe-read.c (IS_EINTR): Define.
91423         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91424
91425 2002-12-02  Jim Meyering  <jim@meyering.net>
91426
91427         * lib/safe-read.c (EINTR): Define.
91428         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91429         (INT_MAX): Provide fallback.
91430         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91431
91432         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91433
91434 2002-12-02  Bruno Haible  <bruno@clisp.org>
91435
91436         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91437         Define, taken from safe-read.c.
91438         (INT_MAX): Provide fallback.
91439         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91440         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91441
91442         * lib/safe-read.c (EINTR): Remove definition.
91443         (safe_read): Don't use EINTR if it is absent.
91444
91445 2002-12-01  Jim Meyering  <jim@meyering.net>
91446
91447         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91448         zero.
91449         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91450
91451 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91452
91453         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91454         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91455         with `if (! (value < limit)) abort ();', for readability.
91456
91457 2002-11-26  Karl Berry  <karl@gnu.org>
91458
91459         * lib/strdup.c: copy from libc again, with jim's ok.
91460         * lib/.cppi-disable: re-add strdup.c
91461
91462 2002-11-25  Karl Berry  <karl@gnu.org>
91463
91464         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91465         instead of "strtol.c".
91466
91467 2002-11-25  Karl Berry  <karl@gnu.org>
91468
91469         * config/install-sh: update from automake for variable quoting, $0 in
91470         error msgs, etc.
91471
91472         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91473         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91474         entry.
91475
91476 2002-11-25  Jim Meyering  <jim@meyering.net>
91477
91478         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91479
91480 2002-11-24  Karl Berry  <karl@gnu.org>
91481
91482         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91483         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91484
91485 2002-11-24  Jim Meyering  <jim@meyering.net>
91486
91487         Update from coreutils:
91488
91489         * lib/mktime.c: Merge in changes from libc.
91490
91491         Avoid a link-time failure on some Linux systems.
91492         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91493         (otherwise).
91494         (__mon_yday): Declare with the STATIC attribute.
91495         (__mktime_internal): Likewise.
91496         Based on a report from Greg Schafer.
91497
91498 2002-11-23  Jim Meyering  <jim@meyering.net>
91499
91500         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91501         Use `unsigned', not `int', as type of index.
91502
91503         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91504
91505         * lib/fsusage.c: Remove unneeded parentheses around operands of
91506         `defined'.
91507
91508 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91509
91510         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91511         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91512         so that we can be included first.
91513         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91514         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91515         No need to include stddef.h or sys/types.h any more.
91516         Surround local include files with "", not "<>".
91517         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91518         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91519         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91520         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91521         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91522         (ISPRINT): Remove; no longer needed now that we assume C89.
91523
91524         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91525         Preserve errno.
91526
91527         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91528         quotearg_char): Use SIZE_MAX rather than
91529         (size_t) -1 when we are talking about "infinity".
91530
91531         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91532
91533 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91534
91535         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91536         hint that one should use `if (! x) abort ();' rather than `assert
91537         (x);', and anyway it's one less thing to worry about configuring.
91538         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91539         hash_rehash, hash_insert): Use abort rather than assert.
91540
91541 2002-11-22  Bruno Haible  <bruno@clisp.org>
91542
91543         * lib/safe-read.h: Assume C89. Add comments.
91544         (safe_read): Change return type to size_t.
91545         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91546         byte counts > SSIZE_MAX correctly.
91547         * lib/safe-write.h: New file.
91548         * lib/safe-write.c: New file.
91549         * lib/full-read.h: New file.
91550         * lib/full-read.c: New file.
91551         * lib/full-write.h: Assume C89. Add comments.
91552         * lib/full-write.c: Include safe-write.h.
91553         (full_write): Rewritten to use safe_write.
91554         Suggested by Jim Meyering and Paul Eggert.
91555
91556 2002-11-21  Jim Meyering  <jim@meyering.net>
91557
91558         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91559
91560         Merge in changes from the coreutils.
91561
91562         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91563         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91564         <stdint.h>.
91565         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91566         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91567         int.  Work more efficiently if X is the same width as uintmax_t.
91568         Do not compare X to -1, to avoid bogus compiler warning.
91569         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91570         Don't assume that f_frsize and f_bsize are the same type.
91571
91572         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91573         warning on FreeBSD.
91574
91575         * lib/makepath.c (make_path): Restore umask *before* creating the final
91576         component.
91577         (make_path): Minor reformatting.
91578
91579         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91580         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91581         HAVE_MALLOC/HAVE_REALLOC.
91582
91583         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91584         dummy ones.  At least on GNU/Linux systems, `auto' means something
91585         else.
91586         From Michael Stone.
91587
91588 2002-11-21  Bruno Haible  <bruno@clisp.org>
91589
91590         Remove case insensitive option matching.
91591         * lib/argmatch.h (argcasematch): Remove declaration.
91592         (ARGCASEMATCH): Remove macro.
91593         (__xargmatch_internal): Remove case_sensitive argument.
91594         (XARGMATCH): Update.
91595         (XARGCASEMATCH): Remove macro.
91596         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91597         case_sensitive argument.
91598         (argcasematch): Remove function.
91599         (__xargmatch_internal): Remove case_sensitive argument.
91600         (main): Use XARGMATCH instead of XARGCASEMATCH.
91601
91602         * lib/xmalloc.c: Change compile-time error message. Add comment about
91603         required autoconf version.
91604
91605 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91606
91607         Merge argmatch cleanups from Bison.  Assume C89.
91608
91609         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91610         Include stdlib.h, for EXIT_FAILURE.
91611         Always include <string.h>, since we assume C89.
91612         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91613         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91614         Include <stddef.h> instead, since it's all we need for size_t.
91615         (PARAMS): Remove.  All uses removed.
91616         (ARRAY_CARDINALITY): Do not bother to #undef.
91617         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91618         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91619         Remove unnecessary parentheses.
91620         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91621         Insert necessary parentheses.
91622         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91623         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91624
91625 2002-11-19  Bruno Haible  <bruno@clisp.org>
91626
91627         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91628         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91629
91630         * lib/mbswidth.h (PARAMS): Remove macro.
91631         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91632         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91633
91634         * lib/gcd.h (PARAMS): Remove macro.
91635         (gcd): Use ANSI C function declarations.
91636         * lib/gcd.c (gcd): Likewise.
91637
91638 2002-11-15  Bruno Haible  <bruno@clisp.org>
91639
91640         * lib/strcspn.c: Include <stddef.h>.
91641         (strcspn): Use ANSI C function declaration. Change return type to
91642         size_t. Use NULL.
91643         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91644         (strpbrk): Use NULL.
91645         * lib/strpbrk.h (PARAMS): Remove macro.
91646         (strpbrk): Use ANSI C function declaration.
91647         * lib/strstr.c: Don't include <sys/types.h>.
91648         * lib/strstr.h (PARAMS): Remove macro.
91649         (strstr): Use ANSI C function declarations.
91650
91651 2002-11-14  Karl Berry  <karl@gnu.org>
91652
91653         * config/mkinstalldirs: `do' on separate line, instead of
91654         `for var; do'.
91655
91656 2002-11-06  Bruno Haible  <bruno@clisp.org>
91657
91658         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91659         * lib/gcd.c (gcd): Likewise.
91660
91661 2002-11-05  Bruno Haible  <bruno@clisp.org>
91662
91663         * lib/gcd.h: New file, from gettext-0.11.5.
91664         * lib/gcd.c: New file, from gettext-0.11.5.
91665
91666 2002-11-05  Bruno Haible  <bruno@clisp.org>
91667
91668         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91669         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91670         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91671         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91672
91673         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91674         <libintl.h>.
91675         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91676         <libintl.h>.
91677
91678         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91679         * lib/human.c: Include gettext.h instead of <libintl.h>.
91680         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91681         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91682         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91683         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91684         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91685         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91686         (textdomain): Remove definition.
91687         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91688
91689         * lib/long-options.c: Remove include of <libintl.h> and definition of
91690         _.
91691         * lib/same.c: Remove include of <libintl.h> and definition of _.
91692
91693 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91694
91695         * lib/config.charset: A few additions for Solaris.
91696
91697 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91698
91699         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91700         * lib/localcharset.c (locale_charset): Declare as extern "C".
91701
91702 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91703
91704         * lib/config.charset: msdos in uk_UA uses CP1125.
91705
91706 2002-11-04  Bruno Haible  <bruno@clisp.org>
91707
91708         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91709         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91710         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91711         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91712         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91713
91714 2002-11-04  Bruno Haible  <bruno@clisp.org>
91715
91716         * lib/localcharset.c (locale_charset): Don't return an empty string.
91717
91718 2002-11-04  Bruno Haible  <bruno@clisp.org>
91719
91720         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91721         aliases.
91722
91723 2002-11-04  Bruno Haible  <bruno@clisp.org>
91724
91725         * lib/config.charset: Update for newest glibc. Add canonical names
91726         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91727
91728 2002-11-04  Bruno Haible  <bruno@clisp.org>
91729
91730         * lib/config.charset: Add support for NetBSD.
91731
91732 2002-11-04  Bruno Haible  <bruno@clisp.org>
91733
91734         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91735
91736 2002-11-01  Bruno Haible  <bruno@clisp.org>
91737
91738         * configure.in: Add AC_CONFIG_AUX_DIR call.
91739         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91740         test/Makefile.
91741         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91742
91743 2002-09-28  Karl Berry  <karl@gnu.org>
91744
91745         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91746         installed automake until the next release, since changes have been
91747         made.
91748
91749 2002-09-25  Karl Berry  <karl@gnu.org>
91750
91751         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91752         * lib/getopt*: copy from libc/posix.
91753         * lib/gettext.h: copy from gettext.
91754         * lib/.cppi-disable: add strdup.c, gettext.h.
91755
91756 2002-09-25  Karl Berry  <karl@gnu.org>
91757
91758         * config/srclist.txt: enable gettext.h check.
91759         * config/config.{guess,sub}: update from prep.
91760         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91761                 from automake 1.6.3.
91762         See srclist*.
91763
91764 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91765
91766         * regex.c (PATFETCH): Remove the translating fetch.
91767         (PATFETCH_RAW): Rename to PATFETCH.
91768         (set_image_of_range): New fun.
91769         (SET_RANGE_TABLE_WORK_AREA): Use it.
91770         (regex_compile): Don't translate the pattern chars so eagerly.
91771         Only do it when inserting an `exactn' bytecode or when handling
91772         a char-range.
91773         (mutually_exclusive_p): Avoid empty statement.
91774
91775 2002-07-06  Jim Meyering  <meyering@lucent.com>
91776
91777         * m4/README: Don't mention Makefile.am.in.
91778         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91779
91780 2002-07-01  Jim Meyering  <meyering@lucent.com>
91781
91782         * lib/c-stack.c: Include sys/time.h.
91783         From Volker Borchert.
91784
91785 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91786
91787         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91788
91789 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91790
91791         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91792         New macro.  Use it uniformly instead of
91793         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91794         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91795         reported by Vin Shelton.
91796
91797 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91798
91799         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91800         Do not assume SA_SIGINFO behavior.
91801         Bug reported by Jim Meyering on NetBSD 1.5.2.
91802
91803 2002-06-22  Jim Meyering  <meyering@lucent.com>
91804
91805         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91806         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91807
91808         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91809         now that configure.ac uses AC_GNU_SOURCE.
91810         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91811         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91812
91813         Update to latest tools.  Suggestions from Paul Eggert.
91814         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91815         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91816         * m4/fnmatch.m4: Likewise.
91817         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91818         to AC_HEADER_STDBOOL
91819
91820 2002-06-22  Jim Meyering  <meyering@lucent.com>
91821
91822         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91823         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91824
91825 2002-06-22  Jim Meyering  <meyering@lucent.com>
91826
91827         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91828
91829         * lib/exitfail.c, exitfail.h: Likewise.
91830         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91831
91832         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91833         of fnmatch.h.
91834         (EXTRA_DIST): Add fnmatch_loop.c.
91835         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91836
91837         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91838         * lib/fnmatch.c: Update from diffutils-2.8.2.
91839         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91840         * lib/fnmatch.h: Remove file.
91841
91842 2002-06-21  Jim Meyering  <meyering@lucent.com>
91843
91844         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91845         * m4/mbrtowc.m4: Likewise.
91846
91847         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91848         * m4/mbswidth.m4: Reflect name change:
91849         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91850         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91851
91852         * m4/lib-link.m4: Update from gettext-0.11.2.
91853         * m4/gettext.m4: Likewise.
91854
91855         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91856         From Alfred M. Szmidt.
91857
91858 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91859
91860         * lib/file-type.h: Report an error if neither S_ISREG nor
91861         S_IFREG is defined, instead of using a test specific to glibc
91862         2.2.  This should be safe, since POSIX requires S_ISREG and
91863         Unix Version 7 had S_IFREG.  We don't need to check for
91864         <sys/types.h> since we don't use any symbols that it defines.
91865
91866 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91867
91868         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91869         $@-t, so that each temporary file name is unique and valid in the first
91870         8 characters, for operation under DOS.
91871
91872 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91873
91874         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91875
91876 2002-06-15  Jim Meyering  <meyering@lucent.com>
91877
91878         Work even with DJGPP 2.03, which lacks support for symlinks.
91879         From Richard Dawe.
91880         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91881         is defined.
91882         * lib/lchown.c (S_ISLNK): Likewise.
91883
91884 2002-06-15  Jim Meyering  <meyering@lucent.com>
91885
91886         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91887         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91888         have been included before this file.
91889
91890 2002-06-14  Jim Meyering  <meyering@lucent.com>
91891
91892         * lib/file-type.h: Use the version from diffutils-2.8.2.
91893         * lib/file-type.c: Likewise.
91894
91895 2002-06-07  Jim Meyering  <meyering@lucent.com>
91896
91897         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91898         They're needed at least for NetBSD 1.5.2.
91899         ($statxfs_includes): Include those same headers.
91900         ($statxfs_includes): Include sys/vfs.h if available.
91901         ($statxfs_includes): Likewise for sys/statvfs.h.
91902         Check for the following members in both structs statfs and statvfs:
91903         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91904
91905 2002-06-01  Jim Meyering  <meyering@lucent.com>
91906
91907         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91908         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91909
91910 2002-05-28  Jim Meyering  <meyering@lucent.com>
91911
91912         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91913         Reported by Volker Borchert.
91914
91915 2002-05-27  Jim Meyering  <meyering@lucent.com>
91916
91917         Fix a problem seen only on nonconforming systems whereby ls.c's
91918         use of localtime, and then of gettimeofday would cause trouble:
91919         the localtime call used to initialize rpl_gettimeofday's save
91920         mechanism would clobber ls's current local time information so
91921         that in any long listing the first file would always be listed
91922         with date 1970-01-01.  Analysis by Volker Borchert.
91923
91924         * lib/gettimeofday.c (localtime): Undefine.
91925         (rpl_localtime): New function.
91926
91927 2002-05-27  Jim Meyering  <meyering@lucent.com>
91928
91929         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91930         localtime.
91931
91932         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91933         use the replacement function; it wouldn't resolve at link time.
91934         Reported by Volker Borchert.
91935
91936 2002-05-22  Jim Meyering  <meyering@lucent.com>
91937
91938         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91939         file-type.h.
91940         * lib/file-type.h: New file.
91941         * lib/file-type.c (file_type): New file/function.  Extracted from
91942         diffutils.
91943
91944 2002-04-30  Jim Meyering  <meyering@lucent.com>
91945
91946         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91947
91948 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91949
91950         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91951
91952 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91953
91954         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91955         Do not check for alloca.h (no longer used) or stdbool.h (was never
91956         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91957
91958 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91959
91960         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91961
91962 2002-04-29  Jim Meyering  <meyering@lucent.com>
91963
91964         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91965         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91966         Use AC_FUNC_STRNLEN here instead.
91967
91968         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91969         With autoconf-2.53a, it's part of AC_PROG_CC.
91970
91971 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91972
91973         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91974         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91975
91976 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91977
91978         * lib/sig2str.h, lib/sig2str.c: New files.
91979         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91980
91981 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91982
91983         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91984         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91985         of 127, since 64 is the largest conceivable number for ancient
91986         nonstandard hosts.
91987         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91988
91989 2002-04-28  Jim Meyering  <meyering@lucent.com>
91990
91991         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91992
91993 2002-04-24  Jim Meyering  <meyering@lucent.com>
91994
91995         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91996         (jm_PREREQ): Use it.
91997
91998         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91999         mach/mach.h fcntl.h.
92000         Check for this function: setlocale.
92001
92002 2002-04-24  Jim Meyering  <meyering@lucent.com>
92003
92004         * lib/gettext.h: New file, from Gettext.
92005         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92006         (libfetish_a_SOURCES): Add gettext.h.
92007
92008 2002-04-16  Jim Meyering  <meyering@lucent.com>
92009
92010         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92011         ut_pid, ut_id, ut_exit.
92012
92013 2002-04-16  Jim Meyering  <meyering@lucent.com>
92014
92015         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92016         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92017         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92018
92019 2002-04-12  Jim Meyering  <meyering@lucent.com>
92020
92021         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92022         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92023         existence of the getmntinfo function.  Needed for Darwin 5.3.
92024
92025         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92026         This is necessary at least on Darwin 5.3.
92027
92028         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92029         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92030         strnlen.o in the library, and that makes some versions of ranlib
92031         object.
92032
92033 2002-04-12  Jim Meyering  <meyering@lucent.com>
92034
92035         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92036
92037 2002-04-09  Jim Meyering  <meyering@lucent.com>
92038
92039         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92040         to be more precise.  Rather than saying we're checking whether the
92041         function `works', say what we're testing.
92042         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92043         Reported by Bruno Haible.
92044
92045 2002-03-10  Jim Meyering  <meyering@lucent.com>
92046
92047         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92048         Suggestion from Santiago Vila.
92049
92050 2002-03-08  Jim Meyering  <meyering@lucent.com>
92051
92052         * lib/rename.c: Mention that this wrapper is needed also on
92053         mips-dec-ultrix4.4 systems.
92054
92055 2002-03-02  Jim Meyering  <meyering@lucent.com>
92056
92057         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92058         not HAVE_CLOCK_SETTIME.
92059
92060 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92061
92062         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92063         Check for clock_settime.
92064
92065 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92066
92067         * lib/nanosleep.h: Rename to....
92068         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92069
92070         * lib/gettime.c: New file.
92071         * lib/settime.c: New file.
92072         * lib/stime.c: Remove.
92073
92074         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92075         timespec.h.  Remove nanosleep.h.
92076
92077 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92078
92079         * m4/acl.m4: New file.
92080         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92081         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92082
92083 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92084
92085         * lib/acl.c, lib/acl.h: New files.
92086         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92087
92088 2002-02-24  Jim Meyering  <meyering@lucent.com>
92089
92090         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92091         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92092         cause trouble.  Reported by Nelson Beebe.
92093
92094 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92095
92096         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92097         compilers that don't know that xalloc_die never returns.
92098
92099 2002-02-20  Jim Meyering  <meyering@lucent.com>
92100
92101         * lib/getdate.c: Regenerate using bison-1.33.
92102
92103 2002-02-17  Jim Meyering  <meyering@lucent.com>
92104
92105         * config/config.guess (main): Don't use `head -1'; it's no longer
92106         portable. Use `sed 1q' instead.
92107
92108 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92109
92110         * m4/codeset.m4: Upgrade to gettext-0.11.
92111         * m4/gettext.m4: Upgrade to gettext-0.11.
92112         * m4/glibc21.m4: Upgrade to gettext-0.11.
92113         * m4/iconv.m4: Upgrade to gettext-0.11.
92114         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92115         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92116         * m4/lib-ld.m4: New file, from gettext-0.11.
92117         * m4/lib-link.m4: New file, from gettext-0.11.
92118         * m4/lib-prefix.m4: New file, from gettext-0.11.
92119         * m4/progtest.m4: Upgrade to gettext-0.11.
92120
92121 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92122
92123         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92124         (jm_PREREQ): Use it.
92125
92126 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92127
92128         * lib/posixver.c, lib/posixver.h: New files.
92129         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92130
92131 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92132             Bruno Haible  <bruno@clisp.org>
92133
92134         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92135         (fwrite_success_callback): New declaration.
92136         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92137         print_unicode_char. Call failure callback instead of error.
92138         (fwrite_success_callback): New function.
92139         (exit_failure_callback): New function.
92140         (fallback_failure_callback): New function.
92141         (print_unicode_char): Call unicode_to_mb.
92142
92143 2002-01-26  Jim Meyering  <meyering@lucent.com>
92144
92145         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92146         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92147
92148 2002-01-26  Jim Meyering  <meyering@lucent.com>
92149
92150         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92151
92152 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92153
92154         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92155
92156 2002-01-22  Jim Meyering  <meyering@lucent.com>
92157
92158         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92159         Otherwise, some versions of automake would omit the rule that makes
92160         Makefile from Makefile.in.
92161
92162 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92163
92164         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92165         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92166         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92167         (memcoll): Set errno to zero if there is no error.
92168
92169         * lib/quotearg.c (quotearg_buffer_restyled):
92170         Fix bug with quoting buffers containing NUL when backslashing escapes.
92171         This bug was exposed by the other changes in this patch.
92172         (quotearg_n_options): New arg ARGSIZE.
92173         All callers changed.
92174         (quoting_options_from_style): New function.
92175         (quotearg_n_style): Use it.
92176         (quotearg_n_style_mem): New function.
92177
92178         * lib/quotearg.h (quotearg_n_style_mem): New function.
92179
92180 2002-01-19  Jim Meyering  <meyering@lucent.com>
92181
92182         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92183         Remove useless quotes: DF_PROG="df".
92184         * m4/strnlen.m4: New file.
92185
92186 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92187
92188         * lib/backupfile.c (ISDIGIT): Comment fix.
92189         * lib/getdate.y (ISDIGIT): Likewise.
92190         * lib/posixtm.c (ISDIGIT, year): Likewise.
92191         * lib/strverscmp.c (ISDIGIT): Likewise.
92192         * lib/userspec.c (ISDIGIT): Likewise.
92193
92194 2002-01-16  Jim Meyering  <meyering@lucent.com>
92195
92196         * lib/getdate.y: Add three semicolons, each just before a closing
92197         brace. Bison (as of version 1.31) no longer papers over that mistake.
92198
92199 2002-01-05  Jim Meyering  <meyering@lucent.com>
92200
92201         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92202
92203 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92204
92205         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92206         not silently exit merely because the output buffer happens to
92207         have nothing pending.
92208
92209 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92210
92211         See the big note in ../ChangeLog.
92212         * lib/human.c (suffixes): Prefer K to k for 1024.
92213         (generate_suffix_backwards): New function.
92214         (human_readable_inexact): Use it.
92215         * lib/xstrtol.c (__xstrtol): If there is no number but there
92216         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92217         Accept 'K' as well as 'k'.
92218
92219 2001-12-15  Jim Meyering  <meyering@lucent.com>
92220
92221         * lib/regex.h (__restrict_arr): Update from libc.
92222
92223         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92224         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92225         (STREQ): Define.
92226
92227 2001-12-14  Jim Meyering  <meyering@lucent.com>
92228
92229         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92230         Suggestion from Bruno Haible.
92231
92232 2001-12-10  Jim Meyering  <meyering@lucent.com>
92233
92234         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92235         xrealloc, Instead, include "xalloc.h".
92236         (initbuffer): Don't cast xmalloc return value to char*.
92237         (readline): Reword comment.
92238         Don't cast xrealloc return value to char*
92239         Return NULL, not 0.
92240
92241 2001-12-09  Jim Meyering  <meyering@lucent.com>
92242
92243         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92244         about `signed and unsigned type in conditional expression'.
92245         * lib/posixtm.c (posix_time_parse): Likewise.
92246
92247         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92248
92249         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92250         to avoid a pedantic warning.
92251
92252         * lib/getstr.c: Don't include assert.h.
92253         (getstr): Remove warning-evoking assertions.
92254         Return -1 if offset parameter is out of bounds.
92255         Change the type of a local from int to size_t.
92256
92257         * lib/strftime.c (my_strftime_localtime_r): Include this function
92258         definition in the `#if ! HAVE_TM_GMTOFF' block.
92259
92260         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92261         Include xalloc.h instead.
92262
92263 2001-12-02  Jim Meyering  <meyering@lucent.com>
92264
92265         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92266         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92267         included.
92268
92269         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92270         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92271
92272 2001-11-30  Akim Demaille  <akim@epita.fr>
92273
92274         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92275         before being defined.
92276
92277 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92278
92279         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92280         First arg is int, not unsigned.
92281         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92282         (SIZE_MAX, UINT_MAX): New macros.
92283         (quotearg_n_options): Abort if N is negative.
92284         Avoid overflow check on hosts where size_t is 64 bits and int
92285         is 32 bits, as overflow is impossible there.
92286         Fix off-by-one typo that caused unnecessary reallocation.
92287
92288 2001-11-27  Jim Meyering  <meyering@lucent.com>
92289
92290         * lib/tempname.c: Merge with version from libc.
92291         * lib/regex.c: Likewise.
92292
92293         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92294         systems for which STDC_HEADERS is 0, it was not included, resulting in
92295         a warning about an integer-to-pointer conversion problem with getenv.
92296         Reported by Volker Borchert.
92297
92298 2001-11-26  Jim Meyering  <meyering@lucent.com>
92299
92300         * lib/gtod.h: Remove file.
92301         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92302         * lib/gettimeofday.c: Don't include gtod.h.
92303         (GTOD_init): Remove function.
92304         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92305         Suggestion from Volker Borchert.
92306
92307 2001-11-23  Jim Meyering  <meyering@lucent.com>
92308
92309         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92310         it.
92311         * lib/hash.c (struct hash_table): Define it here instead.
92312
92313 2001-11-22  Jim Meyering  <meyering@lucent.com>
92314
92315         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92316
92317 2001-11-20  Jim Meyering  <meyering@lucent.com>
92318
92319         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92320         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92321
92322 2001-11-19  Jim Meyering  <meyering@lucent.com>
92323
92324         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92325         directory.  Use "conftestXXXXXX" as the template.
92326         Suggestion from Paul Eggert.
92327
92328         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92329         immediately, so the test doesn't mistakenly hit the max-open-files
92330         limit.
92331
92332 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92333
92334         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92335         (TEMPORARIES): New macro.
92336         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92337         removes an artificial limitation (e.g. HP-UX 10.20, where
92338         TMP_MAX is 17576).
92339
92340 2001-11-18  Jim Meyering  <meyering@lucent.com>
92341
92342         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92343
92344 2001-11-18  Jim Meyering  <meyering@lucent.com>
92345
92346         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92347         on SunOS 4.
92348
92349         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92350         files will be created before anything else.
92351
92352 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92353
92354         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92355         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92356
92357 2001-11-17  Jim Meyering  <meyering@lucent.com>
92358
92359         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92360         Prompted by a report from Bob Proulx.
92361
92362         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92363         Instead, require UTILS_FUNC_MKSTEMP.
92364
92365 2001-11-17  Jim Meyering  <meyering@lucent.com>
92366
92367         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92368         Now, that's done as part of AC_FUNC_STRTOD.
92369
92370 2001-11-17  Jim Meyering  <meyering@lucent.com>
92371
92372         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92373         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92374         rather than group writable.  Patch by Juan F. Codagnone.
92375
92376         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92377         xrealloc, Instead, include "xalloc.h".
92378
92379         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92380         Remove explicit declarations of xmalloc, xrealloc,
92381         and xstrdup.  Instead, include "xalloc.h".
92382
92383         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92384         unlocked-io.h.
92385         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92386         Likewise.
92387         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92388
92389         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92390         Reported by Padraig Brady.
92391
92392         * lib/mkstemp.c: #undef mkstemp.
92393         Include config.h.
92394         (rpl_mkstemp): Rename from mkstemp.
92395         Protoize.
92396
92397 2001-11-16  Jim Meyering  <meyering@lucent.com>
92398
92399         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92400         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92401         determine the amount of total physical memory, use pstat_getstatic.
92402         HPUX-11 doesn't define _SC_PHYS_PAGES.
92403         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92404         If sysconf couldn't be used to determine the amount of available
92405         physical memory, use both pstat_getstatic and pstat_getdynamic.
92406         Based on a patch from Bob Proulx.
92407
92408 2001-11-10  Jim Meyering  <meyering@lucent.com>
92409
92410         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92411         (jm_PREREQ): Use it.
92412
92413 2001-11-09  Jim Meyering  <meyering@lucent.com>
92414
92415         * m4/jm-macros.m4: Require autoconf-2.52f.
92416         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92417         Use these AC_-prefixed names, not the AM_-prefixed ones.
92418
92419         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92420
92421 2001-11-05  Jim Meyering  <meyering@lucent.com>
92422
92423         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92424
92425 2001-11-04  Jim Meyering  <meyering@lucent.com>
92426
92427         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92428         $DEFS.
92429
92430 2001-11-03  Jim Meyering  <meyering@lucent.com>
92431
92432         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92433         of AC_DEFUN.
92434
92435         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92436         know the name of the variable in the macro definition.
92437
92438 2001-11-03  Jim Meyering  <meyering@lucent.com>
92439
92440         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92441         in argmatch_to_argument call.
92442
92443         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92444         argument.
92445
92446         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92447         e.g., a fault due to an attempt to free a NULL pointer.
92448
92449 2001-11-01  Jim Meyering  <meyering@lucent.com>
92450
92451         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92452         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92453
92454 2001-11-01  Jim Meyering  <meyering@lucent.com>
92455
92456         * lib/dirfd.c, lib/dirfd.h: New files.
92457         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92458
92459         * lib/hash.c (hash_print) [TESTING]: Clean up.
92460
92461 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92462
92463         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92464         to avoid a warning if -Wall.
92465
92466 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92467
92468         * README: New file
92469         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92470         (per RMS's instructions, this is now the canonical source)
92471         * lgpl/, gpl/: New directories.
92472
92473 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92474
92475         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92476
92477 2001-10-21  Jim Meyering  <meyering@lucent.com>
92478
92479         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92480         this code would end up calling gettext even in packages built
92481         with --disable-nls.
92482         * lib/getopt.c (_): Likewise.
92483         * lib/regex.c (_): Likewise.
92484
92485 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92486
92487         * m4/error.m4 (jm_PREREQ_ERROR):
92488         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92489         AC_FUNC_STRERROR_R does that.
92490         Check for strerror declaration.
92491
92492         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92493         are supposed to have them these days.
92494         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92495         Merge changes from latest Autoconf CVS.
92496         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92497         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92498         POSIX decided to standardize on the int flavor of strerror_r.
92499
92500 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92501
92502         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92503         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92504         Use strerror_r that is only a macro, even if it is not a function.
92505         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92506         (private_strerror): Use prototypes, not old-style function definition.
92507         (print_errno_message): New function.
92508         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92509         char*-flavored one.
92510         (error_tail, error, error_at_line): Use it.
92511
92512 2001-10-11  Jim Meyering  <meyering@lucent.com>
92513
92514         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92515         and quote_n (1, ... to avoid clobbering a buffer.
92516
92517 2001-10-05  Jim Meyering  <meyering@lucent.com>
92518
92519         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92520         hash-pjw.h.
92521         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92522         * lib/hash-pjw.h: New file.
92523
92524 2001-09-30  Jim Meyering  <meyering@lucent.com>
92525
92526         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92527         `struct fsstat' has the `f_fstypename' member.
92528         Use that to define FS_TYPE, which is now used to make
92529         the getfsstat link test tighter.
92530
92531 2001-09-30  Jim Meyering  <meyering@lucent.com>
92532
92533         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92534         Include <sys/ucred.h>, for Apple Darwin.
92535         Include sys/mount.h and sys/fs_types.h only if available.
92536         (FS_TYPE): Define.
92537         (read_filesystem_list): Use FS_TYPE.
92538
92539 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92540
92541         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92542         a boolean context.
92543
92544 2001-09-29  Jim Meyering  <meyering@lucent.com>
92545
92546         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92547         [one-argument getmntent function]): Include stdio.h before mntent.h.
92548         SunOS 4.1.x needs it for the declaration of `FILE'.
92549         Patch by Volker Borchert.
92550
92551         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92552         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92553         sys/fs_types.h, and make the link-test for getfsstat guard #include
92554         directives with appropriate #if HAVE_*_H tests so that we can
92555         detect getfsstat on Apple Darwin1.3.7 systems.
92556         Reported by Nelson Beebe.
92557         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92558
92559 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92560
92561         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92562         #defines strtoimax.  Also treat the other strto* functions
92563         like strtoimax.
92564
92565         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92566         Check for strtoul and strtoumax,
92567         as those declarations are made even in the signed case.
92568         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92569         Likewise, for strtol and strtoimax.
92570
92571 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92572
92573         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92574         #defines strtoimax.  Also treat the other strto* functions
92575         like strtoimax.
92576
92577         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92578         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92579         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92580
92581 2001-09-26  Jim Meyering  <meyering@lucent.com>
92582
92583         Most macros in unlocked-io.h had the wrong number of arguments.
92584         * lib/gen-uio: New script.
92585         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92586         * lib/unlocked-io.hin: Remove file.
92587         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92588         rather than trying to embed it here.
92589         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92590         Reported by Padraig Brady.
92591
92592 2001-09-25  Volker Borchert  <bt@teknon.de>
92593
92594         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92595         `result'.
92596
92597 2001-09-24  Jim Meyering  <meyering@lucent.com>
92598
92599         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92600
92601 2001-09-23  Jim Meyering  <meyering@lucent.com>
92602
92603         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92604         instead of the mere test for existence of mntent.h.  The latter
92605         would get a false-positive on AIX 3.4 systems.
92606         In the outer getmntent if-block, don't die if neither of the getmntent
92607         tests succeeds.  Instead, just fall through and continue with the
92608         remaining tests.
92609
92610 2001-09-23  Jim Meyering  <meyering@lucent.com>
92611
92612         * lib/mountlist.c: Remove useless parentheses in #if directives.
92613         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92614         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92615
92616 2001-09-22  Jim Meyering  <meyering@lucent.com>
92617
92618         * m4/gettext.m4: New file.  From gettext.
92619         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92620         * m4/progtest.m4: Likewise
92621         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92622         * m4/glibc21.m4: Likewise.
92623
92624         * m4/libintl.m4: Remove.  No longer used.
92625
92626 2001-09-22  Jim Meyering  <meyering@lucent.com>
92627
92628         * lib/localcharset.c: Update from latest gettext.
92629         * lib/config.charset: Likewise.
92630
92631 2001-09-20  Jim Meyering  <meyering@lucent.com>
92632
92633         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92634         strtoimax.
92635         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92636         strtoumax.
92637
92638 2001-09-20  Jim Meyering  <meyering@lucent.com>
92639
92640         * lib/xstrtol.c (strtoimax): Guard declaration with
92641         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92642         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92643         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92644         (strtoumax): Likewise, for completeness (it wasn't necessary).
92645
92646 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92647
92648         * lib/strtoimax.c (HAVE_LONG_LONG):
92649         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92650         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92651         to work around bug in IBM C compiler.
92652
92653 2001-09-17  Jim Meyering  <meyering@lucent.com>
92654
92655         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92656         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92657         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92658         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92659         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92660         whenever the right hand side need not be expanded by the shell.
92661
92662 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92663
92664         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92665         library.  It's not correct, as some older glibcs are buggy.
92666         fnmatch wasn't fixed until glibc 2.2.
92667
92668         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92669         special shell magic here.
92670
92671 2001-09-16  Jim Meyering  <meyering@lucent.com>
92672
92673         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92674         * m4/jm-macros.m4: Require it.
92675
92676 2001-09-16  Jim Meyering  <meyering@lucent.com>
92677
92678         * lib/mkdir.c: New file.
92679
92680 2001-09-15  Jim Meyering  <meyering@lucent.com>
92681
92682         * m4/jm-macros.m4: Check for help2man.
92683
92684 2001-09-11  Jim Meyering  <meyering@lucent.com>
92685
92686         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92687         The body, by Paul Eggert, was moved here from configure.in.
92688         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92689
92690 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92691
92692         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92693         (jm_PREREQ): Use it.
92694
92695 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92696
92697         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92698         Use ssize_t, not int, to store result of readlink.
92699         Check for ssize_t overflow as well as size_t overflow,
92700         as POSIX says the result of readlink is implementation-defined
92701         when ssize_t overflows.
92702         Remove unnecessary cast to char*.
92703         Use free+malloc instead of realloc, as the storage doesn't need
92704         to be preserved and it's clearer and can be more efficient that way.
92705         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92706         * lib/xreadlink.h (xreadlink): Update prototype.
92707
92708 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92709
92710         * lib/xgetcwd.c: Revert some of the previous change; intead,
92711         fix the HAVE_GETCWD_NULL code to behave more like the
92712         !HAVE_GETCWD_NULL code used to.
92713
92714         Include "xalloc.h".
92715         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92716         invoke xalloc_die.
92717
92718 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92719
92720         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92721         sys/param.h, as pathmax.h includes them.
92722
92723 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92724
92725         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92726         (jm_PREREQ_XGETCWD): New macro.
92727
92728         * m4/getcwd.m4: New file.
92729
92730 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92731
92732         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92733         like the HAVE_GETCWD_NULL code.
92734         Include pathmax.h if not HAVE_GETCWD.
92735         Do not include xalloc.h.
92736         (INITIAL_BUFFER_SIZE): New symbol.
92737         Do not use xmalloc / xrealloc, since the caller is responsible for
92738         handling errors.  Preserve errno around `free' during failure.
92739         Do not overrun buffer when using getwd.
92740
92741 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92742
92743         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92744         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92745         getcwd (NULL, 0).
92746
92747 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92748
92749         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92750         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92751         spotted by Jim Meyering.
92752
92753 2001-09-03  Jim Meyering  <meyering@lucent.com>
92754
92755         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92756         failure.
92757
92758 2001-09-02  Jim Meyering  <meyering@lucent.com>
92759
92760         * lib/error.c: Update from GNU libc.
92761
92762 2001-09-01  Jim Meyering  <meyering@lucent.com>
92763
92764         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92765         Used by df.
92766
92767 2001-09-01  Jim Meyering  <meyering@lucent.com>
92768
92769         * lib/xreadlink.c: New file.
92770         * lib/xreadlink.h: New file.
92771         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92772         xreadlink.h.
92773
92774         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92775         doesn't conflict with sparc Solaris 7's definition in
92776         /usr/include/sys/int_types.h.
92777
92778         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92779         files.
92780         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92781         and strncasecmp as r-values.  Unixware didn't have declarations.
92782
92783 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92784
92785         * lib/xstrtol.h: Add copyright notice.
92786         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92787         LONGINT_INVALID_SUFFIX_CHAR.
92788
92789 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92790
92791         * lib/xstrtol.c (strtoimax): New decl.
92792
92793 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92794
92795         * lib/xgetcwd.c: Don't include pathmax.h.
92796         Include stdlib.h and unistd.h if available.
92797         Include xalloc.h.
92798         (xmalloc, xstrdup, free): Remove decls.
92799         (xgetcwd): Don't assume sizes fit in unsigned.
92800         Check for overflow when computing sizes.
92801         Simplify reallocation code.
92802
92803 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92804
92805         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92806         a directory's st_size can have an arbitrary value, so the old
92807         usage could waste an arbitrary amount of memory.  All uses
92808         changed.
92809         * lib/savedir.h: Update prototype.
92810
92811 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92812
92813         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92814
92815         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92816         old strtoimax.c.
92817
92818         Also, make the following further changes to make this file's
92819         configuration more similar to that of strtol.c:
92820         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92821         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92822         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92823         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92824         changed to signed values.
92825
92826         And make the following changes as well:
92827         Fix copyright notice, as 1999 was missing.
92828         (verify): New macro.
92829         (strtoimax): Check sizes at compile-time, not run-time.
92830         Prefer strtol to strtoll if both work.
92831         (main): Remove; it was not that useful and was a pain to maintain.
92832
92833         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92834
92835 2001-08-31  Jim Meyering  <meyering@lucent.com>
92836
92837         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92838         Use an initial, malloc'd, buffer of length 128 rather than
92839         a statically allocated one of length 1024.
92840
92841 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92842
92843         Simplify code, partly by assuming autoconf 2.52 semantics.
92844
92845         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92846
92847         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92848         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92849         All uses removed.
92850         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92851         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92852         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92853         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92854         jm_AC_HEADER_INTTYPES_H.
92855         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92856
92857         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92858
92859         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92860         Quote first arg of AC_DEFUN.
92861         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92862         since they are needed to parse the include file even if we need
92863         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92864         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92865         but with opposite signedness.
92866
92867 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92868
92869         Merge 'exclude' changes from tar 1.13.22.
92870         This fixes one or two unlikely storage allocation overflow bugs,
92871         but doesn't change user-visible behavior otherwise.
92872
92873 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92874
92875         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92876         (jm_PREREQ_EXCLUDE): New macro.
92877
92878 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92879
92880         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92881         tm to be declared.
92882
92883 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92884
92885         * lib/hash.c: Remove '2001' from copyright notice.
92886
92887 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92888
92889         * lib/full-write.h: New file.
92890         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92891         * lib/full-write.c: Correct credits, as cccp.c no longer
92892         exists and anyway it was so heavily changed from the old cccp
92893         code as to be unrecognizable.  Include full-write.h.
92894         (full_write): Return size_t, with short writes meaning failure.
92895         All callers changed.  This fixes a bug with large buffers
92896         on 64-bit hosts.
92897         * lib/utime.c: Include full-write.h.
92898
92899 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92900
92901         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92902         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92903         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92904         Include if available.
92905         (<xalloc.h>): Include
92906         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92907         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92908         collide with FNM macros.
92909         (struct patopts): New struct.
92910         (struct exclude): Use it, as exclude patterns now come with options.
92911         (new_exclude): Support above changes.
92912         (new_exclude, add_exclude_file):
92913         Initial size must now be a power of two to simplify overflow checking.
92914         (free_exclude, fnmatch_no_wildcards): New function.
92915         (excluded_filename): No longer requires options arg, as the options
92916         are determined by add_exclude.  Now returns bool, not int.
92917         (excluded_filename, add_exclude):
92918         Add support for the fancy new exclusion options.
92919         (add_exclude, add_exclude_file): Now takes int options arg.
92920         Check for arithmetic overflow when computing sizes.
92921         (add_exclude_file): xrealloc might modify errno, so don't
92922         realloc until after errno might be used.
92923
92924         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92925         New macros.
92926         (free_exclude): New decl.
92927         (add_exclude, add_exclude_file): Now takes int options arg.
92928         (excluded_filename): No longer requires options arg, as the options
92929         are determined by add_exclude.  Now returns bool, not int.
92930
92931 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92932
92933         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92934
92935 2001-08-27  Jim Meyering  <meyering@lucent.com>
92936
92937         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92938
92939         * lib/version-etc.c (N_): Remove definition.
92940         Revert most of last change.
92941         Instead, simply don't mark the `Copyright...' string for translation.
92942         Based on advice from Paul Eggert.
92943
92944         * lib/strtoxmax.c: Tweak comment.
92945
92946 2001-08-26  Jim Meyering  <meyering@lucent.com>
92947
92948         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92949
92950         * m4/xstrtoimax.m4: New file.
92951         * m4/xstrtoumax.m4: Add comments explaining why we
92952         AC_REPLACE_FUNCS(strtol).
92953
92954 2001-08-26  Jim Meyering  <meyering@lucent.com>
92955
92956         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92957         of copyright with `%s' so translators don't get an untranslated
92958         message in 2002.
92959         (COPYRIGHT_YEAR): Define.
92960         (version_etc): Use fprintf rather than fputs.
92961         Suggestion from Ulrich Drepper.
92962
92963         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92964
92965         * lib/strtoll.c: New file, from GNU libc.
92966         * lib/xstrtoimax.c: New file.
92967
92968         * lib/xstrtol.h: Add xstrtoimax.
92969         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92970         * lib/strtoimax.c: New file.  Likewise, but first define
92971         STRTOUXMAX_SIGNED.
92972
92973         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92974         ...
92975         * lib/strtoxmax.c: ... then renamed to this.
92976
92977 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92978
92979         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92980         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92981         (jm_AC_TYPE_INTMAX_T): New macro.
92982         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92983
92984         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92985
92986         * m4/longlong.m4: Renamed from ulonglong.m4.
92987         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92988         * m4/uintmax_t.m4: Removed.
92989
92990 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92991
92992         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92993         Port to Solaris 8, where 'sed' requires a space after the 'r'
92994         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92995         Redirect output to $tmp just once.
92996
92997 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92998
92999         * lib/addext.c (<errno.h>): Include.
93000         (errno): Declare if not defined.
93001         (addext): Work correctly when pathconf returns -1 and leaves
93002         errno alone because there is no limit.  Also, work even if
93003         pathconf returns a value greater than SIZE_MAX.
93004
93005 2001-08-12  Jim Meyering  <meyering@lucent.com>
93006
93007         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93008         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93009         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93010         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93011         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93012         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93013         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93014         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93015         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93016         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93017         utime.m4, utimes.m4, xstrtoumax.m4:
93018         Quote the first argument in each use of AC_DEFUN.
93019
93020 2001-08-12  Jim Meyering  <meyering@lucent.com>
93021
93022         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93023         Simply `return getcwd (NULL, 0);'.
93024         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93025         Use 1300 as initial value for length, not PATH_MAX.
93026
93027         * lib/pathmax.h: Clean up cpp syntax.
93028
93029 2001-08-12  Jim Meyering  <meyering@lucent.com>
93030
93031         * lib/gettimeofday.c: New file.
93032         * lib/gtod.h: New file.
93033         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93034
93035 2001-08-05  Jim Meyering  <meyering@lucent.com>
93036
93037         * m4/jm-macros.m4: Require autoconf-2.52.
93038
93039 2001-08-04  Jim Meyering  <meyering@lucent.com>
93040
93041         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93042         stmt, to get in sync with glibc.
93043
93044 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93045
93046         The following changes are from gettext 0.10.39 as maintained by
93047         Bruno Haible.
93048
93049         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93050         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93051         with inverted sense.  All uses changed.
93052
93053         * lib/mbswidth.c: Don't include <limits.h>.
93054         Include <stdlib.h> and <string.h> unconditionally.
93055         (iswcntrl, mbsinit, ISCNTRL): New macros.
93056         (mbsnwidth): Use K&R style function declarations.
93057         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93058         can optimize it when MB_CUR_MAX == 1.
93059         The width of control characters is zero, not 1.
93060
93061 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93062
93063         The following changes are from gettext 0.10.39 as maintained by
93064         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93065
93066         * m4/codeset.m4: Upgrade to serial AM1.
93067         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93068         all uses changed.  Quote first arg of AC_DEFUN.
93069         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93070
93071         * m4/iconv.m4: Upgrade to serial AM2.
93072         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93073         Add --with-libconv-prefix.
93074         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93075         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93076         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93077         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93078         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93079
93080         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93081         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93082         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93083         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93084         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93085         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93086         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93087         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93088         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93089
93090         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93091         string.h any more.
93092
93093         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93094         not the default value.
93095
93096         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93097         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93098         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93099         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93100         Also check for iswcntrl, used for wcwidth fallback.
93101         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93102         to Autoconf 2.13.
93103
93104 2001-08-03  Jim Meyering  <meyering@lucent.com>
93105
93106         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93107         as it was in the original.  Reported by Paul Eggert.
93108
93109 2001-07-16  Jim Meyering  <meyering@lucent.com>
93110
93111         * m4/gettimeofday.m4: New file.
93112         Prompted by a report from Bernhard Baehr.
93113
93114 2001-07-15  Jim Meyering  <meyering@lucent.com>
93115
93116         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93117         stuff. Now it's in ../Makefile.cfg.
93118
93119 2001-07-15  Jim Meyering  <meyering@lucent.com>
93120
93121         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93122         (BUILT_SOURCES): Add unlocked-io.h.
93123         (io_functions): Define.
93124         (unlocked-io.h): New rule.
93125         (DISTCLEANFILES): Add unlocked-io.h.
93126         (all-local): Depend on unlocked-io.h, to ensure it is created.
93127
93128         * lib/unlocked-io.hin: New file
93129
93130         * lib/regex.c: Update from glibc.
93131
93132 2001-07-05  Jim Meyering  <meyering@lucent.com>
93133
93134         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93135         recommendation.
93136         (libfetish_a_SOURCES): Put all .h files here instead.
93137         Remove a thus-exposed (better checks in automake) duplicate and
93138         two unnecessary .h files.
93139
93140 2001-07-04  Jim Meyering  <meyering@lucent.com>
93141
93142         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93143         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93144         distcheck failure.
93145
93146 2001-07-02  Jim Meyering  <meyering@lucent.com>
93147
93148         The following changes were prompted by suggestions from Bruno Haible.
93149
93150         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93151         is now generated.
93152         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93153         definition of EXTRA_DIST.
93154         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93155         ensure that the generated file is created/updated whenever the list
93156         of $(unlocked_functions) is changed.
93157         (jm-glibc-io.m4): New rule.
93158         (unlocked-io.h): New rule -- currently unused.
93159
93160 2001-06-24  Jim Meyering  <meyering@lucent.com>
93161
93162         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93163         unmatched right bracket, rather than kludging it with an extra,
93164         falsely-matching quote in a comment.  Patch by Akim Demaille.
93165
93166 2001-06-11  Jim Meyering  <meyering@lucent.com>
93167
93168         * lib/regex.c: Update from GNU libc.
93169
93170 2001-05-27  Jim Meyering  <meyering@lucent.com>
93171
93172         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93173         Check for ut_type in struct utmp.
93174
93175 2001-05-27  Jim Meyering  <meyering@lucent.com>
93176
93177         * lib/readutmp.h (UT_TYPE): Define.
93178
93179 2001-05-24  Jim Meyering  <meyering@lucent.com>
93180
93181         * lib/argmatch.c: Include "quote.h".
93182         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93183         quote function.  Reported by Göran Uddeborg.
93184
93185 2001-05-22  Jim Meyering  <meyering@lucent.com>
93186
93187         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93188         now that we use the package-supplied version unconditionally.
93189         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93190
93191 2001-05-21  Jim Meyering  <meyering@lucent.com>
93192
93193         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93194         shell syntax errors.
93195
93196 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93197
93198         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93199
93200 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93201
93202         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93203         Don't bother to check library strftime, since
93204         we'll be using our own my_strftime function anyway.
93205         Define my_strftime instead of strftime.
93206
93207 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93208
93209         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93210         which is not yet declared.
93211
93212 2001-05-15  Jim Meyering  <meyering@lucent.com>
93213
93214         * m4/regex.m4: Use proper quoting so brackets appear in the test
93215         program.
93216         Reported by, and with help from, Bruno Haible.
93217
93218 2001-05-13  Jim Meyering  <meyering@lucent.com>
93219
93220         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93221         undefined.
93222
93223 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93224
93225         dirname code cleanup.  base_name now behaves more compatibly
93226         with POSIX basename when given file names that have trailing
93227         slashes, and similarly for dir_name.  Add new primitives
93228         base_len and dir_len.  Put the directory-name-related decls
93229         into dirname.h.
93230
93231         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93232         * lib/backupfile.c (base_name): Likewise.
93233         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93234         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93235         * lib/makepath.c (strip_trailing_slashes): Likewise.
93236         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93237         ISSLASH): Likewise.
93238         * lib/rename.c (strip_trailing_slashes): Likewise.
93239         * lib/same.c (base_name): Likewise.
93240         * lib/stripslash.c (ISSLASH): Likewise.
93241
93242         * lib/addext.c: Include <dirname.h> after size_t is defined.
93243         * lib/backupfile.c: Likewise.
93244
93245         * lib/addext.c (addext): Use base_len to trim redundant
93246         trailing slashes instead of doing it ourselves.
93247         But do not trim the last slash if it is not redundant.
93248
93249         * lib/backupfile.c (find_backup_file_name,
93250         max_backup_version): Use base_len instead of rolling it ourselves.
93251         Handle the case of "" and (on DOS) "C:" correctly.
93252
93253         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93254         needed. Include <string.h>, <dirname.h>.
93255         (base_name): Allow file names ending in slashes, other than names
93256         that are all slashes.  In this case, return the basename followed
93257         by the slashes.  This is more general, and can be used in places
93258         where the original base_name purposely had an assertion failure.
93259         (base_len): New function.
93260
93261         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93262         Do not include <assert.h>; no longer needed.
93263         Include xalloc.h.
93264         (memrchr): Remove decl.
93265         (dir_name_r): Remove.
93266         (dir_len): Renamed from dirlen.  All callers changed.
93267         Rewrite in terms of base_name, for simplicity and consistency.
93268         (dir_name): Never return NULL.  All callers changed.
93269         Do not include <stdlib.h> in test program; no longer needed.
93270         return 0; is fine for test program.
93271
93272         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93273         New macros.
93274         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93275
93276         * lib/path-concat.c (path_concat): Use base_len to compute
93277         base length, not strlen; this means we cannot rely on memcpy
93278         to null-terminate.
93279
93280         * lib/same.c (STREQ): Remove.
93281         (same_name): Handle the case where the basename ends in trailing '/'.
93282
93283         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93284         a slash was stripped.  Do not strip the last slash after a
93285         file system prefix.
93286
93287 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93288
93289         * lib/Makefile.am (libfetish_a_SOURCES):
93290         Add strftime.c, since we now compile it on all hosts.
93291
93292         * lib/strftime.c (my_strftime):
93293         Define to nstrftime if emacs, but only if my_strftime is not defined.
93294         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93295         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93296         Add one more extra argument: a nanoseconds value.
93297         All uses changed.
93298         (ns): New macro.
93299         (my_strftime function): Add %N format.
93300         (emacs_strftimeu): Renamed from emacs_strftime,
93301         with extra ut argument.
93302
93303 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93304
93305         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93306
93307 2001-04-21  Jim Meyering  <meyering@lucent.com>
93308
93309         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93310         doesn't interfere.
93311
93312 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93313
93314         * m4/ftruncate.m4: Check for chsize.
93315         Link with ftruncate.o unconditionally if ftruncate is missing.
93316         This was required when cross-compiling to i586-mingw32msvc.
93317
93318 2001-04-08  Jim Meyering  <meyering@lucent.com>
93319
93320         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93321         recomputed; that's necessary when the offset spans a DST transition.
93322         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93323
93324 2001-04-02  Jim Meyering  <meyering@lucent.com>
93325
93326         * lib/regex.h, regex.c: Update from GNU libc.
93327
93328 2001-03-24  Jim Meyering  <meyering@lucent.com>
93329
93330         * m4/jm-macros.m4: Require autoconf-2.49d.
93331
93332 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93333
93334         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93335
93336 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93337
93338         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93339
93340 2001-03-17  Jim Meyering  <meyering@lucent.com>
93341
93342         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93343         now that the version in autoconf is equivalent.
93344         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93345
93346         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93347         Suggestion from Akim Demaille.
93348
93349         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93350         (jm_PREREQ_TEMPNAME): New function.
93351
93352 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93353
93354         * lib/tempname.c (uint64_t): Define to uintmax_t if
93355         not defined, and if UINT64_MAX is not defined.
93356         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93357         Reported by John David Anglin.
93358
93359 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93360
93361         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93362         resolve alias if codeset is empty.
93363         * lib/config.charset (BeOS): Use wildcard syntax.
93364
93365 2001-03-13  Jim Meyering  <meyering@lucent.com>
93366
93367         * lib/path-concat.c (path_concat)
93368         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93369         concatenating e.g., `C:' and `foo'.
93370         From Bruno Haible.
93371
93372 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93373
93374         * lib/localcharset.c (locale_charset): Don't use
93375         setlocale(LC_CTYPE,NULL). Don't return NULL.
93376         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93377
93378 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93379
93380         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93381         support for DOS/DJGPP.
93382
93383 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93384
93385         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93386         lacks mkstemp.  Compile our own tempname.c if we compile our own
93387         mkstemp.c, as mkstemp relies on tempname.
93388
93389 2001-03-01  Jim Meyering  <meyering@lucent.com>
93390
93391         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93392         AH_VERBATIM really does output its argument verbatim.
93393
93394 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93395
93396         * lib/Makefile.am (libfetish_a_SOURCES):
93397         Add dup-safer.c, fopen-safer.c.
93398         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93399
93400         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93401         * lib/unistd-safer.h: New files.
93402
93403 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93404
93405         The mkstemp replacement is taken from glibc 2.2.2, with some
93406         portability fixes for use outside glibc, as follows:
93407
93408         * lib/tempname.c (struct_stat64): New macro.
93409         (direxists, __gen_tempname): Use it.
93410         This avoids a portability problem with Solaris 8.
93411
93412         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93413         (<stddef.h>, <stdint.h>, <string.h>):
93414         Include only if STDC_HEADERS || _LIBC.
93415         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93416         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93417         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93418         (__set_errno): Define this macro if <errno.h> doesn't.
93419         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93420         Define these macros if <stdio.h> doesn't.
93421         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93422         Define these macros if <sys/stat.h>
93423         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93424         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93425         __xstat64): Define if not _LIBC.
93426         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93427         (__gen_tempname): Invoke gettimeofday only if
93428         HAVE_GETTIMEOFDAY || _LIBC;
93429         otherwise, fall back on plain "time".
93430         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93431
93432         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93433
93434         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93435
93436 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93437
93438         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93439
93440 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93441
93442         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93443         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93444         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93445         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93446
93447 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93448
93449         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93450         Remove workaround macros for hosts that have mbrtowc but not
93451         mbstate_t, as we now insist on proper declarations for both
93452         before using mbrtowc.
93453
93454 2001-02-17  Jim Meyering  <meyering@lucent.com>
93455
93456         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93457         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93458         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93459         UnixWare 7.1.1.
93460
93461         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93462         rather than AC_CACHE_VAL.
93463
93464 2001-02-17  Jim Meyering  <meyering@lucent.com>
93465
93466         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93467         around included file name.
93468
93469         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93470
93471         * lib/strftime.c: Update from GNU libc (the only changes were to
93472         comments).
93473
93474 2001-02-17  Jim Meyering  <meyering@lucent.com>
93475
93476         * lib/regex.c: Update from libc.
93477
93478 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93479
93480         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93481         clash.
93482
93483 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93484
93485         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93486         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93487         Reported by Mark Hounschell via Paul Eggert.
93488
93489 2001-02-07  Jim Meyering  <meyering@lucent.com>
93490
93491         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93492
93493 2001-02-05  Jim Meyering  <meyering@lucent.com>
93494
93495         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93496         it includes the patch required for `large file' support with at least
93497         HP-UX's 10.20 /bin/cc.
93498
93499 2001-02-03  Jim Meyering  <meyering@lucent.com>
93500
93501         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93502         AS_IF, now that it works once again (mysteriously).
93503         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93504
93505 2001-01-30  Jim Meyering  <meyering@lucent.com>
93506
93507         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93508         * m4/chown.m4: Rename conftestchown to conftest.chown.
93509         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93510         s/conftestdir2/conftest.d2/.
93511         * m4/utimes.m4: s/conftestdata/conftest.data/
93512         Inspired by Pavel Roskin's change in autoconf.
93513
93514 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93515
93516         * lib/config.charset: Update for FreeBSD 4.2.
93517
93518 2001-01-27  Jim Meyering  <meyering@lucent.com>
93519
93520         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93521         a use of AS_IF.
93522         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93523
93524 2001-01-26  Jim Meyering  <meyering@lucent.com>
93525
93526         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93527         quotearg.c includes it.
93528
93529 2001-01-26  Jim Meyering  <meyering@lucent.com>
93530
93531         * lib/quotearg.c: Include stddef.h.
93532         * lib/quote.c: Include stddef.h.
93533         Reported by Axel Kittenberger.
93534
93535         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93536         line in double quotes so that it evokes a better diagnostic.
93537         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93538         Reported by Axel Kittenberger.
93539
93540 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93541
93542         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93543         as if it was a `charset'.
93544
93545 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93546
93547         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93548         has const.
93549
93550 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93551
93552         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93553         to avoid a warning.  Add back 'const' to inptr.
93554
93555 2001-01-20  Jim Meyering  <meyering@lucent.com>
93556
93557         Be sure that headers are checked before used in code compiled
93558         for the type checks.
93559         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93560         In place of that, invoke jm_CHECK_ALL_TYPES.
93561         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93562         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93563         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93564         The check for ssize_t was mistakenly run before the test for unistd.h.
93565
93566         The configure-time check for stdbool.h was missing.
93567         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93568         (jm_PREREQ_HASH): New function.
93569
93570 2001-01-17  Jim Meyering  <meyering@lucent.com>
93571
93572         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93573         for autoconf-2.49c.
93574         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93575
93576 2001-01-16  Jim Meyering  <meyering@lucent.com>
93577
93578         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93579         From Bruno Haible.
93580
93581 2001-01-14  Jim Meyering  <meyering@lucent.com>
93582
93583         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93584         foo and bar.  Create conftestdir/ in the script, not in the C code.
93585         Remove directories in the script, not in the C code.
93586         Remove conftestdir{,2} before trying to create the directory.
93587         Make the entire configure script fail if the mkdir fails.
93588
93589 2001-01-14  Jim Meyering  <meyering@lucent.com>
93590
93591         * lib/rename.c: New file.  From Volker Borchert.
93592         Include stdlib.h, string.h or strings.h, and xalloc.h.
93593         Use strip_trailing_slashes rather than open-coding it.
93594
93595 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93596
93597         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93598
93599 2001-01-03  Jim Meyering  <meyering@lucent.com>
93600
93601         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93602         of local `inptr' to avoid warning with some system declarations of
93603         iconv.
93604
93605 2001-01-02  Volker Borchert  <bt@teknon.de>
93606
93607         * m4/rename.m4: New file.
93608         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93609
93610 2001-01-01  Jim Meyering  <meyering@lucent.com>
93611
93612         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93613         even on systems with utmpx.h.  It's necessary for the declaration of
93614         utmp's ut_user member.  Reported by Andreas Jaeger.
93615
93616         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93617         available. They are required for the declarations of getgrgid and
93618         getpwuid resp.
93619         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93620         Reported by Andreas Jaeger.
93621
93622 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93623
93624         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93625         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93626         so `make install' also works in VPATH builds.
93627
93628 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93629
93630         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93631         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93632         can be used in subdirectories.
93633
93634 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93635
93636         * lib/modechange.c: Do not assume that mode_t uses the
93637         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93638         the other-execute bit of FOO even if S_IXOTH != 1.
93639
93640         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93641         WOTH, XOTH, ALLM): New macros.
93642         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93643          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93644         Use them.
93645         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93646         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93647         (mode_compile):
93648         No need to use uintmax_t; unsigned long is long enough.
93649         Don't bother to get suffix since we don't use it.
93650
93651 2000-12-26  Jim Meyering  <meyering@lucent.com>
93652
93653         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93654         better with autoheader.
93655
93656 2000-12-24  Jim Meyering  <meyering@lucent.com>
93657
93658         * lib/hash.c (is_prime): Return explicit boolean values.
93659         (hash_get_first): Return NULL to appease Irix5.6's 89.
93660         Reported by Nelson Beebe.
93661
93662 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93663
93664         * lib/localcharset.c (locale_charset): Add support for Win32.
93665
93666 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93667
93668         * lib/physmem.h, lib/physmem.c: New files.
93669
93670         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93671         (noinst_HEADERS): Add physmem.h.
93672
93673         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93674         't' for compatibility with Solaris 8 sort.
93675
93676 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93677
93678         * lib/config.charset: Add support for BeOS.
93679
93680 2000-12-17  Jim Meyering  <meyering@lucent.com>
93681
93682         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93683         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93684
93685 2000-12-16  Jim Meyering  <meyering@lucent.com>
93686
93687         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93688         N and M) would have treated it like `chown N:N FILE'.
93689
93690         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93691
93692 2000-12-16  Jim Meyering  <meyering@lucent.com>
93693
93694         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93695         SHELLS_FILE to a file name that's useful on djgpp systems.
93696         Include stdlib.h.
93697         (ADDITIONAL_DEFAULT_SHELLS): Define.
93698         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93699         Based mostly on a patch from Prashant TR.
93700
93701 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93702
93703         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93704         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93705         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93706
93707 2000-12-08  Andreas Schwab  <schwab@suse.de>
93708
93709         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93710         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93711
93712 2000-12-07  Jim Meyering  <meyering@lucent.com>
93713
93714         * lib/stripslash.c (ISSLASH): Define.
93715         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93716         `/'.
93717         From Prashant TR.
93718
93719         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93720         (dir_name_r): Declare this function as static.
93721         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93722         manifest itself on a name containing a mix of slashes and
93723         backslashes.
93724         Make this function work with names starting with a DOS-style
93725         drive letter and colon prefix.
93726         (dir_name): Append `.' if necessary.
93727         Based mostly on patches from Prashant TR and Eli Zaretskii.
93728
93729         * lib/dirname.h (dir_name_r): Remove prototype.
93730
93731 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93732
93733         * m4/off_t-format.m4: Remove this file.
93734         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93735
93736 2000-12-06  Jim Meyering  <meyering@lucent.com>
93737
93738         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93739         replacement strtoull, we may well need the replacement strtoul, too.
93740         Check for declarations of strtoul and strtoull.
93741         Check for strtol.  Mainly as a cue to cause automake to include
93742         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93743         Check for limits.h -- strtol.c needs it.
93744
93745 2000-12-05  Jim Meyering  <meyering@lucent.com>
93746
93747         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93748
93749 2000-12-04  Jim Meyering  <meyering@lucent.com>
93750
93751         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93752         Also include memory.h, stdlib.h, unistd.h if appropriate.
93753         Reported by Andreas Jaeger (conflicting declaration of malloc).
93754
93755 2000-12-02  Jim Meyering  <meyering@lucent.com>
93756
93757         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93758         * m4/jm-macros.m4 (jm_MACROS): require it.
93759
93760 2000-12-02  Jim Meyering  <meyering@lucent.com>
93761
93762         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93763
93764 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93765
93766         * lib/memrchr.c: Include <config.h> before any system include file.
93767
93768 2000-11-30  Jim Meyering  <meyering@lucent.com>
93769
93770         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93771
93772 2000-11-30  Jim Meyering  <meyering@lucent.com>
93773
93774         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93775
93776 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93777
93778         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93779
93780 2000-11-26  Jim Meyering  <meyering@lucent.com>
93781
93782         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93783
93784 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93785
93786         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93787         size of (size_t) -1; it's not portable.
93788
93789 2000-11-17  Jim Meyering  <meyering@lucent.com>
93790
93791         * lib/strstr.c: Update from GNU libc.
93792
93793 2000-11-17  Akim Demaille  <akim@epita.fr>
93794
93795         * lib/obstack.h: Formatting changes.
93796         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93797         prevent type checking.
93798         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93799         cast the value to (void *): assigning a `foo *' to a `void *'
93800         variable is valid.
93801         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93802
93803 2000-11-16  Jim Meyering  <meyering@lucent.com>
93804
93805         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93806
93807 2000-11-11  Jim Meyering  <meyering@lucent.com>
93808
93809         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93810
93811 2000-11-10  Jim Meyering  <meyering@lucent.com>
93812
93813         * lib/obstack.h: Update from GNU libc.
93814         * lib/obstack.c: Likewise.
93815
93816 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93817
93818         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93819
93820 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93821
93822         * lib/getusershell.c (setusershell): Use rewind rather than
93823         fseek/fseeko, to avoid configuration hassles with fseeko.
93824         Don't bother opening SHELLS_FILE if shellstream is NULL;
93825         it's not necessary.
93826
93827 2000-11-05  Jim Meyering  <meyering@lucent.com>
93828
93829         * lib/makepath.h (make_dir): Declare.
93830         * lib/makepath.c (make_dir): Remove `static' attribute.
93831         Tweak a comment.
93832
93833 2000-11-04  Jim Meyering  <meyering@lucent.com>
93834
93835         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93836
93837 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93838
93839         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93840         last one in a bucket, advance to the next bucket.
93841
93842 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93843
93844         * lib/fnmatch.c: Do not comment out all the code if we are using
93845         the GNU C library, because in some cases we are replacing buggy
93846         code in the GNU C library itself.
93847
93848 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93849
93850         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93851         (regex_compile): Catch bogus \(\1\).
93852
93853 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93854
93855         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93856         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93857         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93858
93859 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93860
93861         * lib/error.h, getline.h, modechange.h:
93862         Remove "2000" from Copyright line, as the file hasn't been
93863         changed this year other than in the copyright notice.
93864
93865         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93866         was changed this year.
93867
93868 2000-10-29  Jim Meyering  <meyering@lucent.com>
93869
93870         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93871         renaming.
93872         * m4/ls-mntd-fs.m4: Likewise
93873
93874 2000-10-29  Jim Meyering  <meyering@lucent.com>
93875
93876         * lib/xstat.in: Fix grammar in comment.
93877
93878 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93879
93880         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93881         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93882         doesn't define __restrict_arr.
93883
93884 2000-10-28  Jim Meyering  <meyering@lucent.com>
93885
93886         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93887         (jm_PREREQ_MEMCHR): New function.
93888
93889 2000-10-28  Jim Meyering  <meyering@lucent.com>
93890
93891         * lib/memchr.c: Update from libc.
93892         Adjust for portability:
93893         [HAVE_STDLIB_H]: Include stdlib.h.
93894         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93895         Undef __memchr, too.
93896         [!weak_alias]: Define __memchr to memchr.
93897
93898         * lib/regex.c: Update from libc.
93899         * lib/regex.h: Likewise.
93900         * lib/getopt1.c: Likewise.
93901         * lib/memcmp.c: Likewise.
93902
93903         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93904         Avoid using fseek, when possible -- it's broken by design.
93905         Patch by Ulrich Drepper.
93906
93907 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93908
93909         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93910         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93911         Giving in to popular pressure to shut up the compiler with casts.
93912
93913 2000-10-26  Jim Meyering  <meyering@lucent.com>
93914
93915         * lib/strftime.c: Update from libc.
93916
93917 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93918
93919         * regex.c: More `unsigned char' -> `re_char' changes.
93920         Also change several `int' into `re_wchar_t'.
93921         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93922         (PUSH_FAILURE_POINTER): Don't cast any more.
93923         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93924         We want GCC to complain, since this piece of code makes
93925         re_match non-reentrant, which *should* be fixed.
93926         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93927         (EXTEND_BUFFER): Use RETALLOC.
93928         (SET_LIST_BIT): Don't cast.
93929         (re_wchar_t): New type.
93930         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93931         that those two functions will always properly return.
93932         (IMMEDIATE_QUIT_CHECK): Cast to void.
93933         (analyse_first): Use recursion rather than an explicit stack.
93934         (re_compile_fastmap): Can't fail anymore.
93935         (re_search_2): Don't check re_compile_fastmap for failure.
93936         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93937         Now also sets the new value (passed in a new argument).
93938         (re_match_2_internal): Use it.
93939         Also, use a new var `reg' of type size_t when looping through regs
93940         rather than reuse the inappropriate `mcnt'.
93941
93942 2000-10-25  Jim Meyering  <meyering@lucent.com>
93943
93944         * lib/obstack.c: Update from libc.
93945
93946 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93947
93948         * regex.c (regex_compile): Change the way of handling a range from
93949         a char less than 256 to a char not less than 256.
93950
93951 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93952
93953         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93954         NT-Emacs only.
93955         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93956         so that re_search functions only quit when callers expect them to.
93957
93958 2000-10-23  Jim Meyering  <meyering@lucent.com>
93959
93960         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93961         wrong.  That set_locale call must not have any side effects.
93962         From Paul Eggert.
93963
93964 2000-10-22  Jim Meyering  <meyering@lucent.com>
93965
93966         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93967         [CYCLIC]: Remove now-unused definition.
93968
93969         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93970         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93971         Suggestion from Ulrich Drepper.
93972
93973 2000-10-21  Jim Meyering  <meyering@lucent.com>
93974
93975         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93976         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93977         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93978
93979 2000-10-21  Jim Meyering  <meyering@lucent.com>
93980
93981         * lib/dirname.c (memrchr): Declare if necessary.
93982         (dir_name): Remove the restriction that there be no
93983         trailing slashes.  Now, this code skips past them, effectively
93984         ignoring them.
93985         [TEST_DIRNAME] (main): New unit tests.
93986
93987         * lib/memrchr.c: New file from GNU libc.
93988         Undef __memrchr, too.
93989         [!weak_alias]: Define __memrchr to memrchr.
93990         Guard weak_alias use with `#ifdef weak_alias'.
93991
93992 2000-10-21  Jim Meyering  <meyering@lucent.com>
93993
93994         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93995         (dir_name): Use dir_name_r.
93996         * lib/dirname.h (dir_name_r): Declare it.
93997
93998 2000-10-17  Jim Meyering  <meyering@lucent.com>
93999
94000         * lib/quote.h (PARAMS): Define and use.
94001         Reported by Akim Demaille.
94002
94003         * lib/getopt.c: Update from libc.
94004
94005 2000-10-16  Jim Meyering  <meyering@lucent.com>
94006
94007         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94008         setlocale.
94009         From Jan Fedak.
94010
94011 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94012
94013         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94014
94015 2000-09-25  Jim Meyering  <meyering@lucent.com>
94016
94017         * lib/md5.h (rol): Define (from GnuPG).
94018
94019         * lib/sha.c: Give credit (GnuPG) where due.
94020         (M): Use rol rather than open-coding it.
94021         Add a FIXME comment.
94022
94023 2000-09-21  Jim Meyering  <meyering@lucent.com>
94024
94025         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94026         Reported by Michael Stone.
94027
94028 2000-09-20  Jim Meyering  <meyering@lucent.com>
94029
94030         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94031         (noinst_HEADERS): Add sha.h.
94032         Based on code from Scott G. Miller and from GnuPG.
94033
94034 2000-09-18  Jim Meyering  <meyering@lucent.com>
94035
94036         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94037         LIBS. Otherwise, everyone ends up linking with -lelf for some
94038         configurations.
94039         Reported by Mike Stone.
94040
94041 2000-09-15  Jim Meyering  <meyering@lucent.com>
94042
94043         * lib/regex.c: Update from libc.
94044
94045 2000-09-10  Jim Meyering  <meyering@lucent.com>
94046
94047         * lib/getopt.c (_getopt_internal): Update from glibc.
94048
94049 2000-09-09  Jim Meyering  <meyering@lucent.com>
94050
94051         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94052         think it should be used as a general replacement for isascii.
94053         * lib/fnmatch.c: Likewise.
94054         * lib/mbswidth.c: Likewise
94055         * lib/regex.c: Likewise.
94056
94057         Don't use atoi.
94058         * lib/userspec.c: Include sys/param.h and limits.h.
94059         Include xstrtol.h.
94060         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94061         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94062         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94063         UID, GID.  Check range.
94064
94065 2000-09-06  Jim Meyering  <meyering@lucent.com>
94066
94067         * lib/getopt.c (_getopt_internal): Update from glibc.
94068
94069 2000-08-30  Jim Meyering  <meyering@lucent.com>
94070
94071         * lib/strftime.c: Merge in changes from GNU libc.
94072
94073 2000-08-26  Jim Meyering  <meyering@lucent.com>
94074
94075         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94076         * m4/fpending.m4: New file.
94077
94078 2000-08-26  Jim Meyering  <meyering@lucent.com>
94079
94080         * lib/closeout.c: Include "__fpending.h".
94081         (close_stdout_status): Return right away if there's nothing to flush.
94082
94083         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94084         * lib/__fpending.c: New file.
94085         * lib/__fpending.h: New file.
94086
94087 2000-08-20  Jim Meyering  <meyering@lucent.com>
94088
94089         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94090         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94091         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94092
94093 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94094
94095         Improve fileutils installation on systems where running
94096         programs (like install) can't be unlinked.
94097         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94098         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94099
94100 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94101
94102         Standardize on "memory exhausted" instead of "Memory exhausted"
94103         or "virtual memory exhausted".
94104         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94105         "virtual memory exhausted".
94106         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94107         our own message.
94108         * lib/userspec.c (parse_user_spec): Likewise.
94109         * lib/bumpalloc.h: comment fix
94110         * lib/same.c, userspec.c: Include xalloc.h.
94111
94112         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94113         not char *const and pointing to a constant array.
94114         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94115         (xrealloc): Comment fix.
94116
94117         * lib/userspec.c (parse_user_spec):
94118         Don't translate a message until just before returning,
94119         to avoid unnecessary translation.
94120
94121 2000-08-07  Jim Meyering  <meyering@lucent.com>
94122
94123         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94124         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94125         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94126         getgroups.c, gethostname.c, getopt.h, group-member.c,
94127         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94128         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94129         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94130         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94131         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94132         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94133         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94134         yesno.c: Back out Copyright date changes for each file with no change
94135         this year.  This eases coordination with other programs using the same
94136         source code modules.  From Paul Eggert.
94137
94138 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94139
94140         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94141         not char, for compatibility with glibc 2.1.3 strftime.c.
94142
94143 2000-08-03  Greg McGary  <greg@mcgary.org>
94144
94145         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94146         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94147         (EXTEND_BUFFER): Use them.
94148
94149 2000-08-01  Jim Meyering  <meyering@lucent.com>
94150
94151         * lib/dirname.c (ISSLASH): Define.
94152         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94153         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94154         both `\' and `/' may be use as path separators.
94155         Based on a patch from Prashant TR.
94156
94157 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94158
94159         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94160         slot vector a constant, since it might get modified.
94161
94162 2000-07-31  Jim Meyering  <meyering@lucent.com>
94163
94164         * lib/xmalloc.c: Use `virtual memory exhausted', not
94165         `Memory exhausted'.
94166         * lib/obstack.c (print_and_abort): Likewise.
94167
94168 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94169
94170         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94171         buffer, so that the caller can always quote one small
94172         component of a "memory exhausted" message in slot 0.
94173         From a suggestion by Jim Meyering.
94174
94175 2000-07-30  Jim Meyering  <meyering@lucent.com>
94176
94177         * lib/makepath.c (make_path): Quote the other instance, too.
94178
94179         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94180         (STATIC_BUF_SIZE): Define.
94181         (quotearg_n_options): Use only statically allocated storage when
94182         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94183         than STATIC_BUF_SIZE.
94184
94185 2000-07-29  Jim Meyering  <meyering@lucent.com>
94186
94187         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94188         * lib/dirname.c (dir_name): Likewise.
94189
94190         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94191         `/'.
94192
94193         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94194         (dir_name): Assert that there are no trailing slashes.
94195
94196 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94197
94198         * lib/mbswidth.h (mbswidth): Add a flags argument.
94199         (mbswidth): New declaration.
94200         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94201         * lib/mbswidth.c (mbswidth): Add a flags argument.
94202         (mbsnwidth): New function.
94203
94204 2000-07-24  Jim Meyering  <meyering@lucent.com>
94205
94206         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94207
94208 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94209
94210         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94211
94212 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94213
94214         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94215         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94216         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94217         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94218         invoke multibyte primitives.
94219
94220 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94221
94222         * lib/quotearg.c:
94223         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94224         so that mbstate_t is always defined.
94225
94226         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94227         be 1 in at least one GCC installation, and this configuration
94228         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94229         performance on hosts that have mbrtowc but have only unibyte
94230         locales, but I assume these hosts are rare.
94231
94232 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94233
94234         * lib/mbswidth.c (_XOPEN_SOURCE):
94235         Don't define; this causes problems on Solaris 7.
94236         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94237
94238 2000-07-23  Jim Meyering  <meyering@lucent.com>
94239
94240         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94241         too: getgrgid, getpwuid, getuid.
94242
94243 2000-07-23  Jim Meyering  <meyering@lucent.com>
94244
94245         * lib/basename.c (base_name): Add an assertion.
94246
94247 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94248
94249         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94250         shadow its mbsinit function.
94251
94252 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94253
94254         * lib/mbswidth.h: New file.
94255         * lib/mbswidth.c: New file.
94256         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94257         (noinst_HEADERS): Add mbswidth.h.
94258
94259 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94260
94261         * lib/config.charset: Add support for FreeBSD. Improve support for
94262         HP-UX and IRIX 6.
94263
94264 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94265
94266         * m4/mbswidth.m4: New file.
94267         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94268
94269 2000-07-15  Jim Meyering  <meyering@lucent.com>
94270
94271         * lib/makepath.c: Include quote.h.
94272         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94273         corresponding argument in a `quote (...)' call.
94274         Give better diagnostics.
94275
94276         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94277         (noinst_HEADERS): Add quote.h.
94278
94279         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94280         from tar's src/misc.c.
94281         * lib/quote.h: New file.  Prototypes for same.
94282
94283 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94284
94285         From a suggestion by Bruno Haible.
94286         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94287         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94288         to decide whether to define the BeOS workaround macro;
94289         this adjusts to the change to AC_MBSTATE_T.
94290
94291 2000-07-14  Jim Meyering  <meyering@lucent.com>
94292
94293         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94294         jm_AC_TYPE_UINTMAX_T.
94295
94296 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94297
94298         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94299
94300         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94301         quotearg_buffer_restyled): Add support for
94302         clocale_quoting_style.  Undo previous change to
94303         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94304         and "{RIGHT QUOTATION MARK}" msgids.
94305
94306 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94307
94308         From a suggestion by Bruno Haible.
94309         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94310         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94311         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94312         and mbstate_t, to a single-part test that simply defines mbstate_t.
94313         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94314         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94315
94316 2000-07-10  Jim Meyering  <meyering@lucent.com>
94317
94318         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94319
94320         * m4/gnu-source.m4: Output to confdefs.h directly.
94321         Suggestion from Akim Demaille.
94322
94323 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94324
94325         The old behavior of quoting `like this' doesn't look good with
94326         newer, ISO-style fonts.  See:
94327         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94328
94329         Instead, quote "like this" by default.  Let the translator
94330         tailor the locale-specific quoting behavior by providing
94331         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94332
94333         * lib/quotearg.c (N_): New macro.
94334         (gettext_default): New function.
94335         (quotearg_buffer_restyled): Use
94336         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94337         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94338
94339 2000-07-09  Jim Meyering  <meyering@lucent.com>
94340
94341         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94342         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94343
94344         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94345         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94346
94347 2000-07-09  Jim Meyering  <meyering@lucent.com>
94348
94349         * lib/Most files: Update copyright dates to include 2000.
94350
94351 2000-07-08  Jim Meyering  <meyering@lucent.com>
94352
94353         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94354         if not defined.
94355         (xgethostname): Remove now-unnecessary #ifdef.
94356         Move declaration of `err' into loop where it's used.
94357
94358 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94359         and Bruno Haible  <haible@clisp.cons.org>
94360
94361         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94362         only if the test for an object-type mbstate_t fails.  This
94363         prevents us from mistakenly reporting that mbstate_t is a
94364         system object type after we "#define mbstate_t int" to work
94365         around its lack.
94366
94367 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94368         and Bruno Haible  <haible@clisp.cons.org>
94369
94370         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94371
94372 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94373
94374         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94375         to strerror_r.
94376         Include <ctype.h> for use of isalpha.
94377
94378 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94379
94380         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94381         by allocating a larger buffer. Test the gethostname return value for
94382         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94383         returns an error and ENAMETOOLONG isn't defined.
94384
94385 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94386
94387         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94388         dimension.
94389
94390 2000-07-04  Jim Meyering  <meyering@lucent.com>
94391
94392         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94393         of the deprecated AC_CHECKING.
94394
94395 2000-07-04  Jim Meyering  <meyering@lucent.com>
94396
94397         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94398         Reported by Bruno Haible.
94399
94400 2000-07-04  Jim Meyering  <meyering@lucent.com>
94401
94402         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94403         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94404         lacks mbrtowc.
94405
94406 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94407
94408         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94409         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94410
94411 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94412         and Bruno Haible  <haible@clisp.cons.org>
94413
94414         * lib/quotearg.c (mbrtowc):
94415         Assign to *pwc, and return 1 only if result is nonzero.
94416         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94417
94418 2000-07-03  Jim Meyering  <meyering@lucent.com>
94419
94420         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94421
94422 2000-07-03  Jim Meyering  <meyering@lucent.com>
94423
94424         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94425         This is necessary to get a definition of e.g., UTMP_FILE on
94426         HP-UX 10.20.
94427         From Bob Proulx.
94428
94429 2000-07-02  Jim Meyering  <meyering@lucent.com>
94430
94431         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94432
94433         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94434         AC_LIBOBJ(function_name).
94435         * m4/chown.m4: Likewise.
94436         * m4/fnmatch.m4: Likewise.
94437         * m4/ftruncate.m4: Likewise.
94438         * m4/getgroups.m4: Likewise.
94439         * m4/getline.m4: Likewise.
94440         * m4/group-member.m4: Likewise.
94441         * m4/jm-macros.m4: Likewise.
94442         * m4/lstat.m4: Likewise.
94443         * m4/malloc.m4: Likewise.
94444         * m4/memcmp.m4: Likewise.
94445         * m4/nanosleep.m4: Likewise.
94446         * m4/putenv.m4: Likewise.
94447         * m4/realloc.m4: Likewise.
94448         * m4/regex.m4: Likewise.
94449         * m4/stat.m4: Likewise.
94450         * m4/strftime.m4: Likewise.
94451
94452 2000-07-02  Jim Meyering  <meyering@lucent.com>
94453
94454         * lib/quotearg.c (mbstate_t): Don't define here.
94455
94456 2000-07-02  Jim Meyering  <meyering@lucent.com>
94457
94458         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94459
94460 2000-07-01  Jim Meyering  <meyering@lucent.com>
94461
94462         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94463
94464 2000-07-01  Jim Meyering  <meyering@lucent.com>
94465
94466         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94467         problem.
94468
94469 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94470
94471         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94472         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94473
94474 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94475
94476         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94477         per change in ../m4/ls-mntd-fs.m4.
94478         (read_filesystem_list): Ignore symbolic links.
94479
94480 2000-06-29  Jim Meyering  <meyering@lucent.com>
94481
94482         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94483         for declaration of strcmp.
94484
94485         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94486
94487         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94488         Avoid warning by casting result to `char *' to remove `const'.
94489
94490 2000-06-28  Jim Meyering  <meyering@lucent.com>
94491
94492         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94493         included by quotearg.c, for which we perform this test.  From
94494         Bruno Haible.
94495
94496 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94497
94498         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94499         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94500         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94501
94502 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94503
94504         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94505
94506 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94507
94508         savedir now sets errno on failure and invokes xmalloc to get memory.
94509         Fix a couple of other minor bugs while we're at it.
94510
94511         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94512         (NAMLEN): Remove macro.
94513         (malloc, realloc): Remove decls.
94514         (stpcpy): Likewise.
94515         ("xalloc.h"): Include.
94516         (NAME_SIZE_DEFAULT): New macro.
94517         (savedir): Use xmalloc / xrealloc to allocate memory.
94518         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94519         Skip "" directory entries.
94520         Use strlen to calculate directory entry length, since the old method
94521         is rarely used these days and isn't worth supporting.
94522         Don't use a pointer after freeing it.
94523         Check for integer overflow when calculating allocation size.
94524         Use memcpy to copy entries, instead of stpcpy.
94525         Set errno properly when returning NULL.
94526         Check for readdir error.
94527
94528 2000-06-26  Jim Meyering  <meyering@lucent.com>
94529
94530         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94531
94532 2000-06-25  Jim Meyering  <meyering@lucent.com>
94533
94534         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94535         Linux header bug when _XOPEN_SOURCE is defined to 500.
94536
94537 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94538
94539         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94540         deficiency.
94541
94542 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94543
94544         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94545         Include xalloc.h.
94546         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94547
94548 2000-06-24  Jim Meyering  <meyering@lucent.com>
94549
94550         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94551         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94552         for which strerror does return char*, but which lacks a conveniently
94553         accessible declaration of the function.  If the compile-test says
94554         strerror_r doesn't work, then resort to a `run'-test that works on
94555         BeOS and segfaults on DEC Unix.
94556
94557 2000-06-24  Jim Meyering  <meyering@lucent.com>
94558
94559         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94560
94561 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94562
94563         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94564         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94565
94566 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94567
94568         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94569         (mbrtowc, mbstate_t): Define substitutes if
94570         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94571         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94572         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94573
94574 2000-06-23  Jim Meyering  <meyering@lucent.com>
94575
94576         * m4/afs.m4: Add missing AC_MSG_RESULT.
94577         Reported by Bruno Haible.
94578
94579         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94580         Suggestion from Bruno Haible.
94581
94582 2000-06-23  Jim Meyering  <meyering@lucent.com>
94583
94584         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94585
94586 2000-06-21  Jim Meyering  <meyering@lucent.com>
94587
94588         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94589
94590 2000-06-21  Jim Meyering  <meyering@lucent.com>
94591
94592         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94593         (noinst_HEADERS): Add getstr.h.
94594
94595         * lib/getline.c (getstr): Move into a separate file.
94596         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94597         the following changes: new parameter, delim2; both delim[12]
94598         parameters have type `int', not `char'.  The latter would lose
94599         with 8-bit delimiters.
94600         * lib/getstr.h: New file.
94601
94602 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94603
94604         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94605         than 1024, return a memory chunk of least possible size, instead
94606         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94607         Use free/xmalloc instead of xrealloc to avoid copying for very long
94608         paths.
94609
94610 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94611
94612         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94613         the empty string.
94614
94615 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94616
94617         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94618         address, not strdup.  Include <stdlib.h> and don't declare free().
94619
94620 2000-06-19  Jim Meyering  <meyering@lucent.com>
94621
94622         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94623
94624 2000-06-18  Jim Meyering  <meyering@lucent.com>
94625
94626         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94627
94628         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94629         `checking whether...' message to be consistent with that of the
94630         lstat test.
94631
94632 2000-06-18  Jim Meyering  <meyering@lucent.com>
94633
94634         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94635         Besides, these days every porting target provides a mkdir function.
94636
94637         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94638         needed. (this snippet comes from src/system.h).
94639
94640 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94641
94642         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94643
94644 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94645
94646         * lib/human.c (adjust_value): New function.
94647         (human_readable_inexact): Apply rounding style even when
94648         printing approximate values.
94649
94650 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94651
94652         * lib/human.c (human_readable_inexact): Allow an input block
94653         size that is not a multiple of the output block size, and vice versa.
94654         Reported by Piergiorgio Sartor.
94655
94656 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94657
94658         * lib/getdate.y (get_date): Apply relative times after time
94659         zone indicator, not before.  Reported by Todd A. Jacobs.
94660
94661 2000-06-13  Jim Meyering  <meyering@lucent.com>
94662
94663         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94664
94665         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94666
94667 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94668
94669         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94670
94671 2000-06-12  Jim Meyering  <meyering@lucent.com>
94672
94673         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94674         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94675         optional argument.
94676         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94677         the optional argument, `lib'.
94678
94679 2000-06-08  Jim Meyering  <meyering@lucent.com>
94680
94681         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94682
94683 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94684
94685         Rewrite largefile configuration so that we don't need to run
94686         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94687         AC_CANONICAL_HOST in configure.in -- jmm]
94688
94689         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94690         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94691         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94692         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94693         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94694         All uses changed.
94695         Instead of inspecting the output of getconf, try to compile the
94696         test program without and with the macro definition.
94697         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94698         for getconf.  Instead, check for the needed flags by compiling
94699         test programs.
94700
94701 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94702
94703         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94704
94705 2000-06-04  Jim Meyering  <meyering@lucent.com>
94706
94707         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94708         SunOS 4.1.4 for which gid_t is an unsigned type.
94709
94710 2000-06-03  Jim Meyering  <meyering@lucent.com>
94711
94712         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94713         now that autoconf requires that.
94714
94715         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94716         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94717         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94718
94719 2000-06-03  Jim Meyering  <meyering@lucent.com>
94720
94721         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94722
94723 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94724
94725         * m4/glibc21.m4: New file.
94726         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94727
94728 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94729
94730         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94731         newer, don't install charset.alias.
94732         * lib/config.charset: Change the Linux/glibc rules so they become empty
94733         on glibc-2.1 or newer.
94734
94735 2000-06-02  Jim Meyering  <meyering@lucent.com>
94736
94737         * lib/mountlist.c: Back out last change.  Instead, do this...
94738         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94739         me_dummy member using the same `ignore'-testing code.
94740         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94741         fs_type strings.
94742         From Mark D. Roth.
94743
94744 2000-05-29  Jim Meyering  <meyering@lucent.com>
94745
94746         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94747         mounts with the `ignore' attribute.  Based on a patch from
94748         Mark D. Roth.
94749
94750 2000-05-28  Jim Meyering  <meyering@lucent.com>
94751
94752         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94753         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94754         * m4/stat.m4: Likewise.
94755         * m4/lstat.m4: Likewise.
94756         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94757
94758         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94759         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94760
94761 2000-05-26  Jim Meyering  <meyering@lucent.com>
94762
94763         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94764
94765 2000-05-24  Jim Meyering  <meyering@lucent.com>
94766
94767         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94768         autoconf requires that.
94769         * m4/lib-check.m4: Likewise.
94770         * m4/jm-macros.m4: Likewise.
94771         * m4/strftime.m4: Likewise.
94772
94773         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94774         AC_CHECK_DECLS, now that autoconf requires that.
94775
94776 2000-05-22  Jim Meyering  <meyering@lucent.com>
94777
94778         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94779         * m4/lstat.m4: Likewise.
94780
94781 2000-05-22  Jim Meyering  <meyering@lucent.com>
94782
94783         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94784
94785 2000-05-20  Jim Meyering  <meyering@lucent.com>
94786
94787         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94788         (jm_PREREQ): Use it.
94789
94790 2000-05-18  Jim Meyering  <meyering@lucent.com>
94791
94792         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94793         back, too, since it may have been modified by allocate_entry.
94794         (hash_delete): Rewrite to use neither the assignment operator
94795         nor the comma operator in an if-expression.
94796
94797 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94798
94799         * lib/closeout.c:
94800         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94801         Remove; no longer needed.
94802         "quotearg.h": Add include.
94803         (file_name): Do not bother to explicitly initialize to NULL; it's less
94804         efficient on some hosts.
94805         (close_stdout_status): Remove test as to whether stdout was already
94806         closed; it breaks for the case "echo x | sort >&-".
94807         Quote file name colons.
94808         Do not assume that _("write error") lacks format strings.
94809
94810 2000-05-15  Jim Meyering  <meyering@lucent.com>
94811
94812         * lib/version-etc.c (version_etc_copyright): Update the copyright
94813         string used in all --version output.
94814
94815 2000-05-14  Jim Meyering  <meyering@lucent.com>
94816
94817         * lib/closeout.c (close_stdout_set_file_name): New function.
94818         (close_stdout_status): Use new file-scoped global.
94819         Return right away if fstat says the stdout file descriptor is invalid.
94820         * lib/closeout.h (close_stdout_set_file_name): Declare.
94821
94822 2000-05-10  Jim Meyering  <meyering@lucent.com>
94823
94824         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94825         (close_stdout_set_status): New function.
94826         * lib/closeout.h (close_stdout_set_status): Declare.
94827
94828 2000-05-09  Jim Meyering  <meyering@lucent.com>
94829
94830         * m4/gettext.m4: Rename this...
94831         * m4/libintl.m4: ...to this.
94832
94833 2000-05-08  Jim Meyering  <meyering@lucent.com>
94834
94835         * lib/long-options.c: Don't include closeout.h.
94836         (parse_long_options): Don't call close_stdout for --version.
94837
94838 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94839
94840         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94841         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94842         2.1.3 bug.  This avoids a clash when files like regex.c define
94843         _GNU_SOURCE.
94844
94845 2000-05-06  Jim Meyering  <meyering@lucent.com>
94846
94847         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94848         (AC_REPLACE_FUNCS): Add strnlen.
94849
94850         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94851         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94852
94853         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94854         AC_SEARCH_LIBS call for nanosleep.
94855         (LIB_NANOSLEEP): Set and AC_SUBST.
94856
94857 2000-05-06  Jim Meyering  <meyering@lucent.com>
94858
94859         * lib/strnlen.c: Undefine __strnlen and strnlen.
94860         [!weak_alias]: Define __strnlen to strnlen.
94861
94862         * lib/atexit.c: New file, from libiberty.
94863
94864 2000-05-06  Jim Meyering  <meyering@lucent.com>
94865
94866         * lib/closeout.c (close_stdout_status): Also check for errors on the
94867         stderr stream.
94868
94869 2000-05-05  Jim Meyering  <meyering@lucent.com>
94870
94871         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94872         AC_SEARCH_LIBS call for clock_gettime.
94873         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94874
94875         * m4/search-libs.m4: Update from autoconf.
94876
94877         su doesn't work on Solaris 2.6.
94878         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94879         <shadow.h>.  Reported by Dragos Harabor.
94880
94881 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94882
94883         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94884         memcpy instead of xmalloc, xrealloc, path_concat.
94885         (locale_charset): Treat empty environment variables as absent.
94886         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94887
94888 2000-05-04  Jim Meyering  <meyering@lucent.com>
94889
94890         * lib/getopt.c: Update from glibc.
94891         * lib/obstack.c: Likewise.
94892         * lib/obstack.h: Likewise.
94893         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94894         file
94895
94896         * lib/regex.h: Likewise.
94897         * lib/strndup.c: Likewise.
94898         * lib/strnlen.c: New file, from glibc.
94899
94900 2000-05-03  Jim Meyering  <meyering@lucent.com>
94901
94902         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94903
94904 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94905
94906         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94907         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94908         compile-time test, rather than inspecting host and OS, to
94909         decide whether to define _LARGEFILE_SOURCE.
94910
94911 2000-05-01  Jim Meyering  <meyering@lucent.com>
94912
94913         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94914
94915         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94916         Based on a patch from Bruno Haible.
94917
94918 2000-05-01  Jim Meyering  <meyering@lucent.com>
94919
94920         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94921
94922 2000-04-29  Jim Meyering  <meyering@lucent.com>
94923
94924         * lib/path-concat.c: Declare strdup only if it's not defined.
94925         * lib/canon-host.c: Likewise.
94926
94927 2000-04-28  Jim Meyering  <meyering@lucent.com>
94928
94929         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94930         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94931         is included first, then limits.h is included by locale.h by libintl.h.
94932         From John David Anglin.
94933
94934 2000-04-25  Jim Meyering  <meyering@lucent.com>
94935
94936         * lib/makepath.c (S_IRWXUGO): Define.
94937         (make_path): Always perform explicit chmod if MODE specifies any
94938         of the `special' permission bits.  Prompted by a bug report against
94939         install from Mate Wierdl and Joost van Baal.
94940
94941 2000-04-18  Jim Meyering  <meyering@lucent.com>
94942
94943         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94944         (jm_PREREQ): Use it.
94945
94946 2000-04-18  Jim Meyering  <meyering@lucent.com>
94947
94948         * lib/README: New file.
94949
94950         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94951         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94952
94953 2000-04-17  Jim Meyering  <meyering@lucent.com>
94954
94955         Get it right :-)
94956         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94957         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94958         Suggestion from Akim Demaille.
94959
94960 2000-04-17  Jim Meyering  <meyering@lucent.com>
94961
94962         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94963         the definition of it to rpl_strftime also defined-away the system's
94964         declaration.
94965
94966 2000-04-15  Jim Meyering  <meyering@lucent.com>
94967
94968         Use `C' to denote so-called `contiguous' files, the same way
94969         that tar does.
94970         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94971         (ftypelet): Use S_ISCTG.
94972         From Michael Deutschmann.
94973
94974 2000-04-14  Jim Meyering  <meyering@lucent.com>
94975
94976         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94977         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94978         clobbered.
94979
94980 2000-04-14  Jim Meyering  <meyering@lucent.com>
94981
94982         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94983
94984 2000-04-13  Jim Meyering  <meyering@lucent.com>
94985
94986         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94987         AH_VERBATIM to insert required #ifndef into config.h.in.
94988         Suggestion from Akim Demaille.
94989
94990 2000-04-12  Jim Meyering  <meyering@lucent.com>
94991
94992         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94993         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94994         Christian Krackowizer.
94995
94996         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94997         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94998         (AC_SYS_LARGEFILE): Require.
94999         (AM_C_PROTOTYPES): Require.
95000
95001 2000-04-08  Jim Meyering  <meyering@lucent.com>
95002
95003         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95004         names don't conflict.  Reported by Eli Zaretskii.
95005
95006 2000-04-07  Jim Meyering  <meyering@lucent.com>
95007
95008         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95009         sys/types.h, to work around system header problems on AIX 3.2.5.
95010         From Bruno Haible.
95011
95012 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95013
95014         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95015         bug.  Deal with the different error behavior of Irix iconv.
95016
95017 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95018
95019         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95020         IRIX if the installer said otherwise.
95021
95022 2000-04-05  Jim Meyering  <meyering@lucent.com>
95023
95024         Portability tweaks required for ultrix4.3.
95025         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95026         (jm_CHECK_DECLS): Add getutent to the list of functions.
95027         (_jm_DECL_HEADERS): Add utmpx.h.
95028         From John David Anglin.
95029
95030         * m4/strftime.m4: Back out the 2000-04-02 change.
95031         Instead of that change, simply undefine putenv in the test program.
95032
95033 2000-04-05  Jim Meyering  <meyering@lucent.com>
95034
95035         Portability tweaks required for ultrix4.3.
95036         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95037         getutent.
95038         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95039         * lib/canon-host.c: Declare strdup.
95040         * lib/path-concat.c: Likewise.
95041         From John David Anglin.
95042
95043 2000-04-04  Jim Meyering  <meyering@lucent.com>
95044
95045         Be more DOS 8.3-friendly.
95046         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95047         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95048         * lib/Makefile.am: Reflect renaming.
95049         Reported by Eli Zaretskii.
95050
95051         Use a temporary file name that won't clash with `charset.alias'
95052         in the DOS 8.3 name space.
95053         * lib/Makefile.am (charset_tmp): Define.
95054         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95055         (uninstall-local): Likewise.
95056         Reported by Eli Zaretskii.
95057
95058 2000-04-03  Jim Meyering  <meyering@lucent.com>
95059
95060         * m4/gettext.m4: Fix typo in comment.
95061
95062         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95063         textutils/configure.in).  Suggestion from Paul Eggert.
95064         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95065
95066 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95067
95068         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95069         variable in the shell rather than using putenv, which isn't
95070         portable.  This avoids the configure-time inter-test dependency
95071         on the potentially-renamed putenv function.
95072
95073 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95074
95075         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95076         before checking struct stat.st_blksize, so that
95077         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95078
95079 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95080
95081         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95082         since strftime.c uses HAVE_STRFTIME to decide whether to use
95083         the underlying strftime.
95084
95085 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95086
95087         * lib/time/strftime.c (my_strftime): Make sure we call the system
95088         strftime, not ourselves, when invoking the underlying strftime.
95089
95090 2000-03-24  Jim Meyering  <meyering@lucent.com>
95091
95092         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95093         (charset_alias): Define.
95094         (install-exec-local): Factor out common code.
95095         (uninstall-local): Split lines longer than 80.
95096         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95097         (SUFFIXES): Define.
95098         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95099         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95100
95101 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95102
95103         * lib/config.charset: Output a line containing "Packages using this
95104         file".
95105         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95106         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95107         ref-del.sed): New rules.
95108
95109 2000-03-17  Jim Meyering  <meyering@lucent.com>
95110
95111         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95112         Otherwise, include <strings.h>
95113
95114 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95115
95116         * lib/unicodeio.c (utf8_wctomb): New function.
95117         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95118         format instead of in UCS-4 with platform dependent endianness.
95119
95120 2000-03-10  Jim Meyering  <meyering@lucent.com>
95121
95122         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95123         From Marco Franzen.
95124
95125 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95126
95127         * lib/savedir.c (savedir): Work even if directory size is
95128         negative; this can happen with some screwy NFS configurations.
95129
95130 2000-03-06  Jim Meyering  <meyering@lucent.com>
95131
95132         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95133         if it's NULL (because we ran out of memory).  From Bruno Haible.
95134
95135 2000-03-05  Jim Meyering  <meyering@lucent.com>
95136
95137         * lib/localcharset.c ("path-concat.h"): Include.
95138         (get_charset_aliases): Use path_concat instead of ANSI string
95139         concatenation.
95140
95141         * lib/unicodeio.h (PARAMS): Define.
95142         Use it to guard prototype.
95143
95144 2000-03-04  Jim Meyering  <meyering@lucent.com>
95145
95146         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95147         for lib/localcharset.c.
95148
95149 2000-03-04  Jim Meyering  <meyering@lucent.com>
95150
95151         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95152         installing into it.
95153         (uninstall-local): Uncomment this rule so `make distcheck' works
95154         once again.
95155
95156         * lib/unicodeio.c (<errno.h>): Include it.
95157         (errno): Declare if not defined.
95158
95159         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95160
95161         * lib/config.charset: New version, incorporating remarks from a linux
95162         i18n mailing list.  From Bruno Haible.
95163
95164 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95165
95166         * m4/codeset.m4: New file.
95167         * m4/iconv.m4: New file.
95168         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95169
95170 2000-03-03  Jim Meyering  <meyering@lucent.com>
95171
95172         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95173
95174 2000-03-02  Jim Meyering  <meyering@lucent.com>
95175
95176         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95177         the messages come out on separate lines.
95178
95179         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95180         rather than jm_CHECK_DECLARATIONS.
95181         * m4/decl.m4: Remove now-unused file.
95182
95183         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95184         geteuid.
95185
95186 2000-03-02  Jim Meyering  <meyering@lucent.com>
95187
95188         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95189
95190 2000-03-01  Jim Meyering  <meyering@lucent.com>
95191
95192         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95193         * lib/unicodeio.c: Likewise.
95194
95195 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95196
95197         * lib/config.charset: New file.
95198         * lib/localcharset.c: New file.
95199         * lib/unicodeio.h, lib/unicodeio.c: New files.
95200         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95201         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95202         (noinst_HEADERS): Add unicodeio.h.
95203         (all-local, install-exec-local, charset.alias): New targets.
95204
95205 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95206
95207         * lib/quotearg.c (ALERT_CHAR): New macro.
95208         (quotearg_buffer_restyled): Use it.
95209
95210 2000-02-27  Jim Meyering  <meyering@lucent.com>
95211
95212         * m4/check-decl.m4: Add getenv to the list.
95213
95214 2000-02-27  Jim Meyering  <meyering@lucent.com>
95215
95216         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95217         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95218
95219         * lib/backupfile.c: Guard inclusion of stdlib.h with
95220         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95221         Declare malloc if needed.
95222
95223         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95224         `#ifndef HAVE_DECL..'
95225         now that autoconf always defines the HAVE_DECL_ symbols.
95226         * lib/human.c: Likewise.
95227         * lib/same.c: Likewise.
95228         * lib/strtoumax.c: Likewise.
95229
95230         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95231         declaration check was not run.
95232         * lib/hash.c: Likewise.
95233         * lib/human.c: Likewise.
95234         * lib/same.c: Likewise.
95235         * lib/strtoumax.c: Likewise.
95236
95237         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95238         `.', then first look up the entire `.'-containing string as a login
95239         name.
95240
95241 2000-02-23  Jim Meyering  <meyering@lucent.com>
95242
95243         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95244         in place of my hack.
95245
95246 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95247
95248         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95249         (textint): New typedef.
95250         (parser_control): Member year changed from int to textint.
95251         All uses changed.
95252         (YYSTYPE): Removed; replaced by %union with int and textint members.
95253         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95254         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95255         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95256         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95257         (date, number, to_year): Use width of number in digits, not its value,
95258         to determine whether it's a 2-digit year, or a 2-digit time.
95259         (yylex): Store number of digits of numeric tokens.
95260         Reported by John Kendall.
95261
95262         (parser_control): Changed from struct parser_control to typedef (for
95263         consistency).  All uses changed.
95264
95265         (tID): Removed; not used.
95266         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95267
95268 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95269
95270         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95271         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95272
95273 2000-02-12  Jim Meyering  <meyering@lucent.com>
95274
95275         * lib/userspec.c (ISDIGIT): Define it.
95276         (isdigit): Remove definition.
95277         (is_number): Use ISDIGIT, not isdigit.
95278         <libintl.h>: Include.
95279         (_ and N_): Define.
95280         (parse_user_spec): Mark translatable strings.
95281
95282 2000-02-10  Jim Meyering  <meyering@lucent.com>
95283
95284         With these changes, nanosleep.[ch] are finally enough like the other
95285         lib/* replacement files to compile on a few more losing systems.
95286
95287         * lib/nanosleep.h: Don't include config.h.
95288         Remove prototype from declaration of nanosleep.
95289         (PARAMS): Remove now-unneeded definition.
95290         * lib/nanosleep.c: #undef nanosleep.
95291         (rpl_nanosleep): Rename from nanosleep.
95292
95293 2000-02-10  Jim Meyering  <meyering@lucent.com>
95294
95295         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95296         gnu_nanosleep to rpl_nanosleep.
95297
95298 2000-02-09  Jim Meyering  <meyering@lucent.com>
95299
95300         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95301         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95302
95303 2000-02-08  Akim Demaille  <akim@epita.fr>
95304
95305         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95306         `[' and `]' and remove uses of `changequote'.
95307         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95308         (AC_SYS_LARGEFILE): Likewise.
95309         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95310         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95311         of changequote.
95312         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95313         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95314         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95315         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95316
95317 2000-02-05  Jim Meyering  <meyering@lucent.com>
95318
95319         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95320         Remove explicit use of AC_HEADER_TIME.  It is required by
95321         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95322         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95323         in autoconf whereby the expansion of the latter ended up preceding
95324         the expansion of its prerequisite, AC_HEADER_TIME.
95325         Reported by Volker Borchert.
95326
95327 2000-02-03  Jim Meyering  <meyering@lucent.com>
95328
95329         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95330
95331 2000-02-03  Jim Meyering  <meyering@lucent.com>
95332
95333         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95334         rather than with `#if HAVE_UTMPNAME'.
95335
95336 2000-02-02  Jim Meyering  <meyering@lucent.com>
95337
95338         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95339         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95340         Reported by Eli Zaretskii.
95341
95342 2000-02-01  Jim Meyering  <meyering@lucent.com>
95343
95344         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95345
95346 2000-01-31  Jim Meyering  <meyering@lucent.com>
95347
95348         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95349         functions.  Add the time.h and sys/time.h headers along with the
95350         AC_REQUIRE'ment of AC_HEADER_TIME.
95351
95352 2000-01-31  Jim Meyering  <meyering@lucent.com>
95353
95354         * lib/nanosleep.h (nanosleep): Guard declaration with
95355         `#if ! HAVE_DECL_NANOSLEEP'.
95356         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95357         the declaration in that vendor's sys/timers.h.
95358         Reported by Christian Krackowizer.
95359
95360         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95361         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95362         (ISPRINT): Likewise.
95363         Reported by Tom Tromey.
95364
95365 2000-01-30  Jim Meyering  <meyering@lucent.com>
95366
95367         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95368
95369         * m4/prereq.m4 (utmp_includes): Define.
95370         Check for ut_user and ut_name members in both struct utmpx
95371         and struct utmp.
95372
95373 2000-01-30  Jim Meyering  <meyering@lucent.com>
95374
95375         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95376         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95377         header files where only utmpx.ut_user is declared.
95378
95379         * lib/readutmp.h (UT_USER): Define.
95380
95381 2000-01-29  Jim Meyering  <meyering@lucent.com>
95382
95383         * m4/lib-check.m4: New file containing library-related checks from
95384         fileutils and sh-utils (textutils had none).
95385
95386 2000-01-28  Jim Meyering  <meyering@lucent.com>
95387
95388         * m4/perl.m4: Change format of warning message to look more like that
95389         from the missing script.  Suggestion from François Pinard.
95390
95391 2000-01-25  Jim Meyering  <meyering@lucent.com>
95392
95393         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95394         well as time.h in the compile check.
95395         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95396         Fix typo in cross-compiling case: s/yes/no/.
95397
95398 2000-01-23  Jim Meyering  <meyering@lucent.com>
95399
95400         * m4/jm-macros.m4: Move df-related tests here from
95401         fileutils/configure.in
95402
95403         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95404         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95405
95406         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95407         s/space/ac_fsusage_space/.
95408         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95409
95410         * m4/ftruncate.m4: New file (derived from part of
95411         fileutils/configure.in).
95412         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95413         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95414
95415         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95416         AC_SUBST these here, rather than just in sh-util/configure.in, so
95417         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95418         all the same.
95419         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95420         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95421         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95422         (AC_SUBST(POW_LIBM)): Likewise.
95423         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95424
95425 2000-01-23  Jim Meyering  <meyering@lucent.com>
95426
95427         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95428         obstack.c.
95429
95430 2000-01-22  Jim Meyering  <meyering@lucent.com>
95431
95432         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95433
95434         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95435
95436         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95437         configure.in
95438         (AC_CHECK_HEADERS): Likewise for sh-utils.
95439         (AC_CHECK_HEADERS): Likewise for textutils.
95440         Merge the three lists of headers.
95441
95442         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95443         from fileutils' configure.in.
95444
95445         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95446         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95447         check-decl.m4.
95448
95449         * m4/check-decl.m4: Use #if rather than #ifdef.
95450         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95451         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95452         (_jm_DECL_HEADERS): Define new function.
95453         (jm_CHECK_DECLARATIONS): Require it.
95454
95455 2000-01-22  Jim Meyering  <meyering@lucent.com>
95456
95457         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95458         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95459         Required for some AIX systems.  Reported by Christian Krackowizer.
95460         [TESTING] (main): New function.
95461
95462         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95463         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95464         letters.
95465
95466         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95467         iswprint.
95468
95469         * lib/strverscmp.c (ISDIGIT): Define.
95470         (strverscmp): Use ISDIGIT, not isdigit.
95471
95472 2000-01-19  Jim Meyering  <meyering@lucent.com>
95473
95474         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95475         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95476         defines `struct timespec' in <sys/time.h>
95477
95478         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95479         Thanks to Akim for explaining.
95480
95481 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95482
95483         * lib/nanosleep.c (nanosleep):
95484         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95485         POSIX.1 doesn't require SA_INTERRUPT and some systems
95486         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95487         it's been part of POSIX.1 since day 1 (in 1988).
95488
95489 2000-01-17  Jim Meyering  <meyering@lucent.com>
95490
95491         * lib/interlock: Remove unused file.  Reported by François Pinard.
95492
95493 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95494
95495         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95496         alert, backslash, formfeed, and vertical tab unnecessarily in
95497         shell quoting style.
95498
95499 2000-01-16  Jim Meyering  <meyering@lucent.com>
95500
95501         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95502         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95503         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95504         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95505
95506 2000-01-16  Jim Meyering  <meyering@lucent.com>
95507
95508         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95509         because the latter didn't work.
95510
95511 2000-01-15  Jim Meyering  <meyering@lucent.com>
95512
95513         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95514         (AC_REPLACE_FUNCS): Add memcpy and memset.
95515         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95516         Add strpbrk.
95517         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95518
95519 2000-01-12  Jim Meyering  <meyering@lucent.com>
95520
95521         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95522         (jm_PREREQ): Use it.
95523         (jm_PREREQ_READUTMP): New macro.
95524         (jm_PREREQ): Use it.
95525
95526 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95527
95528         Quote multibyte characters correctly.
95529         * m4/c-bs-a.m4: New file.
95530         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95531         (jm_PREREQ): Use it.
95532
95533 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95534
95535         * m4/uintmax_t.m4: Port to autoconf 2.13.
95536
95537 2000-01-08  Jim Meyering  <meyering@ascend.com>
95538
95539         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95540         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95541
95542 2000-01-04  Jim Meyering  <meyering@ascend.com>
95543
95544         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95545         jm_STRUCT_DIRENT_D_TYPE.
95546         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95547         jm_STRUCT_DIRENT_D_INO.
95548         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95549         jm_STRUCT_UTIMBUF.
95550         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95551         renamings.
95552         * m4/utime.m4: Likewise.
95553
95554         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95555         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95556
95557 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95558
95559         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95560         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95561
95562 2000-01-02  Jim Meyering  <meyering@ascend.com>
95563
95564         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95565         remember if this is necessary.
95566
95567 1999-12-26  Jim Meyering  <meyering@ascend.com>
95568
95569         * m4/jm-macros.m4: Use it here.
95570         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95571
95572 1999-12-23  Jim Meyering  <meyering@ascend.com>
95573
95574         * m4/jm-macros.m4: Check for clock_gettime (moved from
95575         fileutils/configure.in)
95576         Check for gettimeofday.
95577
95578 1999-12-20  Jim Meyering  <meyering@ascend.com>
95579
95580         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95581         autoconf-2.14a-1999-12-20.
95582
95583 1999-12-19  Jim Meyering  <meyering@ascend.com>
95584
95585         * m4/lstat-slash.m4: New file.
95586         * m4/jm-macros.m4: Use the new macro:
95587         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95588
95589 1999-12-07  Jim Meyering  <meyering@ascend.com>
95590
95591         * m4/perl.m4: Require that File::Compare be available, too.
95592         Too many systems seem to lack it.
95593
95594         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95595         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95596
95597 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95598
95599         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95600         problem with the QNX 4.25 shell, which doesn't propagate exit
95601         status of failed commands inside shell assignments.
95602
95603 1999-11-17  Jim Meyering  <meyering@ascend.com>
95604
95605         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95606
95607 1999-11-07  Jim Meyering  <meyering@ascend.com>
95608
95609         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95610
95611 1999-11-06  Jim Meyering  <meyering@ascend.com>
95612
95613         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95614         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95615
95616 1999-11-05  Jim Meyering  <meyering@ascend.com>
95617
95618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95619         configure.in of textutils, fileutils, and sh-utils into this one
95620         (shared between those packages) file.
95621         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95622         AC_STRUCT_ST_BLKSIZE.
95623
95624 1999-11-03  Jim Meyering  <meyering@ascend.com>
95625
95626         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95627         of AC_CHECK_TYPE checks includes unistd.h.
95628         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95629         Suggestion from Akim Demaille.
95630
95631 1999-10-30  Jim Meyering  <meyering@ascend.com>
95632
95633         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95634         m4-quoted string.
95635         * m4/ls-mntd-fs.m4: Likewise.
95636         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95637         * m4/jm-winsz1.m4: Likewise.
95638
95639         * m4/const.m4: Remove file, since the fix made it into the experimental
95640         version of autoconf.
95641         * m4/mktime.m4: Likewise.
95642
95643         * m4/check-type.m4: Remove file, now that the latest version of
95644         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95645
95646         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95647         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95648         AC_CHECK_TYPE.
95649
95650 1999-10-04  Jim Meyering  <meyering@ascend.com>
95651
95652         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95653
95654 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95655
95656         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95657         2.95.1 bug with HP-UX 10.20.
95658
95659 1999-09-17  Jim Meyering  <meyering@ascend.com>
95660
95661         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95662         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95663         due to missing strdup (against sh-utils-2.0).
95664
95665 1999-08-29  Jim Meyering  <meyering@ascend.com>
95666
95667         * m4/jm-macros.m4: Require jm_BISON.
95668         * m4/bison.m4: New file.
95669
95670 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95671
95672         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95673         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95674
95675 1999-08-05  Jim Meyering  <meyering@ascend.com>
95676
95677         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95678         to avoid conflicts with `conftest' on 8+3 filesystems.
95679         Suggestion from Eli Zaretskii.
95680
95681 1999-08-04  Jim Meyering  <meyering@ascend.com>
95682
95683         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95684         fileutils and sh-utils (textutils's getline test was inadequate).
95685         (AM_FUNC_GETLINE): Run this test.
95686         (AC_CHECK_FUNCS): Check for getdelim.
95687         Reported by Bob Proulx.
95688
95689 1999-08-02  Jim Meyering  <meyering@ascend.com>
95690
95691         * m4/jm-macros.m4: Add a comment.
95692
95693 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95694
95695         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95696         <inttypes.h> defines strtoumax as a macro (and not as a
95697         function).
95698
95699 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95700
95701         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95702         that we can shift, multiply and divide unsigned long long
95703         values; Ultrix cc can't do it.
95704
95705 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95706
95707         * m4/mktime.m4: New file, which is a preview of what should appear
95708         in the next public autoconf release.
95709
95710 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95711
95712         * m4/lfs.m4: Remove this file.
95713         * m4/largefile.m4: New file.  It contains the old contents of
95714         lfs.m4, except that all names with prefix AC_LFS have been
95715         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95716         compatible with future autoconf versions.  Also, some minor m4
95717         quoting problems have been fixed.
95718
95719 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95720
95721         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95722         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95723         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95724         and simplify the shell code.
95725
95726 1999-08-01  Jim Meyering  <meyering@ascend.com>
95727
95728         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95729         m4.
95730
95731 1999-07-20  Jim Meyering  <meyering@ascend.com>
95732
95733         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95734
95735 1999-07-15  Jim Meyering  <meyering@ascend.com>
95736
95737         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95738
95739 1999-05-22  Jim Meyering  <meyering@ascend.com>
95740
95741         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95742
95743 1999-05-20  Jim Meyering  <meyering@ascend.com>
95744
95745         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95746         Add a colon after each `then' in case $4 is empty.
95747
95748 1999-05-16  Jim Meyering  <meyering@ascend.com>
95749
95750         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95751
95752 1999-05-10  Jim Meyering  <meyering@ascend.com>
95753
95754         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95755
95756         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95757         AC_FUNC_MKTIME.
95758
95759 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95760
95761         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95762
95763 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95764
95765         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95766         not CPPFLAGS, so that linking works correctly in IRIX.
95767
95768 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95769
95770         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95771
95772 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95773
95774         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95775         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95776         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95777         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95778         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95779
95780         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95781
95782 1999-04-20  Jim Meyering  <meyering@ascend.com>
95783
95784         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95785         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95786         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95787
95788 1999-04-18  Jim Meyering  <meyering@ascend.com>
95789
95790         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95791         * m4/jm-macros.m4: Use it.
95792
95793 1999-04-06  Jim Meyering  <meyering@ascend.com>
95794
95795         * m4/strftime.m4: Remove test for %f.
95796
95797 1999-03-29  Jim Meyering  <meyering@ascend.com>
95798
95799         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95800         superset of the AC_TYPE_* checks in the textutils, fileutils,
95801         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95802         AC_TYPE_PID_T.
95803
95804 1999-03-28  Jim Meyering  <meyering@ascend.com>
95805
95806         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95807         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95808         replaced e.g., in the *.sh files of the sh-utils.
95809
95810 1999-03-20  Jim Meyering  <meyering@ascend.com>
95811
95812         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95813         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95814         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95815
95816 1999-03-19  Jim Meyering  <meyering@ascend.com>
95817
95818         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95819
95820 1999-03-12  Jim Meyering  <meyering@ascend.com>
95821
95822         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95823
95824 1999-03-07  Jim Meyering  <meyering@ascend.com>
95825
95826         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95827         declared.
95828
95829 1999-02-17  Jim Meyering  <meyering@ascend.com>
95830
95831         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95832         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95833
95834 1999-02-07  Jim Meyering  <meyering@ascend.com>
95835
95836         * m4/group-member.m4: New file -- extracted from sh-utils'
95837         configure.in.
95838
95839         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95840         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95841
95842 1999-02-06  Jim Meyering  <meyering@ascend.com>
95843
95844         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95845         * m4/fnmatch.m4: Likewise.
95846         * m4/getgroups.m4: Likewise.
95847         * m4/lstat.m4: Likewise.
95848         * m4/malloc.m4: Likewise.
95849         * m4/putenv.m4: Likewise.
95850         * m4/realloc.m4: Likewise.
95851         * m4/regex.m4: Likewise.
95852         * m4/stat.m4: Likewise.
95853         * m4/strftime.m4: Likewise.
95854         Suggestion from Alain Magloire.
95855
95856         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95857         * m4/fnmatch.m4: Likewise.
95858         * m4/getgroups.m4: Likewise.
95859         * m4/getline.m4: Likewise.
95860         * m4/lstat.m4: Likewise.
95861         * m4/malloc.m4: Likewise.
95862         * m4/memcmp.m4: Likewise.
95863         * m4/putenv.m4: Likewise.
95864         * m4/realloc.m4: Likewise.
95865         * m4/regex.m4: Likewise.
95866         * m4/stat.m4: Likewise.
95867         * m4/strftime.m4: Likewise.
95868         Suggestion from Alain Magloire.
95869
95870         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95871         an argument.
95872
95873         * m4/regex.m4: Add a run-time Test for proper operation of
95874         re_compile_pattern.
95875
95876 1999-01-31  Jim Meyering  <meyering@ascend.com>
95877
95878         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95879
95880 1999-01-30  Jim Meyering  <meyering@ascend.com>
95881
95882         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95883
95884         * m4/jm-mktime.m4: Make this a wrapper around the official
95885         AM_FUNC_MKTIME rather than my private copy, now that the official one
95886         is up to date.
95887         * m4/mktime.m4: Remove file.
95888
95889         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95890         * m4/uptime.m4: Likewise.
95891         * m4/uintmax_t.m4: Likewise.
95892
95893 1999-01-28  Jim Meyering  <meyering@ascend.com>
95894
95895         * m4/jm-macros.m4: Use jm_AFS.
95896         * m4/afs.m4: New file (from fileutils' configure.in).
95897
95898         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95899         * m4/chown.m4: Likewise.
95900         * m4/d-ino.m4: Likewise.
95901         * m4/d-type.m4: Likewise.
95902         * m4/fnmatch.m4: Likewise.
95903         * m4/getgroups.m4: Likewise.
95904         * m4/gettext.m4: Likewise.
95905         * m4/jm-mktime.m4: Likewise.
95906         * m4/jm-winsz2.m4: Likewise.
95907         * m4/lcmessage.m4: Likewise.
95908         * m4/ls-mntd-fs.m4: Likewise.
95909         * m4/malloc.m4: Likewise.
95910         * m4/memcmp.m4: Likewise.
95911         * m4/putenv.m4: Likewise.
95912         * m4/realloc.m4: Likewise.
95913         * m4/st_mtim.m4: Likewise.
95914         * m4/strftime.m4: Likewise.
95915
95916 1999-01-16  Jim Meyering  <meyering@ascend.com>
95917
95918         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95919         (ARGMATCH_DIE_DECL): Define.
95920
95921 1999-01-12  Jim Meyering  <meyering@ascend.com>
95922
95923         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95924         Reported by Lars Hecking.
95925
95926 1999-01-10  Jim Meyering  <meyering@ascend.com>
95927
95928         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95929         gross kludge.
95930         * m4/inttypes_h.m4: Likewise.
95931         * m4/lstat.m4: Likewise.
95932         * m4/malloc.m4: Likewise.
95933         * m4/readdir.m4: Likewise.
95934         * m4/realloc.m4: Likewise.
95935         * m4/st_dm_mode.m4: Likewise.
95936         * m4/stat.m4: Likewise.
95937         * m4/utimbuf.m4: Likewise.
95938         * m4/utimes.m4: Likewise.
95939
95940         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95941         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95942         comments in config.h.in are meaningful.
95943
95944         * m4/jm-macros.m4: Require autoconf-2.13 here.
95945
95946         * m4/regex.m4: By default, don't use the included regex.c on systems
95947         with glibc 2.  Suggestion from Uli Drepper.
95948
95949 1999-01-02  Jim Meyering  <meyering@ascend.com>
95950
95951         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95952
95953 1998-12-18  Jim Meyering  <meyering@ascend.com>
95954
95955         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95956         Based on a suggestion from Lars Hecking.
95957
95958 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95959
95960         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95961
95962 1998-11-16  Jim Meyering  <meyering@ascend.com>
95963
95964         * m4/lfs.m4: Double-quote the `uname...` expression.
95965
95966 1998-11-14  Jim Meyering  <meyering@ascend.com>
95967
95968         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95969         * m4/stat.m4: Likewise.
95970
95971 1998-11-03  Jim Meyering  <meyering@ascend.com>
95972
95973         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95974         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95975
95976 1998-10-18  Jim Meyering  <meyering@ascend.com>
95977
95978         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95979
95980 1998-10-17  Jim Meyering  <meyering@ascend.com>
95981
95982         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95983         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95984         calls for those previously hard-coded headers.  Instead, take a new
95985         parameter.
95986         (jm_CHECK_DECLARATIONS): Reflect interface change.
95987         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95988         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95989
95990         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95991
95992 1998-10-14  Jim Meyering  <meyering@ascend.com>
95993
95994         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95995         instead of "TZ=America/Vancouver".  From Paul Eggert.
95996
95997 1998-10-11  Jim Meyering  <meyering@ascend.com>
95998
95999         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96000         This adds a test for a recently added compatibility fix for mktime.c.
96001         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96002
96003 1998-09-27  Jim Meyering  <meyering@ascend.com>
96004
96005         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96006
96007         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96008         ../configure.in, including a change from Gordon Matzigkeit to allow
96009         cross-compiling for the Hurd.
96010
96011         * m4/glibc.m4: New file/macro to test for the GNU C Library
96012         versions 1 and 2.  From Gordon Matzigkeit.
96013         Indent.
96014
96015 1998-09-21  Jim Meyering  <meyering@ascend.com>
96016
96017         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96018
96019 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96020
96021         Port nanosecond-resolution times to UnixWare 2.1.2 and
96022         pedantic Solaris 2.6.
96023
96024         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96025         AC_STRUCT_ST_MTIM.
96026         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96027         Generate name of ns member, instead of just 1 or undef.
96028         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96029
96030 1998-08-15  Jim Meyering  <meyering@ascend.com>
96031
96032         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96033         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96034         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96035         instead of jm_TYPE_SSIZE_T.
96036
96037 1998-08-12  Jim Meyering  <meyering@ascend.com>
96038
96039         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96040
96041 1998-08-02  Jim Meyering  <meyering@ascend.com>
96042
96043         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96044         in acconfig.h manually.
96045
96046 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96047
96048         * m4/st_mtim.m4: New file.
96049
96050 1998-07-28  Jim Meyering  <meyering@ascend.com>
96051
96052         * m4/utimes.m4: Undef stat.
96053
96054 1998-07-25  Jim Meyering  <meyering@ascend.com>
96055
96056         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96057         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96058
96059 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96060
96061         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96062         uid and gid actually remain unchanged.
96063
96064 1998-07-07  Jim Meyering  <meyering@ascend.com>
96065
96066         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96067
96068 1998-07-04  Jim Meyering  <meyering@ascend.com>
96069
96070         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96071         to prove that this macro can be used in packages without regex.c.
96072
96073 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96074
96075         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96076         is to be used.
96077
96078 1998-07-03  Jim Meyering  <meyering@ascend.com>
96079
96080         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96081
96082         * m4/gettext.m4: New file -- from gettext-0.10.35.
96083         * m4/lcmessage.m4: Likewise.
96084         * m4/progtest.m4: Likewise.
96085
96086         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96087         * m4/jm-macros.m4: Require the new macro.
96088
96089 1998-06-29  Jim Meyering  <meyering@ascend.com>
96090
96091         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96092         for the definition of NGROUPS (used in a system header included
96093         by sys/mount.h).
96094
96095 1998-06-28  Jim Meyering  <meyering@ascend.com>
96096
96097         * m4/ls-mntd-fs.m4: New file.
96098         * m4/fstypename.m4: New file.
96099
96100         * m4/jm-macros.m4: Require the new macro.
96101         * m4/jm-glibc-io.m4: New file.
96102
96103 1998-05-19  Jim Meyering  <meyering@ascend.com>
96104
96105         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96106         * m4/lchown.m4: New file.
96107
96108         * m4/Makefile.am.in: New file.
96109         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96110
96111 1998-05-14  Jim Meyering  <meyering@ascend.com>
96112
96113         * m4/Makefile.am (EXTRA_DIST): Add them.
96114         * m4/jm-macros.m4: New file.
96115         * m4/utimbuf.m4: New file.
96116
96117 1998-05-12  Jim Meyering  <meyering@ascend.com>
96118
96119         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96120
96121 1998-05-11  Jim Meyering  <meyering@ascend.com>
96122
96123         * m4/isc-posix.m4: New file.
96124
96125 1998-05-10  Jim Meyering  <meyering@ascend.com>
96126
96127         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96128
96129 1998-05-09  Jim Meyering  <meyering@ascend.com>
96130
96131         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96132         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96133         with automake.
96134
96135         * m4/ssize_t.m4: New file.
96136         * m4/mktime.m4: Remove file -- the new automake has this now.
96137
96138 1998-04-26  Jim Meyering  <meyering@ascend.com>
96139
96140         * m4/assert.m4: New file.
96141         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96142
96143 1998-04-05  Jim Meyering  <meyering@ascend.com>
96144
96145         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96146         (jm_PREREQ): Use it here.
96147
96148 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96149
96150         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96151         in acconfig.h.
96152
96153 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96154
96155         * m4/prereq.m4: New file.
96156         * m4/error.m4: New file.
96157         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96158
96159 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96160
96161         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96162         cache-check for the same variable -- that defeated the purpose of
96163         the test; the test program was never run.  This was a problem only
96164         on systems with losing getline functions -- HP-UX 10.20 is one.
96165         Reported by Bjorn Helgaas.
96166
96167 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96168
96169         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96170
96171 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96172
96173         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96174
96175         * m4/const.m4: New file.  Use an initializer in this declaration
96176         typedef int charset[2]; const charset x;
96177         Reported by Bob Glickstein.
96178
96179 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96180
96181         * m4/chown.m4: Fix reversed types on -1 args to chown.
96182         From Kaveh Ghazi.
96183
96184 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96185
96186         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96187         Add lseek and memchr.
96188
96189         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96190         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96191         have a 20-character limit on names.
96192
96193 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96194
96195         * m4/inttypes_h.m4: New file.
96196         * m4/uintmax_t.m4: New file.
96197         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96198
96199
96200         -----
96201
96202         Local Variables:
96203         coding: utf-8
96204         End:
96205
96206         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96207
96208         Copying and distribution of this file, with or without
96209         modification, are permitted provided the copyright notice
96210         and this notice are preserved.